Herman Chen
f115d415b4
[mpp_dec]: Fix stuck on not enough buf slot
...
Add buf_slot callback to notify decoder parser flow.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: Ie193225f54d65f1e27326915f28f4c0ddfd03d43
2022-12-22 14:28:26 +08:00
Grey Li
1e1b58d5bd
[jpegd]: Fix stream copy_flag by hw cap
...
Change-Id: Iadcdb46f4828f8e5d9bc8fd77d76bd090a1e602e
Signed-off-by: Grey Li <grey.li@rock-chips.com >
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2022-12-22 14:28:26 +08:00
Yandong Lin
5419a46a38
[hal_h264d_vdpu382]: fix mismark errinfo when fast mode
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I44d17ea70c6c316de3f490cf2bbcbdb2aa4ca00c
2022-12-21 19:48:33 +08:00
Chandler Chen
a193ce5159
[h264d]: fix possible ref pic marking error
...
when dec_ref_pic_marking met emulation prevention byte,
drpm_used_bits counting need to minus emulation_prevention_bytes_
related issue:https://redmine.rock-chips.com/issues/389676
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com >
Change-Id: I566e45c40e0c67032217c6b1cdf87784a2f730cf
2022-12-20 15:56:00 +08:00
Johnson Ding
3c5cb158eb
[iep2]: Fix frame field detection
...
Change-Id: Ic5ecd2a7945c9e9e97ef6cc66a43b10a163b1e86
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-20 11:24:39 +08:00
Johnson Ding
24d1594b7f
[iep2]: Disable OSD check
...
OSD checking will cost much CPU time and affecting field detection. So
disable it.
Change-Id: I18fa811623d7d219e207672c7835c366409a9e07
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-20 11:23:46 +08:00
Johnson Ding
8d368ce49d
[iep2]: fix timestamp incorrect problem
...
Field order shown at bistream syntax may be conflict with the detection
result of IEP. If there is obvious index showing that the detection
of IEP is right, we should trust IEP.
Change-Id: Ib151c4b538c187afb33e05c6e6a6e8a46c7629eb
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-20 11:22:57 +08:00
Johnson Ding
15eb1e9dba
[iep2]: Fix field order and pulldown detect
...
Change-Id: I8df235ff9a85cdc1571f3d0fe90f4a32f6af94c1
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-20 11:22:21 +08:00
Herman Chen
7d812f733b
[misc]: set source code file mode to 644
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: Ie4b1c8b76d01e9cde00973ad7fdc8efefa6d9d9a
2022-12-16 17:07:01 +08:00
sayon.chen
5f02c4950e
[vdu34x_hevc]: Fix error ref cfg issue
...
when err_intra_mode is true no reconfig error ref pic reg or
ccu may be wait timeout
Change-Id: I25ce12524d831aa8daf8d0b778b81eb5dd4aabcb
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com >
2022-12-16 16:48:01 +08:00
xueman.ruan
a2627ec998
[hal_h264e]: Fix prefix NAL loss error.
...
Issue occurs when encoding multi-slice TSVC stream.
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com >
Change-Id: I7a1c6ad7a7d969b4ab8bf63dcb6f56ff26835d8c
2022-12-15 17:56:59 +08:00
Herman Chen
a16c264897
[dec_no_thread]: Fix block issue on reset
...
1. mpp_dec_decode will return output frame number.
2. Rework on mpp_dec_decode external loop.
3. Fix reset block issue when using mpp_dec_decode
NOTE: Still has some risk when the last buffer return and notify unused
buffer. If mpp_dec_decode miss the buffer notify and wait on cmd_lock it
will block the flow.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I8f3c567da221c42555903b972dc47dad55b854cb
2022-12-15 17:13:09 +08:00
Herman Chen
fcd4750e3c
[dec_utils]: Fix jpeg reader error
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I04ef9e4f6ae3bb9ccd683a0c0e439b5ff4c7d4f5
2022-12-14 16:36:36 +08:00
Johnson Ding
6e954f5142
[mpp]: Add MVC enable option
...
Change-Id: I11c4ef1954add18491f3745b23c91b79de60d181
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-14 14:22:41 +08:00
Johnson Ding
0923f061ad
[h264d]: Support 3D MVC decoding
...
Only support stereo high profile MVC. Frames with the same POC of two
views will be output in turn. The base view will be output at first.
Change-Id: I534e07bd079dc31d1a1e9178b81dfb21ffec8f60
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-14 14:22:41 +08:00
xueman.ruan
5136d85679
[hal_jpege]: Fix crop freeze error.
...
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com >
Change-Id: If7221bceaf36d8a37b808cd36bb0333f5125e6be
2022-12-12 18:09:02 +08:00
Johnson Ding
a6917d23cb
[avs2d]: Fix buffer leak issue
...
When decoding S picture, reference list with be force to set to only one
left. Slot flag should be cleared for the already marked buffers at
reference list. But decoded picture may not be correct if following AVS2
specification. So for S picture, keep those reference frames found by
doi_of_ref and replace the content of the first reference frame with
scene ref only.
Change-Id: I9f84fdd55acfc9cf9d65deb065ccf97c36de1321
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-09 18:08:47 +08:00
Johnson Ding
477a35d4f0
[avs2d]: Fix reference setting
...
When scene reference is used, ref list should not be modified directly,
otherwise slot options will encountering error.
Change-Id: I23627fc56c5d8e25e54e72868c926391127e31e6
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-09 18:02:31 +08:00
Xinhuang Li
54c4458233
[utils]: close export fd when deinit
...
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com >
Change-Id: I5a94685d4b1f93c5f56664a8c4a4e63e17757182
2022-12-09 11:41:08 +08:00
Herman Chen
c22b65ef22
[vproc]: Simplify reset lock
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I7f53706e74a16658309b3c027fb7c49817c15d86
2022-12-09 10:16:27 +08:00
Herman Chen
9d317ee674
[vproc]: Fix reset when task still in queue
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: Ic5d89db827024696c79ce51d1eef14d1b4ac415e
2022-12-09 10:07:52 +08:00
Grey Li
c2b676f089
[vpu_api]: Support set dec scale and hdr meta
...
Signed-off-by: Grey Li <grey.li@rock-chips.com >
Change-Id: Iafbd7b30ecee5894c44d7805598c8c425f83c166
2022-12-08 18:48:59 +08:00
Grey Li
6f325d444c
[vpu_api]: use fbc fmt instead color space
...
Signed-off-by: Grey Li <grey.li@rock-chips.com >
Change-Id: Ia76fd5c09fc8ab9b9ac2f4365cbc1ff0f2b4f612
2022-12-08 18:47:40 +08:00
xueman.ruan
c055b55e91
[jpegd]: Disable SOF markers but baseline DCT.
...
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com >
Change-Id: I1479fca1722c69b38d09a3c05a21a4fb10ed7e22
2022-12-08 15:05:22 +08:00
Yandong Lin
2434aa83de
[vdpu382]: Correction of register definition
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com >
Change-Id: I2dcd6112fee36404abe93e6e433a665847919df7
2022-12-07 16:39:11 +08:00
Chandler Chen
e59b06463d
[iep2] md_pre_en off for rk3528 by default
...
add iep_md_pre_en env param for rk3528
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com >
Change-Id: I98222263f29b3130e3ae16b6867a341c86755eef
2022-12-07 10:40:53 +08:00
Johnson Ding
e10c4c7f3a
[iep2]: Uncomonet dumping yuv routine
...
Change-Id: Ifc21e5c4f9119433c49c6f64ca7eb42b6287a1ef
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-06 20:58:43 +08:00
Johnson Ding
2c93f73f49
[iep2]:fix crash on mv update
...
backtrace:
#00 pc 00071fa4 /vendor/lib/libmpp.so (iep2_is_subt_mv+40)
#01 pc 00072290 /vendor/lib/libmpp.so (iep2_update_gmv+548)
#02 pc 0007056c /vendor/lib/libmpp.so (iep2_done+176)
Change-Id: I0d8cd49a3df87150273216ac0110baae4918c14a
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-06 20:58:43 +08:00
Johnson Ding
f9395047f7
[iep2]: Add env params
...
Change-Id: Ib9d5292c0f1ecb865652342cd254a56aae2dbd9d
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
2022-12-06 20:58:43 +08:00
xueman.ruan
796ec28f6a
[jpege]: Fix source format check error.
...
1. move format check to HAL.
2. fix NV61 fmt config error.
3. fix I420 offset config error.
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com >
Change-Id: Ia42a94fe56ccd9bc92bba3c1779defa163122cfa
2022-12-06 17:46:05 +08:00
Chandler Chen
4de5a6948c
[vdpu382]: Support down scale
...
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com >
Change-Id: Ifa75addd8ece67736ec5f4c055da202b8793b5c3
2022-12-06 16:11:56 +08:00
Yandong Lin
f6bae6feee
[mpp_buf_slot]: set fbc size to mpp_frame
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: Iaf1b8ef0c1687af6a7532a706e3b9e688bf9745c
2022-12-06 16:11:56 +08:00
Yandong Lin
3afc0856d4
[mpp_frame]: add fbc size api for mpp internal using
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I17aafcc7fde528331bcad3773796d27e50644c5f
2022-12-06 16:11:56 +08:00
Yandong Lin
a6feb22b6f
[mpp_dec_parser]: support scale down
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: Ib1a0f045e44584de439dda562f28fcaac5239d24
2022-12-06 11:31:53 +08:00
Yandong Lin
453e80380c
[mpp_frame]: add api about scale down info
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I0aee35b0cec0dd85bd6b49c66a12e31fb48eb483
2022-12-06 11:23:21 +08:00
Herman Chen
a9c7a6a7ac
[mpeg2d]: Fix split flag config
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I7fbdc07c67522d2e23b2d3d54c28cecfa15991d4
2022-12-06 10:55:19 +08:00
Herman Chen
3c94a1ec43
[mpp_dec]: Fix no_thread flow crash
...
When no_thread decoding call is waiting buffer and reset comes. The
buffer wait return should check the task status.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: I6921dfe509aee659c3a89c409e82c572193c4a31
2022-12-05 17:16:31 +08:00
Rimon Xu
a308a678eb
[m2vd]: fix compile warning for fabs() missing include header
...
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com >
Change-Id: I911a2180a0dd49090be37266ad410fd86d73c813
2022-12-05 16:43:03 +08:00
dawnming.huang
379c90a054
[avs2]: use outside config fbc format define
...
if outside config MPP_FRAME_FBC_AFBC_V2 cause error info change
Signed-off-by: dawnming.huang <dawnming.huang@rock-chips.com >
Change-Id: I7cc6e29850e6749b01dd62cefea534ba20f6b60b
2022-12-05 10:02:20 +08:00
Yandong Lin
5670163f5d
[h265d_ref]: fix err flag is not be marked correctly
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I52b73a7ca170a9a6a5b6bea1325631866204b4d0
2022-12-02 18:11:35 +08:00
Xingwen Fang
41c5a44a9c
[h264d]: Fix memory leak of pps
...
Change-Id: Idf5b48bc72a927ac4d5aa9eaff7ee93ef90210f9
Signed-off-by: Xingwen Fang <fxw@rock-chips.com >
2022-11-30 08:46:55 +08:00
Xingwen Fang
fc11e1f38c
[hal_m2vd_vdpu2]: Fix memory leak of M2vdVdpu2Reg
...
Change-Id: I6efd11149aac2fdd3b5d7a55f2c7ba7f0cdf25e1
Signed-off-by: Xingwen Fang <fxw@rock-chips.com >
2022-11-30 08:46:37 +08:00
Yandong Lin
6784a02934
[av1d_parser]: fix dolby rpus and frame match err
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I22ef06c28e696cb7b700a98bcb36bbdab3892a45
2022-11-29 15:15:36 +08:00
Yandong Lin
367f0c0959
[hdr_meta]: do not get meta when fill hdr meta fail
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: Id0d51fb7c822f26e96bb577265785764ef006947
2022-11-29 14:51:22 +08:00
Rimon Xu
b5f6decb49
[m2v_parser]: fix pts calculate error
...
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com >
Change-Id: Ibd263a16a2780796774aac1bd4d8a6c6600f915d
2022-11-29 14:29:31 +08:00
sayon.chen
38fc8aada8
[mpp_dec]: Support no thread decode
...
1. Use cmd MPP_SET_DISABLE_THREAD to disable thread, cmd set must be
after mpp_create before mpp_init.
2. When thread disabled put_packet & get_frame MUST not be used.
3. Separate normal flow and no thread flow.
Change-Id: Icf189d312ff39aacf6ca0afe7f345ff4d1cbfb67
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com >
2022-11-29 11:20:06 +08:00
xueman.ruan
52bffbc7bd
[hal_vp8e]: Fix input_swap8 config error.
...
To support rgb565 input.
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com >
Change-Id: I9de71b1c021e9b5a81de0d7bfa438273a09f35e5
2022-11-29 10:10:46 +08:00
sayon.chen
53f93edee6
[mpp_dec_cfg]: Add disable_thread config
...
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
Change-Id: Ia59b643f5286ae86ad7d7c9d9c1b9367c8efc44d
2022-11-28 15:57:56 +08:00
Grey Li
78b6db4a4a
[vpu_api_legacy] suport avs2
...
Signed-off-by: Grey Li <grey.li@rock-chips.com >
Change-Id: I8ade3067a9de148ee27f3c6b92962b95b688e77a
2022-11-28 10:25:40 +08:00
Yandong Lin
06672e4aee
[mpp_meta]: add new key for scale down dec info
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I421e24d5d3727a3f828f1a2407e6702e12d9afb7
2022-11-25 18:11:13 +08:00