History

avcodec: deprecate v410 de/encoder

The V30X pixel format was recently added, so this lavc workaround is no longer needed.

James Almer committed 2 years ago

Commit 02306cb1 parent 3c64d618 files · +12 −4Browse files

Unified · Split

8 files
  1. libavcodec/allcodecs.c +1 −1
  2. libavcodec/codec_desc.c +2 −0
  3. libavcodec/codec_id.h +2 −0
  4. libavcodec/v410dec.c +2 −0
  5. libavcodec/v410enc.c +2 −0
  6. libavformat/isom_tags.c +1 −1
  7. libavformat/movenc.c +1 −1
  8. libavformat/riff.c +1 −1
libavcodec/allcodecs.c+1−1
@@ -350,9 +350,9 @@ extern const FFCodec ff_v308_encoder; · 349 unmodified lines
350350 extern const FFCodec ff_v308_decoder;
351351 extern const FFCodec ff_v408_encoder;
352352 extern const FFCodec ff_v408_decoder;
353−#endif
354353 extern const FFCodec ff_v410_encoder;
355354 extern const FFCodec ff_v410_decoder;
355+#endif
356356 extern const FFCodec ff_vb_decoder;
357357 extern const FFCodec ff_vbn_encoder;
358358 extern const FFCodec ff_vbn_decoder;
libavcodec/codec_desc.c+2−0
@@ -1146,6 +1146,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 1145 unmodified lines
11461146 .long_name = NULL_IF_CONFIG_SMALL("Dxtory"),
11471147 .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS,
11481148 },
1149+#if FF_API_V408_CODECID
11491150 {
11501151 .id = AV_CODEC_ID_V410,
11511152 .type = AVMEDIA_TYPE_VIDEO,
@@ -1153,6 +1154,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 1 unmodified line
11531154 .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:4:4 10-bit"),
11541155 .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS,
11551156 },
1157+#endif
11561158 {
11571159 .id = AV_CODEC_ID_XWD,
11581160 .type = AVMEDIA_TYPE_VIDEO,
libavcodec/codec_id.h+2−0
@@ -206,7 +206,9 @@ enum AVCodecID { · 205 unmodified lines
206206 AV_CODEC_ID_BMV_VIDEO,
207207 AV_CODEC_ID_VBLE,
208208 AV_CODEC_ID_DXTORY,
209+#if FF_API_V408_CODECID
209210 AV_CODEC_ID_V410,
211+#endif
210212 AV_CODEC_ID_XWD,
211213 AV_CODEC_ID_CDXL,
212214 AV_CODEC_ID_XBM,
libavcodec/v410dec.c+2−0
@@ -46,6 +46,8 @@ static av_cold int v410_decode_init(AVCodecContext *avctx) · 45 unmodified lines
4646 }
4747 }
4848
49+ av_log(avctx, AV_LOG_WARNING, "This decoder is deprecated and will be removed.\n");
50+
4951 return 0;
5052 }
5153
libavcodec/v410enc.c+2−0
@@ -37,6 +37,8 @@ static av_cold int v410_encode_init(AVCodecContext *avctx) · 36 unmodified lines
3737 avctx->bits_per_coded_sample = 32;
3838 avctx->bit_rate = ff_guess_coded_bitrate(avctx);
3939
40+ av_log(avctx, AV_LOG_WARNING, "This encoder is deprecated and will be removed.\n");
41+
4042 return 0;
4143 }
4244
libavformat/isom_tags.c+1−1
@@ -66,8 +66,8 @@ const AVCodecTag ff_codec_movvideo_tags[] = { · 65 unmodified lines
6666 #if FF_API_V408_CODECID
6767 { AV_CODEC_ID_V308, MKTAG('v', '3', '0', '8') }, /* uncompressed 8-bit 4:4:4 */
6868 { AV_CODEC_ID_V408, MKTAG('v', '4', '0', '8') }, /* uncompressed 8-bit 4:4:4:4 */
69−#endif
7069 { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') }, /* uncompressed 10-bit 4:4:4 */
70+#endif
7171 { AV_CODEC_ID_Y41P, MKTAG('Y', '4', '1', 'P') }, /* uncompressed 12-bit 4:1:1 */
7272 { AV_CODEC_ID_YUV4, MKTAG('y', 'u', 'v', '4') }, /* libquicktime packed yuv420p */
7373 { AV_CODEC_ID_TARGA_Y216, MKTAG('Y', '2', '1', '6') },
libavformat/movenc.c+1−1
@@ -2621,8 +2621,8 @@ static int mov_write_video_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex · 2620 unmodified lines
26212621 #if FF_API_V408_CODECID
26222622 || track->par->codec_id == AV_CODEC_ID_V308
26232623 || track->par->codec_id == AV_CODEC_ID_V408
2624−#endif
26252624 || track->par->codec_id == AV_CODEC_ID_V410
2625+#endif
26262626 || track->par->codec_id == AV_CODEC_ID_V210);
26272627
26282628 avio_wb32(pb, 0); /* size */
libavformat/riff.c+1−1
@@ -308,8 +308,8 @@ const AVCodecTag ff_codec_bmp_tags[] = { · 307 unmodified lines
308308 #if FF_API_V408_CODECID
309309 { AV_CODEC_ID_V308, MKTAG('v', '3', '0', '8') },
310310 { AV_CODEC_ID_V408, MKTAG('v', '4', '0', '8') },
311−#endif
312311 { AV_CODEC_ID_V410, MKTAG('v', '4', '1', '0') },
312+#endif
313313 { AV_CODEC_ID_YUV4, MKTAG('y', 'u', 'v', '4') },
314314 { AV_CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '1') },
315315 { AV_CODEC_ID_INDEO3, MKTAG('I', 'V', '3', '2') },

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