Herman Chen
ed4151e245
[osal]: Change time function
...
Change time function from gettimeofday to clock_gettime.
Output of mpp_time() is still in us.
Change-Id: I7f961bb7bb4007e8e42ae5358bd7f568edf6c3d0
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-03-23 09:20:56 +08:00
Herman Chen
82bc016bbb
[oasl]: Add debug function to mpp_mem
...
1. Add memory node record.
2. Add runtime log with memory count and total size.
3. Add extra room for overflow detection.
4. Add memory poison after free to detect write after free.
Change-Id: I4f0fe7295f18a746c3b4c135681127a18337585e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-01-29 11:47:31 +08:00
Herman Chen
7b7b509847
[runtime]: Add more runtime detection
...
As we found that simple ion / drm device detectioin can not cover all the
case. For example on some 3368 platform kernel provide both ion and drm
device. We have better to use allocator chosen in dts.
But later kernel patch from Randy will bring unified dma-fd translation in
kernel then this detection will be removed.
Change-Id: I2746142d1c3d0f36791bacaadb231dc2001a5aa7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2018-01-03 16:48:56 +08:00
Herman Chen
75660ca37b
[oasl]: Add lock timing test
...
Add pthread lock / unlock and condition wait / signal performance test
Change-Id: Ia0b9ae968d3bbe0b8f802b36afb93c6b564d91dc
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2017-07-05 11:27:22 +08:00
leo.ding
8cd076afae
[mpp_platform]: rename HAVE_265E to HAVE_265ENC for buid warnnig
...
H265E had defined in Cmakelist.txt to choose whether build
h265 encode module, so it here is redefined.
Change-Id: I54e9704d396d0a8a0e6d0f2ae8595d033131d81b
Signed-off-by: leo.ding <leo.ding@rock-chips.com >
2017-05-15 17:28:16 +08:00
Randy Li
0de5e0599c
[osal]: don't install unit test
...
The build system may store those files into a package.
Change-Id: I2ab54da5880d1979a19430520d36324629b8a7d8
Signed-off-by: Randy Li <randy.li@rock-chips.com >
2017-04-07 10:13:44 +08:00
Herman Chen
4b41fdd8bc
[mpp_platform]: Modify chip vcodec detection
...
1. Add video codec information and kernel driver device detection code for all
supported chips.
2. Add video codec type and device name detection test
Change-Id: I275c0e616acd80c9a4ad2fee00588479e47a92db
Signed-off-by: Herman Chen <herman.chen@rock-chips.com >
2017-03-03 16:12:36 +08:00
Lin Kesheng
60373a6973
[all]: format code
...
use fromdos to change file type, remove ^M in code.
Change-Id: I000202dc51fcff57cc0771455baebea595115b1d
Signed-off-by: Lin Kesheng <lks@rock-chips.com >
2016-09-08 15:21:02 +08:00
ChenHengming
d101052f9b
[osal]: add runtime log to mpp_mem
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1131 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-30 08:56:41 +00:00
ChenHengming
c0866a76f9
[comment]: fix company name hand writing error
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@906 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-06-13 09:42:31 +00:00
ChenHengming
44e83d5a09
[osal]: add log_f function to mpp_log
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@189 6e48237b-75ef-9749-8fc9-41990f28c85a
2008-01-25 14:28:53 +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
d9644ded0e
[mpp_log]: change mpp_dbg to _mpp_dbg, redefine new mpp_dbg
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@174 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-28 01:55:19 +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
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
cbf53d2929
[mpp_log]: add new mpp_dbg function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@106 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-14 03:57:26 +00:00
ChenHengming
b9ac93ef71
[mpp_log]: add mpp_assert function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@105 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-14 02:42:17 +00:00
ChenHengming
63880b5333
[osal]: add mpp_calloc function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@101 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-13 09:30:27 +00:00
ChenHengming
e80180c728
[mpp_mem]: add mpp_realloc function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@98 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-13 09:15:31 +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
ChenHengming
a7f4bb2dd1
[osal/test]: fix compile error on vs2010
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@65 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 10:32:18 +00:00
ChenHengming
c35cc7d345
[osal]: rename mpp_malloc to mpp_mem, add mpp_time function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@63 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 10:15:24 +00:00
ChenHengming
848f7d93fe
[all]: rename function names
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@60 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 09:14:00 +00:00
ChenHengming
1b5d44e56e
[all]: rename file and macro from RK to MPP
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@59 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 09:00:27 +00:00
ChenHengming
c89c44512f
[all]: change osal file name prefix from rk_ to mpp_
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@58 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 08:50:52 +00:00
ChenHengming
f90294b7ec
[misc]: add TODO comment for later work
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@52 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 06:28:41 +00:00
ChenHengming
ba806a522a
[cmake]: cmake script update
...
1. add svn author and date to cmake
2. change unit test install directory
2. use macro to add osal unit test
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@49 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-07 06:13:46 +00:00
ChenHengming
68c6012d09
[rk_malloc]: add mem_list feature to rk_malloc module
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@41 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-06 02:56:20 +00:00
ChenHengming
764d72e7c5
[inc]: change LOG_TAG to MODULE_TAG for more general usage
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@38 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 10:04:45 +00:00
ChenHengming
7a8f2b7249
[rk_malloc]: remove rk_mpp_set_mem_align function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@37 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 09:46:53 +00:00
ChenHengming
1fe9a769fc
[rk_env]: add default value to env_get function
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@35 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 08:46:46 +00:00
ChenHengming
6d3a322412
[rk_env]: add environment variable function and test case on window
...
unit test passed on window test case
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@30 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 03:25:28 +00:00
ChenHengming
c0c5222152
[rk_malloc]: add malloc function and test case on window
...
unit test passed
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@27 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-05 02:15:38 +00:00
ChenHengming
644aaf3239
[osal]: add LOG_TAG for c/cpp file
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@26 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-04 07:41:43 +00:00
ChenHengming
a07b33b1f2
[osal/test]: fix script variable error for log test
...
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@15 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-08-03 09:58:33 +00:00
ChenHengming
79a7af4e4f
[rk_log]: add os_log function on window
...
separate os_log and platform log function
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@10 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-07-29 07:13:02 +00:00
ChenHengming
3819a8823a
[osal]: fix compiling error on window
...
1. remove void typedef
2. fix pthread path definition on window
3. fox thread_test compiling error
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@5 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-07-28 01:13:46 +00:00
ChenHengming
58ca309470
[osal]: add rk_log, rk_list, rk_thread to osal directory
...
linux test ok
window can not compile, need more check
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@3 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-07-27 10:22:37 +00:00