aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-21 19:07:09 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-10 16:51:44 +0200
commit2628dff366b8a63303a34a4e6990a7d845f421bc (patch)
tree905b036b0163b030462c737c8b8c828e692c64f3 /libavcodec
parent000f35125f26d92a80b02d945ef2b3a3e2a11c20 (diff)
downloadffmpeg-2628dff366b8a63303a34a4e6990a7d845f421bc.tar.gz
lavc: move avcodec_profile_name() from avcodec.h to codec_id.h
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h13
-rw-r--r--libavcodec/codec_id.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index cec4a0cb24..3787504ec3 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3064,19 +3064,6 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode);
*/
const char *av_get_profile_name(const AVCodec *codec, int profile);
-/**
- * Return a name for the specified profile, if available.
- *
- * @param codec_id the ID of the codec to which the requested profile belongs
- * @param profile the profile value for which a name is requested
- * @return A name for the profile if found, NULL otherwise.
- *
- * @note unlike av_get_profile_name(), which searches a list of profiles
- * supported by a specific decoder or encoder implementation, this
- * function searches the list of profiles from the AVCodecDescriptor
- */
-const char *avcodec_profile_name(enum AVCodecID codec_id, 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_id.h b/libavcodec/codec_id.h
index 6141268096..3b1a71f8ea 100644
--- a/libavcodec/codec_id.h
+++ b/libavcodec/codec_id.h
@@ -599,6 +599,19 @@ int av_get_bits_per_sample(enum AVCodecID codec_id);
int av_get_exact_bits_per_sample(enum AVCodecID codec_id);
/**
+ * Return a name for the specified profile, if available.
+ *
+ * @param codec_id the ID of the codec to which the requested profile belongs
+ * @param profile the profile value for which a name is requested
+ * @return A name for the profile if found, NULL otherwise.
+ *
+ * @note unlike av_get_profile_name(), which searches a list of profiles
+ * supported by a specific decoder or encoder implementation, this
+ * function searches the list of profiles from the AVCodecDescriptor
+ */
+const char *avcodec_profile_name(enum AVCodecID codec_id, int profile);
+
+/**
* @}
*/