Lines Matching defs:framingCtx
931 * prototype M4OSA_ERR M4xVSS_internalConvertRGBtoYUV(M4xVSS_FramingStruct* framingCtx)
935 * @param framingCtx (IN) The framing struct containing input RGB565 plane
942 M4OSA_ERR M4xVSS_internalConvertRGBtoYUV(M4xVSS_FramingStruct* framingCtx)
948 framingCtx->FramingYuv = (M4VIFI_ImagePlane*)M4OSA_32bitAlignedMalloc(3*sizeof(M4VIFI_ImagePlane), M4VS, (M4OSA_Char*)"M4xVSS_internalConvertRGBtoYUV: Output plane YUV");
949 if(framingCtx->FramingYuv == M4OSA_NULL)
954 framingCtx->FramingYuv[0].u_width = framingCtx->FramingRgb->u_width;
955 framingCtx->FramingYuv[0].u_height = framingCtx->FramingRgb->u_height;
956 framingCtx->FramingYuv[0].u_topleft = 0;
957 framingCtx->FramingYuv[0].u_stride = framingCtx->FramingRgb->u_width;
958 framingCtx->FramingYuv[0].pac_data = (M4VIFI_UInt8*)M4OSA_32bitAlignedMalloc((framingCtx->FramingYuv[0].u_width*framingCtx->FramingYuv[0].u_height*3)>>1, M4VS, (M4OSA_Char*)"Alloc for the Convertion output YUV");;
959 if(framingCtx->FramingYuv[0].pac_data == M4OSA_NULL)
964 framingCtx->FramingYuv[1].u_width = (framingCtx->FramingRgb->u_width)>>1;
965 framingCtx->FramingYuv[1].u_height = (framingCtx->FramingRgb->u_height)>>1;
966 framingCtx->FramingYuv[1].u_topleft = 0;
967 framingCtx->FramingYuv[1].u_stride = (framingCtx->FramingRgb->u_width)>>1;
968 framingCtx->FramingYuv[1].pac_data = framingCtx->FramingYuv[0].pac_data + framingCtx->FramingYuv[0].u_width * framingCtx->FramingYuv[0].u_height;
969 framingCtx->FramingYuv[2].u_width = (framingCtx->FramingRgb->u_width)>>1;
970 framingCtx->FramingYuv[2].u_height = (framingCtx->FramingRgb->u_height)>>1;
971 framingCtx->FramingYuv[2].u_topleft = 0;
972 framingCtx->FramingYuv[2].u_stride = (framingCtx->FramingRgb->u_width)>>1;
973 framingCtx->FramingYuv[2].pac_data = framingCtx->FramingYuv[1].pac_data + framingCtx->FramingYuv[1].u_width * framingCtx->FramingYuv[1].u_height;
977 err = M4VIFI_xVSS_RGB565toYUV420(M4OSA_NULL, framingCtx->FramingRgb, framingCtx->FramingYuv);
983 framingCtx->duration = 0;
984 framingCtx->previousClipTime = -1;
985 framingCtx->previewOffsetClipTime = -1;
989 framingCtx->pCurrent = framingCtx;
990 framingCtx->pNext = framingCtx;
996 * prototype M4OSA_ERR M4xVSS_internalConvertRGB888toYUV(M4xVSS_FramingStruct* framingCtx)
1000 * @param framingCtx (IN) The framing struct containing input RGB888 plane
1007 M4OSA_ERR M4xVSS_internalConvertRGB888toYUV(M4xVSS_FramingStruct* framingCtx)
1013 framingCtx->FramingYuv = (M4VIFI_ImagePlane*)M4OSA_32bitAlignedMalloc(3*sizeof(M4VIFI_ImagePlane), M4VS, (M4OSA_Char*)"M4xVSS_internalConvertRGBtoYUV: Output plane YUV");
1014 if(framingCtx->FramingYuv == M4OSA_NULL)
1019 framingCtx->FramingYuv[0].u_width = framingCtx->FramingRgb->u_width;
1020 framingCtx->FramingYuv[0].u_height = framingCtx->FramingRgb->u_height;
1021 framingCtx->FramingYuv[0].u_topleft = 0;
1022 framingCtx->FramingYuv[0].u_stride = framingCtx->FramingRgb->u_width;
1023 framingCtx->FramingYuv[0].pac_data = (M4VIFI_UInt8*)M4OSA_32bitAlignedMalloc((framingCtx->FramingYuv[0].u_width*framingCtx->FramingYuv[0].u_height*3)>>1, M4VS, (M4OSA_Char*)"Alloc for the Convertion output YUV");;
1024 if(framingCtx->FramingYuv[0].pac_data == M4OSA_NULL)
1029 framingCtx->FramingYuv[1].u_width = (framingCtx->FramingRgb->u_width)>>1;
1030 framingCtx->FramingYuv[1].u_height = (framingCtx->FramingRgb->u_height)>>1;
1031 framingCtx->FramingYuv[1].u_topleft = 0;
1032 framingCtx->FramingYuv[1].u_stride = (framingCtx->FramingRgb->u_width)>>1;
1033 framingCtx->FramingYuv[1].pac_data = framingCtx->FramingYuv[0].pac_data + framingCtx->FramingYuv[0].u_width * framingCtx->FramingYuv[0].u_height;
1034 framingCtx->FramingYuv[2].u_width = (framingCtx->FramingRgb->u_width)>>1;
1035 framingCtx->FramingYuv[2].u_height = (framingCtx->FramingRgb->u_height)>>1;
1036 framingCtx->FramingYuv[2].u_topleft = 0;
1037 framingCtx->FramingYuv[2].u_stride = (framingCtx->FramingRgb->u_width)>>1;
1038 framingCtx->FramingYuv[2].pac_data = framingCtx->FramingYuv[1].pac_data + framingCtx->FramingYuv[1].u_width * framingCtx->FramingYuv[1].u_height;
1042 err = M4VIFI_RGB888toYUV420(M4OSA_NULL, framingCtx->FramingRgb, framingCtx->FramingYuv);
1048 framingCtx->duration = 0;
1049 framingCtx->previousClipTime = -1;
1050 framingCtx->previewOffsetClipTime = -1;
1054 framingCtx->pCurrent = framingCtx;
1055 framingCtx->pNext = framingCtx;
3105 M4xVSS_FramingStruct* framingCtx,
3112 framingCtx->FramingRgb = effectsSettings[index].xVSS.pFramingBuffer;
3113 framingCtx->FramingRgb->u_width = framingCtx->FramingRgb->u_width & ~1;
3114 framingCtx->FramingRgb->u_height = framingCtx->FramingRgb->u_height & ~1;
3115 framingCtx->FramingYuv = NULL;
3117 framingCtx->duration = effectsSettings[index].uiDuration;
3118 framingCtx->topleft_x = effectsSettings[index].xVSS.topleft_x;
3119 framingCtx->topleft_y = effectsSettings[index].xVSS.topleft_y;
3120 framingCtx->pCurrent = framingCtx;
3121 framingCtx->pNext = framingCtx;
3122 framingCtx->previousClipTime = -1;
3124 framingCtx->alphaBlendingStruct =
3129 framingCtx->alphaBlendingStruct->m_fadeInTime =
3132 framingCtx->alphaBlendingStruct->m_fadeOutTime =
3135 framingCtx->alphaBlendingStruct->m_end =
3138 framingCtx->alphaBlendingStruct->m_middle =
3141 framingCtx->alphaBlendingStruct->m_start =
3145 if((overlayRGB != framingCtx->FramingRgb->pac_data) || (overlayYUV == NULL) ) {
3155 err = M4xVSS_internalConvertRGBtoYUV(framingCtx);
3160 err = M4xVSS_internalConvertRGB888toYUV(framingCtx);
3165 overlayYUV = framingCtx->FramingYuv[0].pac_data;
3166 overlayRGB = framingCtx->FramingRgb->pac_data;
3171 framingCtx->FramingYuv = (M4VIFI_ImagePlane*)M4OSA_32bitAlignedMalloc(
3174 if(framingCtx->FramingYuv == M4OSA_NULL) {
3178 framingCtx->FramingYuv[0].u_width = framingCtx->FramingRgb->u_width;
3179 framingCtx->FramingYuv[0].u_height = framingCtx->FramingRgb->u_height;
3180 framingCtx->FramingYuv[0].u_topleft = 0;
3181 framingCtx->FramingYuv[0].u_stride = framingCtx->FramingRgb->u_width;
3182 framingCtx->FramingYuv[0].pac_data = (M4VIFI_UInt8*)overlayYUV;
3184 framingCtx->FramingYuv[1].u_width = (framingCtx->FramingRgb->u_width)>>1;
3185 framingCtx->FramingYuv[1].u_height = (framingCtx->FramingRgb->u_height)>>1;
3186 framingCtx->FramingYuv[1].u_topleft = 0;
3187 framingCtx->FramingYuv[1].u_stride = (framingCtx->FramingRgb->u_width)>>1;
3188 framingCtx->FramingYuv[1].pac_data = framingCtx->FramingYuv[0].pac_data +
3189 framingCtx->FramingYuv[0].u_width * framingCtx->FramingYuv[0].u_height;
3191 framingCtx->FramingYuv[2].u_width = (framingCtx->FramingRgb->u_width)>>1;
3192 framingCtx->FramingYuv[2].u_height = (framingCtx->FramingRgb->u_height)>>1;
3193 framingCtx->FramingYuv[2].u_topleft = 0;
3194 framingCtx->FramingYuv[2].u_stride = (framingCtx->FramingRgb->u_width)>>1;
3195 framingCtx->FramingYuv[2].pac_data = framingCtx->FramingYuv[1].pac_data +
3196 framingCtx->FramingYuv[1].u_width * framingCtx->FramingYuv[1].u_height;
3198 framingCtx->duration = 0;
3199 framingCtx->previousClipTime = -1;
3200 framingCtx->previewOffsetClipTime = -1;
3444 M4xVSS_FramingStruct framingCtx;
3462 err = prepareFramingStructure(&framingCtx,
3468 (M4OSA_Void *)&framingCtx, planeIn, planeOut, &extProgress,
3472 free(framingCtx.alphaBlendingStruct);
3474 if(framingCtx.FramingYuv != NULL) {
3475 free(framingCtx.FramingYuv);
3476 framingCtx.FramingYuv = NULL;