History

avcodec: MPEG-5 EVC codec registration

Added prerequisites that must be met before providing support for the MPEG-5 EVC codec - Added new entry to codec IDs list - Added new entry to the codec descriptor list - Bumped libavcodec minor version - Added profiles for EVC codec

Dawid Kozinski committed 3 years ago

Commit 637afea1 parent 45fa85a7 files · +23 −1Browse files

Unified · Split

7 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +3 −0
  3. libavcodec/codec_desc.c +8 −0
  4. libavcodec/codec_id.h +1 −0
  5. libavcodec/profiles.c +6 −0
  6. libavcodec/profiles.h +1 −0
  7. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2023-02-09 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2023-05-29 - xxxxxxxxxx - lavc 60.16.100 - avcodec.h codec_id.h
6+ Add AV_CODEC_ID_EVC, FF_PROFILE_EVC_BASELINE, and FF_PROFILE_EVC_MAIN.
7+
58 2023-05-29 - xxxxxxxxxx - lavu 58.12.100 - mathematics.h
69 Add av_bessel_i0()
710
libavcodec/avcodec.h+3−0
@@ -1715,6 +1715,9 @@ typedef struct AVCodecContext { · 1714 unmodified lines
17151715 #define FF_PROFILE_KLVA_SYNC 0
17161716 #define FF_PROFILE_KLVA_ASYNC 1
17171717
1718+#define FF_PROFILE_EVC_BASELINE 0
1719+#define FF_PROFILE_EVC_MAIN 1
1720+
17181721 /**
17191722 * level
17201723 * - encoding: Set by user.
libavcodec/codec_desc.c+8−0
@@ -1938,6 +1938,14 @@ static const AVCodecDescriptor codec_descriptors[] = { · 1937 unmodified lines
19381938 .long_name = NULL_IF_CONFIG_SMALL("PDV (PlayDate Video)"),
19391939 .props = AV_CODEC_PROP_LOSSY,
19401940 },
1941+ {
1942+ .id = AV_CODEC_ID_EVC,
1943+ .type = AVMEDIA_TYPE_VIDEO,
1944+ .name = "evc",
1945+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-5 EVC (Essential Video Coding)"),
1946+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
1947+ .profiles = NULL_IF_CONFIG_SMALL(ff_evc_profiles),
1948+ },
19411949
19421950 /* various PCM "codecs" */
19431951 {
libavcodec/codec_id.h+1−0
@@ -321,6 +321,7 @@ enum AVCodecID { · 320 unmodified lines
321321 AV_CODEC_ID_MEDIA100,
322322 AV_CODEC_ID_VQC,
323323 AV_CODEC_ID_PDV,
324+ AV_CODEC_ID_EVC,
324325
325326 /* various PCM "codecs" */
326327 AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs
libavcodec/profiles.c+6−0
@@ -194,4 +194,10 @@ const AVProfile ff_arib_caption_profiles[] = { · 193 unmodified lines
194194 { FF_PROFILE_UNKNOWN }
195195 };
196196
197+const AVProfile ff_evc_profiles[] = {
198+ { FF_PROFILE_EVC_BASELINE, "Baseline" },
199+ { FF_PROFILE_EVC_MAIN, "Main" },
200+ { FF_PROFILE_UNKNOWN },
201+};
202+
197203 #endif /* !CONFIG_SMALL */
libavcodec/profiles.h+1−0
@@ -74,5 +74,6 @@ extern const AVProfile ff_sbc_profiles[]; · 73 unmodified lines
7474 extern const AVProfile ff_prores_profiles[];
7575 extern const AVProfile ff_mjpeg_profiles[];
7676 extern const AVProfile ff_arib_caption_profiles[];
77+extern const AVProfile ff_evc_profiles[];
7778
7879 #endif /* AVCODEC_PROFILES_H */
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929
3030 #include "version_major.h"
3131
32−#define LIBAVCODEC_VERSION_MINOR 15
32+#define LIBAVCODEC_VERSION_MINOR 16
3333 #define LIBAVCODEC_VERSION_MICRO 100
3434
3535 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

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