swscale: Add missing yuv444p12 swapping

Message ID 20161006222850.73694-1-vittorio.giovara@gmail.com
State Committed
Commit eb542106029a9b28b4f76ff7c181eb4f542da9c4
Headers show

Commit Message

Vittorio Giovara Oct. 6, 2016, 10:28 p.m.
Missing from 9bd6ea5695660529b2887292874a7b9e61fc301e.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
---
Fixes the ppc fate tests.
Vittorio

 libswscale/input.c                  | 4 ++++
 tests/ref/fate/filter-pixfmts-scale | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Luca Barbato Oct. 6, 2016, 10:30 p.m. | #1
On 07/10/16 00:28, Vittorio Giovara wrote:
> Missing from 9bd6ea5695660529b2887292874a7b9e61fc301e.
> 
> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
> ---
> Fixes the ppc fate tests.
> Vittorio
> 

Sounds Ok.

Thanks for spotting it!

lu

Patch

diff --git a/libswscale/input.c b/libswscale/input.c
index 76a4700..e1ac483 100644
--- a/libswscale/input.c
+++ b/libswscale/input.c
@@ -817,6 +817,7 @@  av_cold void ff_sws_init_input_funcs(SwsContext *c)
     case AV_PIX_FMT_YUV444P10LE:
     case AV_PIX_FMT_YUV420P12LE:
     case AV_PIX_FMT_YUV422P12LE:
+    case AV_PIX_FMT_YUV444P12LE:
     case AV_PIX_FMT_YUV420P16LE:
     case AV_PIX_FMT_YUV422P16LE:
     case AV_PIX_FMT_YUV444P16LE:
@@ -840,6 +841,7 @@  av_cold void ff_sws_init_input_funcs(SwsContext *c)
     case AV_PIX_FMT_YUV444P10BE:
     case AV_PIX_FMT_YUV420P12BE:
     case AV_PIX_FMT_YUV422P12BE:
+    case AV_PIX_FMT_YUV444P12BE:
     case AV_PIX_FMT_YUV420P16BE:
     case AV_PIX_FMT_YUV422P16BE:
     case AV_PIX_FMT_YUV444P16BE:
@@ -1039,6 +1041,7 @@  av_cold void ff_sws_init_input_funcs(SwsContext *c)
     case AV_PIX_FMT_YUV444P10LE:
     case AV_PIX_FMT_YUV420P12LE:
     case AV_PIX_FMT_YUV422P12LE:
+    case AV_PIX_FMT_YUV444P12LE:
     case AV_PIX_FMT_YUV420P16LE:
     case AV_PIX_FMT_YUV422P16LE:
     case AV_PIX_FMT_YUV444P16LE:
@@ -1066,6 +1069,7 @@  av_cold void ff_sws_init_input_funcs(SwsContext *c)
     case AV_PIX_FMT_YUV444P10BE:
     case AV_PIX_FMT_YUV420P12BE:
     case AV_PIX_FMT_YUV422P12BE:
+    case AV_PIX_FMT_YUV444P12BE:
     case AV_PIX_FMT_YUV420P16BE:
     case AV_PIX_FMT_YUV422P16BE:
     case AV_PIX_FMT_YUV444P16BE:
diff --git a/tests/ref/fate/filter-pixfmts-scale b/tests/ref/fate/filter-pixfmts-scale
index 0a3f3f1..09c335b 100644
--- a/tests/ref/fate/filter-pixfmts-scale
+++ b/tests/ref/fate/filter-pixfmts-scale
@@ -62,7 +62,7 @@  yuv440p             4713a7b7ce80dd06923626d13589c098
 yuv444p             fd733672651ad5bbffb046fd67151fee
 yuv444p10be         34b38d54167df70044bdc08518d91009
 yuv444p10le         0812e3371c9589c6621408812f9e7a27
-yuv444p12be         936147950ba1b511570da85a0922abf3
+yuv444p12be         4fdc4bf4036c40ff575f9bc2229bf5d6
 yuv444p12le         4a9ec677190371ef5e342ffac1ace735
 yuv444p16be         e89fe5a4624ed06603580b4a74af9170
 yuv444p16le         6944d11048ff4013c5e60359faf1bd2d