|
@@ -165,6 +165,8 @@ static void OnEventArrived(Component com, unsigned long event, void *data, void
|
|
|
{
|
|
|
case OMX_COLOR_FormatYUV420Planar:
|
|
|
case OMX_COLOR_FormatYUV420SemiPlanar:
|
|
|
+ case OMX_COLOR_FormatYUV420PackedSemiPlanar:
|
|
|
+ case OMX_COLOR_FormatYVU420PackedSemiPlanar:
|
|
|
if (nWidth && nHeight) {
|
|
|
pSfOMXComponent->portDefinition[1].nBufferSize = (nWidth * nHeight * 3) / 2;
|
|
|
}
|
|
@@ -461,7 +463,7 @@ static OMX_ERRORTYPE SF_OMX_GetParameter(
|
|
|
break;
|
|
|
case 2:
|
|
|
portFormat->eCompressionFormat = OMX_VIDEO_CodingUnused;
|
|
|
- portFormat->eColorFormat = OMX_COLOR_FormatYUV420PackedSemiPlanar;
|
|
|
+ portFormat->eColorFormat = OMX_COLOR_FormatYVU420PackedSemiPlanar;
|
|
|
portFormat->xFramerate = 30;
|
|
|
break;
|
|
|
default:
|
|
@@ -557,11 +559,12 @@ static OMX_ERRORTYPE SF_OMX_SetParameter(
|
|
|
pPort->format.video.eColorFormat = portFormat->eColorFormat;
|
|
|
break;
|
|
|
case OMX_COLOR_FormatYUV420SemiPlanar: //NV12
|
|
|
+ case OMX_COLOR_FormatYUV420PackedSemiPlanar:
|
|
|
pTestDecConfig->cbcrInterleave = TRUE;
|
|
|
pTestDecConfig->nv21 = FALSE;
|
|
|
pPort->format.video.eColorFormat = portFormat->eColorFormat;
|
|
|
break;
|
|
|
- case OMX_COLOR_FormatYUV420PackedSemiPlanar: //NV21
|
|
|
+ case OMX_COLOR_FormatYVU420PackedSemiPlanar: //NV21
|
|
|
pTestDecConfig->cbcrInterleave = TRUE;
|
|
|
pTestDecConfig->nv21 = TRUE;
|
|
|
pPort->format.video.eColorFormat = portFormat->eColorFormat;
|
|
@@ -670,12 +673,13 @@ static OMX_ERRORTYPE SF_OMX_SetParameter(
|
|
|
pOutputPort->nBufferSize = (width * height * 3) / 2;
|
|
|
break;
|
|
|
case OMX_COLOR_FormatYUV420SemiPlanar: //NV12
|
|
|
+ case OMX_COLOR_FormatYUV420PackedSemiPlanar:
|
|
|
pTestDecConfig->cbcrInterleave = TRUE;
|
|
|
pTestDecConfig->nv21 = FALSE;
|
|
|
if (width && height)
|
|
|
pOutputPort->nBufferSize = (width * height * 3) / 2;
|
|
|
break;
|
|
|
- case OMX_COLOR_FormatYUV420PackedSemiPlanar: //NV21
|
|
|
+ case OMX_COLOR_FormatYVU420PackedSemiPlanar: //NV21
|
|
|
pTestDecConfig->cbcrInterleave = TRUE;
|
|
|
pTestDecConfig->nv21 = TRUE;
|
|
|
if (width && height)
|