aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2006-02-21 22:05:13 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2006-02-21 22:05:13 +0000
commit1319a77b017137b676bad3dfb80bffb058c2bc8f (patch)
treece98392d7072bffb7e53fa86c4ccd39ea9c0dfa1 /libavcodec/avcodec.h
parent33f5e2ec3ec7e2a8a3e8092f9aba802bd9cc2be2 (diff)
downloadffmpeg-1319a77b017137b676bad3dfb80bffb058c2bc8f.tar.gz
added none/8bit/24bit audio formats and defaulting to s16 for now (once the system works like pix_fmt, the defaulting should be changed to SAMPLE_FMT_NONE)
Originally committed as revision 5045 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 9f630fed69..a9f3164dee 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -266,11 +266,14 @@ enum PixelFormat {
};
/* currently unused, may be used if 24/32 bits samples ever supported */
+/* all in native endian */
enum SampleFormat {
- SAMPLE_FMT_S16 = 0, ///< signed 16 bits
+ SAMPLT_FMT_NONE = -1,
+ SAMPLE_FMT_U8, ///< unsigned 8 bits
+ SAMPLE_FMT_S16, ///< signed 16 bits
+ SAMPLE_FMT_S24, ///< signed 24 bits
SAMPLE_FMT_S32, ///< signed 32 bits
SAMPLE_FMT_FLT, ///< float
- SAMPLE_FMT_DBL, ///< double
};
/* in bytes */