mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[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
This commit is contained in:
@@ -184,6 +184,7 @@ RK_S32 VpuApiLegacy:: decode_getoutframe(DecoderOut_t *aDecOut)
|
|||||||
vframe->DisplayHeight = mpp_frame_get_height(mframe);
|
vframe->DisplayHeight = mpp_frame_get_height(mframe);
|
||||||
vframe->FrameWidth = mpp_frame_get_hor_stride(mframe);
|
vframe->FrameWidth = mpp_frame_get_hor_stride(mframe);
|
||||||
vframe->FrameHeight = mpp_frame_get_ver_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);
|
vframe->ErrorInfo = mpp_frame_get_errinfo(mframe) | mpp_frame_get_discard(mframe);
|
||||||
pts = mpp_frame_get_pts(mframe);
|
pts = mpp_frame_get_pts(mframe);
|
||||||
aDecOut->timeUs = pts;
|
aDecOut->timeUs = pts;
|
||||||
@@ -372,7 +373,7 @@ RK_S32 VpuApiLegacy::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param)
|
|||||||
if (p->ImgWidth & 0x80000000) {
|
if (p->ImgWidth & 0x80000000) {
|
||||||
|
|
||||||
ImgWidth = ((p->ImgWidth & 0xFFFF) * 10) >> 3;
|
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 {
|
else {
|
||||||
ImgWidth = (p->ImgWidth & 0xFFFF);
|
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->ImgHorStride = default_align_16(ImgWidth);
|
||||||
p->ImgVerStride = default_align_16(p->ImgHeight);
|
p->ImgVerStride = default_align_16(p->ImgHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VPU_API_SET_INFO_CHANGE: {
|
case VPU_API_SET_INFO_CHANGE: {
|
||||||
|
Reference in New Issue
Block a user