The crash error was introduced by commit:
[mpp_enc]: Refactor encoder thread flow
6aa528227f
This patch fixed this error:
Assertion status->enc_start failed at mpp_enc_thread:1994
Change-Id: I083a46bf3aa932f8999a78415136e1e806892b09
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Tips: User should close fd before changing the client_type. Otherwise
the kernel will leak one info structure.
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Change-Id: I2f99e4840d1e9a3805306be50e4afa3653f43c0c
fd maybe > 1024 fb|offset may overflow used MPP_DEV_REG_OFFSET
way to avoid this case
Change-Id: I142f8c9915f18da822d3edbf3ff8fe9b081d8918
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
When qp_init is -1 or 0 it is not inited and it is a valid case.
Change-Id: Ic964cdcda129278cbd78ccc855e16c148fb53ab4
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
If there is only one DQT, qtable_selection should be configure to 2 so
that hardware will find the right DQT for chrominance.
Change-Id: I3abc68d6328e0ff0a757c3b249c7a4f5738ff9d5
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
1. Fix ip_qp_delta calc error.
2. Reduce ip_init_ratio from 480 to 160 to reduce first I frame size.
Change-Id: I40125b4e527be0fc9705a7670988b04ac13f7dc1
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Reduce P frame qp range from 2 to 1 to get more stable video quality.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I58f13e2ad2dc6ff04dd010e990f012a26b88d157
When syntax indicates to show existing frame,
should output current pts of pkt.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I7f9e5e7b76ef289407be42a0cc84fb9f62577cdf
1. when fast_mode=1, regs will upadte, use the ctx->reg_buf[i].regs
instead of ctx->regs.
for fix this, it should add regs for paramter in rcb_info_update.
2. per rcb buf size need plus tile_row_num*64 Bytes for align
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Change-Id: I1bf6c6c6167497b58b3aa95c0252b37b3fe1b075
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