Mercurial > libavcodec.hg
comparison avcodec.h @ 3136:ddf6d81a6369 libavcodec
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)
author | alex |
---|---|
date | Tue, 21 Feb 2006 22:05:13 +0000 |
parents | f16ccfe674cc |
children | 870bbd067df8 |
comparison
equal
deleted
inserted
replaced
3135:41a01cea8885 | 3136:ddf6d81a6369 |
---|---|
264 PIX_FMT_UYVY411, ///< Packed pixel, Cb Y0 Y1 Cr Y2 Y3 | 264 PIX_FMT_UYVY411, ///< Packed pixel, Cb Y0 Y1 Cr Y2 Y3 |
265 PIX_FMT_NB, | 265 PIX_FMT_NB, |
266 }; | 266 }; |
267 | 267 |
268 /* currently unused, may be used if 24/32 bits samples ever supported */ | 268 /* currently unused, may be used if 24/32 bits samples ever supported */ |
269 /* all in native endian */ | |
269 enum SampleFormat { | 270 enum SampleFormat { |
270 SAMPLE_FMT_S16 = 0, ///< signed 16 bits | 271 SAMPLT_FMT_NONE = -1, |
272 SAMPLE_FMT_U8, ///< unsigned 8 bits | |
273 SAMPLE_FMT_S16, ///< signed 16 bits | |
274 SAMPLE_FMT_S24, ///< signed 24 bits | |
271 SAMPLE_FMT_S32, ///< signed 32 bits | 275 SAMPLE_FMT_S32, ///< signed 32 bits |
272 SAMPLE_FMT_FLT, ///< float | 276 SAMPLE_FMT_FLT, ///< float |
273 SAMPLE_FMT_DBL, ///< double | |
274 }; | 277 }; |
275 | 278 |
276 /* in bytes */ | 279 /* in bytes */ |
277 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio | 280 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio |
278 | 281 |