When 0x3 detect used_bits should be add 8bit
Change-Id: If2285fe1f22ccc3fe7907c3f8ee426ead79b0b62
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
1. Move mpp_log.h to inc for external user.
2. Add mpp_debug.h for mpp internal logging.
3. Fix some warning.
4. Add log level setup function.
5. Check env log_level value in mpp_get_log_level call.
NOTE:
1. mpp internal module should use mpp_debug.h and mpp external user
should use mpp_log.h
2. Use mpp_get_log_level to update mpp_log_level when the env changed.
Change-Id: I90a55a02a72db177533013280dfe111ca3479229
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
The number of input field video frames to the decoder
is half of the number output frame video frames.
When the sorting pts is turned on, only half of the
pts cache is taken out from the pts linked list.
So when decoding field video, only half as many pts are cached.
Change-Id: If9055480365b776475861add1470d68210b65971
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Split output flag is for low delay packet output mode.
Change-Id: I2f743f14b89864625406ebf94687f4f838f0df15
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Remove next entry in MppFrame.
2. Add MppTask in MppFrame
Change-Id: Icdf4f451e54a30977c5725848c5f4357ae54e6d8
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
The extra 16 line is added in different codecs. There is no need to add
it again in buf_slot module.
Change-Id: I31c5dc8caa9f557382fdbf2db1d6021b4aa952ba
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Flip disable_fast_play to enable_fast_play,
Fast play is disabled by default.
Change-Id: I168e02a9d84590c3b2b92fe75b2b37c655c8c63e
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
1. Unify old EncTask and new EncAsyncTask.
2. Use rc task in EncAsyncTaskInfo to replace rc_task in MppEncImpl.
3. Use usr in EncAsyncTaskInfo to replace frm_cfg in MppEncImpl.
Change-Id: I9d6f308b12828ff63268e35845b6813c1d1ae8ae
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This module is for backward / forward compatiblity with external users.
1. Support compatible feature query.
2. Support update user program compatible feature update.
Change-Id: I7661f17c442eca0a0d0d57d2a35efdb5fd88be72
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
For the problem that the 3399 platform fd is not enough,
modify the storage method of the fd
Change-Id: I489d5e7c16f499093099e7ead9c838dbe5c1de5c
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
The update flag should be set after update of pps
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Change-Id: I5db21e1d16ce54d5f2342bcd2625b221f45b33f3
NOTE: The wait function MUST be used with lock protection.
Change-Id: I14f48795d5833c9aedc311c56139775bf07f0e79
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Add async rc preset function.
2. Update rc_task pointer on async_wait task.
3. Save frame type in rc task info rather than in rc ctx.
Change-Id: I956b5f14a01e5c2cdc8b4c5f9c26660274a7f0e4
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
When the output queue is empty, sleep 1ms is added to avoid an
infinite loop, which leads to the problem that it takes a long
time to acquire the lock probability when outputting the frame
queue. Remove the sleep operation inside get_frame, and the APP
will ensure the problem of dead loop calls.
Signed-off-by: Xingwen Fang <fxw@rock-chips.com>
Change-Id: Ibbbaa352cf6a9fd386f7e1f944571658295977e5