cosmetics: Align codec declarations

Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.

Signed-off-by: Martin Storsjö <martin@martin.st>
pull/5/head
Martin Storsjö 13 years ago
parent 6d27d8b1dd
commit 00c3b67b8a
  1. 40
      libavcodec/aacdec.c
  2. 10
      libavcodec/aacenc.c
  3. 2
      libavcodec/aasc.c
  4. 21
      libavcodec/ac3enc_fixed.c
  5. 21
      libavcodec/ac3enc_float.c
  6. 4
      libavcodec/adpcmenc.c
  7. 2
      libavcodec/alac.c
  8. 6
      libavcodec/alsdec.c
  9. 3
      libavcodec/amrnbdec.c
  10. 3
      libavcodec/amrwbdec.c
  11. 2
      libavcodec/anm.c
  12. 4
      libavcodec/apedec.c
  13. 14
      libavcodec/asv1.c
  14. 16
      libavcodec/atrac1.c
  15. 16
      libavcodec/atrac3.c
  16. 2
      libavcodec/aura.c
  17. 2
      libavcodec/avs.c
  18. 16
      libavcodec/bethsoftvideo.c
  19. 16
      libavcodec/bfi.c
  20. 2
      libavcodec/bink.c
  21. 4
      libavcodec/binkaudio.c
  22. 2
      libavcodec/bmp.c
  23. 7
      libavcodec/bmpenc.c
  24. 2
      libavcodec/c93.c
  25. 4
      libavcodec/cavsdec.c
  26. 2
      libavcodec/cdgraphics.c
  27. 2
      libavcodec/cinepak.c
  28. 2
      libavcodec/cscd.c
  29. 4
      libavcodec/cyuv.c
  30. 2
      libavcodec/dfa.c
  31. 2
      libavcodec/dnxhddec.c
  32. 10
      libavcodec/dnxhdenc.c
  33. 2
      libavcodec/dpx.c
  34. 4
      libavcodec/dsicinav.c
  35. 8
      libavcodec/dv.c
  36. 2
      libavcodec/dvbsub.c
  37. 2
      libavcodec/dvbsubdec.c
  38. 4
      libavcodec/dvdec.c
  39. 2
      libavcodec/dvdsubdec.c
  40. 2
      libavcodec/dvdsubenc.c
  41. 2
      libavcodec/dxa.c
  42. 3
      libavcodec/eac3enc.c
  43. 2
      libavcodec/eacmv.c
  44. 2
      libavcodec/eamad.c
  45. 2
      libavcodec/eatgq.c
  46. 2
      libavcodec/eatgv.c
  47. 2
      libavcodec/eatqi.c
  48. 2
      libavcodec/escape124.c
  49. 15
      libavcodec/ffv1.c
  50. 2
      libavcodec/flacdec.c
  51. 9
      libavcodec/flacenc.c
  52. 4
      libavcodec/flashsv.c
  53. 2
      libavcodec/flashsvenc.c
  54. 2
      libavcodec/flicvideo.c
  55. 6
      libavcodec/flvdec.c
  56. 4
      libavcodec/flvenc.c
  57. 2
      libavcodec/fraps.c
  58. 2
      libavcodec/frwu.c
  59. 3
      libavcodec/g722enc.c
  60. 9
      libavcodec/g726.c
  61. 7
      libavcodec/gif.c
  62. 2
      libavcodec/gifdec.c
  63. 4
      libavcodec/gsmdec.c
  64. 4
      libavcodec/h261dec.c
  65. 4
      libavcodec/h261enc.c
  66. 11
      libavcodec/h263dec.c
  67. 50
      libavcodec/huffyuv.c
  68. 2
      libavcodec/idcinvideo.c
  69. 4
      libavcodec/iff.c
  70. 16
      libavcodec/imc.c
  71. 2
      libavcodec/indeo2.c
  72. 4
      libavcodec/intelh263dec.c
  73. 2
      libavcodec/interplayvideo.c
  74. 2
      libavcodec/jpeglsdec.c
  75. 5
      libavcodec/jpeglsenc.c
  76. 2
      libavcodec/kgv1dec.c
  77. 2
      libavcodec/kmvc.c
  78. 2
      libavcodec/lagarith.c
  79. 4
      libavcodec/lcldec.c
  80. 4
      libavcodec/lclenc.c
  81. 4
      libavcodec/libdiracdec.c
  82. 9
      libavcodec/libfaac.c
  83. 14
      libavcodec/libgsm.c
  84. 11
      libavcodec/libopencore-amr.c
  85. 22
      libavcodec/libopenjpeg.c
  86. 4
      libavcodec/libschroedingerdec.c
  87. 8
      libavcodec/libschroedingerenc.c
  88. 2
      libavcodec/libspeexdec.c
  89. 3
      libavcodec/libspeexenc.c
  90. 20
      libavcodec/libtheoraenc.c
  91. 5
      libavcodec/libvo-aacenc.c
  92. 9
      libavcodec/libvo-amrwbenc.c
  93. 6
      libavcodec/libvpxenc.c
  94. 22
      libavcodec/libx264.c
  95. 4
      libavcodec/libxvidff.c
  96. 2
      libavcodec/loco.c
  97. 4
      libavcodec/mace.c
  98. 20
      libavcodec/mdec.c
  99. 18
      libavcodec/mimic.c
  100. 4
      libavcodec/mjpegbdec.c
  101. Some files were not shown because too many files have changed in this diff Show More

@ -2773,18 +2773,18 @@ static av_cold int latm_decode_init(AVCodecContext *avctx)
AVCodec ff_aac_decoder = { AVCodec ff_aac_decoder = {
.name = "aac", .name = "aac",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_AAC, .id = CODEC_ID_AAC,
.priv_data_size = sizeof(AACContext), .priv_data_size = sizeof(AACContext),
.init = aac_decode_init, .init = aac_decode_init,
.close = aac_decode_close, .close = aac_decode_close,
.decode = aac_decode_frame, .decode = aac_decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"), .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"),
.sample_fmts = (const enum AVSampleFormat[]) { .sample_fmts = (const enum AVSampleFormat[]) {
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE
}, },
.capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1, .capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1,
.channel_layouts = aac_channel_layout, .channel_layouts = aac_channel_layout,
}; };
@ -2794,17 +2794,17 @@ AVCodec ff_aac_decoder = {
To do a more complex LATM demuxing a separate LATM demuxer should be used. To do a more complex LATM demuxing a separate LATM demuxer should be used.
*/ */
AVCodec ff_aac_latm_decoder = { AVCodec ff_aac_latm_decoder = {
.name = "aac_latm", .name = "aac_latm",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_AAC_LATM, .id = CODEC_ID_AAC_LATM,
.priv_data_size = sizeof(struct LATMContext), .priv_data_size = sizeof(struct LATMContext),
.init = latm_decode_init, .init = latm_decode_init,
.close = aac_decode_close, .close = aac_decode_close,
.decode = latm_decode_frame, .decode = latm_decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("AAC LATM (Advanced Audio Codec LATM syntax)"), .long_name = NULL_IF_CONFIG_SMALL("AAC LATM (Advanced Audio Codec LATM syntax)"),
.sample_fmts = (const enum AVSampleFormat[]) { .sample_fmts = (const enum AVSampleFormat[]) {
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE
}, },
.capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1, .capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1,
.channel_layouts = aac_channel_layout, .channel_layouts = aac_channel_layout,
}; };

@ -817,8 +817,10 @@ AVCodec ff_aac_encoder = {
.init = aac_encode_init, .init = aac_encode_init,
.encode2 = aac_encode_frame, .encode2 = aac_encode_frame,
.close = aac_encode_end, .close = aac_encode_end,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY | CODEC_CAP_EXPERIMENTAL, .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY |
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, CODEC_CAP_EXPERIMENTAL,
.long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"), .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
.priv_class = &aacenc_class, AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"),
.priv_class = &aacenc_class,
}; };

@ -118,5 +118,5 @@ AVCodec ff_aasc_decoder = {
.close = aasc_decode_end, .close = aasc_decode_end,
.decode = aasc_decode_frame, .decode = aasc_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Autodesk RLE"), .long_name = NULL_IF_CONFIG_SMALL("Autodesk RLE"),
}; };

@ -141,16 +141,17 @@ static av_cold int ac3_fixed_encode_init(AVCodecContext *avctx)
AVCodec ff_ac3_fixed_encoder = { AVCodec ff_ac3_fixed_encoder = {
.name = "ac3_fixed", .name = "ac3_fixed",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_AC3, .id = CODEC_ID_AC3,
.priv_data_size = sizeof(AC3EncodeContext), .priv_data_size = sizeof(AC3EncodeContext),
.init = ac3_fixed_encode_init, .init = ac3_fixed_encode_init,
.encode2 = ff_ac3_fixed_encode_frame, .encode2 = ff_ac3_fixed_encode_frame,
.close = ff_ac3_encode_close, .close = ff_ac3_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), AV_SAMPLE_FMT_NONE },
.priv_class = &ac3enc_class, .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
.priv_class = &ac3enc_class,
.channel_layouts = ff_ac3_channel_layouts, .channel_layouts = ff_ac3_channel_layouts,
.defaults = ac3_defaults, .defaults = ac3_defaults,
}; };

@ -139,16 +139,17 @@ static CoefType calc_cpl_coord(CoefSumType energy_ch, CoefSumType energy_cpl)
#if CONFIG_AC3_ENCODER #if CONFIG_AC3_ENCODER
AVCodec ff_ac3_encoder = { AVCodec ff_ac3_encoder = {
.name = "ac3", .name = "ac3",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_AC3, .id = CODEC_ID_AC3,
.priv_data_size = sizeof(AC3EncodeContext), .priv_data_size = sizeof(AC3EncodeContext),
.init = ff_ac3_encode_init, .init = ff_ac3_encode_init,
.encode2 = ff_ac3_float_encode_frame, .encode2 = ff_ac3_float_encode_frame,
.close = ff_ac3_encode_close, .close = ff_ac3_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), AV_SAMPLE_FMT_NONE },
.priv_class = &ac3enc_class, .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"),
.priv_class = &ac3enc_class,
.channel_layouts = ff_ac3_channel_layouts, .channel_layouts = ff_ac3_channel_layouts,
.defaults = ac3_defaults, .defaults = ac3_defaults,
}; };

@ -726,8 +726,8 @@ AVCodec ff_ ## name_ ## _encoder = { \
.init = adpcm_encode_init, \ .init = adpcm_encode_init, \
.encode2 = adpcm_encode_frame, \ .encode2 = adpcm_encode_frame, \
.close = adpcm_encode_close, \ .close = adpcm_encode_close, \
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, \ .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, \
AV_SAMPLE_FMT_NONE}, \ AV_SAMPLE_FMT_NONE }, \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \ .long_name = NULL_IF_CONFIG_SMALL(long_name_), \
} }

@ -661,5 +661,5 @@ AVCodec ff_alac_decoder = {
.close = alac_decode_close, .close = alac_decode_close,
.decode = alac_decode_frame, .decode = alac_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"), .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"),
}; };

@ -1745,7 +1745,7 @@ AVCodec ff_als_decoder = {
.init = decode_init, .init = decode_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.flush = flush, .flush = flush,
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("MPEG-4 Audio Lossless Coding (ALS)"), .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 Audio Lossless Coding (ALS)"),
}; };

@ -1063,5 +1063,6 @@ AVCodec ff_amrnb_decoder = {
.decode = amrnb_decode_frame, .decode = amrnb_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate NarrowBand"), .long_name = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate NarrowBand"),
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_NONE },
}; };

@ -1243,5 +1243,6 @@ AVCodec ff_amrwb_decoder = {
.decode = amrwb_decode_frame, .decode = amrwb_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate WideBand"), .long_name = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate WideBand"),
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_NONE },
}; };

@ -191,5 +191,5 @@ AVCodec ff_anm_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"), .long_name = NULL_IF_CONFIG_SMALL("Deluxe Paint Animation"),
}; };

@ -993,7 +993,7 @@ AVCodec ff_ape_decoder = {
.close = ape_decode_close, .close = ape_decode_close,
.decode = ape_decode_frame, .decode = ape_decode_frame,
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DELAY | CODEC_CAP_DR1, .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DELAY | CODEC_CAP_DR1,
.flush = ape_flush, .flush = ape_flush,
.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"), .long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
.priv_class = &ape_decoder_class, .priv_class = &ape_decoder_class,
}; };

@ -626,7 +626,7 @@ AVCodec ff_asv1_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), .long_name = NULL_IF_CONFIG_SMALL("ASUS V1"),
}; };
AVCodec ff_asv2_decoder = { AVCodec ff_asv2_decoder = {
@ -638,7 +638,7 @@ AVCodec ff_asv2_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name= NULL_IF_CONFIG_SMALL("ASUS V2"), .long_name = NULL_IF_CONFIG_SMALL("ASUS V2"),
}; };
#if CONFIG_ASV1_ENCODER #if CONFIG_ASV1_ENCODER
@ -649,9 +649,8 @@ AVCodec ff_asv1_encoder = {
.priv_data_size = sizeof(ASV1Context), .priv_data_size = sizeof(ASV1Context),
.init = encode_init, .init = encode_init,
.encode2 = encode_frame, .encode2 = encode_frame,
//encode_end, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE },
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("ASUS V1"),
.long_name= NULL_IF_CONFIG_SMALL("ASUS V1"),
}; };
#endif #endif
@ -663,8 +662,7 @@ AVCodec ff_asv2_encoder = {
.priv_data_size = sizeof(ASV1Context), .priv_data_size = sizeof(ASV1Context),
.init = encode_init, .init = encode_init,
.encode2 = encode_frame, .encode2 = encode_frame,
//encode_end, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE },
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("ASUS V2"),
.long_name= NULL_IF_CONFIG_SMALL("ASUS V2"),
}; };
#endif #endif

@ -401,13 +401,13 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx)
AVCodec ff_atrac1_decoder = { AVCodec ff_atrac1_decoder = {
.name = "atrac1", .name = "atrac1",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_ATRAC1, .id = CODEC_ID_ATRAC1,
.priv_data_size = sizeof(AT1Ctx), .priv_data_size = sizeof(AT1Ctx),
.init = atrac1_decode_init, .init = atrac1_decode_init,
.close = atrac1_decode_end, .close = atrac1_decode_end,
.decode = atrac1_decode_frame, .decode = atrac1_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"), .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"),
}; };

@ -1066,13 +1066,13 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx)
AVCodec ff_atrac3_decoder = AVCodec ff_atrac3_decoder =
{ {
.name = "atrac3", .name = "atrac3",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_ATRAC3, .id = CODEC_ID_ATRAC3,
.priv_data_size = sizeof(ATRAC3Context), .priv_data_size = sizeof(ATRAC3Context),
.init = atrac3_decode_init, .init = atrac3_decode_init,
.close = atrac3_decode_close, .close = atrac3_decode_close,
.decode = atrac3_decode_frame, .decode = atrac3_decode_frame,
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Atrac 3 (Adaptive TRansform Acoustic Coding 3)"), .long_name = NULL_IF_CONFIG_SMALL("Atrac 3 (Adaptive TRansform Acoustic Coding 3)"),
}; };

@ -131,5 +131,5 @@ AVCodec ff_aura2_decoder = {
.close = aura_decode_end, .close = aura_decode_end,
.decode = aura_decode_frame, .decode = aura_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Auravision Aura 2"), .long_name = NULL_IF_CONFIG_SMALL("Auravision Aura 2"),
}; };

@ -179,5 +179,5 @@ AVCodec ff_avs_decoder = {
.decode = avs_decode_frame, .decode = avs_decode_frame,
.close = avs_decode_end, .close = avs_decode_end,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"), .long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"),
}; };

@ -151,13 +151,13 @@ static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx)
} }
AVCodec ff_bethsoftvid_decoder = { AVCodec ff_bethsoftvid_decoder = {
.name = "bethsoftvid", .name = "bethsoftvid",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_BETHSOFTVID, .id = CODEC_ID_BETHSOFTVID,
.priv_data_size = sizeof(BethsoftvidContext), .priv_data_size = sizeof(BethsoftvidContext),
.init = bethsoftvid_decode_init, .init = bethsoftvid_decode_init,
.close = bethsoftvid_decode_end, .close = bethsoftvid_decode_end,
.decode = bethsoftvid_decode_frame, .decode = bethsoftvid_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"), .long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"),
}; };

@ -184,13 +184,13 @@ static av_cold int bfi_decode_close(AVCodecContext * avctx)
} }
AVCodec ff_bfi_decoder = { AVCodec ff_bfi_decoder = {
.name = "bfi", .name = "bfi",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_BFI, .id = CODEC_ID_BFI,
.priv_data_size = sizeof(BFIContext), .priv_data_size = sizeof(BFIContext),
.init = bfi_decode_init, .init = bfi_decode_init,
.close = bfi_decode_close, .close = bfi_decode_close,
.decode = bfi_decode_frame, .decode = bfi_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Brute Force & Ignorance"), .long_name = NULL_IF_CONFIG_SMALL("Brute Force & Ignorance"),
}; };

@ -1335,5 +1335,5 @@ AVCodec ff_bink_decoder = {
.init = decode_init, .init = decode_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("Bink video"), .long_name = NULL_IF_CONFIG_SMALL("Bink video"),
}; };

@ -367,7 +367,7 @@ AVCodec ff_binkaudio_rdft_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Bink Audio (RDFT)") .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (RDFT)")
}; };
AVCodec ff_binkaudio_dct_decoder = { AVCodec ff_binkaudio_dct_decoder = {
@ -379,5 +379,5 @@ AVCodec ff_binkaudio_dct_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Bink Audio (DCT)") .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (DCT)")
}; };

@ -368,5 +368,5 @@ AVCodec ff_bmp_decoder = {
.close = bmp_decode_end, .close = bmp_decode_end,
.decode = bmp_decode_frame, .decode = bmp_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("BMP image"), .long_name = NULL_IF_CONFIG_SMALL("BMP image"),
}; };

@ -166,11 +166,12 @@ AVCodec ff_bmp_encoder = {
.priv_data_size = sizeof(BMPContext), .priv_data_size = sizeof(BMPContext),
.init = bmp_encode_init, .init = bmp_encode_init,
.encode2 = bmp_encode_frame, .encode2 = bmp_encode_frame,
.pix_fmts = (const enum PixelFormat[]){ .pix_fmts = (const enum PixelFormat[]){
PIX_FMT_BGR24, PIX_FMT_BGR24,
PIX_FMT_RGB555, PIX_FMT_RGB444, PIX_FMT_RGB565, PIX_FMT_RGB555, PIX_FMT_RGB444, PIX_FMT_RGB565,
PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8,
PIX_FMT_MONOBLACK, PIX_FMT_MONOBLACK,
PIX_FMT_NONE}, PIX_FMT_NONE
.long_name = NULL_IF_CONFIG_SMALL("BMP image"), },
.long_name = NULL_IF_CONFIG_SMALL("BMP image"),
}; };

@ -253,5 +253,5 @@ AVCodec ff_c93_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Interplay C93"), .long_name = NULL_IF_CONFIG_SMALL("Interplay C93"),
}; };

@ -724,6 +724,6 @@ AVCodec ff_cavs_decoder = {
.close = ff_cavs_end, .close = ff_cavs_end,
.decode = cavs_decode_frame, .decode = cavs_decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY,
.flush= cavs_flush, .flush = cavs_flush,
.long_name= NULL_IF_CONFIG_SMALL("Chinese AVS video (AVS1-P2, JiZhun profile)"), .long_name = NULL_IF_CONFIG_SMALL("Chinese AVS video (AVS1-P2, JiZhun profile)"),
}; };

@ -376,5 +376,5 @@ AVCodec ff_cdgraphics_decoder = {
.close = cdg_decode_end, .close = cdg_decode_end,
.decode = cdg_decode_frame, .decode = cdg_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("CD Graphics video"), .long_name = NULL_IF_CONFIG_SMALL("CD Graphics video"),
}; };

@ -475,5 +475,5 @@ AVCodec ff_cinepak_decoder = {
.close = cinepak_decode_end, .close = cinepak_decode_end,
.decode = cinepak_decode_frame, .decode = cinepak_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Cinepak"), .long_name = NULL_IF_CONFIG_SMALL("Cinepak"),
}; };

@ -263,5 +263,5 @@ AVCodec ff_cscd_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("CamStudio"), .long_name = NULL_IF_CONFIG_SMALL("CamStudio"),
}; };

@ -187,7 +187,7 @@ AVCodec ff_aura_decoder = {
.close = cyuv_decode_end, .close = cyuv_decode_end,
.decode = cyuv_decode_frame, .decode = cyuv_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Auravision AURA"), .long_name = NULL_IF_CONFIG_SMALL("Auravision AURA"),
}; };
#endif #endif
@ -201,6 +201,6 @@ AVCodec ff_cyuv_decoder = {
.close = cyuv_decode_end, .close = cyuv_decode_end,
.decode = cyuv_decode_frame, .decode = cyuv_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Creative YUV (CYUV)"), .long_name = NULL_IF_CONFIG_SMALL("Creative YUV (CYUV)"),
}; };
#endif #endif

@ -377,5 +377,5 @@ AVCodec ff_dfa_decoder = {
.close = dfa_decode_end, .close = dfa_decode_end,
.decode = dfa_decode_frame, .decode = dfa_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Chronomaster DFA"), .long_name = NULL_IF_CONFIG_SMALL("Chronomaster DFA"),
}; };

@ -406,5 +406,5 @@ AVCodec ff_dnxhd_decoder = {
.close = dnxhd_decode_close, .close = dnxhd_decode_close,
.decode = dnxhd_decode_frame, .decode = dnxhd_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"),
}; };

@ -1006,8 +1006,10 @@ AVCodec ff_dnxhd_encoder = {
.init = dnxhd_encode_init, .init = dnxhd_encode_init,
.encode2 = dnxhd_encode_picture, .encode2 = dnxhd_encode_picture,
.close = dnxhd_encode_end, .close = dnxhd_encode_end,
.capabilities = CODEC_CAP_SLICE_THREADS, .capabilities = CODEC_CAP_SLICE_THREADS,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_YUV422P10, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV422P,
.long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), PIX_FMT_YUV422P10,
.priv_class = &class, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"),
.priv_class = &class,
}; };

@ -241,5 +241,5 @@ AVCodec ff_dpx_decoder = {
.init = decode_init, .init = decode_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("DPX image"), .long_name = NULL_IF_CONFIG_SMALL("DPX image"),
}; };

@ -381,7 +381,7 @@ AVCodec ff_dsicinvideo_decoder = {
.close = cinvideo_decode_end, .close = cinvideo_decode_end,
.decode = cinvideo_decode_frame, .decode = cinvideo_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"), .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"),
}; };
AVCodec ff_dsicinaudio_decoder = { AVCodec ff_dsicinaudio_decoder = {
@ -392,5 +392,5 @@ AVCodec ff_dsicinaudio_decoder = {
.init = cinaudio_decode_init, .init = cinaudio_decode_init,
.decode = cinaudio_decode_frame, .decode = cinaudio_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN audio"), .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN audio"),
}; };

@ -959,8 +959,10 @@ AVCodec ff_dvvideo_encoder = {
.priv_data_size = sizeof(DVVideoContext), .priv_data_size = sizeof(DVVideoContext),
.init = dvvideo_init_encoder, .init = dvvideo_init_encoder,
.encode2 = dvvideo_encode_frame, .encode2 = dvvideo_encode_frame,
.capabilities = CODEC_CAP_SLICE_THREADS, .capabilities = CODEC_CAP_SLICE_THREADS,
.pix_fmts = (const enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]) {
.long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"),
}; };
#endif // CONFIG_DVVIDEO_ENCODER #endif // CONFIG_DVVIDEO_ENCODER

@ -408,5 +408,5 @@ AVCodec ff_dvbsub_encoder = {
.id = CODEC_ID_DVB_SUBTITLE, .id = CODEC_ID_DVB_SUBTITLE,
.priv_data_size = sizeof(DVBSubtitleContext), .priv_data_size = sizeof(DVBSubtitleContext),
.encode = dvbsub_encode, .encode = dvbsub_encode,
.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),
}; };

@ -1471,5 +1471,5 @@ AVCodec ff_dvbsub_decoder = {
.init = dvbsub_init_decoder, .init = dvbsub_init_decoder,
.close = dvbsub_close_decoder, .close = dvbsub_close_decoder,
.decode = dvbsub_decode, .decode = dvbsub_decode,
.long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"),
}; };

@ -380,6 +380,6 @@ AVCodec ff_dvvideo_decoder = {
.close = dvvideo_close, .close = dvvideo_close,
.decode = dvvideo_decode_frame, .decode = dvvideo_decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_SLICE_THREADS, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_SLICE_THREADS,
.max_lowres = 3, .max_lowres = 3,
.long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"),
}; };

@ -489,5 +489,5 @@ AVCodec ff_dvdsub_decoder = {
.type = AVMEDIA_TYPE_SUBTITLE, .type = AVMEDIA_TYPE_SUBTITLE,
.id = CODEC_ID_DVD_SUBTITLE, .id = CODEC_ID_DVD_SUBTITLE,
.decode = dvdsub_decode, .decode = dvdsub_decode,
.long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"), .long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"),
}; };

@ -220,5 +220,5 @@ AVCodec ff_dvdsub_encoder = {
.type = AVMEDIA_TYPE_SUBTITLE, .type = AVMEDIA_TYPE_SUBTITLE,
.id = CODEC_ID_DVD_SUBTITLE, .id = CODEC_ID_DVD_SUBTITLE,
.encode = dvdsub_encode, .encode = dvdsub_encode,
.long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"), .long_name = NULL_IF_CONFIG_SMALL("DVD subtitles"),
}; };

@ -324,5 +324,5 @@ AVCodec ff_dxa_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Feeble Files/ScummVM DXA"), .long_name = NULL_IF_CONFIG_SMALL("Feeble Files/ScummVM DXA"),
}; };

@ -254,7 +254,8 @@ AVCodec ff_eac3_encoder = {
.init = ff_ac3_encode_init, .init = ff_ac3_encode_init,
.encode2 = ff_ac3_float_encode_frame, .encode2 = ff_ac3_float_encode_frame,
.close = ff_ac3_encode_close, .close = ff_ac3_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT,
AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 E-AC-3"), .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 E-AC-3"),
.priv_class = &eac3enc_class, .priv_class = &eac3enc_class,
.channel_layouts = ff_ac3_channel_layouts, .channel_layouts = ff_ac3_channel_layouts,

@ -217,5 +217,5 @@ AVCodec ff_eacmv_decoder = {
.close = cmv_decode_end, .close = cmv_decode_end,
.decode = cmv_decode_frame, .decode = cmv_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts CMV video"), .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts CMV video"),
}; };

@ -315,5 +315,5 @@ AVCodec ff_eamad_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Madcow Video") .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Madcow Video")
}; };

@ -252,5 +252,5 @@ AVCodec ff_eatgq_decoder = {
.close = tgq_decode_end, .close = tgq_decode_end,
.decode = tgq_decode_frame, .decode = tgq_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGQ video"), .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGQ video"),
}; };

@ -342,5 +342,5 @@ AVCodec ff_eatgv_decoder = {
.init = tgv_decode_init, .init = tgv_decode_init,
.close = tgv_decode_end, .close = tgv_decode_end,
.decode = tgv_decode_frame, .decode = tgv_decode_frame,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"), .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"),
}; };

@ -162,5 +162,5 @@ AVCodec ff_eatqi_decoder = {
.close = tqi_decode_end, .close = tqi_decode_end,
.decode = tqi_decode_frame, .decode = tqi_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"), .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"),
}; };

@ -372,5 +372,5 @@ AVCodec ff_escape124_decoder = {
.close = escape124_decode_close, .close = escape124_decode_close,
.decode = escape124_decode_frame, .decode = escape124_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Escape 124"), .long_name = NULL_IF_CONFIG_SMALL("Escape 124"),
}; };

@ -1743,8 +1743,9 @@ AVCodec ff_ffv1_decoder = {
.init = decode_init, .init = decode_init,
.close = common_end, .close = common_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/ | CODEC_CAP_SLICE_THREADS, .capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/ |
.long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), CODEC_CAP_SLICE_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"),
}; };
#if CONFIG_FFV1_ENCODER #if CONFIG_FFV1_ENCODER
@ -1756,8 +1757,12 @@ AVCodec ff_ffv1_encoder = {
.init = encode_init, .init = encode_init,
.encode2 = encode_frame, .encode2 = encode_frame,
.close = common_end, .close = common_end,
.capabilities = CODEC_CAP_SLICE_THREADS, .capabilities = CODEC_CAP_SLICE_THREADS,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
.long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P,
PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16,
PIX_FMT_YUV444P16, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"),
}; };
#endif #endif

@ -689,5 +689,5 @@ AVCodec ff_flac_decoder = {
.close = flac_decode_close, .close = flac_decode_close,
.decode = flac_decode_frame, .decode = flac_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name= NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"),
}; };

@ -1306,8 +1306,9 @@ AVCodec ff_flac_encoder = {
.init = flac_encode_init, .init = flac_encode_init,
.encode2 = flac_encode_frame, .encode2 = flac_encode_frame,
.close = flac_encode_close, .close = flac_encode_close,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), AV_SAMPLE_FMT_NONE },
.priv_class = &flac_encoder_class, .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"),
.priv_class = &flac_encoder_class,
}; };

@ -461,7 +461,7 @@ AVCodec ff_flashsv_decoder = {
.close = flashsv_decode_end, .close = flashsv_decode_end,
.decode = flashsv_decode_frame, .decode = flashsv_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"), .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
}; };
#endif /* CONFIG_FLASHSV_DECODER */ #endif /* CONFIG_FLASHSV_DECODER */
@ -524,7 +524,7 @@ AVCodec ff_flashsv2_decoder = {
.close = flashsv2_decode_end, .close = flashsv2_decode_end,
.decode = flashsv_decode_frame, .decode = flashsv_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v2"), .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v2"),
}; };
#endif /* CONFIG_FLASHSV2_DECODER */ #endif /* CONFIG_FLASHSV2_DECODER */

@ -287,6 +287,6 @@ AVCodec ff_flashsv_encoder = {
.init = flashsv_encode_init, .init = flashsv_encode_init,
.encode2 = flashsv_encode_frame, .encode2 = flashsv_encode_frame,
.close = flashsv_encode_end, .close = flashsv_encode_end,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"), .long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
}; };

@ -741,5 +741,5 @@ AVCodec ff_flic_decoder = {
.close = flic_decode_end, .close = flic_decode_end,
.decode = flic_decode_frame, .decode = flic_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Autodesk Animator Flic video"), .long_name = NULL_IF_CONFIG_SMALL("Autodesk Animator Flic video"),
}; };

@ -127,7 +127,7 @@ AVCodec ff_flv_decoder = {
.close = ff_h263_decode_end, .close = ff_h263_decode_end,
.decode = ff_h263_decode_frame, .decode = ff_h263_decode_frame,
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
.max_lowres= 3, .max_lowres = 3,
.long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), .long_name = NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"),
.pix_fmts= ff_pixfmt_list_420, .pix_fmts = ff_pixfmt_list_420,
}; };

@ -94,7 +94,7 @@ AVCodec ff_flv_encoder = {
.init = ff_MPV_encode_init, .init = ff_MPV_encode_init,
.encode2 = ff_MPV_encode_picture, .encode2 = ff_MPV_encode_picture,
.close = ff_MPV_encode_end, .close = ff_MPV_encode_end,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE },
.long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), .long_name = NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"),
.priv_class = &flv_class, .priv_class = &flv_class,
}; };

@ -375,5 +375,5 @@ AVCodec ff_fraps_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Fraps"), .long_name = NULL_IF_CONFIG_SMALL("Fraps"),
}; };

@ -120,5 +120,5 @@ AVCodec ff_frwu_decoder = {
.close = decode_close, .close = decode_close,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Forward Uncompressed"), .long_name = NULL_IF_CONFIG_SMALL("Forward Uncompressed"),
}; };

@ -400,5 +400,6 @@ AVCodec ff_adpcm_g722_encoder = {
.encode2 = g722_encode_frame, .encode2 = g722_encode_frame,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME, .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
.long_name = NULL_IF_CONFIG_SMALL("G.722 ADPCM"), .long_name = NULL_IF_CONFIG_SMALL("G.722 ADPCM"),
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },
}; };

@ -406,9 +406,10 @@ AVCodec ff_adpcm_g726_encoder = {
#if FF_API_OLD_ENCODE_AUDIO #if FF_API_OLD_ENCODE_AUDIO
.close = g726_encode_close, .close = g726_encode_close,
#endif #endif
.capabilities = CODEC_CAP_SMALL_LAST_FRAME, .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"),
.priv_class = &class, .priv_class = &class,
.defaults = defaults, .defaults = defaults,
}; };
@ -496,6 +497,6 @@ AVCodec ff_adpcm_g726_decoder = {
.decode = g726_decode_frame, .decode = g726_decode_frame,
.flush = g726_decode_flush, .flush = g726_decode_flush,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"),
}; };
#endif #endif

@ -187,6 +187,9 @@ AVCodec ff_gif_encoder = {
.init = gif_encode_init, .init = gif_encode_init,
.encode2 = gif_encode_frame, .encode2 = gif_encode_frame,
.close = gif_encode_close, .close = gif_encode_close,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
.long_name= NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE,
PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
}; };

@ -334,5 +334,5 @@ AVCodec ff_gif_decoder = {
.close = gif_decode_close, .close = gif_decode_close,
.decode = gif_decode_frame, .decode = gif_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), .long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
}; };

@ -114,7 +114,7 @@ AVCodec ff_gsm_decoder = {
.decode = gsm_decode_frame, .decode = gsm_decode_frame,
.flush = gsm_flush, .flush = gsm_flush,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("GSM"), .long_name = NULL_IF_CONFIG_SMALL("GSM"),
}; };
AVCodec ff_gsm_ms_decoder = { AVCodec ff_gsm_ms_decoder = {
@ -126,5 +126,5 @@ AVCodec ff_gsm_ms_decoder = {
.decode = gsm_decode_frame, .decode = gsm_decode_frame,
.flush = gsm_flush, .flush = gsm_flush,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("GSM Microsoft variant"), .long_name = NULL_IF_CONFIG_SMALL("GSM Microsoft variant"),
}; };

@ -651,6 +651,6 @@ AVCodec ff_h261_decoder = {
.close = h261_decode_end, .close = h261_decode_end,
.decode = h261_decode_frame, .decode = h261_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.max_lowres = 3, .max_lowres = 3,
.long_name = NULL_IF_CONFIG_SMALL("H.261"), .long_name = NULL_IF_CONFIG_SMALL("H.261"),
}; };

@ -331,7 +331,7 @@ AVCodec ff_h261_encoder = {
.init = ff_MPV_encode_init, .init = ff_MPV_encode_init,
.encode2 = ff_MPV_encode_picture, .encode2 = ff_MPV_encode_picture,
.close = ff_MPV_encode_end, .close = ff_MPV_encode_end,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE },
.long_name= NULL_IF_CONFIG_SMALL("H.261"), .long_name = NULL_IF_CONFIG_SMALL("H.261"),
.priv_class = &h261_class, .priv_class = &h261_class,
}; };

@ -742,9 +742,10 @@ AVCodec ff_h263_decoder = {
.init = ff_h263_decode_init, .init = ff_h263_decode_init,
.close = ff_h263_decode_end, .close = ff_h263_decode_end,
.decode = ff_h263_decode_frame, .decode = ff_h263_decode_frame,
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 |
.flush= ff_mpeg_flush, CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
.max_lowres= 3, .flush = ff_mpeg_flush,
.long_name= NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"), .max_lowres = 3,
.pix_fmts= ff_hwaccel_pixfmt_list_420, .long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"),
.pix_fmts = ff_hwaccel_pixfmt_list_420,
}; };

@ -1449,31 +1449,33 @@ static av_cold int encode_end(AVCodecContext *avctx)
#if CONFIG_HUFFYUV_DECODER #if CONFIG_HUFFYUV_DECODER
AVCodec ff_huffyuv_decoder = { AVCodec ff_huffyuv_decoder = {
.name = "huffyuv", .name = "huffyuv",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_HUFFYUV, .id = CODEC_ID_HUFFYUV,
.priv_data_size = sizeof(HYuvContext), .priv_data_size = sizeof(HYuvContext),
.init = decode_init, .init = decode_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_FRAME_THREADS, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND |
CODEC_CAP_FRAME_THREADS,
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy), .init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy),
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"), .long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"),
}; };
#endif #endif
#if CONFIG_FFVHUFF_DECODER #if CONFIG_FFVHUFF_DECODER
AVCodec ff_ffvhuff_decoder = { AVCodec ff_ffvhuff_decoder = {
.name = "ffvhuff", .name = "ffvhuff",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_FFVHUFF, .id = CODEC_ID_FFVHUFF,
.priv_data_size = sizeof(HYuvContext), .priv_data_size = sizeof(HYuvContext),
.init = decode_init, .init = decode_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_FRAME_THREADS, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND |
CODEC_CAP_FRAME_THREADS,
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy), .init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy),
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"), .long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"),
}; };
#endif #endif
@ -1486,8 +1488,10 @@ AVCodec ff_huffyuv_encoder = {
.init = encode_init, .init = encode_init,
.encode2 = encode_frame, .encode2 = encode_frame,
.close = encode_end, .close = encode_end,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"), PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"),
}; };
#endif #endif
@ -1500,7 +1504,9 @@ AVCodec ff_ffvhuff_encoder = {
.init = encode_init, .init = encode_init,
.encode2 = encode_frame, .encode2 = encode_frame,
.close = encode_end, .close = encode_end,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"), PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"),
}; };
#endif #endif

@ -262,5 +262,5 @@ AVCodec ff_idcin_decoder = {
.close = idcin_decode_end, .close = idcin_decode_end,
.decode = idcin_decode_frame, .decode = idcin_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("id Quake II CIN video"), .long_name = NULL_IF_CONFIG_SMALL("id Quake II CIN video"),
}; };

@ -376,7 +376,7 @@ AVCodec ff_iff_ilbm_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame_ilbm, .decode = decode_frame_ilbm,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IFF ILBM"), .long_name = NULL_IF_CONFIG_SMALL("IFF ILBM"),
}; };
AVCodec ff_iff_byterun1_decoder = { AVCodec ff_iff_byterun1_decoder = {
@ -388,5 +388,5 @@ AVCodec ff_iff_byterun1_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame_byterun1, .decode = decode_frame_byterun1,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IFF ByteRun1"), .long_name = NULL_IF_CONFIG_SMALL("IFF ByteRun1"),
}; };

@ -846,13 +846,13 @@ static av_cold int imc_decode_close(AVCodecContext * avctx)
AVCodec ff_imc_decoder = { AVCodec ff_imc_decoder = {
.name = "imc", .name = "imc",
.type = AVMEDIA_TYPE_AUDIO, .type = AVMEDIA_TYPE_AUDIO,
.id = CODEC_ID_IMC, .id = CODEC_ID_IMC,
.priv_data_size = sizeof(IMCContext), .priv_data_size = sizeof(IMCContext),
.init = imc_decode_init, .init = imc_decode_init,
.close = imc_decode_close, .close = imc_decode_close,
.decode = imc_decode_frame, .decode = imc_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("IMC (Intel Music Coder)"), .long_name = NULL_IF_CONFIG_SMALL("IMC (Intel Music Coder)"),
}; };

@ -239,5 +239,5 @@ AVCodec ff_indeo2_decoder = {
.close = ir2_decode_end, .close = ir2_decode_end,
.decode = ir2_decode_frame, .decode = ir2_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Intel Indeo 2"), .long_name = NULL_IF_CONFIG_SMALL("Intel Indeo 2"),
}; };

@ -133,6 +133,6 @@ AVCodec ff_h263i_decoder = {
.close = ff_h263_decode_end, .close = ff_h263_decode_end,
.decode = ff_h263_decode_frame, .decode = ff_h263_decode_frame,
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Intel H.263"), .long_name = NULL_IF_CONFIG_SMALL("Intel H.263"),
.pix_fmts= ff_pixfmt_list_420, .pix_fmts = ff_pixfmt_list_420,
}; };

@ -1022,5 +1022,5 @@ AVCodec ff_interplay_video_decoder = {
.close = ipvideo_decode_end, .close = ipvideo_decode_end,
.decode = ipvideo_decode_frame, .decode = ipvideo_decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_PARAM_CHANGE, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_PARAM_CHANGE,
.long_name = NULL_IF_CONFIG_SMALL("Interplay MVE video"), .long_name = NULL_IF_CONFIG_SMALL("Interplay MVE video"),
}; };

@ -372,5 +372,5 @@ AVCodec ff_jpegls_decoder = {
.close = ff_mjpeg_decode_end, .close = ff_mjpeg_decode_end,
.decode = ff_mjpeg_decode_frame, .decode = ff_mjpeg_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"), .long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"),
}; };

@ -399,6 +399,9 @@ AVCodec ff_jpegls_encoder = { //FIXME avoid MPV_* lossless JPEG should not need
.priv_data_size = sizeof(JpeglsContext), .priv_data_size = sizeof(JpeglsContext),
.init = encode_init_ls, .init = encode_init_ls,
.encode2 = encode_picture_ls, .encode2 = encode_picture_ls,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16,
PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"), .long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"),
}; };

@ -189,5 +189,5 @@ AVCodec ff_kgv1_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.flush = decode_flush, .flush = decode_flush,
.long_name = NULL_IF_CONFIG_SMALL("Kega Game Video"), .long_name = NULL_IF_CONFIG_SMALL("Kega Game Video"),
}; };

@ -428,5 +428,5 @@ AVCodec ff_kmvc_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Karl Morton's video codec"), .long_name = NULL_IF_CONFIG_SMALL("Karl Morton's video codec"),
}; };

@ -624,5 +624,5 @@ AVCodec ff_lagarith_decoder = {
.close = lag_decode_end, .close = lag_decode_end,
.decode = lag_decode_frame, .decode = lag_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Lagarith lossless"), .long_name = NULL_IF_CONFIG_SMALL("Lagarith lossless"),
}; };

@ -644,7 +644,7 @@ AVCodec ff_mszh_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) MSZH"), .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) MSZH"),
}; };
#endif #endif
@ -658,6 +658,6 @@ AVCodec ff_zlib_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"),
}; };
#endif #endif

@ -190,6 +190,6 @@ AVCodec ff_zlib_encoder = {
.init = encode_init, .init = encode_init,
.encode2 = encode_frame, .encode2 = encode_frame,
.close = encode_end, .close = encode_end,
.pix_fmts = (const enum PixelFormat[]) { PIX_FMT_BGR24, PIX_FMT_NONE }, .pix_fmts = (const enum PixelFormat[]) { PIX_FMT_BGR24, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"),
}; };

@ -203,6 +203,6 @@ AVCodec ff_libdirac_decoder = {
.close = libdirac_decode_close, .close = libdirac_decode_close,
.decode = libdirac_decode_frame, .decode = libdirac_decode_frame,
.capabilities = CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DELAY,
.flush = libdirac_flush, .flush = libdirac_flush,
.long_name = NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"), .long_name = NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"),
}; };

@ -222,8 +222,9 @@ AVCodec ff_libfaac_encoder = {
.init = Faac_encode_init, .init = Faac_encode_init,
.encode2 = Faac_encode_frame, .encode2 = Faac_encode_frame,
.close = Faac_encode_close, .close = Faac_encode_close,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"), AV_SAMPLE_FMT_NONE },
.profiles = NULL_IF_CONFIG_SMALL(profiles), .long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"),
.profiles = NULL_IF_CONFIG_SMALL(profiles),
}; };

@ -123,8 +123,9 @@ AVCodec ff_libgsm_encoder = {
.init = libgsm_encode_init, .init = libgsm_encode_init,
.encode2 = libgsm_encode_frame, .encode2 = libgsm_encode_frame,
.close = libgsm_encode_close, .close = libgsm_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"),
}; };
AVCodec ff_libgsm_ms_encoder = { AVCodec ff_libgsm_ms_encoder = {
@ -134,8 +135,9 @@ AVCodec ff_libgsm_ms_encoder = {
.init = libgsm_encode_init, .init = libgsm_encode_init,
.encode2 = libgsm_encode_frame, .encode2 = libgsm_encode_frame,
.close = libgsm_encode_close, .close = libgsm_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"),
}; };
typedef struct LibGSMDecodeContext { typedef struct LibGSMDecodeContext {
@ -244,7 +246,7 @@ AVCodec ff_libgsm_decoder = {
.decode = libgsm_decode_frame, .decode = libgsm_decode_frame,
.flush = libgsm_flush, .flush = libgsm_flush,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"),
}; };
AVCodec ff_libgsm_ms_decoder = { AVCodec ff_libgsm_ms_decoder = {
@ -257,5 +259,5 @@ AVCodec ff_libgsm_ms_decoder = {
.decode = libgsm_decode_frame, .decode = libgsm_decode_frame,
.flush = libgsm_flush, .flush = libgsm_flush,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"),
}; };

@ -180,7 +180,7 @@ AVCodec ff_libopencore_amrnb_decoder = {
.close = amr_nb_decode_close, .close = amr_nb_decode_close,
.decode = amr_nb_decode_frame, .decode = amr_nb_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"),
}; };
static av_cold int amr_nb_encode_init(AVCodecContext *avctx) static av_cold int amr_nb_encode_init(AVCodecContext *avctx)
@ -297,9 +297,10 @@ AVCodec ff_libopencore_amrnb_encoder = {
.encode2 = amr_nb_encode_frame, .encode2 = amr_nb_encode_frame,
.close = amr_nb_encode_close, .close = amr_nb_encode_close,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_SMALL_LAST_FRAME, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_SMALL_LAST_FRAME,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), AV_SAMPLE_FMT_NONE },
.priv_class = &class, .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"),
.priv_class = &class,
}; };
#endif #endif
@ -385,7 +386,7 @@ AVCodec ff_libopencore_amrwb_decoder = {
.close = amr_wb_decode_close, .close = amr_wb_decode_close,
.decode = amr_wb_decode_frame, .decode = amr_wb_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Wide-Band"), .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Wide-Band"),
}; };
#endif /* CONFIG_LIBOPENCORE_AMRWB */ #endif /* CONFIG_LIBOPENCORE_AMRWB */

@ -211,15 +211,15 @@ static av_cold int libopenjpeg_decode_close(AVCodecContext *avctx)
AVCodec ff_libopenjpeg_decoder = { AVCodec ff_libopenjpeg_decoder = {
.name = "libopenjpeg", .name = "libopenjpeg",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_JPEG2000, .id = CODEC_ID_JPEG2000,
.priv_data_size = sizeof(LibOpenJPEGContext), .priv_data_size = sizeof(LibOpenJPEGContext),
.init = libopenjpeg_decode_init, .init = libopenjpeg_decode_init,
.close = libopenjpeg_decode_close, .close = libopenjpeg_decode_close,
.decode = libopenjpeg_decode_frame, .decode = libopenjpeg_decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.max_lowres = 5, .max_lowres = 5,
.long_name = NULL_IF_CONFIG_SMALL("OpenJPEG based JPEG 2000 decoder"), .long_name = NULL_IF_CONFIG_SMALL("OpenJPEG based JPEG 2000 decoder"),
.init_thread_copy = ONLY_IF_THREADS_ENABLED(libopenjpeg_decode_init_thread_copy) .init_thread_copy = ONLY_IF_THREADS_ENABLED(libopenjpeg_decode_init_thread_copy),
}; };

@ -353,6 +353,6 @@ AVCodec ff_libschroedinger_decoder = {
.close = libschroedinger_decode_close, .close = libschroedinger_decode_close,
.decode = libschroedinger_decode_frame, .decode = libschroedinger_decode_frame,
.capabilities = CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DELAY,
.flush = libschroedinger_flush, .flush = libschroedinger_flush,
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"), .long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
}; };

@ -448,7 +448,9 @@ AVCodec ff_libschroedinger_encoder = {
.init = libschroedinger_encode_init, .init = libschroedinger_encode_init,
.encode2 = libschroedinger_encode_frame, .encode2 = libschroedinger_encode_frame,
.close = libschroedinger_encode_close, .close = libschroedinger_encode_close,
.capabilities = CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DELAY,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"), PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
}; };

@ -168,5 +168,5 @@ AVCodec ff_libspeex_decoder = {
.decode = libspeex_decode_frame, .decode = libspeex_decode_frame,
.flush = libspeex_decode_flush, .flush = libspeex_decode_flush,
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DELAY | CODEC_CAP_DR1, .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DELAY | CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
}; };

@ -332,7 +332,8 @@ AVCodec ff_libspeex_encoder = {
.encode2 = encode_frame, .encode2 = encode_frame,
.close = encode_close, .close = encode_close,
.capabilities = CODEC_CAP_DELAY, .capabilities = CODEC_CAP_DELAY,
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"),
.priv_class = &class, .priv_class = &class,
.defaults = defaults, .defaults = defaults,

@ -361,14 +361,16 @@ static av_cold int encode_close(AVCodecContext* avc_context)
/** AVCodec struct exposed to libavcodec */ /** AVCodec struct exposed to libavcodec */
AVCodec ff_libtheora_encoder = { AVCodec ff_libtheora_encoder = {
.name = "libtheora", .name = "libtheora",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_THEORA, .id = CODEC_ID_THEORA,
.priv_data_size = sizeof(TheoraContext), .priv_data_size = sizeof(TheoraContext),
.init = encode_init, .init = encode_init,
.close = encode_close, .close = encode_close,
.encode2 = encode_frame, .encode2 = encode_frame,
.capabilities = CODEC_CAP_DELAY, // needed to get the statsfile summary .capabilities = CODEC_CAP_DELAY, // needed to get the statsfile summary
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){
.long_name = NULL_IF_CONFIG_SMALL("libtheora Theora"), PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE
},
.long_name = NULL_IF_CONFIG_SMALL("libtheora Theora"),
}; };

@ -196,6 +196,7 @@ AVCodec ff_libvo_aacenc_encoder = {
.encode2 = aac_encode_frame, .encode2 = aac_encode_frame,
.close = aac_encode_close, .close = aac_encode_close,
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC"), AV_SAMPLE_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC"),
}; };

@ -148,8 +148,9 @@ AVCodec ff_libvo_amrwbenc_encoder = {
.init = amr_wb_encode_init, .init = amr_wb_encode_init,
.encode2 = amr_wb_encode_frame, .encode2 = amr_wb_encode_frame,
.close = amr_wb_encode_close, .close = amr_wb_encode_close,
.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
.long_name = NULL_IF_CONFIG_SMALL("Android VisualOn Adaptive Multi-Rate " AV_SAMPLE_FMT_NONE },
"(AMR) Wide-Band"), .long_name = NULL_IF_CONFIG_SMALL("Android VisualOn Adaptive "
.priv_class = &class, "Multi-Rate (AMR) Wide-Band"),
.priv_class = &class,
}; };

@ -574,8 +574,8 @@ AVCodec ff_libvpx_encoder = {
.encode2 = vp8_encode, .encode2 = vp8_encode,
.close = vp8_free, .close = vp8_free,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("libvpx VP8"), .long_name = NULL_IF_CONFIG_SMALL("libvpx VP8"),
.priv_class = &class, .priv_class = &class,
.defaults = defaults, .defaults = defaults,
}; };

@ -546,16 +546,16 @@ static const AVCodecDefault x264_defaults[] = {
}; };
AVCodec ff_libx264_encoder = { AVCodec ff_libx264_encoder = {
.name = "libx264", .name = "libx264",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_H264, .id = CODEC_ID_H264,
.priv_data_size = sizeof(X264Context), .priv_data_size = sizeof(X264Context),
.init = X264_init, .init = X264_init,
.encode2 = X264_frame, .encode2 = X264_frame,
.close = X264_close, .close = X264_close,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), .long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
.priv_class = &class, .priv_class = &class,
.defaults = x264_defaults, .defaults = x264_defaults,
.init_static_data = X264_init_static, .init_static_data = X264_init_static,
}; };

@ -827,8 +827,8 @@ AVCodec ff_libxvid_encoder = {
.init = xvid_encode_init, .init = xvid_encode_init,
.encode2 = xvid_encode_frame, .encode2 = xvid_encode_frame,
.close = xvid_encode_close, .close = xvid_encode_close,
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE },
.long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"), .long_name = NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"),
}; };
#endif /* CONFIG_LIBXVID_ENCODER */ #endif /* CONFIG_LIBXVID_ENCODER */

@ -294,5 +294,5 @@ AVCodec ff_loco_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("LOCO"), .long_name = NULL_IF_CONFIG_SMALL("LOCO"),
}; };

@ -297,7 +297,7 @@ AVCodec ff_mace3_decoder = {
.init = mace_decode_init, .init = mace_decode_init,
.decode = mace_decode_frame, .decode = mace_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 3:1"), .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 3:1"),
}; };
AVCodec ff_mace6_decoder = { AVCodec ff_mace6_decoder = {
@ -308,5 +308,5 @@ AVCodec ff_mace6_decoder = {
.init = mace_decode_init, .init = mace_decode_init,
.decode = mace_decode_frame, .decode = mace_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 6:1"), .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 6:1"),
}; };

@ -265,14 +265,14 @@ static av_cold int decode_end(AVCodecContext *avctx){
} }
AVCodec ff_mdec_decoder = { AVCodec ff_mdec_decoder = {
.name = "mdec", .name = "mdec",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_MDEC, .id = CODEC_ID_MDEC,
.priv_data_size = sizeof(MDECContext), .priv_data_size = sizeof(MDECContext),
.init = decode_init, .init = decode_init,
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.long_name= NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"), .long_name = NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"),
.init_thread_copy= ONLY_IF_THREADS_ENABLED(decode_init_thread_copy) .init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy)
}; };

@ -421,14 +421,14 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx)
} }
AVCodec ff_mimic_decoder = { AVCodec ff_mimic_decoder = {
.name = "mimic", .name = "mimic",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.id = CODEC_ID_MIMIC, .id = CODEC_ID_MIMIC,
.priv_data_size = sizeof(MimicContext), .priv_data_size = sizeof(MimicContext),
.init = mimic_decode_init, .init = mimic_decode_init,
.close = mimic_decode_end, .close = mimic_decode_end,
.decode = mimic_decode_frame, .decode = mimic_decode_frame,
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS,
.long_name = NULL_IF_CONFIG_SMALL("Mimic"), .long_name = NULL_IF_CONFIG_SMALL("Mimic"),
.update_thread_context = ONLY_IF_THREADS_ENABLED(mimic_decode_update_thread_context) .update_thread_context = ONLY_IF_THREADS_ENABLED(mimic_decode_update_thread_context)
}; };

@ -161,6 +161,6 @@ AVCodec ff_mjpegb_decoder = {
.close = ff_mjpeg_decode_end, .close = ff_mjpeg_decode_end,
.decode = mjpegb_decode_frame, .decode = mjpegb_decode_frame,
.capabilities = CODEC_CAP_DR1, .capabilities = CODEC_CAP_DR1,
.max_lowres = 3, .max_lowres = 3,
.long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"), .long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"),
}; };

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save