summaryrefslogtreecommitdiff
path: root/libavcodec/audioconvert.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-21 19:28:52 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-21 19:28:52 +0000
commit176a6157c06e020ab6e8522d34ccb9e218435abc (patch)
treeac15c39650f23f22c49656a9b7097bad67fc5155 /libavcodec/audioconvert.h
parent7df2214328d2b450877294e1fd1c4bf5bd8c022c (diff)
Move audio channel API from libavcodec to libavcore.
Originally committed as revision 25787 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/audioconvert.h')
-rw-r--r--libavcodec/audioconvert.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/libavcodec/audioconvert.h b/libavcodec/audioconvert.h
index a1e61c263d..6fe0fb674c 100644
--- a/libavcodec/audioconvert.h
+++ b/libavcodec/audioconvert.h
@@ -52,22 +52,30 @@ attribute_deprecated
enum AVSampleFormat avcodec_get_sample_fmt(const char* name);
#endif
-/**
- * @return NULL on error
- */
+#if FF_API_OLD_AUDIOCONVERT
+attribute_deprecated
const char *avcodec_get_channel_name(int channel_id);
/**
- * @return channel layout that matches name, 0 if no match
+ * @deprecated Use av_get_channel_layout() instead.
*/
+attribute_deprecated
int64_t avcodec_get_channel_layout(const char *name);
/**
- * Return description of channel layout
+ * @deprecated Use av_get_channel_layout_string() instead.
*/
+attribute_deprecated
void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout);
/**
+ * @deprecated Use av_get_channel_layout_nb_channels() instead.
+ */
+attribute_deprecated
+int avcodec_channel_layout_num_channels(int64_t channel_layout);
+#endif
+
+/**
* Guess the channel layout
* @param nb_channels
* @param codec_id Codec identifier, or CODEC_ID_NONE if unknown
@@ -76,11 +84,6 @@ void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels,
*/
int64_t avcodec_guess_channel_layout(int nb_channels, enum CodecID codec_id, const char *fmt_name);
-/**
- * @return the number of channels in the channel layout.
- */
-int avcodec_channel_layout_num_channels(int64_t channel_layout);
-
struct AVAudioConvert;
typedef struct AVAudioConvert AVAudioConvert;