summaryrefslogtreecommitdiff
path: root/libavcodec/codec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-21 18:58:23 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-10 16:51:44 +0200
commit7c9763070d9026197cb75909165545d7b8f330cf (patch)
treeeb8857d808d82bbb123642d6dfabef4b68831296 /libavcodec/codec.h
parentbb3648e6766fa3a3f323983f69b57c9b7821583c (diff)
lavc: move av_get_profile_name() from avcodec.h to codec.h
Diffstat (limited to 'libavcodec/codec.h')
-rw-r--r--libavcodec/codec.h9
1 files changed, 9 insertions, 0 deletions
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.