Hi,crop filter seems always want to convert to rgb24 but IMHO it is required only of left offset is odd, am i correct?
-- ________________________________________ Maksym Veremeyenko
>From ce486de8abfca429f4bb9c7c7586a76e2d10ad19 Mon Sep 17 00:00:00 2001 From: Maksym Veremeyenko <ve...@m1.tv> Date: Sun, 22 Jun 2014 18:02:32 +0300 Subject: [PATCH 5/6] convert yuv422 image rgb24 only if left position is odd --- src/modules/core/filter_crop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/modules/core/filter_crop.c b/src/modules/core/filter_crop.c index 8f3b776..dc6707d 100644 --- a/src/modules/core/filter_crop.c +++ b/src/modules/core/filter_crop.c @@ -87,7 +87,7 @@ static int filter_get_image( mlt_frame frame, uint8_t **image, mlt_image_format int bpp; // Subsampled YUV is messy and less precise. - if ( *format == mlt_image_yuv422 && frame->convert_image ) + if ( *format == mlt_image_yuv422 && frame->convert_image && left & 1) { mlt_image_format requested_format = mlt_image_rgb24; frame->convert_image( frame, image, format, requested_format ); -- 1.7.7.6
------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel