diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-03-19 16:47:15 +0100 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-03-19 15:07:14 -0700 |
commit | bb93140728e773d13d7e5bb3f3879b16dbea45f1 (patch) | |
tree | b14d5a7ae4ede13f2eb494bd9c5ae11a322a4e78 /ext | |
parent | e30f38531ce74ebb33121505f8b2bcb22ff2b0af (diff) | |
download | gstreamer-plugins-bad-bb93140728e773d13d7e5bb3f3879b16dbea45f1.tar.gz |
cog: Generate correct YUV->RGB tables
Fixes: #613332.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/cog/generate_tables.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/cog/generate_tables.c b/ext/cog/generate_tables.c index ca6e0f853..2bc8dc1c6 100644 --- a/ext/cog/generate_tables.c +++ b/ext/cog/generate_tables.c @@ -112,17 +112,16 @@ main (int argc, char *argv[]) g_print ("static const int cog_ycbcr_to_rgb_matrix_%dbit_%s[] = {\n", bits, cm ? "hdtv" : "sdtv"); g_print (" %d, %d, %d, %d,\n", - (int) rint (matrix.m[0][0] - ((bits == 8) ? 256 : 0)), + (int) rint (matrix.m[0][0]), (int) rint (matrix.m[0][1]), - (int) rint (matrix.m[0][2] - ((bits == 8) ? 256 : 0)), - (int) rint (matrix.m[0][3])); + (int) rint (matrix.m[0][2]), (int) rint (matrix.m[0][3])); g_print (" %d, %d, %d, %d,\n", - (int) rint (matrix.m[1][0] - ((bits == 8) ? 256 : 0)), + (int) rint (matrix.m[1][0]), (int) rint (matrix.m[1][1]), (int) rint (matrix.m[1][2]), (int) rint (matrix.m[1][3])); g_print (" %d, %d, %d, %d,\n", - (int) rint (matrix.m[2][0] - ((bits == 8) ? 256 : 0)), - (int) rint (matrix.m[2][1] - ((bits == 8) ? 512 : 0)), + (int) rint (matrix.m[2][0]), + (int) rint (matrix.m[2][1]), (int) rint (matrix.m[2][2]), (int) rint (matrix.m[2][3])); g_print ("};\n"); } |