int i;
int R, G, B;
const RGB32 *p;
- short *q;
+ const short *q;
unsigned char *r;
int v;
p = src;
- q = (short *)background;
+ q = (const short *)background;
r = diff;
for(i=0; i<video_area; i++) {
/* FIXME: endianess */
void image_edge(unsigned char *diff2, const RGB32 *src, int width, int height, int y_threshold)
{
int x, y;
- unsigned char *p, *q;
+ const unsigned char *p;
+ unsigned char *q;
int r, g, b;
int ar, ag, ab;
int w;
- p = (unsigned char *)src;
+ p = (const unsigned char *)src;
q = diff2;
w = width * sizeof(RGB32);
( *strrchr( markup, '.' ) ) = '\0';
while ( strchr( markup, '~' ) )
( *strchr( markup, '~' ) ) = '\n';
- mlt_properties_set( properties, "resource", ( char * )filename );
+ mlt_properties_set( properties, "resource", filename );
mlt_properties_set( properties, "markup", markup );
free( copy );
}
mlt_properties contents = mlt_properties_load( filename );
mlt_geometry key_frames = mlt_geometry_init( );
struct mlt_geometry_item_s item;
- mlt_properties_set( properties, "resource", ( char * )filename );
+ mlt_properties_set( properties, "resource", filename );
mlt_properties_set_data( properties, "contents", contents, 0, ( mlt_destructor )mlt_properties_close, NULL );
mlt_properties_set_data( properties, "key_frames", key_frames, 0, ( mlt_destructor )mlt_geometry_close, NULL );
if ( markup[ strlen( markup ) - 1 ] == '\n' )
markup[ strlen( markup ) - 1 ] = '\0';
- mlt_properties_set( properties, "resource", ( char * ) filename );
- mlt_properties_set( properties, "markup", ( char * ) ( markup == NULL ? "" : markup ) );
+ mlt_properties_set( properties, "resource", filename );
+ mlt_properties_set( properties, "markup", ( markup == NULL ? "" : markup ) );
free( markup );
}
else