Commit graph

13 commits

Author SHA1 Message Date
Yanjun Liao
303a26ddad fix[mpp_dump]: add YUV420SP_10BIT format dump
Change-Id: I1e89dbfefb394b4e8b2fbaf4fb0516be3528dd24
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2024-01-29 09:35:28 +08:00
xueman.ruan
ef67776801 [mpp_dec]: fix hdr stream dump yuv error.
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
Change-Id: Ibf13d81dfec194bb607a1fe881227951bb1509e0
2023-03-29 15:17:31 +08:00
Herman Chen
2b35cee0ce [mpp_log]: Add more log helper function
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>
2022-05-20 11:42:10 +08:00
vic.hong
eeda461154 [mpp_dump_yuv]: fix mpp dump yuv issue
Modify the judgment condition of dump data

Signed-off-by: vic.hong <vic.hong@rock-chips.com>
Change-Id: I8816b02ccad6e7dac82ba1e2723947a1aa165e3c
2021-12-07 20:27:46 +08:00
Yandong Lin
c2768e1b86 [mpp_impl]: modify dump frame default size
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
2021-11-11 14:20:23 +08:00
Yandong Lin
4f06d9dcb3 [mpp]: support dump pkt data for dec
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I3a1cf3d8d36c090a1c4fc29f1ad6b4495e8703f7
2021-08-26 09:24:59 +08:00
yandong.lin
0da0f2ead8 [mpp_impl]: Fix the problem of dump input frame not work
Signed-off-by: yandong.lin <yandong.lin@rock-chips.com>
Change-Id: I85a0684839877300827359754ee6818f175ae1be
2020-10-22 10:39:57 +08:00
Ding Wei
60c82d6d7b [mpp]: add dump function for nv12 10bit to 8bit
tips: when dump 10bit yuv, change it to 8bit, and write out.

Change-Id: I710399d61056e32d68c3f6f9d6ff209d73f6b904
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2019-08-29 16:10:50 +08:00
Herman Chen
d17861b67b [rk_mpi.h]: Separate rk_mpi_cmd.h into two headers
1. rk_mpi_cmd.h will contain cmd value only.
2. rk_venc_cmd.h will contain all the encoder command structure.
3. Move MppCtxType and MppCodingType to rk_type.h for better include
dependency.
4. Add MppEncRefCfg to MppEncCfgSet.
5. Remove rk_mpi.h dependency inside mpp.

Change-Id: I6b972738100fb60c0a6a9b7cfe0a012abf4205b7
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-06-26 10:09:23 +08:00
Johnson Ding
c8875a2db9 [mpp]: avoid crash when dumping a frame whose fd is -1
Change-Id: I6c7252ac32a4b857a79a4203fdaa56a2f0443645
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2019-01-07 09:12:53 +08:00
Herman Chen
496808002d [mpp_impl]: Add tid to dump file
1. User often use multi-instance decoder. The dump file name should has
some way to avoid overlap file operation.
Also an extra stream length config file is added for decoder. For
decoder issue reproducing should stay the same with the real user input
stream seperation.
2. Add mpp operation record file for issue reproduction.
3. ops format is similiar to Android time log.

Change-Id: I4b3702fcb4ae1601579762a6d1d7cadc10861759
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-08-30 15:35:31 +08:00
Herman Chen
b81b3e52cd [mpp]: Fix compiling error on Linux
Issue: https://github.com/rockchip-linux/mpp/issues/48

Change-Id: I08bc75a4cab23d4b96c6bac3b671e50edbff55fb
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-08-07 08:56:00 +08:00
Ding Wei
76b8c229a2 [mpp]: move dump data from vpu_api_legacy to mpp
tips:
add MppDumpInfo for dump input and output.

Change-Id: Ia2416309e0e6b78671c073ae08409d907e3d0e85
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-08-06 09:10:28 +08:00