summaryrefslogtreecommitdiff
path: root/tests/check/elements/videocrop.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2012-11-08 17:51:00 +0100
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-11-10 02:40:28 +0100
commit3175a5d82211bd87b6280abfa048f153f2fa440f (patch)
treeb201a0374a7f71dabe6c1475e76f5aaadb5cd6c4 /tests/check/elements/videocrop.c
parent42ec3552f2dfd77e0e83663369e78838c0463ab6 (diff)
downloadgstreamer-plugins-good-3175a5d82211bd87b6280abfa048f153f2fa440f.tar.gz
videocrop: Add support for NV12/NV21
https://bugzilla.gnome.org/show_bug.cgi?id=687965
Diffstat (limited to 'tests/check/elements/videocrop.c')
-rw-r--r--tests/check/elements/videocrop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check/elements/videocrop.c b/tests/check/elements/videocrop.c
index 9f68e9575..fd0d6381d 100644
--- a/tests/check/elements/videocrop.c
+++ b/tests/check/elements/videocrop.c
@@ -281,6 +281,16 @@ check_1x1_buffer (GstBuffer * buf)
fail_unless_equals_int (GST_BUFFER_DATA (buf)[3], 240);
/* no chroma planes */
break;
+ case GST_MAKE_FOURCC ('N', 'V', '1', '2'):
+ 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)[9], 240);
+ break;
+ case GST_MAKE_FOURCC ('N', 'V', '2', '1'):
+ 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)[9], 90);
+ break;
default:
GST_LOG ("not checking %" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (format));
break;