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>
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>
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
Otherwise the output format would always be the initial value(YUV420SP).
Change-Id: I6b792cb1010b96e136ce008250b2e1a4f90635e5
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
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>
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>
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>
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>
Modify the processing of pts in the decoding process
Change-Id: I80b911c19eb345744333d3ec4d8e22e8c86fc857
Signed-off-by: vic.hong <vic.hong@rock-chips.com>
when frame is null, it cannot get_frame_poc from frame.
Change-Id: If94488640b46eeb0faa800c1966c0d747ed9f396
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
vepu58x roi cfg generation is depended on vepu54x roi cfg.
1. Use roi_enable to enable roi test.
2. Use roi_type to test different roi config mode.
Old region mode is set to legacy now for future roi cfg will be more and
more complicated.
Change-Id: Ib9e8976b732f05625e7589b64752d38fbd83584b
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
rk3588 encoder needs buffer end address so zero size should be allowed.
Change-Id: Ie350f62c77d99f91b2ca1f02e7b4ff7afe0b0dd8
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
At rk3588 vdpu38x (vdpu34x dual core we have multi-frame running on
different cores in one decoder session which enable fast mode.
Sharing rcb buffer between frames will introduce data conflict.
So we need to create rcb buffer for each frame register set.
Change-Id: I2ae3cb8f7f06b1b89bfafcd38e316f975ce72520
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>