*image = mlt_pool_alloc( image_size );
memcpy( *image, surface->pixels, image_size );
break;
- case 24:
+ default:
*format = mlt_image_rgb24;
*image = mlt_pool_alloc( image_size );
memcpy( *image, surface->pixels, image_size );
break;
- default:
- *image = mlt_pool_alloc( image_size );
- memcpy( *image, converted->pixels, image_size );
- break;
}
if ( converted )
surface->refcount ++;
mlt_properties_set_data( properties, "_surface", surface, 0, ( mlt_destructor )SDL_FreeSurface, 0 );
mlt_properties_set( properties, "_last_resource", this_resource );
- mlt_properties_set_int( properties, "_real_width", surface->w );
- mlt_properties_set_int( properties, "_real_height", surface->h );
+ mlt_properties_set_int( properties, "meta.media.width", surface->w );
+ mlt_properties_set_int( properties, "meta.media.height", surface->h );
}
}
else if ( surface != NULL )
mlt_properties_set_int( properties, "progressive", 1 );
mlt_properties_set_double( properties, "aspect_ratio", mlt_properties_get_double( producer_props, "aspect_ratio" ) );
mlt_properties_set_data( properties, "surface", surface, 0, ( mlt_destructor )SDL_FreeSurface, NULL );
- mlt_properties_set_int( properties, "real_width", surface->w );
- mlt_properties_set_int( properties, "real_height", surface->h );
// Push the get_image method
mlt_frame_push_get_image( *frame, producer_get_image );