Default size is frame size.
If want to scale down, setprop mpp_dump_width/height.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I6aa877b9c141501f6921985956f377323c38546b
Record every pts of pkt to link, and sort link by pts.
When output the frame, remove the pts from the link and set to frame.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Id987dea0195c24d2bd573416e80a3ef2f58d6a31
1. HalTaskInfo will be used in decoder only
2. Remove vepu22 support
Change-Id: I6bf1410c570b995a7bb082b0de00d8a7e749d999
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
The split_ctx is malloc in h265d_init, but the split_parse parameter may
be set after init, so need to dynamically judge split_ctx whether is
null.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I1fe4840cd17a2e1e38833df5af6dc7aaab4853a4
When use mpp_mem_pool to alloc buf, should use mpp_mem_pool_get/put to
alloc/free buf.Otherwise, the buf will be double free.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I902bc670a4088be36901d4c62e4e21c0233b25fb
1. All cases use reader to improve performance.
2. Rename cmd parser and create share data on cmd parsing.
3. Add reader_size function to get file size.
4. Change test log flag to -v options.
5. Fix FileBufSlot release MppBuffer issue.
6. Use index_read in multi test to improve performance.
Usage:
mpi_dec_test -i xxx.h264
Decode to the end of input stream.
mpi_dec_test -i xxx.h264 -n 10
Decode to the first 10 frame of input stream. If the xxx.h264 has only 5
frames then loop decoding from the beginning.
mpi_dec_test -i xxx.h264 -n -1 -v qf
Infinitely loop decoding xxx.h264.
It is usefull for performance test.
mpi_dec_multi_test -i xxx.h264 -n -1 -v qf -s 8
Parallelly infinitely loop run 8 decoders with same xxx.h264 input.
It is usefull for performance test.
-v q will disable each frame output log.
-v f will enable fps print per second.
-n -1 will enter infinite decode mode. Press <enter> will quit the loop.
Change-Id: I3d54123f0e9b9a85cb35e4fea71ebf665889750a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Change to new reader slot interface.
2. Use reader slot in all decoder test case.
3. Do not async reset on eos to avoid eos stream issue.
Change-Id: If296f6555fd0e57f6931085f02b0378e41a5f2ce
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Fix error on split case that last packet is not sent to parser.
Change-Id: I4f32644e4740f592cc5c6dfdf592a8bbc79d6599
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
Use a new thread to read the whole file. Then all decoder instance can
share one single reader and read input file only once.
Change-Id: Iddc3322286bf61e449074143bbfb90fd1ff6b70a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
NOTE: The MppCtx should be restored for external user.
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I2a4241ddacb14196f43b29a59b46658131ebfcee
Add callback on two events:
1. packet ready and wait for new packet input.
2. frame ready and wait for output frame poll.e
NOTE:
Add callback command param for version compatible sync between user
and mpp library.
Change-Id: Ic41d495a06cf653acb6b5100699f1b7f5f735f2e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Move callback module to osal for later mpp_device callback.
2. Make callback command a pre-defined value to avoid include issue.
3. Separate callback cmd and param to separate header.
Change-Id: Ibd5cf11650a1cd2a326baddb82dc60fa1767ac87
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
1. Move mpp_start / mpp_stop function to control command.
2. Add pause / resume control command.
Change-Id: I525668a2831eb8f23e12fbd7c1cb29c11fdcc868
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Add MPP_DEC_GET_CFG call before setup decoder config in mpi_dec_test.
Change-Id: I1ed8c2be44be9de0e4b1364a1401a81a9ecfd6e1
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>