mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
tests/check/elements/audioconvert.c: Add another test that checks if conversion between standard 1 and 2 channel layo...
Original commit message from CVS: * tests/check/elements/audioconvert.c: (GST_START_TEST): Add another test that checks if conversion between standard 1 and 2 channel layouts with and without positions set is working.
This commit is contained in:
parent
d03bbd1e3e
commit
74d46a9977
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-05-21 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* tests/check/elements/audioconvert.c: (GST_START_TEST):
|
||||
Add another test that checks if conversion between standard 1 and 2
|
||||
channel layouts with and without positions set is working.
|
||||
|
||||
2008-05-21 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst-libs/gst/audio/multichannel.c:
|
||||
|
|
|
@ -846,6 +846,19 @@ GST_START_TEST (test_multichannel_conversion)
|
|||
in_caps, out, out_caps);
|
||||
}
|
||||
|
||||
{
|
||||
gint16 in[] = { 1, 2 };
|
||||
gint16 out[] = { 1, 1, 2, 2 };
|
||||
GstCaps *in_caps = get_int_caps (1, "BYTE_ORDER", 16, 16, TRUE);
|
||||
GstCaps *out_caps = get_int_caps (2, "BYTE_ORDER", 16, 16, TRUE);
|
||||
|
||||
RUN_CONVERSION ("1 channels to 2 with standard layout and no positions set",
|
||||
in, gst_caps_copy (in_caps), out, gst_caps_copy (out_caps));
|
||||
|
||||
RUN_CONVERSION ("2 channels to 1 with standard layout and no positions set",
|
||||
out, out_caps, in, in_caps);
|
||||
}
|
||||
|
||||
{
|
||||
gint16 in[] = { 1, 2 };
|
||||
gint16 out[] = { 1, 0, 2, 0 };
|
||||
|
|
Loading…
Reference in a new issue