[FFmpeg-cvslog] crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Peter Ross git at videolan.org
Fri Apr 29 04:38:01 CEST 2011


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sat Mar 19 22:05:53 2011 +1100| [a1f4d07563c0489ee489343a4b6bfb0a7ef24300] | committer: Anton Khirnov

crop: make the filter accept PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel formats

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1f4d07563c0489ee489343a4b6bfb0a7ef24300
---

 libavfilter/vf_crop.c           |    1 +
 tests/ref/lavfi/pixfmts_crop_le |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 105c390..9f71b9e 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -80,6 +80,7 @@ static int query_formats(AVFilterContext *ctx)
 {
     static const enum PixelFormat pix_fmts[] = {
         PIX_FMT_RGB48BE,      PIX_FMT_RGB48LE,
+        PIX_FMT_BGR48BE,      PIX_FMT_BGR48LE,
         PIX_FMT_ARGB,         PIX_FMT_RGBA,
         PIX_FMT_ABGR,         PIX_FMT_BGRA,
         PIX_FMT_RGB24,        PIX_FMT_BGR24,
diff --git a/tests/ref/lavfi/pixfmts_crop_le b/tests/ref/lavfi/pixfmts_crop_le
index 3016a7f..01da415 100644
--- a/tests/ref/lavfi/pixfmts_crop_le
+++ b/tests/ref/lavfi/pixfmts_crop_le
@@ -1,6 +1,8 @@
 abgr                cd761690872843d1b7ab0c695393c751
 argb                2ec6ef18769bcd651c2e8904d5a3ee67
 bgr24               3450fd00cf1493d1ded75544d82ba3ec
+bgr48be             90cb5d373a1123432d63c6a10c101afa
+bgr48le             9371f54ceda9010f1199e86f4930ac3f
 bgr4_byte           2f6ac3cdd4676ab4e2982bdf0664945b
 bgr555le            d22442fc13b464f9ba455b08df4e981f
 bgr565le            891664e5a54ae5968901347da92bc5e9



More information about the ffmpeg-cvslog mailing list