[FFmpeg-devel] [PATCH] Remove not truly supported formats support from the crop filter

Stefano Sabatini stefano.sabatini-lala
Sat Nov 21 13:12:00 CET 2009


Hi all,

the crop filter algorithm doesn't work with all the listed formats, or
it works with them only under certain conditions.

In particular the algorithm works only with formats:

* which have all the components on the same plane and with the same
  chroma shift

* which have just one component per plane

The following formats:
        PIX_FMT_NV12,         PIX_FMT_NV21,
        PIX_FMT_YUYV422,      PIX_FMT_UYVY422,
        PIX_FMT_UYYVYY411,

don't have any of the abovementioned properties, so the crop filter
doesn't work correctly with these formats.

My suggestion is to apply this patch, then when pixdescs will be
usable shouldn't be too hard to extend the crop filter to support
these formats.

Regards.
-- 
FFmpeg = Freak and Fast Majestic Problematic Enigmatic Governor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-crop-filter.patch
Type: text/x-diff
Size: 586 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091121/c7c53080/attachment.patch>



More information about the ffmpeg-devel mailing list