Commit d192ac3e authored by Martin Storsjö's avatar Martin Storsjö

swscale: Disallow conversion to GBRP16

This reverts parts of d6d5ef55, 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: 's avatarMartin Storsjö <martin@martin.st>
parent 62a43d30
......@@ -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_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)
......
......@@ -15,8 +15,6 @@ bgra 76a18a5151242fa137133f604cd624d2
gbrp 76204621e200a3cc633012f6720c7005
gbrp10be 2ca4a4a589a7dc461ff186913c7a69e5
gbrp10le 46176f1fcc6e67f9862115fe373f73d3
gbrp16be b577122bb4fc34274b9fc2d1c6b934d0
gbrp16le 7a8fc641745c4f363348522a687d2a08
gbrp9be 981c2c1b0ef1791824b4c7518331bc2e
gbrp9le 25fb915ed11d07d631e0e7b78d54bebf
gray db08f7f0751900347e6b8649e4164d21
......
......@@ -15,8 +15,6 @@ bgra 76a18a5151242fa137133f604cd624d2
gbrp 76204621e200a3cc633012f6720c7005
gbrp10be 2ca4a4a589a7dc461ff186913c7a69e5
gbrp10le 46176f1fcc6e67f9862115fe373f73d3
gbrp16be b577122bb4fc34274b9fc2d1c6b934d0
gbrp16le 7a8fc641745c4f363348522a687d2a08
gbrp9be 981c2c1b0ef1791824b4c7518331bc2e
gbrp9le 25fb915ed11d07d631e0e7b78d54bebf
gray db08f7f0751900347e6b8649e4164d21
......
......@@ -15,8 +15,6 @@ bgra 76a18a5151242fa137133f604cd624d2
gbrp 76204621e200a3cc633012f6720c7005
gbrp10be 2ca4a4a589a7dc461ff186913c7a69e5
gbrp10le 46176f1fcc6e67f9862115fe373f73d3
gbrp16be b577122bb4fc34274b9fc2d1c6b934d0
gbrp16le 7a8fc641745c4f363348522a687d2a08
gbrp9be 981c2c1b0ef1791824b4c7518331bc2e
gbrp9le 25fb915ed11d07d631e0e7b78d54bebf
gray db08f7f0751900347e6b8649e4164d21
......
......@@ -15,8 +15,6 @@ bgra a5e7040f9a80cccd65e5acf2ca09ace5
gbrp 205c50f8359cb4ba2827a7711dea2cc6
gbrp10be 30b7f9d5ef5da474fb794743146236aa
gbrp10le 2e9949a01fe4c38774728e34795165cc
gbrp16be 4045de229757b7a285fea274b9599c0d
gbrp16le f71e77371c0c5781e46af85ea95f92a3
gbrp9be 6bac01a7f64a381521b2149fc46f4178
gbrp9le 4b6cba7acf7886c13db122e590ec6b1f
gray d7786a7d9d99ac74230cc045cab5632c
......
......@@ -15,8 +15,6 @@ bgra 7f9b799fb48544e49ce93e91d7f9fca8
gbrp 25c1bce192daefab910d51a56b52199e
gbrp10be 6fe980f9ca94cbcdb9e01f4e906fdf19
gbrp10le f793a1d96d3524c6a17e53356c415c4e
gbrp16be 6517b6c4fde50fd451e6fb16ccd204c9
gbrp16le 5b8f07a424c3c2843b39ba5dd9803d3e
gbrp9be e10dc3a2566b065260a45356ef08c1cd
gbrp9le f25105a33f18d6bcca3205c67ec106be
gray 30d9014a9d43b5f37e7aa64be3a3ecfc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment