tests/check/elements/audioconvert.c: interpret the out[] buffer in the order the bytes are actually put in, which is ...

Original commit message from CVS:

* tests/check/elements/audioconvert.c: (verify_convert),
(GST_START_TEST):
interpret the out[] buffer in the order the bytes are actually
put in, which is LITTLE_ENDIAN, not BYTE_ORDER.
Other tests should use BYTE_ORDER since the array is filled in
with actual values
This commit is contained in:
Thomas Vander Stichele 2006-04-29 13:09:52 +00:00
parent 27f506f583
commit 0774022d5b
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,12 @@
2006-04-29 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/check/elements/audioconvert.c: (verify_convert),
(GST_START_TEST):
interpret the out[] buffer in the order the bytes are actually
put in, which is LITTLE_ENDIAN, not BYTE_ORDER.
Other tests should use BYTE_ORDER since the array is filled in
with actual values
2006-04-29 Thomas Vander Stichele <thomas at apestaart dot org>
* tests/check/elements/audioconvert.c: (verify_convert),

View file

@ -308,11 +308,13 @@ GST_START_TEST (test_int_conversion)
{
gint8 in[] = { 0, 1, 127 };
guint8 out[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x7f };
/* out has the bytes in little-endian, so that's how they should be
* interpreted during conversion */
RUN_CONVERSION ("8 to 24 signed", in, get_int_caps (1, "BYTE_ORDER", 8, 8,
TRUE), out, get_int_caps (1, "BYTE_ORDER", 24, 24, TRUE)
TRUE), out, get_int_caps (1, "LITTLE_ENDIAN", 24, 24, TRUE)
);
RUN_CONVERSION ("24 signed to 8", out, get_int_caps (1, "BYTE_ORDER", 24,
RUN_CONVERSION ("24 signed to 8", out, get_int_caps (1, "LITTLE_ENDIAN", 24,
24, TRUE), in, get_int_caps (1, "BYTE_ORDER", 8, 8, TRUE)
);
}