Herman Chen
f507421f8b
chore[mpp_enc_cfg]: Remove MppEncCodecCfg
...
1. Revert codec cfg to separate h264/h265/jpeg/vp8 cfg.
2. Update enc/dec/sys cfg_test print.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ida5da8a6b738fbf710e1ab590bc6b6f3438319c4
2025-09-10 17:39:55 +08:00
xiaoxu.chen
317fce0bee
chore[hal]: Organize the relevant processes for vepu fmt
...
1. Move Vepu fmt from vepu541_common to vepu5xx_common
2. Create vepu580_common
3. Add vepu ARGB4444, ARGB1555, AYUV1BPP, AYUV2BPP
Change-Id: I372e35d9ccf93ecf082d4a279c03841bef3bc581
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-08-12 03:40:29 +00:00
Yanjun Liao
05f59be432
fix[hal_h265e]: Fix nal type in tsvc mode
...
Platform: vepu_580/540/510
Spec: h265e
In tsvc mode, top p-frames not used as reference frames.
Change-Id: I0b285e5ed753e73321fd728389195f0e5b118874
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-07-25 11:02:42 +08:00
Yanjun Liao
6d3cc5ea5d
fix[vepu541]: Add warning for unsupport nv21/nv42
...
VEPU_541 unsupport uv_swap in nv12/nv24.
Change-Id: I768b9a5fc5657a8d8eb58feeb0f09756a6197c3e
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-05-13 10:03:45 +08:00
Yandong Lin
ea8b5af151
fix[mpp]: Fix compile warning with ipc sdk toolchain
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I206b473b904e69d10644897e47ba1933ada8204d
2025-04-03 14:43:14 +08:00
Hongjin Li
8763144523
refactor[hal]: Update the reg offset setting method.
...
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: If63cbfdae4150280b4d24698543990a454ed5f6f
2024-12-27 11:54:55 +08:00
Yandong Lin
a0fbdd3c21
fix[hal_vepu541]: re-get roi buf when resolution switch
...
Change-Id: I2ebc2c731abb8cd45d1d9df98f3eb420a7091de1
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-10-29 09:59:55 +08:00
xiaoxu.chen
a4bd0d2a69
refactor[h265]: unify calculation tile width
...
Change-Id: Ib5200e332cc5be47f79561570c0342e7690e4587
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2024-09-25 14:14:03 +08:00
Yanjun Liao
50f108baf2
fix[hal_h265e]: Amend 510 tid and sync cache
...
Change-Id: I93f96a7da6d3caa183f4991a3a6901a6dc697b44
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-06-07 11:54:01 +08:00
Yanjun Liao
ae4baaf917
fix[hal_h265e]: Fix nalu type avoid stream warning
...
Change-Id: Ic59c77a7276a4ca2ad1cb391c5da2316903a824c
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-06-07 10:02:07 +08:00
Johnson Ding
a19c919553
refactor: Using soc_type for compare instead of soc_name
...
Change-Id: Id153adc5f628bec6e27d87d0ce2933ebe96df1d6
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-03-29 08:55:12 +08:00
Johnson Ding
a597942944
fix[h265e]: fix hw stream size check error
...
Change-Id: If1f869548f517e61aa2977bd5e0909a00010fb2f
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-02-06 17:19:51 +08:00
Johnson Ding
06d8b3958a
fix[h265e]: Amend temporal_id to stream
...
Change-Id: Icdf177c5a144c0ed611d9df993183619dcf2f9ff
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-01-30 11:36:39 +08:00
Yanjun Liao
ccf32c1da3
feat[mpp_enc]: Add YUV400 support for vepu580/540
...
Add VEPU540/580 YUV400 format support in H.264 and H.265
Change-Id: Id62102dcdc42afea5c3485224d9b4e5bf25efbac
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-01-10 18:14:23 +08:00
Herman Chen
ed377c99a7
fix[hal_enc]: Add encoder internal buffer sync
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ie8ab3f8900e979079aaa1817a25751fc086431ac
2023-12-14 17:31:59 +08:00
Yandong Lin
3b27843844
fix[hal_h265e_vepu541]: fix roi buffer variables incorrect use
...
Change-Id: Ia396343b395860560aa24abecf8657d22b798fe4
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2023-11-01 09:20:54 +08:00
yanjun.liao
45fff92423
feat: add more enc info to meta
...
1. add num of inter/intra different size predicted block info
2. add start qp info
3. add output pskip frame indicator
4. add SSE info
Change-Id: I664f0f87b862bf1c27b43f67c5c3e4b8b060c5b0
Signed-off-by: yanjun.liao <yanjun.liao@rock-chips.com>
2023-10-10 09:11:41 +08:00
hdl
9ff2961dcf
feat[venc]: Add qbias for rkvenc encoder
...
Signed-off-by: hdl <hdl@rock-chips.com>
Change-Id: Ib463b777898a3c25bebbd2fcb95d872581f0b8f7
2023-09-25 16:34:03 +08:00
Johnson Ding
d616305e35
refactor: move same tables to common module
...
Change-Id: Id472fc5632c3d71fb88480e5ba08c7bdd8e07379
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2023-09-05 13:57:31 +08:00
hdl
f69176591d
[VEPU541]: Add scene_mode for fine tuning.
...
Signed-off-by: hdl <hdl@rock-chips.com>
Change-Id: I0cf2864667a15079fafb9690d2ac23152910e30d
2023-07-25 10:53:01 +08:00
Zhihua Wang
acd257349c
[vepu541]: Support h265e slice split
...
Signed-off-by: Zhihua Wang <hogan.wang@rock-chips.com>
Change-Id: Icddbda95b818aa9ce779d38b62cda59f8a1273f7
2023-05-13 11:48:08 +08:00
Hongjin Li
4a134b5042
[vepu540_gdr]: Support h265 intra refresh
...
Change-Id: Ie5472d078bf7d67e6df9b748de1ef6ee800559ec
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2023-01-11 11:04:44 +08:00
xueman.ruan
80bc809d6b
[hal_vepu5xx]: Expand colorspace transformation
...
1. expand colorspace transformation for AVC and HEVC in rkv hardware.
2. default rgb-to-yuv transformation: limit, BT.601.
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
Change-Id: Id8674d3d4acd84dc263c7a81a54f1a5fc74e1e17
2022-11-15 10:38:24 +08:00
xueman.ruan
09de35e9b5
[enc_cfg]: Update mirror transformation.
...
1. constraint the range of input argument.
2. add flip config, equal to vertical mirror transformation.
3. add mirroring_ext and rotation_ext to config set, for supporting
GET_CFG control.
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
Change-Id: I01c0b9187a18851354e81b5f08afc6dcaaba8365
2022-09-21 15:21:40 +08:00
sayon.chen
eee9b87c30
[vepu541]: Support fbc_hdr_stride from frame info
...
Change-Id: Ibe7644dd7bb3ae334821af70fee5c006a6b46549
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-07-05 15:31:47 +08:00
sayon.chen
0ea1fe692f
[hal_vepu_h265e]: Fix chrome qp offset set issue
...
Change-Id: I9f1a23872990b7f4c72b7a321ee5d9d4719845c9
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-07-01 09:50:15 +08:00
Herman Chen
33308d0a3c
[hal_h265e]: Support slice split output callback
...
Change-Id: Iddd4a0d9e9daf1751838deb01db239e73e2c4abc
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-06-14 08:58:21 +08:00
Herman Chen
0b949f4b8c
[hal_h265e]: Increase h265e recn/refr buffer size
...
Change-Id: I160b8129351a0020b4afff8c5d350ad28a60296c
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-04-25 11:45:29 +08:00
Herman Chen
f02fd231ed
[mpp_enc]: Use meta with default value to get info
...
Change-Id: Id01bf8fb813bf60888730c9e9a6d17b4bc7914a7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-03-09 11:19:38 +08:00
toby.zhang
b3edf0d22c
[mpp_enc]: Add motion dection output path
...
Signed-off-by: toby.zhang <toby.zhang@rock-chips.com>
Change-Id: Ie0ee26af50cef7f883cb3cd2c50f9121e4f87079
2022-03-03 17:39:00 +08:00
Herman Chen
6e316ddc10
[hal_h265e_vepu580]: Fix tile osd offset error
...
Use new multi register offset config function to setup all offset for
vepu580 and vepu541.
Change-Id: I78e77ddd818b7875c028b660aa06a16b527a8409
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-02-16 10:28:28 +08:00
sayon.chen
8f19742b81
[h265e_hal]: Fix reenc path last_frame_type update issue
...
Reencoder frame last_frame_type should not be update ,if update
inter frame after intra will set used tmvp, this will cause stream
dec error
Change-Id: I00329708b1cf7173c44a8809243e6101e9e8db80
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-02-11 14:36:58 +08:00
Herman Chen
3d87869900
[hal_vepu541]: Add ROI_DATA2 support
...
Change-Id: Iadd0b8206197bba29dca21d1581b7394cea8f4be
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-11-30 15:07:19 +08:00
sayon.chen
20e82a341d
[hal_h265e_vepu580]: Add hevc580 support
...
Change-Id: I4c09bdabdaa0992c44e9be45455cdf88efae85bf
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-11-12 18:40:16 +08:00
Herman Chen
0bc33cf484
[hal_task]: Remove hal_enc_task.h
...
Change-Id: I6fefe59d189c80981a253d249afd8364fe9b7242
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-11-06 17:44:49 +08:00
Herman Chen
02320fb506
[meta]: Add qpmap for encoder roi direct config
...
Change-Id: Ic64fa548f60f723e971c5574b6b290ddaf454809
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-10-20 14:55:46 +08:00
Herman Chen
b47190aa36
[hal_vepu541]: Fix fbc input stride issue
...
AFBCV1 input should align stride to 16.
Change-Id: I1d89d551cb930fa0fd842482f35eafb087ded6fa
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-10-15 12:18:30 +08:00
sayon.chen
44073b6035
[hal_hevc_vepu541]: Adjust I frame bias cfg
...
Change-Id: If215c15ee452f0853b359484a36893d83dfb8bb1
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-10-09 09:51:23 +08:00
sayon.chen
196b918d07
[h265e_dpb]: Mark unused ref which no show in dpb
...
Change-Id: Ie41740c8f85bd61ca590532501d7e89e6fd66fa5
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-08-25 10:32:08 +08:00
sayon.chen
17a7c77ee3
[hevc_vepu541]: Fix non_ref frame reg cfg issue
...
Change-Id: I10d79b5c270c90059a274be36bb77d778ece2d73
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-06-23 14:45:00 +08:00
sayon.chen
4fa1aa8604
[hal_h265e_api_v2]: modify v2 api func register
...
Change-Id: I75032f6d26c705190a4a8432f52b178e04aa64db
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-03-17 11:42:04 +08:00
sayon.chen
128c1054bc
[hal_hevc_541]: Fix madp get error issue
...
Change-Id: I5d43d6142970c8c6dc73a5801daf4475d8a4bb12
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-03-17 11:30:46 +08:00
Yandong Lin
095be71345
[hal_h265e_vepu541]: Fix h265 enc err when multi tile
...
In the first tile, the offset of some regs be configured twice,
when multi tiles.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I6a4f6851cd635b4ea8a52f056bcf5f097636ece3
2021-03-12 11:37:44 +08:00
sayon.chen
943690e384
[vepu540_hevc]: Fix refbuf body_offset cfg issue
...
Change-Id: I18be1281e1ec76beaa947d8e695d90f5973b1118
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-03-01 16:12:31 +08:00
sayon.chen
b3cfffdabc
[hevc541]: Use REG_OFFSET to setup outbuf
...
Change-Id: I894419616fdf57f123ce6cecb1d0eef0adb6ed91
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-02-05 15:21:15 +08:00
sayon.chen
219e97f63c
[hevc54x]: Modfiy Ref & rcon bodybuf offset set
...
fd maybe > 1024 fb|offset may overflow used MPP_DEV_REG_OFFSET
way to avoid this case
Change-Id: I142f8c9915f18da822d3edbf3ff8fe9b081d8918
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-02-05 09:32:49 +08:00
Herman Chen
a5cafbabdf
[vepu541_rc]: Reduce P frame qp range
...
Reduce P frame qp range from 2 to 1 to get more stable video quality.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I58f13e2ad2dc6ff04dd010e990f012a26b88d157
2021-02-02 08:50:06 +08:00
sayon.chen
148a2b0b7a
[rc_v2]: Add iblk4_prop info
...
Change-Id: I2d573a2170226472ad913e6b5068d80a18d220e5
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-01-15 14:11:52 +08:00
Herman Chen
4b4335581e
[vepu541]: Add rc_qp_range and aq config
...
Change-Id: I011c1b88aa1ed8d210015f60a94c42cd7fde44d1
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-01-11 16:26:49 +08:00
Herman Chen
fb13523e51
[hal_h265e_vepu541]: Optimize quantization param
...
1. Set rounding bias to 0 to reduce noise crawling.
2. Reduce complex context qp delta.
Change-Id: I35b15631b964fb0a59cfd4986ed1aedf9ba0e851
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-12-31 11:31:55 +08:00