24 bit conversion check

Original commit message from CVS:
24 bit conversion check
This commit is contained in:
Thomas Vander Stichele 2005-09-17 17:17:59 +00:00
parent 322ebf6427
commit bb4f3fa6a0
4 changed files with 34 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-09-17 Thomas Vander Stichele <thomas at apestaart dot org>
* check/elements/audioconvert.c: (GST_START_TEST):
try out 24 bit conversion
2005-09-15 Thomas Vander Stichele <thomas at apestaart dot org> 2005-09-15 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/vorbis/vorbisenc.c: (gst_vorbisenc_init), * ext/vorbis/vorbisenc.c: (gst_vorbisenc_init),

View file

@ -251,6 +251,20 @@ GST_START_TEST (test_int_conversion)
in, get_int_caps (1, "BYTE_ORDER", 8, 8, FALSE) in, get_int_caps (1, "BYTE_ORDER", 8, 8, FALSE)
); );
} }
/* 8 <-> 24 signed */
/* NOTE: if audioconvert was doing dithering we'd have a problem */
{
gint8 in[] = { 0, 1, 127 };
guint8 out[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x7f };
RUN_CONVERSION (in, get_int_caps (1, "BYTE_ORDER", 8, 8, TRUE),
out, get_int_caps (1, "BYTE_ORDER", 24, 24, TRUE)
);
RUN_CONVERSION (out, get_int_caps (1, "BYTE_ORDER", 24, 24, TRUE),
in, get_int_caps (1, "BYTE_ORDER", 8, 8, TRUE)
);
}
} }
GST_END_TEST; GST_END_TEST;

2
common

@ -1 +1 @@
Subproject commit 62cd70d46eb00c3eb6b973b8a3b5fe6c202dbb29 Subproject commit 39250a956e1dfc010fe9f9d93ca1e2c3a343cdca

View file

@ -251,6 +251,20 @@ GST_START_TEST (test_int_conversion)
in, get_int_caps (1, "BYTE_ORDER", 8, 8, FALSE) in, get_int_caps (1, "BYTE_ORDER", 8, 8, FALSE)
); );
} }
/* 8 <-> 24 signed */
/* NOTE: if audioconvert was doing dithering we'd have a problem */
{
gint8 in[] = { 0, 1, 127 };
guint8 out[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x7f };
RUN_CONVERSION (in, get_int_caps (1, "BYTE_ORDER", 8, 8, TRUE),
out, get_int_caps (1, "BYTE_ORDER", 24, 24, TRUE)
);
RUN_CONVERSION (out, get_int_caps (1, "BYTE_ORDER", 24, 24, TRUE),
in, get_int_caps (1, "BYTE_ORDER", 8, 8, TRUE)
);
}
} }
GST_END_TEST; GST_END_TEST;