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
15API changes, most recent first:15API changes, most recent first:
16 16
172021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h codec_id.h172021-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()18 Move av_get_bits_per_sample(), av_get_exact_bits_per_sample(),
19 from avcodec.h to codec_id.h.19 and avcodec_profile_name() from avcodec.h to codec_id.h.
20 20
212021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h defs.h212021-xx-xx - xxxxxxxxxx - lavc 59.1.100 - avcodec.h defs.h
22 Add new installed header defs.h. The following definitions are moved22 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
3064 */3064 */
3065const char *av_get_profile_name(const AVCodec *codec, int profile);3065const char *av_get_profile_name(const AVCodec *codec, int profile);
3066 3066
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 */
3078const char *avcodec_profile_name(enum AVCodecID codec_id, int profile);
3079
3080int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);3067int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
3081int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);3068int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);
3082//FIXME func typedef3069//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
598 */598 */
599int av_get_exact_bits_per_sample(enum AVCodecID codec_id);599int av_get_exact_bits_per_sample(enum AVCodecID codec_id);
600 600
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 */
612const char *avcodec_profile_name(enum AVCodecID codec_id, int profile);
613
601/**614/**
602 * @}615 * @}
603 */616 */

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