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
There force reference frame user configure is added to encoder task.
Change-Id: I4482a831f988f47913c6e1d0385ccbdd0cd46031
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Add vpu_api_mlvec module.
2. Attach vpu_api_mlvec module to vpu_api_legacy.
3. Add static and dynamic configure process.
4. At VpuApiLegacy::init if the extra_data is NULL do not get sps/pps.
5. Add VPU_API_GET_EXTRA_INFO (0x200) control to provide sps/pps.
Change-Id: I4666148ba4c150eea81bfa8cd25b63264cd16a2b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Add iep2 HAL library and corresponding unit test.
Add a adapter layer for iep and iep2 compatible.
there will be libiep2.so generated after build.
this library will support direct using iep2 api outside
MPP platform, such as using in analog camera application.
Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
Change-Id: Ide9662bf099e5374602dda7417ee6973de64c912
1. Prefix nal is setup in h264e_api and send to hal by syntax.
2. Hal receives prefix config and writes prefix nal before each slice.
3. Add vepu1 / vepu2 prefix implement. vepu541 is not implemented yet.
4. Add max temporal layer id check to enable prefix nal.
Change-Id: I8bc40af12b9d9cedd64c1aa6a2666d3ffe7bf694
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Fix the default width stride value in RGB format.
Change-Id: I330bc81bfc5057484a46815d62eccd3fd212a49d
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>