Commit Graph

34 Commits

Author SHA1 Message Date
sayon.chen
38fc8aada8 [mpp_dec]: Support no thread decode
1. Use cmd MPP_SET_DISABLE_THREAD to disable thread, cmd set must be
after mpp_create before mpp_init.
2. When thread disabled put_packet & get_frame MUST not be used.
3. Separate normal flow and no thread flow.

Change-Id: Icf189d312ff39aacf6ca0afe7f345ff4d1cbfb67
Signed-off-by: sayon.chen <sayon.chen@rock-chips.com>
2022-11-29 11:20:06 +08:00
Herman Chen
e2fa6e0232 [test]: Add mpi_enc_mt_test
Add encoder multi-thread test case for non-block input / output mode.

Change-Id: I2a06f47574e760d1400914eb62420b047c60ceaf
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-03-03 11:43:54 +08:00
Herman Chen
96d1664cd1 [test]: Use new option module
1. Use new option module in dec/enc test
2. Delete mpi_enc_multi_test and mpi_rc_test

Change-Id: Ib00020247386ee06cca2f560ae41aee8e88f47cc
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-01-11 08:37:41 +08:00
Herman Chen
2cf866c7dc [test]: remove mpi_test
Change-Id: I95d526d9d81ab34895f8f095e2e497bebe5df33b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-10-12 10:44:33 +08:00
Herman Chen
eb34769db7 [cmake]: Add option to control test building
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ic6c6988dad82836cfb87113f2293bc9a2b1abd66
2020-06-22 17:44:01 +08:00
Herman Chen
0abeafe872 [cmake]: Add option for Address Sanitizer check
Change-Id: I91cf9111000d2e077dafd9871b965e864863e0bf
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-06-11 17:29:51 +08:00
Herman Chen
2005ed4f42 [test]: Remove vpu_api_test's dependence on mpp
Remove all mpp object from vpu.so
NOTE: link_directories should be before add_library or add_executable.

Change-Id: Idee25e1ccc2c3182f7b8c26c277d396e28654f3e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2020-05-21 09:40:23 +08:00
Herman Chen
ef72082c67 [legacy]: Fix vpu_api_test
1. Remove static libraries for mpp and vpu.
2. Fix vpu_api_test and use dlopen to access libvpu.
3. Fix issue on vepu22 dependence on rga.

vpu_api_test cmd:
enc: vpu_api_test -t 2 -w 1280 -h 720 -i a.yuv -coding 7 -o a.h264

Change-Id: I9682b17b90dce4a82400f5e2da3c955819f875bf
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-05-19 11:00:13 +08:00
Ding Wei
4863d54ff3 [mpp/test]: remove some module test file
Change-Id: I482f55c6120d706ff123b116b5ace4f30776f7a6
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2018-05-04 10:00:28 +08:00
sliver.chen
0a73f9f75a [test]: bench mark unit test
Add multi-instance test case with multi-thread decoding.
This test case is mainly for platform performance evaluation.

Change-Id: I79d86a01778c2e7af00e13d1d3c3d2937bcbbcce
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-03-26 15:49:40 +08:00
Herman Chen
25271e9ad0 [test]: Add mpi multi-thread decoder
Add new test case for multi-thread input / output.
This demo is for performance test and multi-thread decoding.

Change-Id: Iec979ba214dc189d26d2733e90e00ebd7d204f4a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-03-23 18:42:48 +08:00
Jacob Chen
81759e832a [build]: correct install directory and generate pkgconfig for linux
Change-Id: Id4f6b2278ee0fe50ffc9806fffc5b01267f723db
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-12-19 10:51:24 +08:00
Ding Wei
785b0f220d [cmake]: Partly merged Android and Linux branch
Use libmpp.so / libvpu.so on Android.
Use librockchip_mpp.so / librockchip_vpu.so

In early stage we use libmpp.so / libvpu.so on Android. later we found
it is better to use vendor name as library prefix. So we fix the name
rule on Linux platform.

But due to historical reason we can not change all sdk to use the same
name. So we choose to use this ugly method to define the name according
to different target platform.

Also we add version to library but Android has binary name issue so we
have to disable version on Android platform.

Change-Id: I785c3bc740f345e473f2d81c5cd2a4e32a1bf0bc
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-12-18 15:15:07 +08:00
Herman Chen
137dc9d5fb [base]: Add mpp/base/test for task en/dequeue demo
Add task enqueue and dequeue test for demo and performance evaluation.

Change-Id: Ib1c60f85f9776cde7e30ee62a3941921331a434f
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-07-05 11:35:40 +08:00
alpha lin
078f6aba84 [test]: add new rc test
Change-Id: I1d076b8454d2de6fb5a6e9bf9c8ab9aed96eeca3
Signed-off-by: alpha lin <alpha.lin@rock-chips.com>
2017-06-09 08:56:59 +08:00
Alpha Lin
acba8f17d3 [test]: add auto test modules
Change-Id: I51e1d0d192bb8d673380e5f1dde97929f15473a4
Signed-off-by: Alpha Lin <alpha.lin@rock-chips.com>
2017-06-09 08:56:50 +08:00
Herman Chen
61fb2802d0 [legacy]: Fix for windows simulation compile
Change-Id: I1f3ea32878b194ecaf380f1af5cca33179aa8300
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-04-07 10:13:44 +08:00
Randy Li
4cb24ef6a6 [test]: mpi demo won't link with mpp legacy library
In the future, the legacy vpu api won't be supported and the wrapper library is
not offered anymore.

Change-Id: I4019d689693e193d66fc222cc3e5662d7d6cc58d
Signed-off-by: Randy Li <randy.li@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-03-29 16:27:28 +08:00
Lin Kesheng
762f5fcedd [mpi_rc_test]: add ratecontrol test demo
1. encode one frame and decode it immediately
2. calculate ratecontrol stats and export
3. support enc_input fmt 420p/420sp

Change-Id: Iad751097de0ecea0d7afcef2bc12b9d92c5f9d05
Signed-off-by: Lin Kesheng <lks@rock-chips.com>
2016-11-30 16:11:56 +08:00
ChenHengming
ac9505c16c [mpp_task]: add advanced task flow to mpp, mpi_enc_test can work without error
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1035 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-16 10:13:35 +00:00
ChenHengming
5cd404be1b [mpi_test]: add common mpi decoder test
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@923 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-06-16 07:26:32 +00:00
DingWei
aec7175a62 [mpp] deal with problem in vs compile;
[mpp_dec] remove warning

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@847 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-05-30 09:56:31 +00:00
DingWei
653a6b5aa4 [mpi] add avs marco
[vpu_api] add avs marco
[avsd]    add avs interface
[test]    comment
[h264d]   move h264d_rw to codec 

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@599 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-04-01 09:49:23 +00:00
ChenHengming
751396b19e [cmake]: add share library script for mpp_legacy
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@436 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-11-01 19:28:09 +00:00
ChenHengming
de6807d72e [cmake]: all test link to mpp_shared library, and change libmpp_legacy to libvpu
old vpuapi will call libvpu(libmpp_legacy), then mpp_legacy will go to old libvpu or dlopen libmpp

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@401 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-10-20 20:58:52 +00:00
ChenHengming
bed52a856e [utils]: add show_options to utils
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@316 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-09-28 22:31:52 +00:00
ChenSiyong
bbc3b15c7b [android]:fix can't compile so
[h265d]:fix android compile error & fix fifo buf alloc may no enought


git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@312 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-09-27 21:16:40 +00:00
ChenHengming
608671728d [astyle]: formating coding style
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@186 6e48237b-75ef-9749-8fc9-41990f28c85a
2008-01-24 21:36:21 +00:00
DingWei
72251b9c56 [CMakeLists] In all CMakeLists, add properties folder which belonged
[mpi_test.c] Eliminate warning

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@184 6e48237b-75ef-9749-8fc9-41990f28c85a
2008-01-24 21:07:22 +00:00
ChenHengming
8d6ace3794 [cmake]: add test to CMakeLists
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@152 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-24 01:38:37 +00:00
ChenHengming
ff1b44c75b [mpp_buffer]: add empty flow test for mpp_buffer
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@120 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-18 04:02:02 +00:00
ChenHengming
01153f0f93 [mpp_packet]: add mpp_packet functions
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@117 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-17 11:27:18 +00:00
ChenHengming
c2544d0f9c [mpi]: add mpi unit test and rename mpp_env interface
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@116 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-17 10:09:20 +00:00
ChenHengming
52d5ffb332 [vpu_api_test]: add vpu_api_demo for testing and add msleep to mpp_time.h
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@73 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-12 03:34:28 +00:00