I think we can just use frame properties.
case mlt_image_yuv422: return "yuv422";
case mlt_image_yuv420p: return "yuv420p";
case mlt_image_opengl: return "opengl";
- case mlt_image_rgb24_full: return "rgb24_full";
- case mlt_image_rgb24a_full: return "rgb24a_full";
- case mlt_image_yuv422_709: return "yuv422_709";
}
return "invalid";
}
*buffer = NULL;
break;
case mlt_image_rgb24:
- case mlt_image_rgb24_full:
size *= 3;
size += *width * 3;
*buffer = mlt_pool_alloc( size );
memset( *buffer, 255, size );
break;
case mlt_image_rgb24a:
- case mlt_image_rgb24a_full:
case mlt_image_opengl:
size *= 4;
size += *width * 4;
mlt_image_rgb24a, /**< 8-bit RGB with alpha channel */
mlt_image_yuv422, /**< 8-bit YUV 4:2:2 packed */
mlt_image_yuv420p, /**< 8-bit YUV 4:2:0 planar */
- mlt_image_opengl, /**< suitable for OpenGL texture */
- mlt_image_rgb24_full, /**< 8-bit RGB */
- mlt_image_rgb24a_full, /**< 8-bit RGB with alpha channel */
- mlt_image_yuv422_709, /**< 8-bit YUV 4:2:2 packed */
+ mlt_image_opengl /**< suitable for OpenGL texture */
}
mlt_image_format;
switch( format )
{
case mlt_image_rgb24:
- case mlt_image_rgb24_full:
value = PIX_FMT_RGB24;
break;
case mlt_image_rgb24a:
case mlt_image_opengl:
- case mlt_image_rgb24a_full:
value = PIX_FMT_RGBA;
break;
case mlt_image_yuv422:
- case mlt_image_yuv422_709:
value = PIX_FMT_YUYV422;
break;
case mlt_image_yuv420p:
switch( format )
{
case mlt_image_rgb24:
- case mlt_image_rgb24_full:
value = PIX_FMT_RGB24;
break;
case mlt_image_rgb24a:
- case mlt_image_rgb24a_full:
case mlt_image_opengl:
value = PIX_FMT_RGB32;
break;
case mlt_image_yuv422:
- case mlt_image_yuv422_709:
value = PIX_FMT_YUYV422;
break;
case mlt_image_yuv420p:
mlt_properties_set_data( properties, "image", image_copy, image_size, mlt_pool_release, NULL );
// We're going to pass the copy on
*buffer = image_copy;
- *format = this->alpha ? mlt_image_rgb24a_full : mlt_image_rgb24_full;
+ *format = this->alpha ? mlt_image_rgb24a : mlt_image_rgb24;
mlt_log_debug( MLT_PRODUCER_SERVICE( &this->parent ), "%dx%d (%s)\n",
this->width, this->height, mlt_image_format_name( *format ) );
}
mlt_properties_set_data( properties, "image", image_copy, image_size, mlt_pool_release, NULL );
// We're going to pass the copy on
*buffer = image_copy;
- *format = this->has_alpha ? mlt_image_rgb24a_full : mlt_image_rgb24_full;
+ *format = this->has_alpha ? mlt_image_rgb24a : mlt_image_rgb24;
mlt_log_debug( MLT_PRODUCER_SERVICE( &this->parent ), "%dx%d (%s)\n",
this->current_width, this->current_height, mlt_image_format_name( *format ) );
}
switch( surface->format->BitsPerPixel )
{
case 32:
- *format = mlt_image_rgb24a_full;
+ *format = mlt_image_rgb24a;
image_size = *width * *height * 4;
*image = mlt_pool_alloc( image_size );
memcpy( *image, surface->pixels, image_size );
break;
case 24:
- *format = mlt_image_rgb24_full;
+ *format = mlt_image_rgb24;
*image = mlt_pool_alloc( image_size );
memcpy( *image, surface->pixels, image_size );
break;