1. Add AQ regs setup. There is no aq clip operation which is
different from vepu500.
2. Update anti-stripe regs setup. Option "-atl 1/0" to enable/disable.
3. Add anti-ringing regs setup
4. Add anti-flicker regs setup
Change-Id: Ia36073d26ab5587f3478f7f8b4cdfe8a1ffed8f4
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
1. Add cu_qp_delta_depth cfg
2. Configure AQ regs for H.265
3. Configure regs according to scene mode
4. Support fixed frame level QP
5. Add RDO lambda table index
6. Update stat info for HEVC
7. Add tuning code for H.264 encoder
Change-Id: Id7dae4ed55e1b94622aee72cfce8f24c833d00e1
Signed-off-by: Tingjin Huang <timkingh.huang@rock-chips.com>
1. Keep decoding when the reference frame is not valid.
2. For RK3588, improve decoding speed and result when decoding a
non-IDR picture of a GDR stream.
Change-Id: Iae3ac63b05349e4ba923d6df03f89c2958ad72a1
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
At fast mode, 3 error_index is need. Otherwise it will be covered and
leads to ref_err marked as 1.
Change-Id: I846b6f814a88eb45d54d7e2f533c950464d1bd8e
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Refer to commit 3198035973.
When decoding interlaced H.265 stream, SPS will be changed after parsing
SPS NALU. This leads to comparing the new SPS and old SPS via memcpy
reporting that they are different. And references list will unreference
frames. Finally, some frame that should be kept in dpb will be removed.
And the following picture to be decoded will not find these removed
frame for reference.
Note that comparing two SPS buffer with memcpy to find if reference list
should be update is too rough. It should be fixed in the future.
Change-Id: If20ab30973df12635976d4b9d759b36b560ddea2
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
For vdpu383, 8K video needs to be scaled to 4K,
but buf_size still needs to be processed as 8K.
When filling HDR data, it needs to be filled
according to the 4K buffer offset.
Change-Id: I610adcf848acc1eee903b5ef7e438875b55e4628
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Inc/dec logs are added after ref_count changes
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I6c358d077c5437d47305c5e211ae9999ca7a8b8f
This is a bug caused by the mark and use of ltr frames,
when presence of multiple short temporal refenence frame,
may lead to errors in reference relationships.
Change-Id: I1962d81e39b704086a51b4e4098ba3feb64c47c6
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
The width and height is 16 aligned.
Issue occurs by commit:
I03732d5eec1902b6fbe80b1504e729b3a1d61330
Change-Id: Icf9b53942f8c5c15536114638d5763545eae8b26
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
The function call failed because the corresponding
data is not defined:
mpp_meta_set_s32(meta, KEY_INPUT_IDR_REQ, 0);
mpp_meta_get_s32(meta, KEY_INPUT_IDR_REQ, &val);
Change-Id: I0314a5e515493fcaf49d9625aebd68c4ef61b831
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
The function update_curbyte should ensure that
num_remaining_bits_in_curr_byte_ is non-zero,
but inside the mpp_has_more_rbsp_data function,
it needs to ensure that its logic is correct.
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I6a8fb99fcf447d1ece38b271988a5a562e594cc1
s->h265dctx->pix_fmt is not initialized before configuration,
so without recreating mpp, s->h265dctx->pix_fmt can only behave
normally in overlay state (ex: yuv->fbc), and abnormal in
reduction state (ex: fbc->yuv)
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: Iee936b378c6de53a781fb67c5394738c74729242
s->h265dctx->pix_fmt is not initialized before configuration,
so without recreating mpp, s->h265dctx->pix_fmt can only behave
normally in overlay state (ex: yuv->fbc), and abnormal in
reduction state (ex: fbc->yuv)
Change-Id: Ib2399bdd9d41b86995f111b56a081e67a360057b
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
At the stage of setting output color format via controlling
MPP_DEC_SET_OUTPUT_FORMAT command, colorspace of JPEG file is unknown.
So checking RGB, TILE, FBC format only.
Change-Id: Ia046a52a707f016d0225307f69a40f1eb29e9e09
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Error case:
When switching sources in the app, if the protocols of
the two sources are the same, but one is an 8-bit source
and the other is a 10-bit source.
Since the first source has been configured with pix_fmt
as 8bit, it will not be recalculated after switching,
resulting in an exception.
Change-Id: I92b44b9c397209171d8ef0f7a0aa65310aa8496d
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>