History

lavc: move avcodec_profile_name() from avcodec.h to codec_id.h

Anton Khirnov committed 5 years ago

Commit 2628dff1 parent 000f3513 files · +15 −15Browse files

Unified · Split

3 files
  1. doc/APIchanges +2 −2
  2. libavcodec/avcodec.h +0 −13
  3. libavcodec/codec_id.h +13 −0
doc/APIchanges+2−2
@@ -15,8 +15,8 @@ libavutil: 2021-04-27 · 14 unmodified lines
1515 API changes, most recent first:
1616
1717 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_id.h
18− Move av_get_bits_per_sample() and av_get_exact_bits_per_sample()
19− from avcodec.h to codec_id.h.
18+ Move av_get_bits_per_sample(), av_get_exact_bits_per_sample(),
19+ and avcodec_profile_name() from avcodec.h to codec_id.h.
2020
2121 2021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h defs.h
2222 Add new installed header defs.h. The following definitions are moved
libavcodec/avcodec.h+0−13
@@ -3064,19 +3064,6 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode); · 3063 unmodified lines
30643064 */
30653065 const char *av_get_profile_name(const AVCodec *codec, int profile);
30663066
3067−/**
3068− * Return a name for the specified profile, if available.
3069− *
3070− * @param codec_id the ID of the codec to which the requested profile belongs
3071− * @param profile the profile value for which a name is requested
3072− * @return A name for the profile if found, NULL otherwise.
3073− *
3074− * @note unlike av_get_profile_name(), which searches a list of profiles
3075− * supported by a specific decoder or encoder implementation, this
3076− * function searches the list of profiles from the AVCodecDescriptor
3077− */
3078−const char *avcodec_profile_name(enum AVCodecID codec_id, int profile);
3079−
30803067 int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
30813068 int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);
30823069 //FIXME func typedef
libavcodec/codec_id.h+13−0
@@ -598,6 +598,19 @@ int av_get_bits_per_sample(enum AVCodecID codec_id); · 597 unmodified lines
598598 */
599599 int av_get_exact_bits_per_sample(enum AVCodecID codec_id);
600600
601+/**
602+ * Return a name for the specified profile, if available.
603+ *
604+ * @param codec_id the ID of the codec to which the requested profile belongs
605+ * @param profile the profile value for which a name is requested
606+ * @return A name for the profile if found, NULL otherwise.
607+ *
608+ * @note unlike av_get_profile_name(), which searches a list of profiles
609+ * supported by a specific decoder or encoder implementation, this
610+ * function searches the list of profiles from the AVCodecDescriptor
611+ */
612+const char *avcodec_profile_name(enum AVCodecID codec_id, int profile);
613+
601614 /**
602615 * @}
603616 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t