History

Merge commit 'c5fca0174db9ed45be821177f49bd9633152704d'

* commit 'c5fca0174db9ed45be821177f49bd9633152704d': lavc: add a property for marking codecs that support frame reordering Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/codec_desc.c libavcodec/version.h

Michael Niedermayer committed 12 years ago

Commit 2e5c8b02 parents 5003b8b c5fca014 files · +30 −17Browse files

Unified · Split

4 files
  1. doc/APIchanges +3 −0
  2. libavcodec/avcodec.h +10 −0
  3. libavcodec/codec_desc.c +16 −16
  4. libavcodec/version.h +1 −1
doc/APIchanges+3−0
@@ -15,6 +15,9 @@ libavutil: 2012-10-22 · 14 unmodified lines
1515
1616 API changes, most recent first:
1717
18+2014-xx-xx - xxxxxxx - lavc 55.57.0 - avcodec.h
19+ Add AV_CODEC_PROP_REORDER to mark codecs supporting frame reordering.
20+
1821 2014-07-27 - XXXXXXX - lavc 55.70.100 - avdct.h
1922 Add AVDCT / avcodec_dct_alloc() / avcodec_dct_init().
2023
libavcodec/avcodec.h+10−0
@@ -595,6 +595,16 @@ typedef struct AVCodecDescriptor { · 594 unmodified lines
595595 * Codec supports lossless compression. Audio and video codecs only.
596596 */
597597 #define AV_CODEC_PROP_LOSSLESS (1 << 2)
598+/**
599+ * Codec supports frame reordering. That is, the coded order (the order in which
600+ * the encoded packets are output by the encoders / stored / input to the
601+ * decoders) may be different from the presentation order of the corresponding
602+ * frames.
603+ *
604+ * For codecs that do not have this property set, PTS and DTS should always be
605+ * equal.
606+ */
607+#define AV_CODEC_PROP_REORDER (1 << 3)
598608 /**
599609 * Subtitle codec is bitmap based
600610 * Decoded AVSubtitle data can be read from the AVSubtitleRect->pict field.
libavcodec/codec_desc.c+16−16
@@ -35,14 +35,14 @@ static const AVCodecDescriptor codec_descriptors[] = { · 34 unmodified lines
3535 .type = AVMEDIA_TYPE_VIDEO,
3636 .name = "mpeg1video",
3737 .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video"),
38− .props = AV_CODEC_PROP_LOSSY,
38+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
3939 },
4040 {
4141 .id = AV_CODEC_ID_MPEG2VIDEO,
4242 .type = AVMEDIA_TYPE_VIDEO,
4343 .name = "mpeg2video",
4444 .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 video"),
45− .props = AV_CODEC_PROP_LOSSY,
45+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
4646 },
4747 #if FF_API_XVMC
4848 {
@@ -65,7 +65,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 16 unmodified lines
6565 .type = AVMEDIA_TYPE_VIDEO,
6666 .name = "h263",
6767 .long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"),
68− .props = AV_CODEC_PROP_LOSSY,
68+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
6969 },
7070 {
7171 .id = AV_CODEC_ID_RV10,
@@ -79,7 +79,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 7 unmodified lines
7979 .type = AVMEDIA_TYPE_VIDEO,
8080 .name = "rv20",
8181 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 2.0"),
82− .props = AV_CODEC_PROP_LOSSY,
82+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
8383 },
8484 {
8585 .id = AV_CODEC_ID_MJPEG,
@@ -101,7 +101,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 15 unmodified lines
101101 .type = AVMEDIA_TYPE_VIDEO,
102102 .name = "mpeg4",
103103 .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2"),
104− .props = AV_CODEC_PROP_LOSSY,
104+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
105105 },
106106 {
107107 .id = AV_CODEC_ID_RAWVIDEO,
@@ -150,14 +150,14 @@ static const AVCodecDescriptor codec_descriptors[] = { · 42 unmodified lines
150150 .type = AVMEDIA_TYPE_VIDEO,
151151 .name = "h263p",
152152 .long_name = NULL_IF_CONFIG_SMALL("H.263+ / H.263-1998 / H.263 version 2"),
153− .props = AV_CODEC_PROP_LOSSY,
153+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
154154 },
155155 {
156156 .id = AV_CODEC_ID_H263I,
157157 .type = AVMEDIA_TYPE_VIDEO,
158158 .name = "h263i",
159159 .long_name = NULL_IF_CONFIG_SMALL("Intel H.263"),
160− .props = AV_CODEC_PROP_LOSSY,
160+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
161161 },
162162 {
163163 .id = AV_CODEC_ID_FLV1,
@@ -178,7 +178,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 14 unmodified lines
178178 .type = AVMEDIA_TYPE_VIDEO,
179179 .name = "svq3",
180180 .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3"),
181− .props = AV_CODEC_PROP_LOSSY,
181+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
182182 },
183183 {
184184 .id = AV_CODEC_ID_DVVIDEO,
@@ -206,7 +206,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 21 unmodified lines
206206 .type = AVMEDIA_TYPE_VIDEO,
207207 .name = "h264",
208208 .long_name = NULL_IF_CONFIG_SMALL("H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
209− .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS,
209+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS | AV_CODEC_PROP_REORDER,
210210 },
211211 {
212212 .id = AV_CODEC_ID_INDEO3,
@@ -458,28 +458,28 @@ static const AVCodecDescriptor codec_descriptors[] = { · 245 unmodified lines
458458 .type = AVMEDIA_TYPE_VIDEO,
459459 .name = "rv30",
460460 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 3.0"),
461− .props = AV_CODEC_PROP_LOSSY,
461+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
462462 },
463463 {
464464 .id = AV_CODEC_ID_RV40,
465465 .type = AVMEDIA_TYPE_VIDEO,
466466 .name = "rv40",
467467 .long_name = NULL_IF_CONFIG_SMALL("RealVideo 4.0"),
468− .props = AV_CODEC_PROP_LOSSY,
468+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
469469 },
470470 {
471471 .id = AV_CODEC_ID_VC1,
472472 .type = AVMEDIA_TYPE_VIDEO,
473473 .name = "vc1",
474474 .long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1"),
475− .props = AV_CODEC_PROP_LOSSY,
475+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
476476 },
477477 {
478478 .id = AV_CODEC_ID_WMV3,
479479 .type = AVMEDIA_TYPE_VIDEO,
480480 .name = "wmv3",
481481 .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9"),
482− .props = AV_CODEC_PROP_LOSSY,
482+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
483483 },
484484 {
485485 .id = AV_CODEC_ID_LOCO,
@@ -592,7 +592,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 106 unmodified lines
592592 .type = AVMEDIA_TYPE_VIDEO,
593593 .name = "cavs",
594594 .long_name = NULL_IF_CONFIG_SMALL("Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)"),
595− .props = AV_CODEC_PROP_LOSSY,
595+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
596596 },
597597 {
598598 .id = AV_CODEC_ID_JPEG2000,
@@ -741,7 +741,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 142 unmodified lines
741741 .type = AVMEDIA_TYPE_VIDEO,
742742 .name = "dirac",
743743 .long_name = NULL_IF_CONFIG_SMALL("Dirac"),
744− .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS,
744+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_LOSSLESS | AV_CODEC_PROP_REORDER,
745745 },
746746 {
747747 .id = AV_CODEC_ID_BFI,
@@ -1201,7 +1201,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 453 unmodified lines
12011201 .type = AVMEDIA_TYPE_VIDEO,
12021202 .name = "hevc",
12031203 .long_name = NULL_IF_CONFIG_SMALL("H.265 / HEVC (High Efficiency Video Coding)"),
1204− .props = AV_CODEC_PROP_LOSSY,
1204+ .props = AV_CODEC_PROP_LOSSY | AV_CODEC_PROP_REORDER,
12051205 },
12061206 {
12071207 .id = AV_CODEC_ID_FIC,
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "libavutil/version.h"
3030
3131 #define LIBAVCODEC_VERSION_MAJOR 55
32−#define LIBAVCODEC_VERSION_MINOR 70
32+#define LIBAVCODEC_VERSION_MINOR 71
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