Commit Graph

3728 Commits

Author SHA1 Message Date
Chandler Chen
aaa4c8e9a8 fix[hal_vdpu383]: fix fbc hor_stride mismatch issue
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I32ba0ace912179d875f2e474a0ef673b9bd74b65
2024-10-29 16:45:56 +08:00
Yandong Lin
4a2bd2aea6 fix[hal_vepu580]: re-get roi buf when resolution switch
Change-Id: Iba09d1daffaed9391b93c124d203487a396ffb6a
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-10-29 09:59:55 +08:00
Yandong Lin
a0fbdd3c21 fix[hal_vepu541]: re-get roi buf when resolution switch
Change-Id: I2ebc2c731abb8cd45d1d9df98f3eb420a7091de1
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-10-29 09:59:55 +08:00
Herman Chen
a49f851c65 fix[iep2]: Remove unnessary log on init failed
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I19a979246ccf7ceeed8e8598ad17420b6d7cb952
2024-10-29 09:44:46 +08:00
Hongjin Li
6b73cff250 docs: update doc for fast play
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I4a59e40bafd70e09418688b939c1813d9145a020
2024-10-24 17:28:21 +08:00
Hongjin Li
a14f1327aa fix[h264_dpb]: Add env variables to force fast play mode
env var: force_fast_play_mode

Change-Id: I678452de25e62ffcd0415fc21bbe4a7da4c792a7
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2024-10-24 17:01:45 +08:00
xiaoxu.chen
611a9a04b6 fix[h265e_slice]: fix compilation warning
Change-Id: Ic21ffe6c438ef8e77aa3d8b9173af482a0689d36
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2024-10-21 09:58:13 +08:00
Johnson Ding
8f5d38e158 fix[hal_avs2d_vdpu383]: handle scene reference frame
Change-Id: Ia3329f59b2a8277b560b44eefa06231c4207bf54
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-10-18 09:11:48 +08:00
Nyanmisaka
f34c0a96db fix[debain]: fix typo in compat version
typo: 1O -> 10, number 0 instead of letter O
fixes 6f15d88

Signed-off-by: nyanmisaka <nst799610810@gmail.com>
Change-Id: Iac5c5915d41927173ed86e497dd7be6909cfac1a
2024-10-16 16:42:52 +08:00
Benjamin Sonntag
edf69abda5 fix[debian]: Update debian control
debhelper dependency must also be set to >=10

Signed-off-by: Benjamin Sonntag <benjamin@octopuce.fr>
Change-Id: Iabac7373b9b9dae851c59306ef5a1e64ee2eb15e
2024-10-16 09:03:48 +08:00
Benjamin Sonntag
216257ff47 fix[debain]: Update debian/control
To be able to compile this on debian 10 to 13, we miss dh-exec
as a build dependency.

Signed-off-by: Benjamin Sonntag <benjamin@octopuce.fr>
Change-Id: I57ea18db227fb891fd9181897a8f3bb225f89f54
2024-10-16 09:03:48 +08:00
Benjamin Sonntag
6f15d8879a fix[debain]: Update compat to 10
On debian 12/Bookworm and later, the debian packaging compatibility
must be 10 or earlier. This package compiles without issue when you
set it to 10, allowing to compile it on debian 10 to 13

Signed-off-by: Benjamin Sonntag <benjamin@octopuce.fr>
Change-Id: I52407cd289e55a562720840e1198d701a5bca29e
2024-10-16 09:03:48 +08:00
Xingwen Fang
ab45161834 feat[vpu_api]: Support configuration to disable decoding errors
Signed-off-by: Xingwen Fang <fxw@rock-chips.com>
Change-Id: I9f01c5092c02dc5ff36f27ca1c8eeaf503d0fa17
2024-10-14 11:50:40 +08:00
Yandong Lin
18e19c57c6 fix[h264e_pps]: add pic_scaling_matrix_present check
Not support pic_scaling_matrix_present for profile < hight profile.

Change-Id: Ibf8d43063109233040a79832f66824e45d5a9c1b
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-10-14 09:56:01 +08:00
xueman.ruan
24e69673a4 fix[h2645d_sei]: fix read byte overflow error
Change-Id: I0ec0e37ee3c737ea0d05af1be5a9380eb10c02cd
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-10-14 09:51:15 +08:00
Yanjun Liao
bbe1a74bde feat[enc]: Support use frame meta to cfg pskip
Use case:
mpp_meta_set_s32(meta, KEY_INPUT_PSKIP, 1);

Change-Id: I823f46e221b67d23bfbd250e7683b357ead988ab
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-10-12 15:54:12 +08:00
Herman Chen
63745ae62e fix[m2vd]: Fix refer frame error on beginning
NOTE: Can not set info change on first frame.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I807e92ec1d1f7a1d43abe5db336bc191568c0dcc
2024-10-12 15:30:31 +08:00
Hongjin Li
690b262a12 fix[vdpu383]: fix err detection mask issue
Platform: RK3576

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I67412ce6b78e83a5180cc96ea7e6c40c9ad7ced1
2024-10-12 11:29:08 +08:00
Tingjin Huang
5b897d8bfb fix[test]: Fix AQ table error
Change-Id: Ib1af3f352dfe88632dff686d7ab84c8430dcc901
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-10-10 16:13:59 +08:00
Tingjin Huang
eff1e2ede3 fix[vepu580]: Add md info internal buffer
If md info buffer is NULL, prepare md info internal buffer
when deblur is enabled

Change-Id: I7bd4e731ffbe6164ac4e02d0d901464dcc57f9c1
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-29 14:50:01 +08:00
Tingjin Huang
555485b87c fix[vepu580]: Add ATF weight adjust switch for H.265
Do not adjust the ATF weight when skip bias is enabled.

Change-Id: I2a66aef51336d79df12e7366f12163ebd0e8a5bf
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-29 09:46:53 +08:00
Tingjin Huang
179122cc99 fix[tune]: Replace qpmap_en with deblur_en
Deblur_en is more generic for upper application.

Change-Id: Ibe4e0f81851fdbbe8fb8b7d840a4a9380e0403b1
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-29 09:46:19 +08:00
Tingjin Huang
716c947ea4 fix[vepu580]: Adjust frame-level QP for VI frame
Change-Id: I2086b8afa6f1c25cc92c6d46825df34a62857b04
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-29 09:44:42 +08:00
Johnson Ding
32a0134fea fix[hal_jpegd]: fix huffman table selection
Some JPEG file has only one DC or AC table, and all the components using
the same DC or AC table.

Change-Id: Icab55bd3a00d66d983c9ac89110fb9e077afec90
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-09-27 10:07:53 +08:00
xiaoxu.chen
ca125fe6b6 fix[h265]: fix pskip when enable tile mode
Change-Id: I4560ecda5ed8536de3792b067da488c9ecb5cf19
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2024-09-26 14:42:20 +08:00
timkingh.huang
4a71a39dc7 fix[smt_rc]: Fix first frame QP error
Change-Id: Icc7c30e2f2153643c2b06482e21b1082d0e3e618
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
2024-09-25 16:45:11 +08:00
xiaoxu.chen
a4bd0d2a69 refactor[h265]: unify calculation tile width
Change-Id: Ib5200e332cc5be47f79561570c0342e7690e4587
Signed-off-by: xiaoxu.chen <xiaoxu.chen@rock-chips.com>
2024-09-25 14:14:03 +08:00
Yandong Lin
c16dfcea7d fix[h264d]: fix no output for mvc stream
By default, the frame of view 0 is decoded and output.

Change-Id: I26287147548620f733712d4ab044df7c830dbd7f
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-09-24 17:43:41 +08:00
timkingh.huang
61d34ba1d1 fix[vepu580]: Fix motion level assignment error
Change-Id: I3de290596126c26ac3711c4b6d83c83f01a717f0
Signed-off-by: timkingh.huang <timkingh.huang@rock-chips.com>
2024-09-24 14:33:12 +08:00
Hongjin Li
48962a107a fix[avsd]: Fix attach dev error issue
Error log:
mpp_dev_ioctl found NULL input ctx

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: Id3ae1eec032d0d7ec943417bd8caf814eb8f80e9
2024-09-19 14:35:11 +08:00
Rimon Xu
5acf49c633 fix[h265d]: Fix conformance window offsets for chroma formats
- Correctly apply conformance window offsets based on chroma_format_idc
- For YUV 4:0:0 (chroma_format_idc == 0), no offset scaling is needed
  as there is no chroma component
- For YUV 4:2:0 (chroma_format_idc == 1), apply * 2 to both horizontal
  and vertical offsets
- For YUV 4:2:2 (chroma_format_idc == 2), apply * 2 only to horizontal
  offsets
- For YUV 4:4:4 (chroma_format_idc == 3), no offset scaling is needed
- Ensured the output window accurately reflects the cropping adjustments
  for different chroma subsampling formats

Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
Change-Id: I90c7e61487a1638d5ba296f1d95de4792fcb2104
2024-09-18 19:53:44 +08:00
Tingjin Huang
fdb674ab01 fix[test]: Fix mdinfo size according to soc type
Change-Id: I25801cefe329f4aea943379a7fd99db57b733ed1
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-09-13 14:52:19 +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
Yandong Lin
05b809393c fix[h265d_vdpu383]: fix dec err when ps_update_flag=0
The ps_update_flag=0 case is not handled properly here,
and follow commit exposes this problem.
233940: fix[h265d]: fix infochange loss when two sps continuous

Change-Id: I54dcea6c31483257b4b771a8bd4994cc75ed41f5
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-09-11 15:40:04 +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
Herman Chen
c4e9cc504d fix[mpp_cfg]: Fix compile warning
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I90693ea5af424b46fa1b307f4181e68b078e973d
2024-09-06 16:41:25 +08:00
Yandong Lin
e9d95ce4a5 fix[h265d]: fix output err causeby refs cleard
fix issue cause by the following commit:
233940: fix[h265d]: fix infochange loss when two sps continuous

Change-Id: Ie0047cbb7f02ef78e46f6980acfb20532af12dee
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-09-06 15:25:54 +08:00
Yandong Lin
f358f6c24e fix[h264d]: remove error check for B frame has only one ref
When a B frame is behind an IDR frame, there is only one reference.

Change-Id: I1bc7f1901aa128490d14dc6702dce6a32612ff48
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-09-05 09:17:50 +08:00
Johnson Ding
6f0f337f71 fix[test]: Fix test demo stuck issue
When reading file from start over, buffer got from list should be put
back. Otherwise buffer list will have no more buffer available after
rewinding BUF_COUNT (which is 4 currently) times.

Change-Id: If346e1824bd876cf2d6c226c97c1dec17dc9b56f
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2024-09-04 18:26:09 +08:00
Herman Chen
85208c99b0 docs: Update 1.0.7 CHANGELOG.md
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ie7ade7ae53b3dc6a53da3fd38a3f3834280892d8
2024-09-04 14:43:53 +08:00
Yandong Lin
44a9afe384 fix[h265d]: fix infochange loss when two sps continuous
The sps buf is managed by mpp_mem_pool. When two sps appear
consecutively, the second ptr of sps is the same as the old sps.
So when updating the sps to pps,it is not enough to judge the ptr sps.

Change-Id: Ieb7cf1c374dd72abae6f0c899bc9f2ee9849072e
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-09-04 11:12:49 +08:00
xueman.ruan
be5247fe75 fix[hal_h264e]: Fix CAVLC encode smartP stream err
Change-Id: I759210b5e7557cc4bcc3a117d7d11adeaddd9153
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
2024-09-02 18:12:55 +08:00
Herman Chen
e9abaab950 refactor[mpp_cfg]: Refactor MppTrie and string cfg
1. Reduce MppTrie memory usage.
2. Add info context and string temp storage.
3. Refactor memory layout on mpp_trie last info.
4. Use ENTRY_TABLE to setup mpp_enc/dec_cfg trie info.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I3e554ca6ef97bf77406ced00a116c5783570baba
2024-08-30 17:22:31 +08:00
Herman Chen
295aa22639 chore[mpp_mem]: Add mpp_realloc_size
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I896b4132e0fded153ee4d932b9c011bf3ba41c16
2024-08-29 17:53:01 +08:00
Tingjin Huang
2988a0c499 fix[mpi_enc_test]: Remove redundant code about smart encoding
Change-Id: I3a0876bd9476590b0e25d1c18f76a793fd4c86ab
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-08-29 11:26:17 +08:00
Yandong Lin
8f1b70dd79 fix[h264e_sps]: fix the default value of max mv length
The value of log2_max_mv_length_horizontal/vertical has been changed to
15 since the 2016 standard.

Change-Id: I12ab104cd3277e4d926c7a721bfaccab721d5997
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-08-29 10:39:52 +08:00
Tingjin Huang
1984930917 feat[rc_smt]: Add rc container for smart mode
Change-Id: I4e6b2317c8fe71236b3e6c14ffb9ead7af4530ec
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
2024-08-29 10:04:03 +08:00
Tingjin Huang
01dee1b7d4 feat[vepu580]: Optimization to improve VMAF
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
Change-Id: Idaecf9a402aa9b87802d76911abb816e0dc557ec
2024-08-29 10:04:03 +08:00
Tingjin Huang
df0b9e3a0d feat[vepu580]: Optimize hal processing for smart encoding
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
Change-Id: I27ec19fcfa6c71bb1d084fea7d40853fed3e4603
2024-08-29 10:04:03 +08:00
Tingjin Huang
e03714e193 feat[vepu580]: Add qpmap and rc container interface
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
Change-Id: I9fb0683008880a2e025664052a64d290730e6b49
2024-08-29 10:04:03 +08:00