From c979a9cdc37bd9665f03fc1143c2ef8bb3dc1924 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 9 Dec 2008 10:47:14 +0000 Subject: [PATCH] tests/check/elements/videocrop.c: Update the unit test for the new color values for BT.601 red. Original commit message from CVS: * tests/check/elements/videocrop.c: (check_1x1_buffer): Update the unit test for the new color values for BT.601 red. Fixes bug #563510. --- ChangeLog | 6 ++++++ tests/check/elements/videocrop.c | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index d94a138..e6ef952 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-09 Sebastian Dröge + + * tests/check/elements/videocrop.c: (check_1x1_buffer): + Update the unit test for the new color values for BT.601 red. + Fixes bug #563510. + 2008-12-09 Tim-Philipp Müller * ext/dv/gstdvdemux.c: (gst_dvdemux_handle_src_event): diff --git a/tests/check/elements/videocrop.c b/tests/check/elements/videocrop.c index c28f209..f26bf16 100644 --- a/tests/check/elements/videocrop.c +++ b/tests/check/elements/videocrop.c @@ -208,6 +208,7 @@ videocrop_test_cropping_deinit_context (GstVideoCropTestContext * ctx) gst_buffer_replace (&ctx->last_buf, NULL); memset (ctx, 0x00, sizeof (GstVideoCropTestContext)); } + typedef void (*GstVideoCropTestBufferFunc) (GstBuffer * buffer); static void @@ -254,23 +255,23 @@ check_1x1_buffer (GstBuffer * buf) /* the exact values we check for come from videotestsrc */ switch (format) { case GST_MAKE_FOURCC ('I', '4', '2', '0'): - fail_unless_equals_int (GST_BUFFER_DATA (buf)[0], 76); - fail_unless_equals_int (GST_BUFFER_DATA (buf)[8], 85); - fail_unless_equals_int (GST_BUFFER_DATA (buf)[12], 255); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[0], 81); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[8], 90); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[12], 240); break; case GST_MAKE_FOURCC ('Y', 'V', '1', '2'): - fail_unless_equals_int (GST_BUFFER_DATA (buf)[0], 76); - fail_unless_equals_int (GST_BUFFER_DATA (buf)[8], 255); - fail_unless_equals_int (GST_BUFFER_DATA (buf)[12], 85); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[0], 81); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[8], 240); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[12], 90); break; case GST_MAKE_FOURCC ('Y', '8', '0', '0'): - fail_unless_equals_int (GST_BUFFER_DATA (buf)[0], 76); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[0], 81); /* no chroma planes */ break; case GST_MAKE_FOURCC ('A', 'Y', 'U', 'V'): - fail_unless_equals_int (GST_BUFFER_DATA (buf)[1], 76); - fail_unless_equals_int (GST_BUFFER_DATA (buf)[2], 85); - fail_unless_equals_int (GST_BUFFER_DATA (buf)[3], 255); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[1], 81); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[2], 90); + fail_unless_equals_int (GST_BUFFER_DATA (buf)[3], 240); /* no chroma planes */ break; default: -- 2.7.4