[FFmpeg-cvslog] swr-test: add sorted formats table from avr

Michael Niedermayer git at videolan.org
Thu Apr 26 15:51:16 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 26 09:54:01 2012 +0200| [dd63e275748ce3003e2ead88b6e35a9033970000] | committer: Michael Niedermayer

swr-test: add sorted formats table from avr

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd63e275748ce3003e2ead88b6e35a9033970000
---

 libswresample/swresample_test.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/libswresample/swresample_test.c b/libswresample/swresample_test.c
index 5f88f6a..2e8860b 100644
--- a/libswresample/swresample_test.c
+++ b/libswresample/swresample_test.c
@@ -80,6 +80,19 @@ static void shift(uint8_t *a[], int index, int ch_count, enum AVSampleFormat f){
     }
 }
 
+static const enum AVSampleFormat formats[] = {
+    AV_SAMPLE_FMT_S16,
+    AV_SAMPLE_FMT_FLTP,
+    AV_SAMPLE_FMT_S16P,
+    AV_SAMPLE_FMT_FLT,
+    AV_SAMPLE_FMT_S32P,
+    AV_SAMPLE_FMT_S32,
+    AV_SAMPLE_FMT_U8P,
+    AV_SAMPLE_FMT_U8,
+    AV_SAMPLE_FMT_DBLP,
+    AV_SAMPLE_FMT_DBL,
+};
+
 uint64_t layouts[]={
 AV_CH_LAYOUT_MONO                    ,
 AV_CH_LAYOUT_STEREO                  ,



More information about the ffmpeg-cvslog mailing list