Commit graph

23 commits

Author SHA1 Message Date
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
timkingh.huang
560ac10baf feat[vepu510]: Add smart v3 interface
Change-Id: Ib2dea60f794f1ef404cf91b75053d8cf2639fd6b
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
2025-06-24 16:22:18 +08:00
xiaoxu.chen
2506f5df61 fix[hal_h264e]: Fix h264 poc_type reg configure
Change-Id: Ife9fd9bc96037406cfbea16c3c4fef45d4a5a3dd
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2025-06-23 10:01:34 +00: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
Tingjin Huang
c48a88c2fa feat[vepu510]: Add scaling list regs setup
H.264: intra8x8 and inter8x8 for luma only
H.265: intra/inter 8x8/16x16 for luma and chroma,
       intra/inter 32x32 for luma

Change-Id: I6ca3d5985af7d3d7e7c1bc99db820cd166be0624
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-13 14:51:44 +08:00
Tingjin Huang
ba450dd834 fix[vepu510]: Sync code from enc_tune branch
1. Fix AQ setup error for smart H.264
2. Fix initial value error of qp_min
3. Adjust H.264 regs setup for CVR scene

Change-Id: I38b09edb95532a3c1e9a544584c6d258f05fc43b
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-10 17:42:41 +08:00
Tingjin Huang
e0e70e96d2 feat[vepu510]: Add anti-smear regs setup for H.264
Change-Id: I46ce011c215a632c871ea8816563a2eb598146e0
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-08-27 10:24:49 +08:00
Tingjin Huang
16e700e41e feat[vepu510]: Add H.264 tuning setup
1. Add AQ regs setup. There is no aq clip operation which is
different from vepu500.
2. Update anti-stripe regs setup. Option "-atl 1/0" to enable/disable.
3. Add anti-ringing regs setup
4. Add anti-flicker regs setup

Change-Id: Ia36073d26ab5587f3478f7f8b4cdfe8a1ffed8f4
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-08-27 10:24:39 +08:00
toby.zhang
03696728e1 feat[vepu510]: Sync code from enc_tune branch
1. Add anti-line tuning
2. Adjust AQ assignment
3. Add smart encoding
4. Add deblur/qpmap routine
5. Add atf & four level intensity control atf
6. Add atr anti_blur function
7. Add real time bitrate output
8. Add smear buffer for vepu510

Change-Id: Iae661686f6adacd0b5ec57c102c184e2537dfc7d
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-08-27 10:23:23 +08:00
toby.zhang
02095f66d3 feat[vepu510]: Sync code from enc_tune branch
1. Add cu_qp_delta_depth cfg
2. Configure AQ regs for H.265
3. Configure regs according to scene mode
4. Support fixed frame level QP
5. Add RDO lambda table index
6. Update stat info for HEVC
7. Add tuning code for H.264 encoder

Change-Id: Id7dae4ed55e1b94622aee72cfce8f24c833d00e1
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-08-27 10:08:49 +08:00
Yandong Lin
a412466af8 fix[hal_vepu]: fix split regs assignment
Change-Id: Idba725a871dbac7ce070e0bb66701f1584e06bb4
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-08-03 11:05:44 +08:00
xueman.ruan
36e263402a fix[hal_h264e]: fix segment err when encode tsvc
update segment info after amend stream

Change-Id: I6dc1ace0bcd58746f3fd0755c980e22482219f3d
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-06-13 09:17:12 +08:00
Yanjun Liao
0e12c5da26 fix[enc_roi]: Support ROI cfg under CQP mode
Change-Id: I9049bd13dfadee20f3149e511f7e6393f1810126
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-05-17 09:42:25 +08:00
Yandong Lin
1d1b8139db fix[hal_vepu580/510]: fix split out err when pass1 frame
pass1 frame will disable split mode, so split out need to be disable.

Change-Id: Id1d504f954848c6b4b270788ecf077897238f82f
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-05-10 15:57:47 +08:00
Scott Lamb
56df2c7409 fix[hal_h264e]:fix crash after init vepu buffer failure
pull-request from:
    https://github.com/rockchip-linux/mpp/pull/571

Change-Id: I68ccdeb0972c454d43c8a71bcec84336286fb791
Signed-off-by: Scott Lamb <slamb@slamb.org>
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-04-15 11:39:03 +08:00
Yanjun Liao
5e879fefd3 fix[vepu510]: Add split low delay output mode support
Change-Id: I39e349c8091ebf9f73256611e7057012a65b2781
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-04-02 10:20:48 +08:00
Tingjin Huang
265c169ad8 fix[vepu510]: Adjust regs assignment
Some registers are deprecated, no need to assign.

Change-Id: Ia313a770579aa3539dc13661bacc01c27f003e59
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-04-01 09:27:08 +08:00
Yanjun Liao
4fbc79f463 fix[vepu510]: Checkout and optimize 510 reg.h
Proofread and streamline the register header file for vepu510

Change-Id: I4acf200969de7c9cb7a3ad49b6d77fa4d6fc2609
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-15 14:24:52 +08:00
Yanjun Liao
f12c810cd6 fix[hal_h264e]: Fix qp err when fixqp mode
Fix the issue of unstable QP values in H.264 encoding when using fixqp
mode with configured max/min QP

Change-Id: I979d3086baa4a68d919c772e7babea78e1a95e34
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-06 18:08:55 +08:00
Ding Wei
0753f99ac6 fix[vepu510]: Fix camera record stuck issue
The dvbm_err_en must be cleared before hw start.

Change-Id: Ic3e51f01ba0722e0490dc7d819ca248516cd60b8
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-01 15:35:01 +08:00
Yanjun Liao
bbce74ebc5 fix[vepu510]: Fix compile warning
Change-Id: I4679fd0f58dd5eb9deea9b5cd3e080316197fbb0
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-02-27 17:58:29 +08:00
Yanjun Liao
5c51bfa04a feat[vepu_510]: Add vepu510 h264e support
1. add hal_h264e_vepu510_reg.h
2. add h264e_vepu510.c
3. some other modification for vepu510 h264e

Change-Id: I7204c6fd4af3ef7251bbd126e133102065464f13
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-02-27 14:48:15 +08:00