summaryrefslogtreecommitdiff
path: root/ext/cog/generate_tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/cog/generate_tables.c')
-rw-r--r--ext/cog/generate_tables.c11
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");
}