The vepu should set minus 4 of log2 max frame_num and lsb to 12.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ib57aea1e2adb038b1f5a4e8ee6437ae184b235ba
On FIXQP mode or force qp is set the reenc should not be operated.
Change-Id: Ia7cf8c3db900c750b417927898d1d66eb7d00e97
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
MPP_ENC_SEI_MODE_DISABLE : no debug sei at all.
MPP_ENC_SEI_MODE_ONE_SEQ : Add debug sei on each IDR frame.
MPP_ENC_SEI_MODE_ONE_FRAME : Add debug sei on each frame.
Change-Id: I6c40e447de7f97ce1e433c3ac5adbf2c6be3de40
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
The reencode flow should be clean before rc_end.
Change-Id: I9567f1533979ef4f1e3feb61f7a530166daf30d0
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Flush roi buf to default cfg when ROI region is invaid
Change-Id: I7a6b8373db947657c8eff9a0e7458b215a82e17a
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
1. Modify the thresh value for I and P frame
2. I frame reencode qp calc by (log(b_t) - madi * b - c) / a
3. First_frm_flg will clear after rc_hal_end
4. Cbr case max i_scale for bit alloc clip to 800
Change-Id: I65222f1747a8ab1e0c5c3ea45bfd607d33890cdc
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
1.inlarge water level ratio range
2.modify debug log
Change-Id: I069be1d10f21280d54359ff5b3b79c6587c86eba
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
Application may call jpegd decoder without doing re-initial for every
single JPEG image. In this case, if registers are not fully cleaned,
there may be something wrong with decoder.
Change-Id: Ia8c2b01b0fb31047b749a88bd67a7affc593150b
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Add VPU_API_SET_PARSER_SPLIT_MODE control for MPP_DEC_SET_PARSER_SPLIT_MODE
Change-Id: I7d6c2738f8d39ac4b179ae5d0c8534b580de80b7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
tip: nalu_type may insert in slices of one frame. thus, it cannot
consider it the new frame start prefix.
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Change-Id: Iee6022f69d10d22a6ddfbeb6722b9fc0092d67a7
1. Fix vpuapi color format print.
2. Fix decoder usage on rk3399. Default on rk3399 should use rkvdec to
decode H.264 stream.
Change-Id: I65fb41e9ca5c6448e96e20c7ead139d8f38f7229
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. The input ver_stride can not be set by EncParameter. It is better to
align it to 8 not 16 to avoid green lines at bottom when the input frame
buffer is not aligned to 16.
2. But the allocated buffer size should be aligned to 16 to avoid
hardware error because hardware requires 16 aligned buffer to access.
Change-Id: I402ac167f29e22c9c363135e95bb4ad431d3c3ef
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1.when input set rotation 0->90->180, due to 0->90 w&h will sawp
if only set 90->180 w&h no change will cause error,so when
rotatio must recheck w&h
2.when input is fbc no support rotation and mirror
Change-Id: I4e77b10e25fd66caccaa131be8a9063570f1e3df
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
1. Add temporal layer id print and error/discard value print.
2. Add mpp instance print to separate different instances.
Change-Id: I4d85e4ec80e957316a6aab82e3661e27389bebc8
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
When there is prefix nal report temporal layer id by metadata in output
frame.
Change-Id: I0b420a3c39f1955f2c9ae39d16ecf7c061fe4766
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Add temporal layer id and long-term reference index of current frame by
metadata in output packet.
Change-Id: I095437f1aacd13fa54c8cb1e3a5272c080db2ec1
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Add keep_cpb flag to keep the cpb status on refs cfg changed.
2. Add hdr_need_update check flag for resend header.
3. Add force flag implement in refs process.
4. Do not resend header on max_tid change only.
5. When gop is update the cpb should restart.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2eb3191ce6f45ccea081fa861e4927abae96ff2b
1. when slice_header_extension_present_flag is 1 in pps segment
2. we should cut the slice header externsion data in slice header segment
Signed-off-by: yandong.lin <yandong.lin@rock-chips.com>
Change-Id: I074e64f6e6c62e4bcc8a12f95c49aa6cf77505c1
Use has_meta to check input frame has meta data or not. Otherwise each
frame will have a metadata.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I166346b668fe5ec46032d5c27a7a368fe2fea3b1