comparison audioconvert.h @ 8098:c2ab7a8958ed libavcodec

Add audio channel layout API to libavcodec.
author pross
date Sat, 01 Nov 2008 05:03:42 +0000
parents c4a4495715dd
children e9d9d946f213
comparison
equal deleted inserted replaced
8097:7818ed859f66 8098:c2ab7a8958ed
52 /** 52 /**
53 * @return SAMPLE_FMT_NONE on error 53 * @return SAMPLE_FMT_NONE on error
54 */ 54 */
55 enum SampleFormat avcodec_get_sample_fmt(const char* name); 55 enum SampleFormat avcodec_get_sample_fmt(const char* name);
56 56
57 /**
58 * @return NULL on error
59 */
60 const char *avcodec_get_channel_name(int channel_id);
61
62 /**
63 * Return description of channel layout
64 */
65 void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout);
66
67 /**
68 * Guess the channel layout
69 * @param nb_channels
70 * @param codec_id Codec identifier, or CODEC_ID_NONE if unknown
71 * @param fmt_name Format name, or NULL if unknown
72 * @return Channel layout mask
73 */
74 int64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
75
76
57 struct AVAudioConvert; 77 struct AVAudioConvert;
58 typedef struct AVAudioConvert AVAudioConvert; 78 typedef struct AVAudioConvert AVAudioConvert;
59 79
60 /** 80 /**
61 * Create an audio sample format converter context 81 * Create an audio sample format converter context