1. combine some fixed values when put_bits.
2. assign data value instead of put_buts 8 bits.
Change-Id: I153399194a35ad17e9a95e402725009b82b6a60e
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
1. it not need to fill when init dxva_ctx.
2. it not nend to write and send scalist buffer in hal module.
Change-Id: I68e0a899eb1f5d29a9f5c06fdffc60b23e6bdedf
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
fix generate_missing_ref slot_index not set SLOT_FRAME cause
get SLOT_FRAME_PTR assert has_frame
Change-Id: I6c0936efab8eb83a0d2acd6b5e94fbb7e1b987f5
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
The Mutex is destroyed before MppMemService. Use get_lock() to avoid it.
Change-Id: Iba5852280ee2e5804fdfa45da008500fb1dc9225
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Use mpp_mem_pool to reduce MppBufferImpl and MppBufferGroupImpl malloc
and free.
Change-Id: I6331aefddf7ee8eb578a638d86a276891aa61ee7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
The changes done by 0250dab00c will cause
dbp combination error. So revert it.
Change-Id: Ia1fd3157eafebe52332e3beacd979c1497008a75
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
1. put_packet support block mode now.
2. The EosTask should be insure to be block mode.
3. NOTE: When set to block mode use put_packet and get_frame in single
thread may cause deadlock for the info change or eos may be blocked and
the put_packet can not return.
Change-Id: I8cf73f833e5d29c3b330c4b56fbd6be8d7432e60
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Replace service lock with buffer lock, group lock and smaller service
lock.
Change-Id: Ic8ff9fae714b0362f43df23008efce49fe16b9ce
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
If there is an 0xff between two section, parser will stop searching
marker. But if we skip this byte and contine parsing, it may be
successfully decoded.
Ref to https://redmine.rock-chips.com/issues/295017
Change-Id: Ia73bf66b05ea109ac19a7a5a37241a6381b468d3
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Store allocator to MppBuffer to remove dependency from buffer to group.
Change-Id: I7ae136d12bb30cb989b6352989df3b0b3477ad98
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
When there are a lot of buffer groups created the search speed will be
slow. We should use hashtable to speed up.
Change-Id: I9ceeaa5a72eedf81597eeb83b34d417c74ceae04
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
After seek, set err frame whose poc is smaller than the poc of the
first i frame.
But the poc record of the first i frame is not update,
resulting in continunous frame loss.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I8d56f6aeca570d66912a6dcdd5690a809fa070e8
Note:
1. In kernel 4.4 and previous version, the array may cross the boundary
and cover an unknown memory address
2. The array is out of bounds caused by the following submission:
commit 5be47f31f0
Author: Yandong Lin <yandong.lin@rock-chips.com>
Date: Wed Feb 24 19:44:32 2021 +0800
[hal_vdpu]: Support fd and offset to be set separately
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ie3fc4324dde497732424cf3023ce81997401fd96
Add RK3566/RK3568/RV1109/RV1126 support in readme.
Change-Id: I9c7c191f2a1c0e5302af7df6edfbefc6457d397b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>