Commit Graph

3562 Commits

Author SHA1 Message Date
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
Johnson Ding
11055c198a fix[mpp_buffer]: fix buffer type assigning
Change-Id: I340ff30729143b2d5c7fba7d145b1a8f5d38d0ef
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-03-18 17:43:22 +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
xueman.ruan
3cf926cd2c fix[mpp_dec]: Optimize HDR meta process
Change-Id: I57d9d0c34d7085ff9c72b996c78835e2d49e0238
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-14 15:22:49 +08:00
Hongjin Li
b37a668bad fix[av1d]: Fix scanlist calc issue
sync with c_model

Change-Id: I71b0594814e34f9d9330d79143248f03c62416a7
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-03-14 11:24:31 +08:00
ctf
ec2666fc6f feat[cmake]: Add building static library
Signed-off-by: ctf <ctf@rock-chips.com>
Change-Id: Ie199d3852c4a5c37a17562e82780a8b804224a54
2024-03-14 09:55:25 +08:00
nyanmisaka
ee946af015 fix[h265e]: fix the profile tier cfg
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Change-Id: Id35e9ba030472a8e6cce5b2438797a8cc7796374
2024-03-13 15:28:23 +08:00
Chandler Chen
31e9d148b6 fix[av1d]: Fix av1d ref stride error
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I6511c88a445f211c8171bfd108856e87310f8a44
2024-03-13 11:16:14 +08:00
Yanjun Liao
be2dfdbd0a fix[hal_h265e_vepu510]: Add cudecis reg cfg
Change-Id: I392c58ca6d11f9a3a7f5578170c345aada32260b
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-13 11:13:14 +08:00
xueman.ruan
ead0f06f44 feat[vdpp_test]: Add vdpp slt testcase
slt verify file sample:
vdpp_test -w 720 -h 480 -s 0 -i <input> -W 1920 -H 1080 -F yuv444 -S 0 -n 1 -slt <verify>

Change-Id: Ibcf34981019f0f4944a05e7a581ca0890103cc92
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-03-12 17:54:56 +08:00
Ding Wei
c40fa32610 fix[av1d]: Only rk3588 support 10bit translate to 8bit
Add soc_type to make sure the hardware whether is rk3588.

Change-Id: I0df1c1d9e689543391125067c172804d7fdfd833
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2024-03-12 17:02:47 +08:00
Chandler Chen
37dea0952a feat[av1d]: Add tile4x4 frame format support
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: Icbd72c1447edcaa1d537801c18eb65c129db90c0
2024-03-12 13:55:05 +08:00
Chandler Chen
cdbbf8c3bb fix[vp9d]: Fix vp9 hor stride issue
set hor stride with aligned frame width will cause
wrong info-change callback when decoding 10 bitdepth video

Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I46b947ca73d426d031be22aee76510f8e7e9309c
2024-03-12 13:54:45 +08:00
Herman Chen
ce48aebc16 feat[mpp_enc_cfg]: Add H.265 tier config
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ieca6022dbf6dc4388395284f2fcb444ca45efd10
2024-03-12 11:52:28 +08:00
Yanjun Liao
39814f9e08 fix[rc]: Add i quality delta cfg on fixqp mode
Allowed to configure the QP delta between I/P frames in fixqp mode

Change-Id: I7e8a453c97bc0de2d20253b8b052a5c655266cf8
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-03-11 17:39:55 +08:00
Yandong Lin
613973548c fix[hal_h265d]: Fix filter col rcb buffer size calc
Change-Id: Iddc1ee4d8089d876896131415cbe43bd704713bf
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-03-08 18:00:38 +08:00