diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-21 18:58:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-06-10 16:51:44 +0200 |
commit | 7c9763070d9026197cb75909165545d7b8f330cf (patch) | |
tree | eb8857d808d82bbb123642d6dfabef4b68831296 | |
parent | bb3648e6766fa3a3f323983f69b57c9b7821583c (diff) | |
download | ffmpeg-7c9763070d9026197cb75909165545d7b8f330cf.tar.gz |
lavc: move av_get_profile_name() from avcodec.h to codec.h
-rw-r--r-- | doc/APIchanges | 3 | ||||
-rw-r--r-- | libavcodec/avcodec.h | 9 | ||||
-rw-r--r-- | libavcodec/codec.h | 9 |
3 files changed, 12 insertions, 9 deletions
diff --git a/doc/APIchanges b/doc/APIchanges index ed37ee19a4..55171311ed 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6 +14,9 @@ libavutil: 2021-04-27 API changes, most recent first: +2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec.h + Move av_get_profile_name() from avcodec.h to codec.h. + 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_par.h Move av_get_audio_frame_duration2() from avcodec.h to codec_par.h. diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index eed4e5b777..dabd60386e 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3055,15 +3055,6 @@ enum AVPixelFormat avcodec_default_get_format(struct AVCodecContext *s, const en void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); -/** - * Return a name for the specified profile, if available. - * - * @param codec the codec that is searched for the given profile - * @param profile the profile value for which a name is requested - * @return A name for the profile if found, NULL otherwise. - */ -const char *av_get_profile_name(const AVCodec *codec, int profile); - int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size); int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count); //FIXME func typedef diff --git a/libavcodec/codec.h b/libavcodec/codec.h index c8653e3b31..cedd106953 100644 --- a/libavcodec/codec.h +++ b/libavcodec/codec.h @@ -402,6 +402,15 @@ int av_codec_is_encoder(const AVCodec *codec); */ int av_codec_is_decoder(const AVCodec *codec); +/** + * Return a name for the specified profile, if available. + * + * @param codec the codec that is searched for the given profile + * @param profile the profile value for which a name is requested + * @return A name for the profile if found, NULL otherwise. + */ +const char *av_get_profile_name(const AVCodec *codec, int profile); + enum { /** * The codec supports this format via the hw_device_ctx interface. |