mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-08 16:54:03 +02:00
add sample_fmts infrastructure: AVCodec->sample_fmts and SAMPLE_FMT_NB enum.
Originally committed as revision 14412 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6916e38a1c
commit
88a07af740
@ -347,6 +347,7 @@ enum SampleFormat {
|
|||||||
SAMPLE_FMT_S24, ///< signed 24 bits
|
SAMPLE_FMT_S24, ///< signed 24 bits
|
||||||
SAMPLE_FMT_S32, ///< signed 32 bits
|
SAMPLE_FMT_S32, ///< signed 32 bits
|
||||||
SAMPLE_FMT_FLT, ///< float
|
SAMPLE_FMT_FLT, ///< float
|
||||||
|
SAMPLE_FMT_NB ///< Number of sample formats. DO NOT USE if dynamically linking to libavcodec
|
||||||
};
|
};
|
||||||
|
|
||||||
/* in bytes */
|
/* in bytes */
|
||||||
@ -2264,6 +2265,7 @@ typedef struct AVCodec {
|
|||||||
*/
|
*/
|
||||||
const char *long_name;
|
const char *long_name;
|
||||||
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
|
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
|
||||||
|
const enum SampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1
|
||||||
} AVCodec;
|
} AVCodec;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user