In mjpeg decoding without re-init case, qtable counter and htable
counter will keep growing. And generating regs will fail.
Change-Id: Ic48f919d80e5fc73f3e0d0380625da7aa254cdb8
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Some of NVR product may do some thing special when decoding the first
GOP of bitstream encoded by MPP, and report "gaps in frame_num is not
allowed" although frame_num is bitstream is continuous. Setting
gaps_in_frame_num_allowed_flag to true will avoid this problem.
1. Set gaps_in_frame_num_allowed_flag true as default
2. call mpp_enc_cfg_set_u32(cfg, "h264:gaps_not_allowed", 1) if you
want gaps_in_frame_num_allowed_flag to be false.
Change-Id: I8242fb318e051a61772c02a2c8bb59e4b589ff6d
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
1. Set H.265 initial ip_qp_delta to 6.
2. When ip_qp_delta is enabled the minimum value is limited to 4.
3. Increase vepu541 H.264 encoder I frame bias to get better detail.
Change-Id: I6b000f2afe27fbeaffe966d88256cc3589ddef99
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
NOTE: Gop is better to be integer multiples of output fps.
Change-Id: Id42e2e0c076d6c0a3f67756dc73dca7451b95ff6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
tips:
according to rcb_size descending, and sent rcb_info to the kernel.
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Change-Id: I85e951d9cc1c15962e702ab9781df35e6739bb6a
1. Fix error of removing ip_qp_delta on reenc.
2. Set H.264 qp_row_i to 0.
Change-Id: Ib8810bd5baebc7d6ed0188b078e708c1c3d0b5c2
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Support different format files as input:
1. Normal file, e.g. h264/h265 raw stream
2. Ivf file , e.g vp8/vp9 stream with ivf header
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I034693ae3e23bdde57c90ded7dd7248c50728122
1. Add rc:qp config for user rate control config at frame level.
2. Add hw:qp config for hardware detail config.
NOTE: hardware config is only recommended for expert developer.
Change-Id: I8e28de97304577bcf77d67521f945355779ae102
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Add struct config function.
2. Do not check data type when data size is matched.
3. Use type/size/offset to define data and update info.
Change-Id: Ief21107cf9a8a6b89c2b01c1a430d88e0cf827f4
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Restore max_qp_step which limit the qp change between two frames.
2. Set default H.265 ip_qp_delta to 5.
Change-Id: Iacd795da7f2df46e60ab3f5c45bc8b0f30aff5a5
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Enable chroma klut function.
2. Reduce qp_range in Intra frame to get better result.
Change-Id: Ieeae73c6efa06f86bd6fe1b8687c5fcb3bd15da0
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Set these func into mpi_dec_utils
2. Note: num of threads: -n -> -s
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If733fb0fdd7110313d2e140d3c50aad37260b6d2
1. Add new structure: MppEncOSDData2
2. Different osd layer use separate buffer
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I3be533eb602f23192086f56e06a1439dbb19c35c
The prepare implement is to pre-alloc buffer and reduce the delay
of the first frame.
Change-Id: I063888e93539b44cd6d102fb864b729580858e23
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>