Commit Graph

2797 Commits

Author SHA1 Message Date
Herman Chen
fe11f99415 [osal]: Add multi register offset config function
Add new multi config mode function.

Change-Id: I37c9c319e93e96fbd3d2bb5d598aef8d1b8fe2c8
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-02-10 16:42:05 +08:00
Herman Chen
c4c6a540e2 [mpp]: Remove encoder non-block input failure log
Change-Id: I658a6693d8b9c0cdd931a08f724803ec73a2abb7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-02-08 19:27:16 +08:00
Hongjin Li
578bb80ee7 [mpi_enc_test]: add iep2 slt testcase
slt verify file:
iep2_test -w <w> -h <h> -i <input> -o <output> -v iep2.verfy -f TFF

Change-Id: I9924b827d6c30abf9124cdab89dcac2e6fb96591
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2022-01-28 08:49:58 +08:00
Hongjin Li
f7954e9545 [mpi_enc_test]: optimize slt code
1. Optimize help log about slt
2. Optimize slt file opening

Change-Id: Ib315e46d7fbb5f3ffa576c24f5e47c42a19cb09d
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2022-01-28 08:47:54 +08:00
Herman Chen
fb3390cbdd [osal]: Use SET_SESSION_FD to implement batch cmd
1. Add SET_SESSION_FD cmd.
2. Support new delimit interface to send multi request in one ioctl.

Change-Id: I07980cc9c70b5e31585254d1ffde7bc56a3007e2
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-27 18:01:47 +08:00
Herman Chen
c224ea968c [hal_h265e_vepu580]: Add tile parallel support
The tile width is fixed to 4096. Picture width larger than 4K is divided
into several tiles (max 2).
So the max resolution is 8192 for vepu580.

Change-Id: I943082f1e73fc37a48d8782e1a20587715b5ef7c
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
Signed-off-by: Zhihua Wang <hogan.wang@rock-chips.com>
2022-01-27 17:05:00 +08:00
Hongjin Li
8c13cd93b0 [mpi_enc_test]: add slt testcase
slt verify file:
mpi_enc_test -w 4096 -h 2304 -t 7  -slt enc_xxx.verify -n 5
mpi_dec_test -i <inputfile>  -t 7  -slt dec_xxx.verify -n 5

Change-Id: I528fcd8d1adf8821c1555790cd8482108f219fdc
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
2022-01-26 17:29:02 +08:00
Hongjin Li
986219e2d1 [mpp_trie]: Fix demo parameters are not recognized issue
Since realloc will cause memory address change, it is necessary to
relocate the current node position after applying for a new dictionary
tree node.

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: If124f18efdd81aad748185d477cb31059ed8f292
2022-01-26 15:23:34 +08:00
Chen Jinsen
b817d9f1cb [m2vd]: No need to reset split mode when flush called
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
Change-Id: I195b1c7c405bbf01f62dcdd75fd0d7ea9f541aa8
2022-01-26 14:18:52 +08:00
Ding Wei
34e6d1ac42 [hal_vdpu34x]: set timeout_threshold=0x3ffff
this register means the timeout for hardware read/write ddr.

Change-Id: Iee08e63760aa7d0220ebca54908016662118b204
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2022-01-26 14:12:19 +08:00
Ding Wei
3287711803 [hal_h264d][hal_h265d]: ccu mode, add flag to differ refers and decout
Change-Id: I7ab95d719776c91f8facf9864bd27a641c38d56f
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2022-01-26 10:13:55 +08:00
Ding Wei
6633db7888 [vdpu34x]: add bit define for register12
Change-Id: I518f9c7b879d60d053b167d6f79bb5dbe8de5fe9
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2022-01-26 10:13:55 +08:00
Ding Wei
9c997879c6 [hal_h264d][hal_vp9d]: for vdpu34x, disable hardware auto reset
hardware auto reset default.

Change-Id: I3d5c249058b32801a0185999fbe36231bc697c33
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2022-01-26 10:13:55 +08:00
Chen Jinsen
a7dd44baa9 [h265d]: Add few more checks for invalid parameters in sps
Following elements didn't have a bound check in SPS as spec doesn't list
the bounds on these explicitly.

log2_min_cb_size, log2_diff_max_min_coding_block_size,
log2_min_tb_size and log2_diff_max_min_transform_block_size

Added appopriate error checks on these fields

Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
Change-Id: I4762f543726650855e5cd333c48a7c41cf0fee0f
2022-01-25 09:54:10 +08:00
Herman Chen
cf1c38ca0c [mpp_service]: Fix client type and fd setup error
Change-Id: I9631bb65fbc40ea3baec29fc591d9ee8d7972983
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-24 18:14:19 +08:00
Yandong Lin
462d5c9249 [hal_av1d_vdpu]: Fix 480x270_10bit video dec err
the luma size calculate err.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I09cd2455fb0b6a8687d58b110b243c47f8b1f80f
2022-01-21 15:22:38 +08:00
Jeffy Chen
6ecd6bd6cb [mpp_dec]: Use pixel stride as width to calc FBC buffer size
Using pixel stride instead of byte stride.

Change-Id: Ic461f30ffb10b99560524a4d3a0dd6f039740f78
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-01-21 11:20:02 +08:00
Herman Chen
6e03da594a [test]: Fix mpi_rc2_test crash on help
Change-Id: I1a6568b03ca27e7795ae4e994fd497ad49f50c02
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-21 11:20:02 +08:00
Yandong Lin
a4ece5df05 [hal_av1d]: Implement av1 decoder hal module
Change-Id: I9dc410b55cc614e7a4a6353d52a70c806e467b2e
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2022-01-21 11:20:02 +08:00
sayon.chen
55b425c97b [av1d]: Add av1 parser api
Change-Id: Iff3c205d34cd8d8c2074de42eadc8418f5144a42
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-01-21 11:20:02 +08:00
sayon.chen
3d0f65b356 [mpp_bitread]: Add more status interface
Change-Id: I46843112a9059e5d36141d73c541ca3fb5ceae78
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-01-21 11:20:02 +08:00
Herman Chen
fcb11d138a [mpp_cfg]: Add general MppCfgSet/Get function
1. Use flatten MppEncCfgInfo to replace MppCfgApi
2. Flatten the trie nodes and info nodes with string name together.
3. Refactor the encoder config setup process.

Change-Id: Ia08f59167b033c99167f37e78571d9d2e402854c
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-21 11:20:02 +08:00
Herman Chen
97a8caace3 [mpp_trie]: Add more trie function
Add function to get the named valid node and the node root.

Change-Id: Iccfe004d29e9c4405b49e23bdce62ba14832d3da
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-19 15:34:21 +08:00
Hongjin Li
33269e39e7 [mpp_dec]: Fix the problem of read data error
For data with sizes of 5120x7160 and 8000x8000, the required buffer size
was calculated incorrectly during the encoding process, which caused the
requested buffer to be too large, resulting in drm exceptions.
Therefore, the method of calculating data has been modified.

Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I519a76687118d568cf57e7d3d54a150e9019285c
2022-01-17 20:41:06 +08:00
Jeffy Chen
0e15e96c9f [hal_jpegd]: Correct output format when PP not used
Otherwise the output format would always be the initial value(YUV420SP).

Change-Id: I6b792cb1010b96e136ce008250b2e1a4f90635e5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-01-17 18:27:13 +08:00
Jeffy Chen
d6c338d009 [mpp_buf_slot]: Support FBC buffer size calc for NV16
Add slot buffer size calculation for NV16(AFBC).

Change-Id: Ibac797fe695de0da7656ea0ff97f982d0f1e5e6b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-01-17 16:35:51 +08:00
Herman Chen
b25d0b475d [h264e_vepu580]: Update tinetune parameter
Fix tailing at low light scene.

Change-Id: I57df8b8d6ac48c1090076a586c07cd816c1e6dfb
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-14 17:30:10 +08:00
Herman Chen
b9ae7d8535 [vepu580]: encoder parameter fine tuning
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I28011fa75dd0e8c7bc17164515272ed3a6d1c6dd
2022-01-14 16:48:43 +08:00
Herman Chen
ee3b958d9c [mpp_meta]: Add metadata dump for taskqueue
Change-Id: I0c62a93c8ffd1cf9e243e18940fc2197221f99ec
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-12 15:58:56 +08:00
sayon.chen
33d6284f13 [test]: update rc2 testcase
rc2 test is a decode -> encode -> decode test case which can be used to
test the whole system codec capability.

1. Use new option module.
2. Add type for input file source stream.
3. Use decoder file reader to read input file.

Change-Id: Ia2334cd423e77a76c564478cc70c07a58954dd04
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-01-12 11:50:20 +08:00
sayon.chen
6d2b1ad200 [vp9d_parser]: Fix mpp_buffer refcnt non-positive issue
Change-Id: I92c0cdfcfb732585d06bdd9b11dd44045b097b1e
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-01-11 17:44:20 +08:00
Ding Wei
10381f5d12 [hal_h264d]: fix issue for interlace input
in rk3588 dual core mode, it need high bit for mark current whether
is bottom field.

Change-Id: I9adde8996617390b5c7186a108ccf01546eed5d1
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2022-01-11 10:14:24 +08:00
Herman Chen
96d1664cd1 [test]: Use new option module
1. Use new option module in dec/enc test
2. Delete mpi_enc_multi_test and mpi_rc_test

Change-Id: Ib00020247386ee06cca2f560ae41aee8e88f47cc
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-11 08:37:41 +08:00
Jeffy Chen
7865f7f81b [mpp_dec]: Change FBC buffer size calc rule
According to DRM FBC buffer size check rule change the slot buffer size
calculation.

Change-Id: I3bf2439d0d5229b2f014fc1b202b5343cb77f8fa
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2022-01-07 14:09:33 +08:00
Herman Chen
693720fd19 [iep2]: Disable test log
Change-Id: I2d11bda157612472f000411bbe0dbf3452ceb34a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-05 09:32:28 +08:00
Chen Jinsen
e85c28ab56 [vp9d]: Fix ref frame pointer not free issue
Signed-off-by: Chen Jinsen <kevin.chen@rock-chips.com>
Change-Id: Icec0cd494f067826be93f94e14fdcbde1c938cb1
2022-01-04 09:05:52 +08:00
Herman Chen
f94ae6d0a0 [vepu580]: Add YUV444 support for vepu580
Change-Id: I58859e59094fcecc13011b16f33b3810abbc7882
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-12-30 10:52:02 +08:00
sayon.chen
5dec7c0b44 [hal_h265e]: Format file from dos to unix
Change-Id: I065c1496eaed9acdb8c4d021a761fca014c52098
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-12-30 10:17:50 +08:00
sayon.chen
be46d78711 [hal_hevc580]: Add frame offset x y set
Change-Id: I489b7df830e8e44865a7b89c911282b3f7009eaf
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-12-29 18:05:57 +08:00
Xinhuang Li
25330128c7 [mpp_enc]: need resend hdr when color related parameters changed
Signed-off-by: Xinhuang Li <buluess.li@rock-chips.com>
Change-Id: I5436fedb8b5f4482d143e997bd6e78ce75c5ed84
2021-12-29 11:21:04 +08:00
Ding Wei
aa8cca56f8 [h264d]: fix error for parse vui period info
Change-Id: I6f2aa84720bde10ecba997f80af2ea652aacc048
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-12-27 10:25:51 +08:00
Yandong Lin
0c3ddf2703 [mpi_dec_utils]: Fix ivf reader problems
Change-Id: I377a88838202080e143c44577bd4e5d01e57f392
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-12-24 14:51:14 +08:00
Herman Chen
69dfccfd12 [osal]: Add log disable/enable function
Change-Id: Iddd02b7c3d102a65a4c34a8fba89b7a28719e0a9
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-12-23 15:53:14 +08:00
shine.liu
1f085a4493 [m2vd_parser]: Clear input_packet eos flag when reset
When decoder restart after reset and input_packet has eos flag, all the
frames got from the decoder will have eos flag, so we should clear the
eos flag of input_packet in reset.

Change-Id: Id220f66d32070316c05c7352ea986b29ffe7d3e5
Signed-off-by: shine.liu <shine.liu@rock-chips.com>
2021-12-22 16:32:25 +08:00
vic.hong
ee10b27c68 [mpp_dec]: Fix the problem of screen flutter when decoding mpeg4
Modify the processing of pts in the decoding process

Change-Id: I80b911c19eb345744333d3ec4d8e22e8c86fc857
Signed-off-by: vic.hong <vic.hong@rock-chips.com>
2021-12-22 14:29:23 +08:00
shine.liu
c356795741 [m2vd_parser]: Add coloraspect metadata to frame
Change-Id: Ibf0ae925fb35079c72992bad58d1a60ffbbf19f8
Signed-off-by: shine.liu <shine.liu@rock-chips.com>
2021-12-21 11:29:15 +08:00
sayon.chen
8aa2a1ed3d [iep2]: Fix width & height set issue
Change-Id: I40eb51dbb7a8f54746fb5d114d1ff961515bb47f
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-12-17 18:11:43 +08:00
sayon.chen
c06639a245 [vepu540]: Fix me regs param cfg issue
Change-Id: I88d32eeb4c3876d268c784d1baa789d7c34a6b50
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-12-17 08:43:36 +08:00
Herman Chen
94ab4c1e5f [utils]: Add new option module using trie
Change-Id: I9c4836d35366ff8ab2f16ac9c474b65471862bd2
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-12-16 10:59:48 +08:00
sayon.chen
fdd12d9fb6 [vepu54x_avc]: Fix madp val feedback issue
Change-Id: Ibe5ffb83a7538f0c408d1e26261dc4f58c30f776
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2021-12-16 10:07:31 +08:00