// There is no way to detect a crop for sure, so make up an arbitrary one
int thresh = mlt_properties_get_int( properties, "thresh" );
- int xstride, ystride;
-
- switch( *format ) {
- case mlt_image_yuv422:
- xstride = 2;
- ystride = 2 * *width;
- break;
- default:
- fprintf(stderr, "image format not supported by filter_crop_detect\n");
- return -1;
- }
+ *format = mlt_image_yuv422;
+ int xstride = 2;
+ int ystride = 2 * *width;
int x, y, average_brightness, deviation; // Scratch variables
uint8_t *q;
/** Constructor for the filter.
*/
-mlt_filter filter_crop_detect_init( char *arg )
+mlt_filter filter_crop_detect_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter this = mlt_filter_new( );
if ( this != NULL )