mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec.h: move avcodec_get_{type,name} to codec_id.h
This commit is contained in:
parent
ba6cada92e
commit
b5aee6086b
|
@ -4115,17 +4115,6 @@ attribute_deprecated
|
||||||
int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op));
|
int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the type of the given codec.
|
|
||||||
*/
|
|
||||||
enum AVMediaType avcodec_get_type(enum AVCodecID codec_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the name of a codec.
|
|
||||||
* @return a static string identifying the codec; never NULL
|
|
||||||
*/
|
|
||||||
const char *avcodec_get_name(enum AVCodecID id);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return a positive value if s is open (i.e. avcodec_open2() was called on it
|
* @return a positive value if s is open (i.e. avcodec_open2() was called on it
|
||||||
* with no corresponding avcodec_close()), 0 otherwise.
|
* with no corresponding avcodec_close()), 0 otherwise.
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
#ifndef AVCODEC_CODEC_ID_H
|
#ifndef AVCODEC_CODEC_ID_H
|
||||||
#define AVCODEC_CODEC_ID_H
|
#define AVCODEC_CODEC_ID_H
|
||||||
|
|
||||||
|
#include "libavutil/avutil.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup lavc_core
|
* @addtogroup lavc_core
|
||||||
* @{
|
* @{
|
||||||
|
@ -556,6 +558,16 @@ enum AVCodecID {
|
||||||
AV_CODEC_ID_WRAPPED_AVFRAME = 0x21001, ///< Passthrough codec, AVFrames wrapped in AVPacket
|
AV_CODEC_ID_WRAPPED_AVFRAME = 0x21001, ///< Passthrough codec, AVFrames wrapped in AVPacket
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the type of the given codec.
|
||||||
|
*/
|
||||||
|
enum AVMediaType avcodec_get_type(enum AVCodecID codec_id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the name of a codec.
|
||||||
|
* @return a static string identifying the codec; never NULL
|
||||||
|
*/
|
||||||
|
const char *avcodec_get_name(enum AVCodecID id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
|
Loading…
Reference in New Issue