swscale: Disallow conversion to GBRP16
authorMartin Storsjö <martin@martin.st>
Mon, 11 Feb 2013 11:37:29 +0000 (13:37 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 11 Feb 2013 18:03:16 +0000 (20:03 +0200)
This reverts parts of d6d5ef5534d582, that didn't work right. (The
tests that were added failed on big endian, and the output looked
garbled on little endian as well.)

This is due to the fact that the intermediate scaling values (from
e.g. hScale8To19_c or hScale16To19_c) are stored as int32_t and
thus requires a separate output function, while yuv2gbrp_full_X_c
only interprets it as int16_t.

Signed-off-by: Martin Storsjö <martin@martin.st>
libswscale/utils.c
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip

index b216eff..6bbdb64 100644 (file)
@@ -168,8 +168,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
     [AV_PIX_FMT_GBRP9BE]     = { 1, 1 },
     [AV_PIX_FMT_GBRP10LE]    = { 1, 1 },
     [AV_PIX_FMT_GBRP10BE]    = { 1, 1 },
     [AV_PIX_FMT_GBRP9BE]     = { 1, 1 },
     [AV_PIX_FMT_GBRP10LE]    = { 1, 1 },
     [AV_PIX_FMT_GBRP10BE]    = { 1, 1 },
-    [AV_PIX_FMT_GBRP16LE]    = { 1, 1 },
-    [AV_PIX_FMT_GBRP16BE]    = { 1, 1 },
+    [AV_PIX_FMT_GBRP16LE]    = { 1, 0 },
+    [AV_PIX_FMT_GBRP16BE]    = { 1, 0 },
 };
 
 int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
 };
 
 int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
index 683db66..23452ae 100644 (file)
@@ -15,8 +15,6 @@ bgra                76a18a5151242fa137133f604cd624d2
 gbrp                76204621e200a3cc633012f6720c7005
 gbrp10be            2ca4a4a589a7dc461ff186913c7a69e5
 gbrp10le            46176f1fcc6e67f9862115fe373f73d3
 gbrp                76204621e200a3cc633012f6720c7005
 gbrp10be            2ca4a4a589a7dc461ff186913c7a69e5
 gbrp10le            46176f1fcc6e67f9862115fe373f73d3
-gbrp16be            b577122bb4fc34274b9fc2d1c6b934d0
-gbrp16le            7a8fc641745c4f363348522a687d2a08
 gbrp9be             981c2c1b0ef1791824b4c7518331bc2e
 gbrp9le             25fb915ed11d07d631e0e7b78d54bebf
 gray                db08f7f0751900347e6b8649e4164d21
 gbrp9be             981c2c1b0ef1791824b4c7518331bc2e
 gbrp9le             25fb915ed11d07d631e0e7b78d54bebf
 gray                db08f7f0751900347e6b8649e4164d21
index 683db66..23452ae 100644 (file)
@@ -15,8 +15,6 @@ bgra                76a18a5151242fa137133f604cd624d2
 gbrp                76204621e200a3cc633012f6720c7005
 gbrp10be            2ca4a4a589a7dc461ff186913c7a69e5
 gbrp10le            46176f1fcc6e67f9862115fe373f73d3
 gbrp                76204621e200a3cc633012f6720c7005
 gbrp10be            2ca4a4a589a7dc461ff186913c7a69e5
 gbrp10le            46176f1fcc6e67f9862115fe373f73d3
-gbrp16be            b577122bb4fc34274b9fc2d1c6b934d0
-gbrp16le            7a8fc641745c4f363348522a687d2a08
 gbrp9be             981c2c1b0ef1791824b4c7518331bc2e
 gbrp9le             25fb915ed11d07d631e0e7b78d54bebf
 gray                db08f7f0751900347e6b8649e4164d21
 gbrp9be             981c2c1b0ef1791824b4c7518331bc2e
 gbrp9le             25fb915ed11d07d631e0e7b78d54bebf
 gray                db08f7f0751900347e6b8649e4164d21
index 683db66..23452ae 100644 (file)
@@ -15,8 +15,6 @@ bgra                76a18a5151242fa137133f604cd624d2
 gbrp                76204621e200a3cc633012f6720c7005
 gbrp10be            2ca4a4a589a7dc461ff186913c7a69e5
 gbrp10le            46176f1fcc6e67f9862115fe373f73d3
 gbrp                76204621e200a3cc633012f6720c7005
 gbrp10be            2ca4a4a589a7dc461ff186913c7a69e5
 gbrp10le            46176f1fcc6e67f9862115fe373f73d3
-gbrp16be            b577122bb4fc34274b9fc2d1c6b934d0
-gbrp16le            7a8fc641745c4f363348522a687d2a08
 gbrp9be             981c2c1b0ef1791824b4c7518331bc2e
 gbrp9le             25fb915ed11d07d631e0e7b78d54bebf
 gray                db08f7f0751900347e6b8649e4164d21
 gbrp9be             981c2c1b0ef1791824b4c7518331bc2e
 gbrp9le             25fb915ed11d07d631e0e7b78d54bebf
 gray                db08f7f0751900347e6b8649e4164d21
index fde07b0..80816ec 100644 (file)
@@ -15,8 +15,6 @@ bgra                a5e7040f9a80cccd65e5acf2ca09ace5
 gbrp                205c50f8359cb4ba2827a7711dea2cc6
 gbrp10be            30b7f9d5ef5da474fb794743146236aa
 gbrp10le            2e9949a01fe4c38774728e34795165cc
 gbrp                205c50f8359cb4ba2827a7711dea2cc6
 gbrp10be            30b7f9d5ef5da474fb794743146236aa
 gbrp10le            2e9949a01fe4c38774728e34795165cc
-gbrp16be            4045de229757b7a285fea274b9599c0d
-gbrp16le            f71e77371c0c5781e46af85ea95f92a3
 gbrp9be             6bac01a7f64a381521b2149fc46f4178
 gbrp9le             4b6cba7acf7886c13db122e590ec6b1f
 gray                d7786a7d9d99ac74230cc045cab5632c
 gbrp9be             6bac01a7f64a381521b2149fc46f4178
 gbrp9le             4b6cba7acf7886c13db122e590ec6b1f
 gray                d7786a7d9d99ac74230cc045cab5632c
index 3909d9a..f0ad5eb 100644 (file)
@@ -15,8 +15,6 @@ bgra                7f9b799fb48544e49ce93e91d7f9fca8
 gbrp                25c1bce192daefab910d51a56b52199e
 gbrp10be            6fe980f9ca94cbcdb9e01f4e906fdf19
 gbrp10le            f793a1d96d3524c6a17e53356c415c4e
 gbrp                25c1bce192daefab910d51a56b52199e
 gbrp10be            6fe980f9ca94cbcdb9e01f4e906fdf19
 gbrp10le            f793a1d96d3524c6a17e53356c415c4e
-gbrp16be            6517b6c4fde50fd451e6fb16ccd204c9
-gbrp16le            5b8f07a424c3c2843b39ba5dd9803d3e
 gbrp9be             e10dc3a2566b065260a45356ef08c1cd
 gbrp9le             f25105a33f18d6bcca3205c67ec106be
 gray                30d9014a9d43b5f37e7aa64be3a3ecfc
 gbrp9be             e10dc3a2566b065260a45356ef08c1cd
 gbrp9le             f25105a33f18d6bcca3205c67ec106be
 gray                30d9014a9d43b5f37e7aa64be3a3ecfc