From 0247fb32701b4512e35438f6ea38e9dd0c5b19a8 Mon Sep 17 00:00:00 2001 From: ChenHengming Date: Wed, 13 Jul 2016 07:02:48 +0000 Subject: [PATCH] [legacy]: assign MppFrame mode to VPU_Frame frameType directly git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1015 6e48237b-75ef-9749-8fc9-41990f28c85a --- mpp/legacy/vpu_api_legacy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mpp/legacy/vpu_api_legacy.cpp b/mpp/legacy/vpu_api_legacy.cpp index f6528ef7..95d3c5df 100644 --- a/mpp/legacy/vpu_api_legacy.cpp +++ b/mpp/legacy/vpu_api_legacy.cpp @@ -184,6 +184,7 @@ RK_S32 VpuApiLegacy:: decode_getoutframe(DecoderOut_t *aDecOut) vframe->DisplayHeight = mpp_frame_get_height(mframe); vframe->FrameWidth = mpp_frame_get_hor_stride(mframe); vframe->FrameHeight = mpp_frame_get_ver_stride(mframe); + vframe->FrameType = mpp_frame_get_mode(mframe); vframe->ErrorInfo = mpp_frame_get_errinfo(mframe) | mpp_frame_get_discard(mframe); pts = mpp_frame_get_pts(mframe); aDecOut->timeUs = pts; @@ -372,7 +373,7 @@ RK_S32 VpuApiLegacy::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param) if (p->ImgWidth & 0x80000000) { ImgWidth = ((p->ImgWidth & 0xFFFF) * 10) >> 3; - p->CodecType = (p->ImgWidth & 0x40000000) ? MPP_FMT_YUV422SP_10BIT : MPP_FMT_YUV420SP_10BIT; + p->CodecType = (p->ImgWidth & 0x40000000) ? MPP_FMT_YUV422SP_10BIT : MPP_FMT_YUV420SP_10BIT; } else { ImgWidth = (p->ImgWidth & 0xFFFF); @@ -386,7 +387,7 @@ RK_S32 VpuApiLegacy::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param) p->ImgHorStride = default_align_16(ImgWidth); p->ImgVerStride = default_align_16(p->ImgHeight); } - + break; } case VPU_API_SET_INFO_CHANGE: {