Commit graph

1311 commits

Author SHA1 Message Date
Yandong Lin
c6a6cdfa2c fix[hal_h265e]: fix sse_sum get err
Change-Id: I194c6d1b2fe6b1de52a1ce9f5c2cf56046352df9
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-05-22 21:42:11 +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
Hongjin Li
9b1f18daf0 fix[hal]: Fix the lib interdependence issue
Adjust the hal layer compilation structure
and fix the lib interdependence issue.

Change-Id: I7b400b679c8592b12fae865ff0638f177bbf0d60
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-05-16 10:18:48 +08:00
Yanjun Liao
584d986e1f fix[vepu_510]: fix same log type when enc feedback
feedback ONE_SLICE_FINISH irq is not a err.

Change-Id: I350252b78750672dc3123e0983b1edf7d870c26e
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-05-15 18:15:00 +08:00
Johnson Ding
ccf8f46e78 refactor[dec]: get deocder capability via common routine
Change-Id: I9700a2418653a6d5a9a00b4c4c13f33022d2159b
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-05-10 15:57:47 +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
Hongjin Li
1176f05f78 fix[hal]: Fix target link issue
Some compilers, such as ndk16, will have problems when linking

revert: e83980a9 fix[hal_enc]: Fix lib dependency issue
fix: refactor[hal_av1d]: Migrate av1d from vpu to rkdec

Change-Id: I5592ac1040ab23e25860b595ca38e1748911e4a4
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-05-10 15:57:47 +08:00
Hongjin Li
3b8dbc7fdc refactor[hal_av1d]: Migrate av1d from vpu to rkdec
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I988f23c70191004ad24c90c4bd5fbc6cba9830de
2024-05-07 16:53:55 +08:00
Hongjin Li
e83980a9e4 fix[hal_enc]: Fix lib dependency issue
rkenc/vpu generates library files for hal/common to use.
So under rkenc/vpu, should not rely on the target library
in hal/common.

Change-Id: I9521364829aef90f9024b8388339f00f05cc3f96
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-05-07 16:46:45 +08:00
Chandler Chen
4d889a6969 chore[hal_h265d]: use INT_MAX for poc distance initiation
INT_MAX already defined in <limits.h>

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I98a12ccc81f2e390fe1528835124d05a8c5598b3
2024-05-06 15:52:01 +08:00
Chandler Chen
6a04f82ae6 fix[hal_h265d_vdpu383]: fix ref_err mark for special poc
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I938faa24ee5181ae3dad297c31dbcdb4a0cd1aa5
2024-05-06 15:15:57 +08:00
Yandong Lin
80957d2661 fix[hal_h265e_vepu580]: fix reg config err for 2pass
relative redmine:
https://redmine.rock-chips.com/issues/479297

Change-Id: I2af19324ac936fa0fb7239c8dc192b47532e4faf
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-25 19:13:07 +08:00
xueman.ruan
fee1de05f1 fix[jpegd_vdpu]: Adjust file dump path
Change-Id: I593d1c5cae25506e83e88307d1b04c1aeb1c8c58
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-04-24 10:48:59 +08:00
Hongjin Li
efbf1ddafc fix[vdpu383]: Update vdpu383 error detection
Change-Id: Iac93e49beef7d36598c00ef77e1cfbee1b8822c3
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-23 17:35:16 +08:00
Chandler Chen
0a9509431f feat[vdpu383]: support 8K downscale mode
Now there are 2 mode for downscale thumbnail frame buffer

1.MPP_FRAME_THUMBNAIL_MIXED (already use on RK3528 box):
Each buffer contains original output frame and 2x2 downscale
small frame, small image's buffer offset will be set in frame
meta info;
2.MPP_FRAME_THUMBNAIL_ONLY (newly added for rk3576 8K video):
for rk3576: vop & gpu does not support 8K frame,
in this case, mpp use 4K downscale buffer as decoder output

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I3acf9486a657fa3e999ca16140f40b2a01ebcaf4
2024-04-23 15:54:30 +08:00
xueman.ruan
0fda1a63ba fix[avs2d_vdpu383]: Optimise dec result
Optimise dec result when player seeking.

Change-Id: I2de6dfa4ecf91f03c6958ef631a6f256a4189de6
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-04-19 10:59:21 +08:00
Hongjin Li
1845e91492 fix[vdpu383]: Fix compiler warning
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: Ic617c6b77dc7ec1fd44c0819252d7267ffcfd9ff
2024-04-19 09:58:50 +08:00
Chandler Chen
1630a598dc fix[vdpu383]: hor stride alignment fix for vdpu383
set hor stride alignment when decoder init

former commit:8759039d5f
feat[vdpu383]: align hor stride to 128 odds + 64 byte

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I5428919cea58705f3c05100d4f83276be607cb00
2024-04-18 16:57:23 +08:00
Hongjin Li
514b0c0ccf fix[vdpu383]: Fix memory out of bounds issue
When the buffer length is set incorrectly,
the interface mpp_put_bits does not return
in time and the buffer is written out of
bounds.

Change-Id: I2ee7d69a6b405ff3cc8aa2fe6389a0ee288f95c7
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-17 15:26:14 +08:00
Hongjin Li
89531fbe57 fix[h264d_vdpu383]: Fix global parameter config issue
When using old global paras, it is necessary to clean up the bit
positions that need to be updated, otherwise it will affect the
global parameter configuration and cause global parameter
configuration errors.

Change-Id: I7f1a7bf77d9e56a6b5f532ff70494e8937cc63a7
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-16 16:35:10 +08:00
Yandong Lin
a37666b014 chore[hal_h264e]: clean some unused code
Change-Id: I4b653d72248788ae731ceccc1cca1e8b75390073
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-15 16:47:05 +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
Chandler Chen
2425ca9285 fix[av1d_vdpu383]: fix fbc hor_stride error
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I1acfaa04ce46d0e979ccb689e007b96d230f01b0
2024-04-11 16:33:55 +08:00
Yandong Lin
d856d1d493 refactor[hal_av2sd]: refactor hal_api assign flow
Change-Id: I74388ab903e6f6566685b49913c9cf4ab3c87cc2
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-10 08:29:21 +08:00
Yandong Lin
5dd75b3283 refactor[hal_h264d]: refactor hal_api assign flow
Change-Id: I52f0cf883c7878a6439903ef946b5e8c6ae2fc23
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-10 08:29:21 +08:00
Hongjin Li
8206891b20 fix[av1d_vdpu]: Fix forced 8bit output failure issue
When MPP_FRAME_HDR is enabled, mpp_frame_get_fmt gets a non-zero value,
then force 8bit output invalid.

Change-Id: Iab43fb1784bfa6f68b80430fb0dbd4f829f34303
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-08 16:28:37 +08:00
Ding Wei
202cf4ad5e fix[hal_av1d_vdpu383]: memleak for cdf_bufs
Change-Id: I0a61239e3b4922569d7cda7afc80e0a842b8565a
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-04-03 10:47:22 +08:00
Chandler Chen
142299c013 fix[av1d_vdpu383]: fix rcb buffer size
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: Ibd85f1b45f056e6416ccfe4ebebf2f71466090d2
2024-04-03 08:49:11 +08:00
Hongjin Li
db3e56db2e fix[vp9d_vdpu383]: Fix segid config issue
Change-Id: I1c2541606cf785a3280ead316f5ccd6cc7daeab5
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-02 16:51:27 +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
Hongjin Li
af4a67b207 fix[avs2d_vdpu383]: Fix declaring shadow local variables issue
Change-Id: I28a3b674714d71634af632f81e1d704f6e7d1037
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-02 10:15:04 +08:00
Hongjin Li
56f97b0844 fix[av1]: Fix global config issue
Change-Id: I1b79299ee0eeb20d7d70a5d261e05ca6dc65f4a2
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-02 09:53:39 +08:00
Hongjin Li
8d1b8b5cd8 fix[hal_av1d]: Delte cdf unused value
Change-Id: Ia5ef682906ef6d64787e6f9be85f47c6936bd9b1
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-02 09:38:08 +08:00
Hongjin Li
ef766977b3 fix[av1]: Fix av1 display abnormality issue
related source: bbb_av1_176_144.av1

Change-Id: I3e6672abfcc495d42460ca5390d6dd21b66a42f9
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-04-02 09:37:52 +08:00
Chandler Chen
8759039d5f feat[vdpu383]: align hor stride to 128 odds + 64 byte
for better performance

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I312c6b22f0c189b0674b0a667c20f68ac83315d6
2024-04-01 16:08:32 +08:00
Chandler Chen
d381031669 feat[vdpu383]: support 2x2 scale down
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I6cf0e9a29ec67d722a5dc3d328579239dbb281f1
2024-04-01 16:03:44 +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
Herman Chen
aebf134271 fix[hal_jpegd]: Add stream buffer flush
1. Add stream buffer flush operation after gen_regs.
2. Remove unused frame_buf.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I90228d0e5c6d0634d2783005b41b3bd1dc83375e
2024-03-29 16:50:10 +08:00
Yanjun Liao
25649d2fae fix[265e_api]: Support cons_intra_pred_flag cfg
Change-Id: I57d7df14086cab0a6019f77b7b4b6259f456455e
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-29 10:18:14 +08:00
Herman Chen
b8c4c585e2 fix[mpp_enc]: Add device attach/detach on enc flow
Add rk3576 devices first.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I3e07d86787f50c00e6bfac7c376fae45035ba471
2024-03-29 10:02:00 +08:00
Herman Chen
4c0b591272 fix[mpp_dec]: Add device attach/detach on dec flow
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: Iddd667985c67a06b195761598548efa6ac744ce6
2024-03-29 10:02:00 +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
Yanjun Liao
cf1d60c324 fix[hal_265e_510]: modify srgn_max & rime_lvl val
avoid some encoding errors

Change-Id: Id8b3e112ff1e2a5cfab400fc5f78412e855108bc
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-27 13:52:37 +08:00
Ding Wei
db81cc5217 fix[vdpu383]: spspps data not need copy all range ppsid
tips:
    In vdpu383 version, it not need to copy the spspps data to
range 0~MAX_PPS_ID. And only read the data of base_addr,
instead of the base_addr+pps_id*spspps_size.

Change-Id: I987134752ad81c66e05a594094fa90c667c84e1e
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-26 15:58:31 +08:00
Hongjin Li
1c3ac4f1e7 fix[av1]: Fix 10bit source display issue
related issue: https://redmine.rock-chips.com/issues/468686

Change-Id: I78179f94ca0bbac93f53c70f05c1367c4e6691ec
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-03-22 10:53:05 +08:00
Hongjin Li
1e4b740e55 fix[av1]: Fix delta_q value read issue
related issue: https://redmine.rock-chips.com/issues/470362

Change-Id: I26910456b05eb54a29a1a25c2ff061dfead7f1f4
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-03-20 16:27:24 +08:00
Hongjin Li
fafab42190 fix[vdpu383]: Enable error detection
related issue: https://redmine.rock-chips.com/issues/470652

Change-Id: Ie847b31e3669fc8af2808c3dc3f66c5ed1e28679
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-03-19 17:42:44 +08:00
Johnson Ding
33c456826e fix[jpege_vpu720]: sync cache before return task
Change-Id: I9721e6f82b0318457461bd6c967d63c5027bfbdb
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-03-18 17:44:03 +08:00
Yanjun Liao
819116d3c2 fix[vepu510]: Configure reg of Subjective param
Configure parameters such as anti-smear, skin_opt, text_opt, etc.,
according to the register modification table of VEPU510.

Change-Id: Iaad9f09027e03715b2fe129b4c162b7d242a213e
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-15 14:24:52 +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