Commit Graph

3728 Commits

Author SHA1 Message Date
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
Herman Chen
bcd3065dc9 [script]: Update pkgconfig version
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I595cf5a913238400714d3174361586aa4479fbe9
2024-04-19 09:26:46 +08:00
xueman.ruan
4c1d759105 fix[vdpp]: Fix dmsr reg size imcompat error
Change-Id: I856bd44fefa322ff8e1136f3055851f72a74b508
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-04-19 09:21:42 +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
Yandong Lin
d3ae038731 fix[h265d_ref]: fix set fbc output fmt not effect issue
Change-Id: I9026253b0d1454f0664f392bb19858e4aefa2396
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-18 12:44:02 +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
82ac1388ee fix[avs2_parse]: add colorspace config to mpp_frame
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I47eb966de3e81df5826901c1c42b37d3964a2732
2024-04-16 09:27:10 +08:00
Hery Xu
2ea1a7ecd3 [vpu_api]: support nv21 format encode
Change-Id: I82af5c70702b759afbce8665ff536c517d164831
Signed-off-by: Hery Xu <hery.xu@rock-chips.com>
2024-04-16 09:26:53 +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
Ding Wei
3f97b0d73f fix[vpu_api]: Fix frame format and eos cfg
Input encode frame should set format and eos

Change-Id: I08536bcb022cafcb3756745841b85b24929401cb
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-04-15 09:28:48 +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
Chandler Chen
3946eb2a6e fix[av1d_parser]: fix fmt error for 10bit HDR source
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I52e09f11ee30eb02fb8f543648ccf8d8483c73f8
2024-04-11 16:33:54 +08:00
Johnson Ding
7734ac55d7 fix[avs2d]: fix stuck when seq_end shows at pkt tail
Change-Id: I7a4163c4e3a35eeffc1f062eb83e17685ba8a96a
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-04-11 11:22:24 +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
Yandong Lin
acbbbbdb78 fix[enc_async]: Invalidate cache for output buffer
Change-Id: I7558bfcd6654dc92346f43f5329ef143be94c9bc
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-04-08 08:29:20 +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
Yanjun Liao
d0c7fbe2a3 fix[avs2d]: Remove a unnecessary log
Change-Id: Idf96375721d7f9868389fa97e975bb8ffcce82d7
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-04-01 12:25:36 +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
Herman Chen
c66b20af0e feat[mpp_buffer]: Add MppBuffer attach/detach func
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I696b6bec049edcdd4e30d168428f43f3dad9c199
2024-03-29 10:02:00 +08:00
Herman Chen
8d27cb798e feat[mpp_dev]: Add fd attach/detach operation
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I4ef09ee8d866eccbbaf3f5668ceefe81e3dc26c0
2024-03-29 10:02:00 +08:00
xueman.ruan
f4bef33104 feat[vdpp]: Add libvdpp for hwpq
Change-Id: Ief67782a6b4623897b0fbe58dbf8846a2a2a7742
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-29 09:04:16 +08:00
xueman.ruan
38c370076b fix[vdpp]: Add error detection
Change-Id: I8819b8ae1224f2166f555a9905d097fa2ff24ea4
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-29 09:04:01 +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
Grey Li
eb7709267c fix[vpu_api_legacy]: fix frame CodingType err
Signed-off-by: Grey Li <grey.li@rock-chips.com>
Change-Id: I4c99378d8a44856c36102c201a65735538c4e61b
2024-03-25 09:35:59 +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
xueman.ruan
dbf20001b7 feat[vdpp]: Add capacity check function
Change-Id: If14ad6e664b2dd58a8df9aecbb81b3d92682eb7d
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-21 09:49:29 +08:00
Yanjun Liao
77c7e3201d fix[mpp_enc]: Expand the hdr_buf size
To avoid overflow

Change-Id: Ic3fd9b31b431bec5cfa382305afb6cfc7c0f8a96
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-20 17:40:14 +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
Yanjun Liao
423ebb1da1 fix[ext_dma]: fix mmap permission error
Change-Id: Ic7ae7c8de978752f8437f2d0b700014ea6817c56
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-18 18:05:13 +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