* qatar/master:
rtpdec_asf: Set the no_resync_search option for the chained asf demuxer
asfdec: Add an option for not searching for the packet markers
cosmetics: Clean up the tiffenc pix_fmts declaration to match the style of others
cosmetics: Align codec declarations
cosmetics: Convert mimic.c to utf-8
avconv: remove an unused function parameter.
avconv: remove now pointless variables.
avconv: drop support for building without libavfilter.
nellymoserenc: fix crash due to memsetting the wrong area.
libavformat: Only require first packet to be known for audio/video streams
avplay: Don't try to scale timestamps if the tb isn't set
Conflicts:
Changelog
configure
ffmpeg.c
libavcodec/aacenc.c
libavcodec/bmpenc.c
libavcodec/dnxhddec.c
libavcodec/dnxhdenc.c
libavcodec/ffv1.c
libavcodec/flacenc.c
libavcodec/fraps.c
libavcodec/huffyuv.c
libavcodec/libopenjpegdec.c
libavcodec/mpeg12enc.c
libavcodec/mpeg4videodec.c
libavcodec/pamenc.c
libavcodec/pgssubdec.c
libavcodec/pngenc.c
libavcodec/qtrleenc.c
libavcodec/rawdec.c
libavcodec/sgienc.c
libavcodec/tiffenc.c
libavcodec/v210dec.c
libavcodec/wmv2dec.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
... | ... |
@@ -1704,7 +1704,7 @@ ffplay_select="buffersink_filter rdft" |
1704 | 1704 |
ffprobe_deps="avcodec avformat" |
1705 | 1705 |
ffserver_deps="avformat ffm_muxer fork rtp_protocol rtsp_demuxer" |
1706 | 1706 |
ffserver_extralibs='$ldl' |
1707 |
-ffmpeg_deps="avcodec avformat swscale swresample" |
|
1707 |
+ffmpeg_deps="avcodec avfilter avformat swscale swresample" |
|
1708 | 1708 |
ffmpeg_select="buffersink_filter" |
1709 | 1709 |
|
1710 | 1710 |
doc_deps="texi2html" |
... | ... |
@@ -55,14 +55,12 @@ |
55 | 55 |
|
56 | 56 |
#include "libavformat/ffm.h" // not public API |
57 | 57 |
|
58 |
-#if CONFIG_AVFILTER |
|
59 | 58 |
# include "libavfilter/avcodec.h" |
60 | 59 |
# include "libavfilter/avfilter.h" |
61 | 60 |
# include "libavfilter/avfiltergraph.h" |
62 | 61 |
# include "libavfilter/buffersink.h" |
63 | 62 |
# include "libavfilter/buffersrc.h" |
64 | 63 |
# include "libavfilter/vsrc_buffer.h" |
65 |
-#endif |
|
66 | 64 |
|
67 | 65 |
#if HAVE_SYS_RESOURCE_H |
68 | 66 |
#include <sys/types.h> |
... | ... |
@@ -245,8 +243,6 @@ typedef struct OutputStream { |
245 | 245 |
|
246 | 246 |
/* video only */ |
247 | 247 |
int video_resample; |
248 |
- AVFrame resample_frame; /* temporary frame for image resampling */ |
|
249 |
- struct SwsContext *img_resample_ctx; /* for image resampling */ |
|
250 | 248 |
int resample_height; |
251 | 249 |
int resample_width; |
252 | 250 |
int resample_pix_fmt; |
... | ... |
@@ -274,13 +270,11 @@ typedef struct OutputStream { |
274 | 274 |
|
275 | 275 |
SwrContext *swr; |
276 | 276 |
|
277 |
-#if CONFIG_AVFILTER |
|
278 | 277 |
AVFilterContext *output_video_filter; |
279 | 278 |
AVFilterContext *input_video_filter; |
280 | 279 |
AVFilterBufferRef *picref; |
281 | 280 |
char *avfilter; |
282 | 281 |
AVFilterGraph *graph; |
283 |
-#endif |
|
284 | 282 |
|
285 | 283 |
int64_t sws_flags; |
286 | 284 |
AVDictionary *opts; |
... | ... |
@@ -405,10 +399,8 @@ typedef struct OptionsContext { |
405 | 405 |
int nb_presets; |
406 | 406 |
SpecifierOpt *copy_initial_nonkeyframes; |
407 | 407 |
int nb_copy_initial_nonkeyframes; |
408 |
-#if CONFIG_AVFILTER |
|
409 | 408 |
SpecifierOpt *filters; |
410 | 409 |
int nb_filters; |
411 |
-#endif |
|
412 | 410 |
} OptionsContext; |
413 | 411 |
|
414 | 412 |
#define MATCH_PER_STREAM_OPT(name, type, outvar, fmtctx, st)\ |
... | ... |
@@ -597,8 +589,6 @@ static void filter_release_buffer(AVFilterBuffer *fb) |
597 | 597 |
unref_buffer(buf->ist, buf); |
598 | 598 |
} |
599 | 599 |
|
600 |
-#if CONFIG_AVFILTER |
|
601 |
- |
|
602 | 600 |
static int configure_video_filters(InputStream *ist, OutputStream *ost) |
603 | 601 |
{ |
604 | 602 |
AVFilterContext *last_filter, *filter; |
... | ... |
@@ -693,7 +683,6 @@ static int configure_video_filters(InputStream *ist, OutputStream *ost) |
693 | 693 |
|
694 | 694 |
return 0; |
695 | 695 |
} |
696 |
-#endif /* CONFIG_AVFILTER */ |
|
697 | 696 |
|
698 | 697 |
static void term_exit(void) |
699 | 698 |
{ |
... | ... |
@@ -863,9 +852,7 @@ void av_noreturn exit_program(int ret) |
863 | 863 |
av_freep(&async_buf); |
864 | 864 |
allocated_async_buf_size = 0; |
865 | 865 |
|
866 |
-#if CONFIG_AVFILTER |
|
867 | 866 |
avfilter_uninit(); |
868 |
-#endif |
|
869 | 867 |
avformat_network_deinit(); |
870 | 868 |
|
871 | 869 |
if (received_sigterm) { |
... | ... |
@@ -1439,65 +1426,6 @@ static void do_subtitle_out(AVFormatContext *s, |
1439 | 1439 |
} |
1440 | 1440 |
} |
1441 | 1441 |
|
1442 |
-static void do_video_resample(OutputStream *ost, |
|
1443 |
- InputStream *ist, |
|
1444 |
- AVFrame *in_picture, |
|
1445 |
- AVFrame **out_picture) |
|
1446 |
-{ |
|
1447 |
-#if CONFIG_AVFILTER |
|
1448 |
- *out_picture = in_picture; |
|
1449 |
-#else |
|
1450 |
- AVCodecContext *dec = ist->st->codec; |
|
1451 |
- AVCodecContext *enc = ost->st->codec; |
|
1452 |
- int resample_changed = ost->resample_width != in_picture->width || |
|
1453 |
- ost->resample_height != in_picture->height || |
|
1454 |
- ost->resample_pix_fmt != in_picture->format; |
|
1455 |
- |
|
1456 |
- *out_picture = in_picture; |
|
1457 |
- if (resample_changed) { |
|
1458 |
- av_log(NULL, AV_LOG_INFO, |
|
1459 |
- "Input stream #%d:%d frame changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s / frm size:%dx%d fmt:%s\n", |
|
1460 |
- ist->file_index, ist->st->index, |
|
1461 |
- ost->resample_width, ost->resample_height, av_get_pix_fmt_name(ost->resample_pix_fmt), |
|
1462 |
- dec->width , dec->height , av_get_pix_fmt_name(dec->pix_fmt), |
|
1463 |
- in_picture->width, in_picture->height, av_get_pix_fmt_name(in_picture->format)); |
|
1464 |
- ost->resample_width = in_picture->width; |
|
1465 |
- ost->resample_height = in_picture->height; |
|
1466 |
- ost->resample_pix_fmt = in_picture->format; |
|
1467 |
- } |
|
1468 |
- |
|
1469 |
- ost->video_resample = in_picture->width != enc->width || |
|
1470 |
- in_picture->height != enc->height || |
|
1471 |
- in_picture->format != enc->pix_fmt; |
|
1472 |
- |
|
1473 |
- if (ost->video_resample) { |
|
1474 |
- *out_picture = &ost->resample_frame; |
|
1475 |
- if (!ost->img_resample_ctx || resample_changed) { |
|
1476 |
- /* initialize the destination picture */ |
|
1477 |
- if (!ost->resample_frame.data[0]) { |
|
1478 |
- avcodec_get_frame_defaults(&ost->resample_frame); |
|
1479 |
- if (avpicture_alloc((AVPicture *)&ost->resample_frame, enc->pix_fmt, |
|
1480 |
- enc->width, enc->height)) { |
|
1481 |
- av_log(NULL, AV_LOG_FATAL, "Cannot allocate temp picture, check pix fmt\n"); |
|
1482 |
- exit_program(1); |
|
1483 |
- } |
|
1484 |
- } |
|
1485 |
- /* initialize a new scaler context */ |
|
1486 |
- sws_freeContext(ost->img_resample_ctx); |
|
1487 |
- ost->img_resample_ctx = sws_getContext(in_picture->width, in_picture->height, in_picture->format, |
|
1488 |
- enc->width, enc->height, enc->pix_fmt, |
|
1489 |
- ost->sws_flags, NULL, NULL, NULL); |
|
1490 |
- if (ost->img_resample_ctx == NULL) { |
|
1491 |
- av_log(NULL, AV_LOG_FATAL, "Cannot get resampling context\n"); |
|
1492 |
- exit_program(1); |
|
1493 |
- } |
|
1494 |
- } |
|
1495 |
- sws_scale(ost->img_resample_ctx, in_picture->data, in_picture->linesize, |
|
1496 |
- 0, ost->resample_height, (*out_picture)->data, (*out_picture)->linesize); |
|
1497 |
- } |
|
1498 |
-#endif |
|
1499 |
-} |
|
1500 |
- |
|
1501 | 1442 |
static double psnr(double d) |
1502 | 1443 |
{ |
1503 | 1444 |
return -10.0 * log(d) / log(10.0); |
... | ... |
@@ -1545,7 +1473,6 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost, |
1545 | 1545 |
InputStream *ist, AVFrame *in_picture) |
1546 | 1546 |
{ |
1547 | 1547 |
int nb_frames, i, ret, format_video_sync; |
1548 |
- AVFrame *final_picture; |
|
1549 | 1548 |
AVCodecContext *enc; |
1550 | 1549 |
double sync_ipts, delta; |
1551 | 1550 |
double duration = 0; |
... | ... |
@@ -1607,8 +1534,6 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost, |
1607 | 1607 |
av_log(NULL, AV_LOG_VERBOSE, "*** %d dup!\n", nb_frames - 1); |
1608 | 1608 |
} |
1609 | 1609 |
|
1610 |
- do_video_resample(ost, ist, in_picture, &final_picture); |
|
1611 |
- |
|
1612 | 1610 |
/* duplicates frame if needed */ |
1613 | 1611 |
for (i = 0; i < nb_frames; i++) { |
1614 | 1612 |
AVPacket pkt; |
... | ... |
@@ -1623,7 +1548,7 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost, |
1623 | 1623 |
method. */ |
1624 | 1624 |
enc->coded_frame->interlaced_frame = in_picture->interlaced_frame; |
1625 | 1625 |
enc->coded_frame->top_field_first = in_picture->top_field_first; |
1626 |
- pkt.data = (uint8_t *)final_picture; |
|
1626 |
+ pkt.data = (uint8_t *)in_picture; |
|
1627 | 1627 |
pkt.size = sizeof(AVPicture); |
1628 | 1628 |
pkt.pts = av_rescale_q(ost->sync_opts, enc->time_base, ost->st->time_base); |
1629 | 1629 |
pkt.flags |= AV_PKT_FLAG_KEY; |
... | ... |
@@ -1633,7 +1558,7 @@ static void do_video_out(AVFormatContext *s, OutputStream *ost, |
1633 | 1633 |
int got_packet; |
1634 | 1634 |
AVFrame big_picture; |
1635 | 1635 |
|
1636 |
- big_picture = *final_picture; |
|
1636 |
+ big_picture = *in_picture; |
|
1637 | 1637 |
/* better than nothing: use input picture interlaced |
1638 | 1638 |
settings */ |
1639 | 1639 |
big_picture.interlaced_frame = in_picture->interlaced_frame; |
... | ... |
@@ -2157,7 +2082,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int |
2157 | 2157 |
|
2158 | 2158 |
pre_process_video_frame(ist, (AVPicture *)decoded_frame, &buffer_to_free); |
2159 | 2159 |
|
2160 |
-#if CONFIG_AVFILTER |
|
2161 | 2160 |
frame_sample_aspect= av_opt_ptr(avcodec_get_frame_class(), decoded_frame, "sample_aspect_ratio"); |
2162 | 2161 |
for(i=0;i<nb_output_streams;i++) { |
2163 | 2162 |
OutputStream *ost = ost = &output_streams[i]; |
... | ... |
@@ -2189,7 +2113,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int |
2189 | 2189 |
} |
2190 | 2190 |
} |
2191 | 2191 |
} |
2192 |
-#endif |
|
2193 | 2192 |
|
2194 | 2193 |
rate_emu_sleep(ist); |
2195 | 2194 |
|
... | ... |
@@ -2199,7 +2122,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int |
2199 | 2199 |
if (!check_output_constraints(ist, ost) || !ost->encoding_needed) |
2200 | 2200 |
continue; |
2201 | 2201 |
|
2202 |
-#if CONFIG_AVFILTER |
|
2203 | 2202 |
while (av_buffersink_poll_frame(ost->output_video_filter)) { |
2204 | 2203 |
AVRational ist_pts_tb = ost->output_video_filter->inputs[0]->time_base; |
2205 | 2204 |
AVFrame *filtered_frame; |
... | ... |
@@ -2222,9 +2144,6 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int |
2222 | 2222 |
cont: |
2223 | 2223 |
avfilter_unref_buffer(ost->picref); |
2224 | 2224 |
} |
2225 |
-#else |
|
2226 |
- do_video_out(output_files[ost->file_index].ctx, ost, ist, decoded_frame); |
|
2227 |
-#endif |
|
2228 | 2225 |
} |
2229 | 2226 |
|
2230 | 2227 |
fail: |
... | ... |
@@ -2679,12 +2598,10 @@ static int transcode_init(OutputFile *output_files, int nb_output_files, |
2679 | 2679 |
AV_TIME_BASE_Q, |
2680 | 2680 |
codec->time_base); |
2681 | 2681 |
|
2682 |
-#if CONFIG_AVFILTER |
|
2683 | 2682 |
if (configure_video_filters(ist, ost)) { |
2684 | 2683 |
av_log(NULL, AV_LOG_FATAL, "Error opening filters!\n"); |
2685 | 2684 |
exit_program(1); |
2686 | 2685 |
} |
2687 |
-#endif |
|
2688 | 2686 |
break; |
2689 | 2687 |
case AVMEDIA_TYPE_SUBTITLE: |
2690 | 2688 |
codec->time_base = (AVRational){1, 1000}; |
... | ... |
@@ -2924,7 +2841,6 @@ static int transcode(OutputFile *output_files, int nb_output_files, |
2924 | 2924 |
do_pkt_dump = 1; |
2925 | 2925 |
av_log_set_level(AV_LOG_DEBUG); |
2926 | 2926 |
} |
2927 |
-#if CONFIG_AVFILTER |
|
2928 | 2927 |
if (key == 'c' || key == 'C'){ |
2929 | 2928 |
char buf[4096], target[64], command[256], arg[256] = {0}; |
2930 | 2929 |
double time; |
... | ... |
@@ -2957,7 +2873,6 @@ static int transcode(OutputFile *output_files, int nb_output_files, |
2957 | 2957 |
"only %d given in string '%s'\n", n, buf); |
2958 | 2958 |
} |
2959 | 2959 |
} |
2960 |
-#endif |
|
2961 | 2960 |
if (key == 'd' || key == 'D'){ |
2962 | 2961 |
int debug=0; |
2963 | 2962 |
if(key == 'D') { |
... | ... |
@@ -3170,9 +3085,7 @@ static int transcode(OutputFile *output_files, int nb_output_files, |
3170 | 3170 |
av_freep(&ost->st->codec->stats_in); |
3171 | 3171 |
avcodec_close(ost->st->codec); |
3172 | 3172 |
} |
3173 |
-#if CONFIG_AVFILTER |
|
3174 | 3173 |
avfilter_graph_free(&ost->graph); |
3175 |
-#endif |
|
3176 | 3174 |
} |
3177 | 3175 |
|
3178 | 3176 |
/* close each decoder */ |
... | ... |
@@ -3202,10 +3115,7 @@ static int transcode(OutputFile *output_files, int nb_output_files, |
3202 | 3202 |
av_fifo_free(ost->fifo); /* works even if fifo is not |
3203 | 3203 |
initialized but set to zero */ |
3204 | 3204 |
av_freep(&ost->st->codec->subtitle_header); |
3205 |
- av_free(ost->resample_frame.data[0]); |
|
3206 | 3205 |
av_free(ost->forced_kf_pts); |
3207 |
- if (ost->video_resample) |
|
3208 |
- sws_freeContext(ost->img_resample_ctx); |
|
3209 | 3206 |
swr_free(&ost->swr); |
3210 | 3207 |
av_dict_free(&ost->opts); |
3211 | 3208 |
} |
... | ... |
@@ -4141,11 +4051,9 @@ static OutputStream *new_video_stream(OptionsContext *o, AVFormatContext *oc, in |
4141 | 4141 |
ost->top_field_first = -1; |
4142 | 4142 |
MATCH_PER_STREAM_OPT(top_field_first, i, ost->top_field_first, oc, st); |
4143 | 4143 |
|
4144 |
-#if CONFIG_AVFILTER |
|
4145 | 4144 |
MATCH_PER_STREAM_OPT(filters, str, filters, oc, st); |
4146 | 4145 |
if (filters) |
4147 | 4146 |
ost->avfilter = av_strdup(filters); |
4148 |
-#endif |
|
4149 | 4147 |
} else { |
4150 | 4148 |
MATCH_PER_STREAM_OPT(copy_initial_nonkeyframes, i, ost->copy_initial_nonkeyframes, oc ,st); |
4151 | 4149 |
} |
... | ... |
@@ -5080,9 +4988,7 @@ static const OptionDef options[] = { |
5080 | 5080 |
{ "q", HAS_ARG | OPT_EXPERT | OPT_DOUBLE | OPT_SPEC, {.off = OFFSET(qscale)}, "use fixed quality scale (VBR)", "q" }, |
5081 | 5081 |
{ "qscale", HAS_ARG | OPT_EXPERT | OPT_FUNC2, {(void*)opt_qscale}, "use fixed quality scale (VBR)", "q" }, |
5082 | 5082 |
{ "profile", HAS_ARG | OPT_EXPERT | OPT_FUNC2, {(void*)opt_profile}, "set profile", "profile" }, |
5083 |
-#if CONFIG_AVFILTER |
|
5084 | 5083 |
{ "filter", HAS_ARG | OPT_STRING | OPT_SPEC, {.off = OFFSET(filters)}, "set stream filterchain", "filter_list" }, |
5085 |
-#endif |
|
5086 | 5084 |
{ "stats", OPT_BOOL, {&print_stats}, "print progress report during encoding", }, |
5087 | 5085 |
{ "attach", HAS_ARG | OPT_FUNC2, {(void*)opt_attach}, "add an attachment to the output file", "filename" }, |
5088 | 5086 |
{ "dump_attachment", HAS_ARG | OPT_STRING | OPT_SPEC, {.off = OFFSET(dump_attachment)}, "extract an attachment into a file", "filename" }, |
... | ... |
@@ -5119,9 +5025,7 @@ static const OptionDef options[] = { |
5119 | 5119 |
{ "psnr", OPT_BOOL | OPT_EXPERT | OPT_VIDEO, {(void*)&do_psnr}, "calculate PSNR of compressed frames" }, |
5120 | 5120 |
{ "vstats", OPT_EXPERT | OPT_VIDEO, {(void*)&opt_vstats}, "dump video coding statistics to file" }, |
5121 | 5121 |
{ "vstats_file", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_vstats_file}, "dump video coding statistics to file", "file" }, |
5122 |
-#if CONFIG_AVFILTER |
|
5123 | 5122 |
{ "vf", HAS_ARG | OPT_VIDEO | OPT_FUNC2, {(void*)opt_video_filters}, "video filters", "filter list" }, |
5124 |
-#endif |
|
5125 | 5123 |
{ "intra_matrix", HAS_ARG | OPT_EXPERT | OPT_VIDEO | OPT_STRING | OPT_SPEC, {.off = OFFSET(intra_matrices)}, "specify intra matrix coeffs", "matrix" }, |
5126 | 5124 |
{ "inter_matrix", HAS_ARG | OPT_EXPERT | OPT_VIDEO | OPT_STRING | OPT_SPEC, {.off = OFFSET(inter_matrices)}, "specify inter matrix coeffs", "matrix" }, |
5127 | 5125 |
{ "top", HAS_ARG | OPT_EXPERT | OPT_VIDEO | OPT_INT| OPT_SPEC, {.off = OFFSET(top_field_first)}, "top=1/bottom=0/auto=-1 field first", "" }, |
... | ... |
@@ -5196,9 +5100,7 @@ int main(int argc, char **argv) |
5196 | 5196 |
#if CONFIG_AVDEVICE |
5197 | 5197 |
avdevice_register_all(); |
5198 | 5198 |
#endif |
5199 |
-#if CONFIG_AVFILTER |
|
5200 | 5199 |
avfilter_register_all(); |
5201 |
-#endif |
|
5202 | 5200 |
av_register_all(); |
5203 | 5201 |
avformat_network_init(); |
5204 | 5202 |
|
... | ... |
@@ -1844,7 +1844,7 @@ static int video_thread(void *arg) |
1844 | 1844 |
frame->opaque = picref; |
1845 | 1845 |
} |
1846 | 1846 |
|
1847 |
- if (av_cmp_q(tb, is->video_st->time_base)) { |
|
1847 |
+ if (ret >= 0 && av_cmp_q(tb, is->video_st->time_base)) { |
|
1848 | 1848 |
av_unused int64_t pts1 = pts_int; |
1849 | 1849 |
pts_int = av_rescale_q(pts_int, tb, is->video_st->time_base); |
1850 | 1850 |
av_dlog(NULL, "video_thread(): " |
... | ... |
@@ -2803,18 +2803,18 @@ static av_cold int latm_decode_init(AVCodecContext *avctx) |
2803 | 2803 |
|
2804 | 2804 |
|
2805 | 2805 |
AVCodec ff_aac_decoder = { |
2806 |
- .name = "aac", |
|
2807 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
2808 |
- .id = CODEC_ID_AAC, |
|
2809 |
- .priv_data_size = sizeof(AACContext), |
|
2810 |
- .init = aac_decode_init, |
|
2811 |
- .close = aac_decode_close, |
|
2812 |
- .decode = aac_decode_frame, |
|
2813 |
- .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"), |
|
2814 |
- .sample_fmts = (const enum AVSampleFormat[]) { |
|
2806 |
+ .name = "aac", |
|
2807 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
2808 |
+ .id = CODEC_ID_AAC, |
|
2809 |
+ .priv_data_size = sizeof(AACContext), |
|
2810 |
+ .init = aac_decode_init, |
|
2811 |
+ .close = aac_decode_close, |
|
2812 |
+ .decode = aac_decode_frame, |
|
2813 |
+ .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"), |
|
2814 |
+ .sample_fmts = (const enum AVSampleFormat[]) { |
|
2815 | 2815 |
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE |
2816 | 2816 |
}, |
2817 |
- .capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1, |
|
2817 |
+ .capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1, |
|
2818 | 2818 |
.channel_layouts = aac_channel_layout, |
2819 | 2819 |
}; |
2820 | 2820 |
|
... | ... |
@@ -2824,18 +2824,18 @@ AVCodec ff_aac_decoder = { |
2824 | 2824 |
To do a more complex LATM demuxing a separate LATM demuxer should be used. |
2825 | 2825 |
*/ |
2826 | 2826 |
AVCodec ff_aac_latm_decoder = { |
2827 |
- .name = "aac_latm", |
|
2828 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
2829 |
- .id = CODEC_ID_AAC_LATM, |
|
2830 |
- .priv_data_size = sizeof(struct LATMContext), |
|
2831 |
- .init = latm_decode_init, |
|
2832 |
- .close = aac_decode_close, |
|
2833 |
- .decode = latm_decode_frame, |
|
2834 |
- .long_name = NULL_IF_CONFIG_SMALL("AAC LATM (Advanced Audio Codec LATM syntax)"), |
|
2835 |
- .sample_fmts = (const enum AVSampleFormat[]) { |
|
2827 |
+ .name = "aac_latm", |
|
2828 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
2829 |
+ .id = CODEC_ID_AAC_LATM, |
|
2830 |
+ .priv_data_size = sizeof(struct LATMContext), |
|
2831 |
+ .init = latm_decode_init, |
|
2832 |
+ .close = aac_decode_close, |
|
2833 |
+ .decode = latm_decode_frame, |
|
2834 |
+ .long_name = NULL_IF_CONFIG_SMALL("AAC LATM (Advanced Audio Codec LATM syntax)"), |
|
2835 |
+ .sample_fmts = (const enum AVSampleFormat[]) { |
|
2836 | 2836 |
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE |
2837 | 2837 |
}, |
2838 |
- .capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1, |
|
2838 |
+ .capabilities = CODEC_CAP_CHANNEL_CONF | CODEC_CAP_DR1, |
|
2839 | 2839 |
.channel_layouts = aac_channel_layout, |
2840 | 2840 |
.flush = flush, |
2841 | 2841 |
}; |
... | ... |
@@ -817,8 +817,10 @@ AVCodec ff_aac_encoder = { |
817 | 817 |
.encode2 = aac_encode_frame, |
818 | 818 |
.close = aac_encode_end, |
819 | 819 |
.supported_samplerates = avpriv_mpeg4audio_sample_rates, |
820 |
- .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY | CODEC_CAP_EXPERIMENTAL, |
|
821 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, |
|
822 |
- .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"), |
|
823 |
- .priv_class = &aacenc_class, |
|
820 |
+ .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY | |
|
821 |
+ CODEC_CAP_EXPERIMENTAL, |
|
822 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
|
823 |
+ AV_SAMPLE_FMT_NONE }, |
|
824 |
+ .long_name = NULL_IF_CONFIG_SMALL("Advanced Audio Coding"), |
|
825 |
+ .priv_class = &aacenc_class, |
|
824 | 826 |
}; |
... | ... |
@@ -147,16 +147,17 @@ static av_cold int ac3_fixed_encode_init(AVCodecContext *avctx) |
147 | 147 |
|
148 | 148 |
|
149 | 149 |
AVCodec ff_ac3_fixed_encoder = { |
150 |
- .name = "ac3_fixed", |
|
151 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
152 |
- .id = CODEC_ID_AC3, |
|
153 |
- .priv_data_size = sizeof(AC3EncodeContext), |
|
154 |
- .init = ac3_fixed_encode_init, |
|
155 |
- .encode2 = ff_ac3_fixed_encode_frame, |
|
156 |
- .close = ff_ac3_encode_close, |
|
157 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
158 |
- .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), |
|
159 |
- .priv_class = &ac3enc_class, |
|
150 |
+ .name = "ac3_fixed", |
|
151 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
152 |
+ .id = CODEC_ID_AC3, |
|
153 |
+ .priv_data_size = sizeof(AC3EncodeContext), |
|
154 |
+ .init = ac3_fixed_encode_init, |
|
155 |
+ .encode2 = ff_ac3_fixed_encode_frame, |
|
156 |
+ .close = ff_ac3_encode_close, |
|
157 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
158 |
+ AV_SAMPLE_FMT_NONE }, |
|
159 |
+ .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), |
|
160 |
+ .priv_class = &ac3enc_class, |
|
160 | 161 |
.channel_layouts = ff_ac3_channel_layouts, |
161 | 162 |
.defaults = ac3_defaults, |
162 | 163 |
}; |
... | ... |
@@ -145,16 +145,17 @@ static CoefType calc_cpl_coord(CoefSumType energy_ch, CoefSumType energy_cpl) |
145 | 145 |
|
146 | 146 |
#if CONFIG_AC3_ENCODER |
147 | 147 |
AVCodec ff_ac3_encoder = { |
148 |
- .name = "ac3", |
|
149 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
150 |
- .id = CODEC_ID_AC3, |
|
151 |
- .priv_data_size = sizeof(AC3EncodeContext), |
|
152 |
- .init = ff_ac3_encode_init, |
|
153 |
- .encode2 = ff_ac3_float_encode_frame, |
|
154 |
- .close = ff_ac3_encode_close, |
|
155 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, |
|
156 |
- .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), |
|
157 |
- .priv_class = &ac3enc_class, |
|
148 |
+ .name = "ac3", |
|
149 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
150 |
+ .id = CODEC_ID_AC3, |
|
151 |
+ .priv_data_size = sizeof(AC3EncodeContext), |
|
152 |
+ .init = ff_ac3_encode_init, |
|
153 |
+ .encode2 = ff_ac3_float_encode_frame, |
|
154 |
+ .close = ff_ac3_encode_close, |
|
155 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
|
156 |
+ AV_SAMPLE_FMT_NONE }, |
|
157 |
+ .long_name = NULL_IF_CONFIG_SMALL("ATSC A/52A (AC-3)"), |
|
158 |
+ .priv_class = &ac3enc_class, |
|
158 | 159 |
.channel_layouts = ff_ac3_channel_layouts, |
159 | 160 |
.defaults = ac3_defaults, |
160 | 161 |
}; |
... | ... |
@@ -727,8 +727,8 @@ AVCodec ff_ ## name_ ## _encoder = { \ |
727 | 727 |
.init = adpcm_encode_init, \ |
728 | 728 |
.encode2 = adpcm_encode_frame, \ |
729 | 729 |
.close = adpcm_encode_close, \ |
730 |
- .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, \ |
|
731 |
- AV_SAMPLE_FMT_NONE}, \ |
|
730 |
+ .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, \ |
|
731 |
+ AV_SAMPLE_FMT_NONE }, \ |
|
732 | 732 |
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \ |
733 | 733 |
} |
734 | 734 |
|
... | ... |
@@ -693,5 +693,5 @@ AVCodec ff_alac_decoder = { |
693 | 693 |
.close = alac_decode_close, |
694 | 694 |
.decode = alac_decode_frame, |
695 | 695 |
.capabilities = CODEC_CAP_DR1, |
696 |
- .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"), |
|
696 |
+ .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"), |
|
697 | 697 |
}; |
... | ... |
@@ -1759,7 +1759,7 @@ AVCodec ff_als_decoder = { |
1759 | 1759 |
.init = decode_init, |
1760 | 1760 |
.close = decode_end, |
1761 | 1761 |
.decode = decode_frame, |
1762 |
- .flush = flush, |
|
1763 |
- .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, |
|
1764 |
- .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 Audio Lossless Coding (ALS)"), |
|
1762 |
+ .flush = flush, |
|
1763 |
+ .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, |
|
1764 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 Audio Lossless Coding (ALS)"), |
|
1765 | 1765 |
}; |
... | ... |
@@ -1064,5 +1064,6 @@ AVCodec ff_amrnb_decoder = { |
1064 | 1064 |
.decode = amrnb_decode_frame, |
1065 | 1065 |
.capabilities = CODEC_CAP_DR1, |
1066 | 1066 |
.long_name = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate NarrowBand"), |
1067 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, |
|
1067 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
|
1068 |
+ AV_SAMPLE_FMT_NONE }, |
|
1068 | 1069 |
}; |
... | ... |
@@ -1243,5 +1243,6 @@ AVCodec ff_amrwb_decoder = { |
1243 | 1243 |
.decode = amrwb_decode_frame, |
1244 | 1244 |
.capabilities = CODEC_CAP_DR1, |
1245 | 1245 |
.long_name = NULL_IF_CONFIG_SMALL("Adaptive Multi-Rate WideBand"), |
1246 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, |
|
1246 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
|
1247 |
+ AV_SAMPLE_FMT_NONE }, |
|
1247 | 1248 |
}; |
... | ... |
@@ -993,7 +993,7 @@ AVCodec ff_ape_decoder = { |
993 | 993 |
.close = ape_decode_close, |
994 | 994 |
.decode = ape_decode_frame, |
995 | 995 |
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DELAY | CODEC_CAP_DR1, |
996 |
- .flush = ape_flush, |
|
997 |
- .long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"), |
|
996 |
+ .flush = ape_flush, |
|
997 |
+ .long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"), |
|
998 | 998 |
.priv_class = &ape_decoder_class, |
999 | 999 |
}; |
... | ... |
@@ -624,7 +624,7 @@ AVCodec ff_asv1_decoder = { |
624 | 624 |
.close = decode_end, |
625 | 625 |
.decode = decode_frame, |
626 | 626 |
.capabilities = CODEC_CAP_DR1, |
627 |
- .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), |
|
627 |
+ .long_name = NULL_IF_CONFIG_SMALL("ASUS V1"), |
|
628 | 628 |
}; |
629 | 629 |
|
630 | 630 |
AVCodec ff_asv2_decoder = { |
... | ... |
@@ -636,7 +636,7 @@ AVCodec ff_asv2_decoder = { |
636 | 636 |
.close = decode_end, |
637 | 637 |
.decode = decode_frame, |
638 | 638 |
.capabilities = CODEC_CAP_DR1, |
639 |
- .long_name= NULL_IF_CONFIG_SMALL("ASUS V2"), |
|
639 |
+ .long_name = NULL_IF_CONFIG_SMALL("ASUS V2"), |
|
640 | 640 |
}; |
641 | 641 |
|
642 | 642 |
#if CONFIG_ASV1_ENCODER |
... | ... |
@@ -647,9 +647,8 @@ AVCodec ff_asv1_encoder = { |
647 | 647 |
.priv_data_size = sizeof(ASV1Context), |
648 | 648 |
.init = encode_init, |
649 | 649 |
.encode2 = encode_frame, |
650 |
- //encode_end, |
|
651 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
652 |
- .long_name= NULL_IF_CONFIG_SMALL("ASUS V1"), |
|
650 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
651 |
+ .long_name = NULL_IF_CONFIG_SMALL("ASUS V1"), |
|
653 | 652 |
}; |
654 | 653 |
#endif |
655 | 654 |
|
... | ... |
@@ -661,8 +660,7 @@ AVCodec ff_asv2_encoder = { |
661 | 661 |
.priv_data_size = sizeof(ASV1Context), |
662 | 662 |
.init = encode_init, |
663 | 663 |
.encode2 = encode_frame, |
664 |
- //encode_end, |
|
665 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
666 |
- .long_name= NULL_IF_CONFIG_SMALL("ASUS V2"), |
|
664 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
665 |
+ .long_name = NULL_IF_CONFIG_SMALL("ASUS V2"), |
|
667 | 666 |
}; |
668 | 667 |
#endif |
... | ... |
@@ -401,13 +401,13 @@ static av_cold int atrac1_decode_init(AVCodecContext *avctx) |
401 | 401 |
|
402 | 402 |
|
403 | 403 |
AVCodec ff_atrac1_decoder = { |
404 |
- .name = "atrac1", |
|
405 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
406 |
- .id = CODEC_ID_ATRAC1, |
|
404 |
+ .name = "atrac1", |
|
405 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
406 |
+ .id = CODEC_ID_ATRAC1, |
|
407 | 407 |
.priv_data_size = sizeof(AT1Ctx), |
408 |
- .init = atrac1_decode_init, |
|
409 |
- .close = atrac1_decode_end, |
|
410 |
- .decode = atrac1_decode_frame, |
|
411 |
- .capabilities = CODEC_CAP_DR1, |
|
412 |
- .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"), |
|
408 |
+ .init = atrac1_decode_init, |
|
409 |
+ .close = atrac1_decode_end, |
|
410 |
+ .decode = atrac1_decode_frame, |
|
411 |
+ .capabilities = CODEC_CAP_DR1, |
|
412 |
+ .long_name = NULL_IF_CONFIG_SMALL("Atrac 1 (Adaptive TRansform Acoustic Coding)"), |
|
413 | 413 |
}; |
... | ... |
@@ -1066,13 +1066,13 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx) |
1066 | 1066 |
|
1067 | 1067 |
AVCodec ff_atrac3_decoder = |
1068 | 1068 |
{ |
1069 |
- .name = "atrac3", |
|
1070 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
1071 |
- .id = CODEC_ID_ATRAC3, |
|
1069 |
+ .name = "atrac3", |
|
1070 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
1071 |
+ .id = CODEC_ID_ATRAC3, |
|
1072 | 1072 |
.priv_data_size = sizeof(ATRAC3Context), |
1073 |
- .init = atrac3_decode_init, |
|
1074 |
- .close = atrac3_decode_close, |
|
1075 |
- .decode = atrac3_decode_frame, |
|
1076 |
- .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, |
|
1077 |
- .long_name = NULL_IF_CONFIG_SMALL("Atrac 3 (Adaptive TRansform Acoustic Coding 3)"), |
|
1073 |
+ .init = atrac3_decode_init, |
|
1074 |
+ .close = atrac3_decode_close, |
|
1075 |
+ .decode = atrac3_decode_frame, |
|
1076 |
+ .capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, |
|
1077 |
+ .long_name = NULL_IF_CONFIG_SMALL("Atrac 3 (Adaptive TRansform Acoustic Coding 3)"), |
|
1078 | 1078 |
}; |
... | ... |
@@ -132,5 +132,5 @@ AVCodec ff_aura2_decoder = { |
132 | 132 |
.close = aura_decode_end, |
133 | 133 |
.decode = aura_decode_frame, |
134 | 134 |
.capabilities = CODEC_CAP_DR1, |
135 |
- .long_name = NULL_IF_CONFIG_SMALL("Auravision Aura 2"), |
|
135 |
+ .long_name = NULL_IF_CONFIG_SMALL("Auravision Aura 2"), |
|
136 | 136 |
}; |
... | ... |
@@ -183,5 +183,5 @@ AVCodec ff_avs_decoder = { |
183 | 183 |
.decode = avs_decode_frame, |
184 | 184 |
.close = avs_decode_end, |
185 | 185 |
.capabilities = CODEC_CAP_DR1, |
186 |
- .long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"), |
|
186 |
+ .long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"), |
|
187 | 187 |
}; |
... | ... |
@@ -153,13 +153,13 @@ static av_cold int bethsoftvid_decode_end(AVCodecContext *avctx) |
153 | 153 |
} |
154 | 154 |
|
155 | 155 |
AVCodec ff_bethsoftvid_decoder = { |
156 |
- .name = "bethsoftvid", |
|
157 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
158 |
- .id = CODEC_ID_BETHSOFTVID, |
|
156 |
+ .name = "bethsoftvid", |
|
157 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
158 |
+ .id = CODEC_ID_BETHSOFTVID, |
|
159 | 159 |
.priv_data_size = sizeof(BethsoftvidContext), |
160 |
- .init = bethsoftvid_decode_init, |
|
161 |
- .close = bethsoftvid_decode_end, |
|
162 |
- .decode = bethsoftvid_decode_frame, |
|
163 |
- .capabilities = CODEC_CAP_DR1, |
|
164 |
- .long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"), |
|
160 |
+ .init = bethsoftvid_decode_init, |
|
161 |
+ .close = bethsoftvid_decode_end, |
|
162 |
+ .decode = bethsoftvid_decode_frame, |
|
163 |
+ .capabilities = CODEC_CAP_DR1, |
|
164 |
+ .long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"), |
|
165 | 165 |
}; |
... | ... |
@@ -189,13 +189,13 @@ static av_cold int bfi_decode_close(AVCodecContext * avctx) |
189 | 189 |
} |
190 | 190 |
|
191 | 191 |
AVCodec ff_bfi_decoder = { |
192 |
- .name = "bfi", |
|
193 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
194 |
- .id = CODEC_ID_BFI, |
|
192 |
+ .name = "bfi", |
|
193 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
194 |
+ .id = CODEC_ID_BFI, |
|
195 | 195 |
.priv_data_size = sizeof(BFIContext), |
196 |
- .init = bfi_decode_init, |
|
197 |
- .close = bfi_decode_close, |
|
198 |
- .decode = bfi_decode_frame, |
|
199 |
- .capabilities = CODEC_CAP_DR1, |
|
200 |
- .long_name = NULL_IF_CONFIG_SMALL("Brute Force & Ignorance"), |
|
196 |
+ .init = bfi_decode_init, |
|
197 |
+ .close = bfi_decode_close, |
|
198 |
+ .decode = bfi_decode_frame, |
|
199 |
+ .capabilities = CODEC_CAP_DR1, |
|
200 |
+ .long_name = NULL_IF_CONFIG_SMALL("Brute Force & Ignorance"), |
|
201 | 201 |
}; |
... | ... |
@@ -367,7 +367,7 @@ AVCodec ff_binkaudio_rdft_decoder = { |
367 | 367 |
.close = decode_end, |
368 | 368 |
.decode = decode_frame, |
369 | 369 |
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1, |
370 |
- .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (RDFT)") |
|
370 |
+ .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (RDFT)") |
|
371 | 371 |
}; |
372 | 372 |
|
373 | 373 |
AVCodec ff_binkaudio_dct_decoder = { |
... | ... |
@@ -379,5 +379,5 @@ AVCodec ff_binkaudio_dct_decoder = { |
379 | 379 |
.close = decode_end, |
380 | 380 |
.decode = decode_frame, |
381 | 381 |
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1, |
382 |
- .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (DCT)") |
|
382 |
+ .long_name = NULL_IF_CONFIG_SMALL("Bink Audio (DCT)") |
|
383 | 383 |
}; |
... | ... |
@@ -172,11 +172,12 @@ AVCodec ff_bmp_encoder = { |
172 | 172 |
.priv_data_size = sizeof(BMPContext), |
173 | 173 |
.init = bmp_encode_init, |
174 | 174 |
.encode2 = bmp_encode_frame, |
175 |
- .pix_fmts = (const enum PixelFormat[]){ |
|
175 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
176 | 176 |
PIX_FMT_BGRA, PIX_FMT_BGR24, |
177 | 177 |
PIX_FMT_RGB565, PIX_FMT_RGB555, PIX_FMT_RGB444, |
178 | 178 |
PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, |
179 | 179 |
PIX_FMT_MONOBLACK, |
180 |
- PIX_FMT_NONE}, |
|
181 |
- .long_name = NULL_IF_CONFIG_SMALL("BMP image"), |
|
180 |
+ PIX_FMT_NONE |
|
181 |
+ }, |
|
182 |
+ .long_name = NULL_IF_CONFIG_SMALL("BMP image"), |
|
182 | 183 |
}; |
... | ... |
@@ -738,6 +738,6 @@ AVCodec ff_cavs_decoder = { |
738 | 738 |
.close = ff_cavs_end, |
739 | 739 |
.decode = cavs_decode_frame, |
740 | 740 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY, |
741 |
- .flush= cavs_flush, |
|
742 |
- .long_name= NULL_IF_CONFIG_SMALL("Chinese AVS video (AVS1-P2, JiZhun profile)"), |
|
741 |
+ .flush = cavs_flush, |
|
742 |
+ .long_name = NULL_IF_CONFIG_SMALL("Chinese AVS video (AVS1-P2, JiZhun profile)"), |
|
743 | 743 |
}; |
... | ... |
@@ -376,5 +376,5 @@ AVCodec ff_cdgraphics_decoder = { |
376 | 376 |
.close = cdg_decode_end, |
377 | 377 |
.decode = cdg_decode_frame, |
378 | 378 |
.capabilities = CODEC_CAP_DR1, |
379 |
- .long_name = NULL_IF_CONFIG_SMALL("CD Graphics video"), |
|
379 |
+ .long_name = NULL_IF_CONFIG_SMALL("CD Graphics video"), |
|
380 | 380 |
}; |
... | ... |
@@ -188,7 +188,7 @@ AVCodec ff_aura_decoder = { |
188 | 188 |
.close = cyuv_decode_end, |
189 | 189 |
.decode = cyuv_decode_frame, |
190 | 190 |
.capabilities = CODEC_CAP_DR1, |
191 |
- .long_name = NULL_IF_CONFIG_SMALL("Auravision AURA"), |
|
191 |
+ .long_name = NULL_IF_CONFIG_SMALL("Auravision AURA"), |
|
192 | 192 |
}; |
193 | 193 |
#endif |
194 | 194 |
|
... | ... |
@@ -202,6 +202,6 @@ AVCodec ff_cyuv_decoder = { |
202 | 202 |
.close = cyuv_decode_end, |
203 | 203 |
.decode = cyuv_decode_frame, |
204 | 204 |
.capabilities = CODEC_CAP_DR1, |
205 |
- .long_name = NULL_IF_CONFIG_SMALL("Creative YUV (CYUV)"), |
|
205 |
+ .long_name = NULL_IF_CONFIG_SMALL("Creative YUV (CYUV)"), |
|
206 | 206 |
}; |
207 | 207 |
#endif |
... | ... |
@@ -429,5 +429,5 @@ AVCodec ff_dnxhd_decoder = { |
429 | 429 |
.close = dnxhd_decode_close, |
430 | 430 |
.decode = dnxhd_decode_frame, |
431 | 431 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
432 |
- .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), |
|
432 |
+ .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), |
|
433 | 433 |
}; |
... | ... |
@@ -1007,9 +1007,11 @@ AVCodec ff_dnxhd_encoder = { |
1007 | 1007 |
.init = dnxhd_encode_init, |
1008 | 1008 |
.encode2 = dnxhd_encode_picture, |
1009 | 1009 |
.close = dnxhd_encode_end, |
1010 |
- .capabilities = CODEC_CAP_SLICE_THREADS, |
|
1011 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_YUV422P10, PIX_FMT_NONE}, |
|
1012 |
- .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), |
|
1013 |
- .priv_class = &class, |
|
1010 |
+ .capabilities = CODEC_CAP_SLICE_THREADS, |
|
1011 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV422P, |
|
1012 |
+ PIX_FMT_YUV422P10, |
|
1013 |
+ PIX_FMT_NONE }, |
|
1014 |
+ .long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"), |
|
1015 |
+ .priv_class = &class, |
|
1014 | 1016 |
.defaults = dnxhd_defaults, |
1015 | 1017 |
}; |
... | ... |
@@ -382,7 +382,7 @@ AVCodec ff_dsicinvideo_decoder = { |
382 | 382 |
.close = cinvideo_decode_end, |
383 | 383 |
.decode = cinvideo_decode_frame, |
384 | 384 |
.capabilities = CODEC_CAP_DR1, |
385 |
- .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"), |
|
385 |
+ .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN video"), |
|
386 | 386 |
}; |
387 | 387 |
|
388 | 388 |
AVCodec ff_dsicinaudio_decoder = { |
... | ... |
@@ -393,5 +393,5 @@ AVCodec ff_dsicinaudio_decoder = { |
393 | 393 |
.init = cinaudio_decode_init, |
394 | 394 |
.decode = cinaudio_decode_frame, |
395 | 395 |
.capabilities = CODEC_CAP_DR1, |
396 |
- .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN audio"), |
|
396 |
+ .long_name = NULL_IF_CONFIG_SMALL("Delphine Software International CIN audio"), |
|
397 | 397 |
}; |
... | ... |
@@ -957,8 +957,10 @@ AVCodec ff_dvvideo_encoder = { |
957 | 957 |
.priv_data_size = sizeof(DVVideoContext), |
958 | 958 |
.init = dvvideo_init_encoder, |
959 | 959 |
.encode2 = dvvideo_encode_frame, |
960 |
- .capabilities = CODEC_CAP_SLICE_THREADS, |
|
961 |
- .pix_fmts = (const enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
962 |
- .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), |
|
960 |
+ .capabilities = CODEC_CAP_SLICE_THREADS, |
|
961 |
+ .pix_fmts = (const enum PixelFormat[]) { |
|
962 |
+ PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE |
|
963 |
+ }, |
|
964 |
+ .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), |
|
963 | 965 |
}; |
964 | 966 |
#endif // CONFIG_DVVIDEO_ENCODER |
... | ... |
@@ -467,5 +467,5 @@ AVCodec ff_dvbsub_encoder = { |
467 | 467 |
.id = CODEC_ID_DVB_SUBTITLE, |
468 | 468 |
.priv_data_size = sizeof(DVBSubtitleContext), |
469 | 469 |
.encode = dvbsub_encode, |
470 |
- .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), |
|
470 |
+ .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), |
|
471 | 471 |
}; |
... | ... |
@@ -1538,5 +1538,5 @@ AVCodec ff_dvbsub_decoder = { |
1538 | 1538 |
.init = dvbsub_init_decoder, |
1539 | 1539 |
.close = dvbsub_close_decoder, |
1540 | 1540 |
.decode = dvbsub_decode, |
1541 |
- .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), |
|
1541 |
+ .long_name = NULL_IF_CONFIG_SMALL("DVB subtitles"), |
|
1542 | 1542 |
}; |
... | ... |
@@ -381,6 +381,6 @@ AVCodec ff_dvvideo_decoder = { |
381 | 381 |
.close = dvvideo_close, |
382 | 382 |
.decode = dvvideo_decode_frame, |
383 | 383 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_SLICE_THREADS, |
384 |
- .max_lowres = 3, |
|
385 |
- .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), |
|
384 |
+ .max_lowres = 3, |
|
385 |
+ .long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"), |
|
386 | 386 |
}; |
... | ... |
@@ -327,5 +327,5 @@ AVCodec ff_dxa_decoder = { |
327 | 327 |
.close = decode_end, |
328 | 328 |
.decode = decode_frame, |
329 | 329 |
.capabilities = CODEC_CAP_DR1, |
330 |
- .long_name = NULL_IF_CONFIG_SMALL("Feeble Files/ScummVM DXA"), |
|
330 |
+ .long_name = NULL_IF_CONFIG_SMALL("Feeble Files/ScummVM DXA"), |
|
331 | 331 |
}; |
... | ... |
@@ -254,7 +254,8 @@ AVCodec ff_eac3_encoder = { |
254 | 254 |
.init = ff_ac3_encode_init, |
255 | 255 |
.encode2 = ff_ac3_float_encode_frame, |
256 | 256 |
.close = ff_ac3_encode_close, |
257 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, |
|
257 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
|
258 |
+ AV_SAMPLE_FMT_NONE }, |
|
258 | 259 |
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 E-AC-3"), |
259 | 260 |
.priv_class = &eac3enc_class, |
260 | 261 |
.channel_layouts = ff_ac3_channel_layouts, |
... | ... |
@@ -227,5 +227,5 @@ AVCodec ff_eacmv_decoder = { |
227 | 227 |
.close = cmv_decode_end, |
228 | 228 |
.decode = cmv_decode_frame, |
229 | 229 |
.capabilities = CODEC_CAP_DR1, |
230 |
- .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts CMV video"), |
|
230 |
+ .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts CMV video"), |
|
231 | 231 |
}; |
... | ... |
@@ -329,5 +329,5 @@ AVCodec ff_eamad_decoder = { |
329 | 329 |
.close = decode_end, |
330 | 330 |
.decode = decode_frame, |
331 | 331 |
.capabilities = CODEC_CAP_DR1, |
332 |
- .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Madcow Video") |
|
332 |
+ .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts Madcow Video") |
|
333 | 333 |
}; |
... | ... |
@@ -252,5 +252,5 @@ AVCodec ff_eatgq_decoder = { |
252 | 252 |
.close = tgq_decode_end, |
253 | 253 |
.decode = tgq_decode_frame, |
254 | 254 |
.capabilities = CODEC_CAP_DR1, |
255 |
- .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGQ video"), |
|
255 |
+ .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGQ video"), |
|
256 | 256 |
}; |
... | ... |
@@ -349,5 +349,5 @@ AVCodec ff_eatgv_decoder = { |
349 | 349 |
.init = tgv_decode_init, |
350 | 350 |
.close = tgv_decode_end, |
351 | 351 |
.decode = tgv_decode_frame, |
352 |
- .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"), |
|
352 |
+ .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TGV video"), |
|
353 | 353 |
}; |
... | ... |
@@ -167,5 +167,5 @@ AVCodec ff_eatqi_decoder = { |
167 | 167 |
.close = tqi_decode_end, |
168 | 168 |
.decode = tqi_decode_frame, |
169 | 169 |
.capabilities = CODEC_CAP_DR1, |
170 |
- .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"), |
|
170 |
+ .long_name = NULL_IF_CONFIG_SMALL("Electronic Arts TQI Video"), |
|
171 | 171 |
}; |
... | ... |
@@ -374,5 +374,5 @@ AVCodec ff_escape124_decoder = { |
374 | 374 |
.close = escape124_decode_close, |
375 | 375 |
.decode = escape124_decode_frame, |
376 | 376 |
.capabilities = CODEC_CAP_DR1, |
377 |
- .long_name = NULL_IF_CONFIG_SMALL("Escape 124"), |
|
377 |
+ .long_name = NULL_IF_CONFIG_SMALL("Escape 124"), |
|
378 | 378 |
}; |
... | ... |
@@ -1851,8 +1851,9 @@ AVCodec ff_ffv1_decoder = { |
1851 | 1851 |
.init = decode_init, |
1852 | 1852 |
.close = common_end, |
1853 | 1853 |
.decode = decode_frame, |
1854 |
- .capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/ | CODEC_CAP_SLICE_THREADS, |
|
1855 |
- .long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), |
|
1854 |
+ .capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/ | |
|
1855 |
+ CODEC_CAP_SLICE_THREADS, |
|
1856 |
+ .long_name = NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), |
|
1856 | 1857 |
}; |
1857 | 1858 |
|
1858 | 1859 |
#if CONFIG_FFV1_ENCODER |
... | ... |
@@ -1864,8 +1865,8 @@ AVCodec ff_ffv1_encoder = { |
1864 | 1864 |
.init = encode_init, |
1865 | 1865 |
.encode2 = encode_frame, |
1866 | 1866 |
.close = common_end, |
1867 |
- .capabilities = CODEC_CAP_SLICE_THREADS, |
|
1867 |
+ .capabilities = CODEC_CAP_SLICE_THREADS, |
|
1868 | 1868 |
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUVA420P, PIX_FMT_YUV444P, PIX_FMT_YUVA444P, PIX_FMT_YUV440P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_0RGB32, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_YUV444P9, PIX_FMT_YUV422P9, PIX_FMT_YUV420P9, PIX_FMT_YUV420P10, PIX_FMT_YUV422P10, PIX_FMT_YUV444P10, PIX_FMT_GRAY16, PIX_FMT_GRAY8, PIX_FMT_NONE}, |
1869 |
- .long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), |
|
1869 |
+ .long_name = NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"), |
|
1870 | 1870 |
}; |
1871 | 1871 |
#endif |
... | ... |
@@ -689,5 +689,5 @@ AVCodec ff_flac_decoder = { |
689 | 689 |
.close = flac_decode_close, |
690 | 690 |
.decode = flac_decode_frame, |
691 | 691 |
.capabilities = CODEC_CAP_DR1, |
692 |
- .long_name= NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), |
|
692 |
+ .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), |
|
693 | 693 |
}; |
... | ... |
@@ -1326,8 +1326,9 @@ AVCodec ff_flac_encoder = { |
1326 | 1326 |
.init = flac_encode_init, |
1327 | 1327 |
.encode2 = flac_encode_frame, |
1328 | 1328 |
.close = flac_encode_close, |
1329 |
- .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY | CODEC_CAP_LOSSLESS, |
|
1330 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
1331 |
- .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), |
|
1332 |
- .priv_class = &flac_encoder_class, |
|
1329 |
+ .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY | CODEC_CAP_LOSSLESS, |
|
1330 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
1331 |
+ AV_SAMPLE_FMT_NONE }, |
|
1332 |
+ .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"), |
|
1333 |
+ .priv_class = &flac_encoder_class, |
|
1333 | 1334 |
}; |
... | ... |
@@ -462,7 +462,7 @@ AVCodec ff_flashsv_decoder = { |
462 | 462 |
.close = flashsv_decode_end, |
463 | 463 |
.decode = flashsv_decode_frame, |
464 | 464 |
.capabilities = CODEC_CAP_DR1, |
465 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE}, |
|
465 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE }, |
|
466 | 466 |
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"), |
467 | 467 |
}; |
468 | 468 |
#endif /* CONFIG_FLASHSV_DECODER */ |
... | ... |
@@ -525,7 +525,7 @@ AVCodec ff_flashsv2_decoder = { |
525 | 525 |
.close = flashsv2_decode_end, |
526 | 526 |
.decode = flashsv_decode_frame, |
527 | 527 |
.capabilities = CODEC_CAP_DR1, |
528 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE}, |
|
528 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE }, |
|
529 | 529 |
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v2"), |
530 | 530 |
}; |
531 | 531 |
#endif /* CONFIG_FLASHSV2_DECODER */ |
... | ... |
@@ -283,6 +283,6 @@ AVCodec ff_flashsv_encoder = { |
283 | 283 |
.init = flashsv_encode_init, |
284 | 284 |
.encode2 = flashsv_encode_frame, |
285 | 285 |
.close = flashsv_encode_end, |
286 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE}, |
|
286 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_BGR24, PIX_FMT_NONE }, |
|
287 | 287 |
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"), |
288 | 288 |
}; |
... | ... |
@@ -803,5 +803,5 @@ AVCodec ff_flic_decoder = { |
803 | 803 |
.close = flic_decode_end, |
804 | 804 |
.decode = flic_decode_frame, |
805 | 805 |
.capabilities = CODEC_CAP_DR1, |
806 |
- .long_name = NULL_IF_CONFIG_SMALL("Autodesk Animator Flic video"), |
|
806 |
+ .long_name = NULL_IF_CONFIG_SMALL("Autodesk Animator Flic video"), |
|
807 | 807 |
}; |
... | ... |
@@ -127,7 +127,7 @@ AVCodec ff_flv_decoder = { |
127 | 127 |
.close = ff_h263_decode_end, |
128 | 128 |
.decode = ff_h263_decode_frame, |
129 | 129 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
130 |
- .max_lowres= 3, |
|
131 |
- .long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), |
|
132 |
- .pix_fmts= ff_pixfmt_list_420, |
|
130 |
+ .max_lowres = 3, |
|
131 |
+ .long_name = NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), |
|
132 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
133 | 133 |
}; |
... | ... |
@@ -94,7 +94,7 @@ AVCodec ff_flv_encoder = { |
94 | 94 |
.init = ff_MPV_encode_init, |
95 | 95 |
.encode2 = ff_MPV_encode_picture, |
96 | 96 |
.close = ff_MPV_encode_end, |
97 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
98 |
- .long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), |
|
97 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
98 |
+ .long_name = NULL_IF_CONFIG_SMALL("Flash Video (FLV) / Sorenson Spark / Sorenson H.263"), |
|
99 | 99 |
.priv_class = &flv_class, |
100 | 100 |
}; |
... | ... |
@@ -398,5 +398,6 @@ AVCodec ff_adpcm_g722_encoder = { |
398 | 398 |
.encode2 = g722_encode_frame, |
399 | 399 |
.capabilities = CODEC_CAP_SMALL_LAST_FRAME, |
400 | 400 |
.long_name = NULL_IF_CONFIG_SMALL("G.722 ADPCM"), |
401 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
401 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
402 |
+ AV_SAMPLE_FMT_NONE }, |
|
402 | 403 |
}; |
... | ... |
@@ -404,9 +404,10 @@ AVCodec ff_adpcm_g726_encoder = { |
404 | 404 |
#if FF_API_OLD_ENCODE_AUDIO |
405 | 405 |
.close = g726_encode_close, |
406 | 406 |
#endif |
407 |
- .capabilities = CODEC_CAP_SMALL_LAST_FRAME, |
|
408 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
409 |
- .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), |
|
407 |
+ .capabilities = CODEC_CAP_SMALL_LAST_FRAME, |
|
408 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
409 |
+ AV_SAMPLE_FMT_NONE }, |
|
410 |
+ .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), |
|
410 | 411 |
.priv_class = &class, |
411 | 412 |
.defaults = defaults, |
412 | 413 |
}; |
... | ... |
@@ -494,6 +495,6 @@ AVCodec ff_adpcm_g726_decoder = { |
494 | 494 |
.decode = g726_decode_frame, |
495 | 495 |
.flush = g726_decode_flush, |
496 | 496 |
.capabilities = CODEC_CAP_DR1, |
497 |
- .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), |
|
497 |
+ .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"), |
|
498 | 498 |
}; |
499 | 499 |
#endif |
... | ... |
@@ -199,6 +199,9 @@ AVCodec ff_gif_encoder = { |
199 | 199 |
.init = gif_encode_init, |
200 | 200 |
.encode2 = gif_encode_frame, |
201 | 201 |
.close = gif_encode_close, |
202 |
- .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}, |
|
203 |
- .long_name= NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), |
|
202 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
203 |
+ PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, |
|
204 |
+ PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE |
|
205 |
+ }, |
|
206 |
+ .long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), |
|
204 | 207 |
}; |
... | ... |
@@ -334,5 +334,5 @@ AVCodec ff_gif_decoder = { |
334 | 334 |
.close = gif_decode_close, |
335 | 335 |
.decode = gif_decode_frame, |
336 | 336 |
.capabilities = CODEC_CAP_DR1, |
337 |
- .long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), |
|
337 |
+ .long_name = NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"), |
|
338 | 338 |
}; |
... | ... |
@@ -114,7 +114,7 @@ AVCodec ff_gsm_decoder = { |
114 | 114 |
.decode = gsm_decode_frame, |
115 | 115 |
.flush = gsm_flush, |
116 | 116 |
.capabilities = CODEC_CAP_DR1, |
117 |
- .long_name = NULL_IF_CONFIG_SMALL("GSM"), |
|
117 |
+ .long_name = NULL_IF_CONFIG_SMALL("GSM"), |
|
118 | 118 |
}; |
119 | 119 |
|
120 | 120 |
AVCodec ff_gsm_ms_decoder = { |
... | ... |
@@ -126,5 +126,5 @@ AVCodec ff_gsm_ms_decoder = { |
126 | 126 |
.decode = gsm_decode_frame, |
127 | 127 |
.flush = gsm_flush, |
128 | 128 |
.capabilities = CODEC_CAP_DR1, |
129 |
- .long_name = NULL_IF_CONFIG_SMALL("GSM Microsoft variant"), |
|
129 |
+ .long_name = NULL_IF_CONFIG_SMALL("GSM Microsoft variant"), |
|
130 | 130 |
}; |
... | ... |
@@ -655,6 +655,6 @@ AVCodec ff_h261_decoder = { |
655 | 655 |
.close = h261_decode_end, |
656 | 656 |
.decode = h261_decode_frame, |
657 | 657 |
.capabilities = CODEC_CAP_DR1, |
658 |
- .max_lowres = 3, |
|
659 |
- .long_name = NULL_IF_CONFIG_SMALL("H.261"), |
|
658 |
+ .max_lowres = 3, |
|
659 |
+ .long_name = NULL_IF_CONFIG_SMALL("H.261"), |
|
660 | 660 |
}; |
... | ... |
@@ -331,7 +331,7 @@ AVCodec ff_h261_encoder = { |
331 | 331 |
.init = ff_MPV_encode_init, |
332 | 332 |
.encode2 = ff_MPV_encode_picture, |
333 | 333 |
.close = ff_MPV_encode_end, |
334 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
335 |
- .long_name= NULL_IF_CONFIG_SMALL("H.261"), |
|
334 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
335 |
+ .long_name = NULL_IF_CONFIG_SMALL("H.261"), |
|
336 | 336 |
.priv_class = &h261_class, |
337 | 337 |
}; |
... | ... |
@@ -753,9 +753,10 @@ AVCodec ff_h263_decoder = { |
753 | 753 |
.init = ff_h263_decode_init, |
754 | 754 |
.close = ff_h263_decode_end, |
755 | 755 |
.decode = ff_h263_decode_frame, |
756 |
- .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
|
757 |
- .flush= ff_mpeg_flush, |
|
758 |
- .max_lowres= 3, |
|
759 |
- .long_name= NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"), |
|
760 |
- .pix_fmts= ff_hwaccel_pixfmt_list_420, |
|
756 |
+ .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | |
|
757 |
+ CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, |
|
758 |
+ .flush = ff_mpeg_flush, |
|
759 |
+ .max_lowres = 3, |
|
760 |
+ .long_name = NULL_IF_CONFIG_SMALL("H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2"), |
|
761 |
+ .pix_fmts = ff_hwaccel_pixfmt_list_420, |
|
761 | 762 |
}; |
... | ... |
@@ -1511,31 +1511,33 @@ static av_cold int encode_end(AVCodecContext *avctx) |
1511 | 1511 |
|
1512 | 1512 |
#if CONFIG_HUFFYUV_DECODER |
1513 | 1513 |
AVCodec ff_huffyuv_decoder = { |
1514 |
- .name = "huffyuv", |
|
1515 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
1516 |
- .id = CODEC_ID_HUFFYUV, |
|
1517 |
- .priv_data_size = sizeof(HYuvContext), |
|
1518 |
- .init = decode_init, |
|
1519 |
- .close = decode_end, |
|
1520 |
- .decode = decode_frame, |
|
1521 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_FRAME_THREADS, |
|
1514 |
+ .name = "huffyuv", |
|
1515 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
1516 |
+ .id = CODEC_ID_HUFFYUV, |
|
1517 |
+ .priv_data_size = sizeof(HYuvContext), |
|
1518 |
+ .init = decode_init, |
|
1519 |
+ .close = decode_end, |
|
1520 |
+ .decode = decode_frame, |
|
1521 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | |
|
1522 |
+ CODEC_CAP_FRAME_THREADS, |
|
1522 | 1523 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy), |
1523 |
- .long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"), |
|
1524 |
+ .long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"), |
|
1524 | 1525 |
}; |
1525 | 1526 |
#endif |
1526 | 1527 |
|
1527 | 1528 |
#if CONFIG_FFVHUFF_DECODER |
1528 | 1529 |
AVCodec ff_ffvhuff_decoder = { |
1529 |
- .name = "ffvhuff", |
|
1530 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
1531 |
- .id = CODEC_ID_FFVHUFF, |
|
1532 |
- .priv_data_size = sizeof(HYuvContext), |
|
1533 |
- .init = decode_init, |
|
1534 |
- .close = decode_end, |
|
1535 |
- .decode = decode_frame, |
|
1536 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_FRAME_THREADS, |
|
1530 |
+ .name = "ffvhuff", |
|
1531 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
1532 |
+ .id = CODEC_ID_FFVHUFF, |
|
1533 |
+ .priv_data_size = sizeof(HYuvContext), |
|
1534 |
+ .init = decode_init, |
|
1535 |
+ .close = decode_end, |
|
1536 |
+ .decode = decode_frame, |
|
1537 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | |
|
1538 |
+ CODEC_CAP_FRAME_THREADS, |
|
1537 | 1539 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy), |
1538 |
- .long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"), |
|
1540 |
+ .long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"), |
|
1539 | 1541 |
}; |
1540 | 1542 |
#endif |
1541 | 1543 |
|
... | ... |
@@ -1548,8 +1550,10 @@ AVCodec ff_huffyuv_encoder = { |
1548 | 1548 |
.init = encode_init, |
1549 | 1549 |
.encode2 = encode_frame, |
1550 | 1550 |
.close = encode_end, |
1551 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_NONE}, |
|
1552 |
- .long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"), |
|
1551 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
1552 |
+ PIX_FMT_YUV422P, PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_NONE |
|
1553 |
+ }, |
|
1554 |
+ .long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"), |
|
1553 | 1555 |
}; |
1554 | 1556 |
#endif |
1555 | 1557 |
|
... | ... |
@@ -1562,7 +1566,9 @@ AVCodec ff_ffvhuff_encoder = { |
1562 | 1562 |
.init = encode_init, |
1563 | 1563 |
.encode2 = encode_frame, |
1564 | 1564 |
.close = encode_end, |
1565 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_NONE}, |
|
1566 |
- .long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"), |
|
1565 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
1566 |
+ PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_NONE |
|
1567 |
+ }, |
|
1568 |
+ .long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"), |
|
1567 | 1569 |
}; |
1568 | 1570 |
#endif |
... | ... |
@@ -263,5 +263,5 @@ AVCodec ff_idcin_decoder = { |
263 | 263 |
.close = idcin_decode_end, |
264 | 264 |
.decode = idcin_decode_frame, |
265 | 265 |
.capabilities = CODEC_CAP_DR1, |
266 |
- .long_name = NULL_IF_CONFIG_SMALL("id Quake II CIN video"), |
|
266 |
+ .long_name = NULL_IF_CONFIG_SMALL("id Quake II CIN video"), |
|
267 | 267 |
}; |
... | ... |
@@ -683,7 +683,7 @@ AVCodec ff_iff_ilbm_decoder = { |
683 | 683 |
.close = decode_end, |
684 | 684 |
.decode = decode_frame_ilbm, |
685 | 685 |
.capabilities = CODEC_CAP_DR1, |
686 |
- .long_name = NULL_IF_CONFIG_SMALL("IFF ILBM"), |
|
686 |
+ .long_name = NULL_IF_CONFIG_SMALL("IFF ILBM"), |
|
687 | 687 |
}; |
688 | 688 |
|
689 | 689 |
AVCodec ff_iff_byterun1_decoder = { |
... | ... |
@@ -695,5 +695,5 @@ AVCodec ff_iff_byterun1_decoder = { |
695 | 695 |
.close = decode_end, |
696 | 696 |
.decode = decode_frame_byterun1, |
697 | 697 |
.capabilities = CODEC_CAP_DR1, |
698 |
- .long_name = NULL_IF_CONFIG_SMALL("IFF ByteRun1"), |
|
698 |
+ .long_name = NULL_IF_CONFIG_SMALL("IFF ByteRun1"), |
|
699 | 699 |
}; |
... | ... |
@@ -846,13 +846,13 @@ static av_cold int imc_decode_close(AVCodecContext * avctx) |
846 | 846 |
|
847 | 847 |
|
848 | 848 |
AVCodec ff_imc_decoder = { |
849 |
- .name = "imc", |
|
850 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
851 |
- .id = CODEC_ID_IMC, |
|
849 |
+ .name = "imc", |
|
850 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
851 |
+ .id = CODEC_ID_IMC, |
|
852 | 852 |
.priv_data_size = sizeof(IMCContext), |
853 |
- .init = imc_decode_init, |
|
854 |
- .close = imc_decode_close, |
|
855 |
- .decode = imc_decode_frame, |
|
856 |
- .capabilities = CODEC_CAP_DR1, |
|
857 |
- .long_name = NULL_IF_CONFIG_SMALL("IMC (Intel Music Coder)"), |
|
853 |
+ .init = imc_decode_init, |
|
854 |
+ .close = imc_decode_close, |
|
855 |
+ .decode = imc_decode_frame, |
|
856 |
+ .capabilities = CODEC_CAP_DR1, |
|
857 |
+ .long_name = NULL_IF_CONFIG_SMALL("IMC (Intel Music Coder)"), |
|
858 | 858 |
}; |
... | ... |
@@ -133,6 +133,6 @@ AVCodec ff_h263i_decoder = { |
133 | 133 |
.close = ff_h263_decode_end, |
134 | 134 |
.decode = ff_h263_decode_frame, |
135 | 135 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
136 |
- .long_name = NULL_IF_CONFIG_SMALL("Intel H.263"), |
|
137 |
- .pix_fmts= ff_pixfmt_list_420, |
|
136 |
+ .long_name = NULL_IF_CONFIG_SMALL("Intel H.263"), |
|
137 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
138 | 138 |
}; |
... | ... |
@@ -1026,5 +1026,5 @@ AVCodec ff_interplay_video_decoder = { |
1026 | 1026 |
.close = ipvideo_decode_end, |
1027 | 1027 |
.decode = ipvideo_decode_frame, |
1028 | 1028 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_PARAM_CHANGE, |
1029 |
- .long_name = NULL_IF_CONFIG_SMALL("Interplay MVE video"), |
|
1029 |
+ .long_name = NULL_IF_CONFIG_SMALL("Interplay MVE video"), |
|
1030 | 1030 |
}; |
... | ... |
@@ -399,6 +399,9 @@ AVCodec ff_jpegls_encoder = { //FIXME avoid MPV_* lossless JPEG should not need |
399 | 399 |
.priv_data_size = sizeof(JpeglsContext), |
400 | 400 |
.init = encode_init_ls, |
401 | 401 |
.encode2 = encode_picture_ls, |
402 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, PIX_FMT_NONE}, |
|
402 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
403 |
+ PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, |
|
404 |
+ PIX_FMT_NONE |
|
405 |
+ }, |
|
403 | 406 |
.long_name = NULL_IF_CONFIG_SMALL("JPEG-LS"), |
404 | 407 |
}; |
... | ... |
@@ -446,5 +446,5 @@ AVCodec ff_kmvc_decoder = { |
446 | 446 |
.close = decode_end, |
447 | 447 |
.decode = decode_frame, |
448 | 448 |
.capabilities = CODEC_CAP_DR1, |
449 |
- .long_name = NULL_IF_CONFIG_SMALL("Karl Morton's video codec"), |
|
449 |
+ .long_name = NULL_IF_CONFIG_SMALL("Karl Morton's video codec"), |
|
450 | 450 |
}; |
... | ... |
@@ -632,5 +632,5 @@ AVCodec ff_lagarith_decoder = { |
632 | 632 |
.close = lag_decode_end, |
633 | 633 |
.decode = lag_decode_frame, |
634 | 634 |
.capabilities = CODEC_CAP_DR1, |
635 |
- .long_name = NULL_IF_CONFIG_SMALL("Lagarith lossless"), |
|
635 |
+ .long_name = NULL_IF_CONFIG_SMALL("Lagarith lossless"), |
|
636 | 636 |
}; |
... | ... |
@@ -651,7 +651,7 @@ AVCodec ff_mszh_decoder = { |
651 | 651 |
.close = decode_end, |
652 | 652 |
.decode = decode_frame, |
653 | 653 |
.capabilities = CODEC_CAP_DR1, |
654 |
- .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) MSZH"), |
|
654 |
+ .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) MSZH"), |
|
655 | 655 |
}; |
656 | 656 |
#endif |
657 | 657 |
|
... | ... |
@@ -665,6 +665,6 @@ AVCodec ff_zlib_decoder = { |
665 | 665 |
.close = decode_end, |
666 | 666 |
.decode = decode_frame, |
667 | 667 |
.capabilities = CODEC_CAP_DR1, |
668 |
- .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), |
|
668 |
+ .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), |
|
669 | 669 |
}; |
670 | 670 |
#endif |
... | ... |
@@ -188,6 +188,6 @@ AVCodec ff_zlib_encoder = { |
188 | 188 |
.init = encode_init, |
189 | 189 |
.encode2 = encode_frame, |
190 | 190 |
.close = encode_end, |
191 |
- .pix_fmts = (const enum PixelFormat[]) { PIX_FMT_BGR24, PIX_FMT_NONE }, |
|
192 |
- .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), |
|
191 |
+ .pix_fmts = (const enum PixelFormat[]) { PIX_FMT_BGR24, PIX_FMT_NONE }, |
|
192 |
+ .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), |
|
193 | 193 |
}; |
... | ... |
@@ -203,6 +203,6 @@ AVCodec ff_libdirac_decoder = { |
203 | 203 |
.close = libdirac_decode_close, |
204 | 204 |
.decode = libdirac_decode_frame, |
205 | 205 |
.capabilities = CODEC_CAP_DELAY, |
206 |
- .flush = libdirac_flush, |
|
207 |
- .long_name = NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"), |
|
206 |
+ .flush = libdirac_flush, |
|
207 |
+ .long_name = NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"), |
|
208 | 208 |
}; |
... | ... |
@@ -229,8 +229,9 @@ AVCodec ff_libfaac_encoder = { |
229 | 229 |
.init = Faac_encode_init, |
230 | 230 |
.encode2 = Faac_encode_frame, |
231 | 231 |
.close = Faac_encode_close, |
232 |
- .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
|
233 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
234 |
- .long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"), |
|
235 |
- .profiles = NULL_IF_CONFIG_SMALL(profiles), |
|
232 |
+ .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
|
233 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
234 |
+ AV_SAMPLE_FMT_NONE }, |
|
235 |
+ .long_name = NULL_IF_CONFIG_SMALL("libfaac AAC (Advanced Audio Codec)"), |
|
236 |
+ .profiles = NULL_IF_CONFIG_SMALL(profiles), |
|
236 | 237 |
}; |
... | ... |
@@ -124,8 +124,9 @@ AVCodec ff_libgsm_encoder = { |
124 | 124 |
.init = libgsm_encode_init, |
125 | 125 |
.encode2 = libgsm_encode_frame, |
126 | 126 |
.close = libgsm_encode_close, |
127 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
128 |
- .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), |
|
127 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
128 |
+ AV_SAMPLE_FMT_NONE }, |
|
129 |
+ .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), |
|
129 | 130 |
}; |
130 | 131 |
|
131 | 132 |
AVCodec ff_libgsm_ms_encoder = { |
... | ... |
@@ -135,8 +136,9 @@ AVCodec ff_libgsm_ms_encoder = { |
135 | 135 |
.init = libgsm_encode_init, |
136 | 136 |
.encode2 = libgsm_encode_frame, |
137 | 137 |
.close = libgsm_encode_close, |
138 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
139 |
- .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), |
|
138 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
139 |
+ AV_SAMPLE_FMT_NONE }, |
|
140 |
+ .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), |
|
140 | 141 |
}; |
141 | 142 |
|
142 | 143 |
typedef struct LibGSMDecodeContext { |
... | ... |
@@ -245,7 +247,7 @@ AVCodec ff_libgsm_decoder = { |
245 | 245 |
.decode = libgsm_decode_frame, |
246 | 246 |
.flush = libgsm_flush, |
247 | 247 |
.capabilities = CODEC_CAP_DR1, |
248 |
- .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), |
|
248 |
+ .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM"), |
|
249 | 249 |
}; |
250 | 250 |
|
251 | 251 |
AVCodec ff_libgsm_ms_decoder = { |
... | ... |
@@ -258,5 +260,5 @@ AVCodec ff_libgsm_ms_decoder = { |
258 | 258 |
.decode = libgsm_decode_frame, |
259 | 259 |
.flush = libgsm_flush, |
260 | 260 |
.capabilities = CODEC_CAP_DR1, |
261 |
- .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), |
|
261 |
+ .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"), |
|
262 | 262 |
}; |
... | ... |
@@ -180,7 +180,7 @@ AVCodec ff_libopencore_amrnb_decoder = { |
180 | 180 |
.close = amr_nb_decode_close, |
181 | 181 |
.decode = amr_nb_decode_frame, |
182 | 182 |
.capabilities = CODEC_CAP_DR1, |
183 |
- .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), |
|
183 |
+ .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), |
|
184 | 184 |
}; |
185 | 185 |
|
186 | 186 |
static av_cold int amr_nb_encode_init(AVCodecContext *avctx) |
... | ... |
@@ -295,9 +295,10 @@ AVCodec ff_libopencore_amrnb_encoder = { |
295 | 295 |
.encode2 = amr_nb_encode_frame, |
296 | 296 |
.close = amr_nb_encode_close, |
297 | 297 |
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_SMALL_LAST_FRAME, |
298 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
299 |
- .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), |
|
300 |
- .priv_class = &class, |
|
298 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
299 |
+ AV_SAMPLE_FMT_NONE }, |
|
300 |
+ .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Narrow-Band"), |
|
301 |
+ .priv_class = &class, |
|
301 | 302 |
}; |
302 | 303 |
|
303 | 304 |
#endif |
... | ... |
@@ -383,7 +384,7 @@ AVCodec ff_libopencore_amrwb_decoder = { |
383 | 383 |
.close = amr_wb_decode_close, |
384 | 384 |
.decode = amr_wb_decode_frame, |
385 | 385 |
.capabilities = CODEC_CAP_DR1, |
386 |
- .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Wide-Band"), |
|
386 |
+ .long_name = NULL_IF_CONFIG_SMALL("OpenCORE Adaptive Multi-Rate (AMR) Wide-Band"), |
|
387 | 387 |
}; |
388 | 388 |
|
389 | 389 |
#endif /* CONFIG_LIBOPENCORE_AMRWB */ |
... | ... |
@@ -360,15 +360,15 @@ static av_cold int libopenjpeg_decode_close(AVCodecContext *avctx) |
360 | 360 |
|
361 | 361 |
|
362 | 362 |
AVCodec ff_libopenjpeg_decoder = { |
363 |
- .name = "libopenjpeg", |
|
364 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
365 |
- .id = CODEC_ID_JPEG2000, |
|
366 |
- .priv_data_size = sizeof(LibOpenJPEGContext), |
|
367 |
- .init = libopenjpeg_decode_init, |
|
368 |
- .close = libopenjpeg_decode_close, |
|
369 |
- .decode = libopenjpeg_decode_frame, |
|
370 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
371 |
- .max_lowres = 5, |
|
363 |
+ .name = "libopenjpeg", |
|
364 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
365 |
+ .id = CODEC_ID_JPEG2000, |
|
366 |
+ .priv_data_size = sizeof(LibOpenJPEGContext), |
|
367 |
+ .init = libopenjpeg_decode_init, |
|
368 |
+ .close = libopenjpeg_decode_close, |
|
369 |
+ .decode = libopenjpeg_decode_frame, |
|
370 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
371 |
+ .max_lowres = 5, |
|
372 | 372 |
.long_name = NULL_IF_CONFIG_SMALL("OpenJPEG JPEG 2000"), |
373 |
- .init_thread_copy = ONLY_IF_THREADS_ENABLED(libopenjpeg_decode_init_thread_copy) |
|
373 |
+ .init_thread_copy = ONLY_IF_THREADS_ENABLED(libopenjpeg_decode_init_thread_copy), |
|
374 | 374 |
}; |
... | ... |
@@ -353,6 +353,6 @@ AVCodec ff_libschroedinger_decoder = { |
353 | 353 |
.close = libschroedinger_decode_close, |
354 | 354 |
.decode = libschroedinger_decode_frame, |
355 | 355 |
.capabilities = CODEC_CAP_DELAY, |
356 |
- .flush = libschroedinger_flush, |
|
357 |
- .long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"), |
|
356 |
+ .flush = libschroedinger_flush, |
|
357 |
+ .long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"), |
|
358 | 358 |
}; |
... | ... |
@@ -446,7 +446,9 @@ AVCodec ff_libschroedinger_encoder = { |
446 | 446 |
.init = libschroedinger_encode_init, |
447 | 447 |
.encode2 = libschroedinger_encode_frame, |
448 | 448 |
.close = libschroedinger_encode_close, |
449 |
- .capabilities = CODEC_CAP_DELAY, |
|
450 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE}, |
|
451 |
- .long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"), |
|
449 |
+ .capabilities = CODEC_CAP_DELAY, |
|
450 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
451 |
+ PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE |
|
452 |
+ }, |
|
453 |
+ .long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"), |
|
452 | 454 |
}; |
... | ... |
@@ -168,5 +168,5 @@ AVCodec ff_libspeex_decoder = { |
168 | 168 |
.decode = libspeex_decode_frame, |
169 | 169 |
.flush = libspeex_decode_flush, |
170 | 170 |
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DELAY | CODEC_CAP_DR1, |
171 |
- .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), |
|
171 |
+ .long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), |
|
172 | 172 |
}; |
... | ... |
@@ -330,7 +330,8 @@ AVCodec ff_libspeex_encoder = { |
330 | 330 |
.encode2 = encode_frame, |
331 | 331 |
.close = encode_close, |
332 | 332 |
.capabilities = CODEC_CAP_DELAY, |
333 |
- .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, |
|
333 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
334 |
+ AV_SAMPLE_FMT_NONE }, |
|
334 | 335 |
.long_name = NULL_IF_CONFIG_SMALL("libspeex Speex"), |
335 | 336 |
.priv_class = &class, |
336 | 337 |
.defaults = defaults, |
... | ... |
@@ -359,14 +359,16 @@ static av_cold int encode_close(AVCodecContext* avc_context) |
359 | 359 |
|
360 | 360 |
/** AVCodec struct exposed to libavcodec */ |
361 | 361 |
AVCodec ff_libtheora_encoder = { |
362 |
- .name = "libtheora", |
|
363 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
364 |
- .id = CODEC_ID_THEORA, |
|
362 |
+ .name = "libtheora", |
|
363 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
364 |
+ .id = CODEC_ID_THEORA, |
|
365 | 365 |
.priv_data_size = sizeof(TheoraContext), |
366 |
- .init = encode_init, |
|
367 |
- .close = encode_close, |
|
368 |
- .encode2 = encode_frame, |
|
369 |
- .capabilities = CODEC_CAP_DELAY, // needed to get the statsfile summary |
|
370 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE}, |
|
371 |
- .long_name = NULL_IF_CONFIG_SMALL("libtheora Theora"), |
|
366 |
+ .init = encode_init, |
|
367 |
+ .close = encode_close, |
|
368 |
+ .encode2 = encode_frame, |
|
369 |
+ .capabilities = CODEC_CAP_DELAY, // needed to get the statsfile summary |
|
370 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
371 |
+ PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE |
|
372 |
+ }, |
|
373 |
+ .long_name = NULL_IF_CONFIG_SMALL("libtheora Theora"), |
|
372 | 374 |
}; |
... | ... |
@@ -195,6 +195,7 @@ AVCodec ff_libvo_aacenc_encoder = { |
195 | 195 |
.close = aac_encode_close, |
196 | 196 |
.supported_samplerates = avpriv_mpeg4audio_sample_rates, |
197 | 197 |
.capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
198 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
199 |
- .long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC"), |
|
198 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
199 |
+ AV_SAMPLE_FMT_NONE }, |
|
200 |
+ .long_name = NULL_IF_CONFIG_SMALL("Android VisualOn AAC"), |
|
200 | 201 |
}; |
... | ... |
@@ -146,8 +146,9 @@ AVCodec ff_libvo_amrwbenc_encoder = { |
146 | 146 |
.init = amr_wb_encode_init, |
147 | 147 |
.encode2 = amr_wb_encode_frame, |
148 | 148 |
.close = amr_wb_encode_close, |
149 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
150 |
- .long_name = NULL_IF_CONFIG_SMALL("Android VisualOn Adaptive Multi-Rate " |
|
151 |
- "(AMR) Wide-Band"), |
|
152 |
- .priv_class = &class, |
|
149 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
150 |
+ AV_SAMPLE_FMT_NONE }, |
|
151 |
+ .long_name = NULL_IF_CONFIG_SMALL("Android VisualOn Adaptive " |
|
152 |
+ "Multi-Rate (AMR) Wide-Band"), |
|
153 |
+ .priv_class = &class, |
|
153 | 154 |
}; |
... | ... |
@@ -600,8 +600,8 @@ AVCodec ff_libvpx_encoder = { |
600 | 600 |
.encode2 = vp8_encode, |
601 | 601 |
.close = vp8_free, |
602 | 602 |
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS, |
603 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
604 |
- .long_name = NULL_IF_CONFIG_SMALL("libvpx VP8"), |
|
605 |
- .priv_class = &class, |
|
603 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
604 |
+ .long_name = NULL_IF_CONFIG_SMALL("libvpx VP8"), |
|
605 |
+ .priv_class = &class, |
|
606 | 606 |
.defaults = defaults, |
607 | 607 |
}; |
... | ... |
@@ -638,17 +638,17 @@ static const AVCodecDefault x264_defaults[] = { |
638 | 638 |
}; |
639 | 639 |
|
640 | 640 |
AVCodec ff_libx264_encoder = { |
641 |
- .name = "libx264", |
|
642 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
643 |
- .id = CODEC_ID_H264, |
|
644 |
- .priv_data_size = sizeof(X264Context), |
|
645 |
- .init = X264_init, |
|
646 |
- .encode2 = X264_frame, |
|
647 |
- .close = X264_close, |
|
648 |
- .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS, |
|
649 |
- .long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), |
|
650 |
- .priv_class = &class, |
|
651 |
- .defaults = x264_defaults, |
|
641 |
+ .name = "libx264", |
|
642 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
643 |
+ .id = CODEC_ID_H264, |
|
644 |
+ .priv_data_size = sizeof(X264Context), |
|
645 |
+ .init = X264_init, |
|
646 |
+ .encode2 = X264_frame, |
|
647 |
+ .close = X264_close, |
|
648 |
+ .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS, |
|
649 |
+ .long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), |
|
650 |
+ .priv_class = &class, |
|
651 |
+ .defaults = x264_defaults, |
|
652 | 652 |
.init_static_data = X264_init_static, |
653 | 653 |
}; |
654 | 654 |
|
... | ... |
@@ -788,8 +788,8 @@ AVCodec ff_libxvid_encoder = { |
788 | 788 |
.init = xvid_encode_init, |
789 | 789 |
.encode2 = xvid_encode_frame, |
790 | 790 |
.close = xvid_encode_close, |
791 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
792 |
- .long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"), |
|
791 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
792 |
+ .long_name = NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"), |
|
793 | 793 |
}; |
794 | 794 |
|
795 | 795 |
#endif /* CONFIG_LIBXVID_ENCODER */ |
... | ... |
@@ -297,7 +297,7 @@ AVCodec ff_mace3_decoder = { |
297 | 297 |
.init = mace_decode_init, |
298 | 298 |
.decode = mace_decode_frame, |
299 | 299 |
.capabilities = CODEC_CAP_DR1, |
300 |
- .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 3:1"), |
|
300 |
+ .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 3:1"), |
|
301 | 301 |
}; |
302 | 302 |
|
303 | 303 |
AVCodec ff_mace6_decoder = { |
... | ... |
@@ -308,5 +308,5 @@ AVCodec ff_mace6_decoder = { |
308 | 308 |
.init = mace_decode_init, |
309 | 309 |
.decode = mace_decode_frame, |
310 | 310 |
.capabilities = CODEC_CAP_DR1, |
311 |
- .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 6:1"), |
|
311 |
+ .long_name = NULL_IF_CONFIG_SMALL("MACE (Macintosh Audio Compression/Expansion) 6:1"), |
|
312 | 312 |
}; |
... | ... |
@@ -267,14 +267,14 @@ static av_cold int decode_end(AVCodecContext *avctx){ |
267 | 267 |
} |
268 | 268 |
|
269 | 269 |
AVCodec ff_mdec_decoder = { |
270 |
- .name = "mdec", |
|
271 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
272 |
- .id = CODEC_ID_MDEC, |
|
273 |
- .priv_data_size = sizeof(MDECContext), |
|
274 |
- .init = decode_init, |
|
275 |
- .close = decode_end, |
|
276 |
- .decode = decode_frame, |
|
277 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
278 |
- .long_name= NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"), |
|
279 |
- .init_thread_copy= ONLY_IF_THREADS_ENABLED(decode_init_thread_copy) |
|
270 |
+ .name = "mdec", |
|
271 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
272 |
+ .id = CODEC_ID_MDEC, |
|
273 |
+ .priv_data_size = sizeof(MDECContext), |
|
274 |
+ .init = decode_init, |
|
275 |
+ .close = decode_end, |
|
276 |
+ .decode = decode_frame, |
|
277 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
278 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sony PlayStation MDEC (Motion DECoder)"), |
|
279 |
+ .init_thread_copy = ONLY_IF_THREADS_ENABLED(decode_init_thread_copy) |
|
280 | 280 |
}; |
... | ... |
@@ -1,5 +1,5 @@ |
1 | 1 |
/* |
2 | ||
2 |
+ * Copyright (C) 2005 Ole André Vadla Ravnås <oleavr@gmail.com> |
|
3 | 3 |
* Copyright (C) 2008 Ramiro Polla |
4 | 4 |
* |
5 | 5 |
* This file is part of FFmpeg. |
... | ... |
@@ -420,14 +420,14 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx) |
420 | 420 |
} |
421 | 421 |
|
422 | 422 |
AVCodec ff_mimic_decoder = { |
423 |
- .name = "mimic", |
|
424 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
425 |
- .id = CODEC_ID_MIMIC, |
|
426 |
- .priv_data_size = sizeof(MimicContext), |
|
427 |
- .init = mimic_decode_init, |
|
428 |
- .close = mimic_decode_end, |
|
429 |
- .decode = mimic_decode_frame, |
|
430 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
431 |
- .long_name = NULL_IF_CONFIG_SMALL("Mimic"), |
|
423 |
+ .name = "mimic", |
|
424 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
425 |
+ .id = CODEC_ID_MIMIC, |
|
426 |
+ .priv_data_size = sizeof(MimicContext), |
|
427 |
+ .init = mimic_decode_init, |
|
428 |
+ .close = mimic_decode_end, |
|
429 |
+ .decode = mimic_decode_frame, |
|
430 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
431 |
+ .long_name = NULL_IF_CONFIG_SMALL("Mimic"), |
|
432 | 432 |
.update_thread_context = ONLY_IF_THREADS_ENABLED(mimic_decode_update_thread_context) |
433 | 433 |
}; |
... | ... |
@@ -160,6 +160,6 @@ AVCodec ff_mjpegb_decoder = { |
160 | 160 |
.close = ff_mjpeg_decode_end, |
161 | 161 |
.decode = mjpegb_decode_frame, |
162 | 162 |
.capabilities = CODEC_CAP_DR1, |
163 |
- .max_lowres = 3, |
|
164 |
- .long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"), |
|
163 |
+ .max_lowres = 3, |
|
164 |
+ .long_name = NULL_IF_CONFIG_SMALL("Apple MJPEG-B"), |
|
165 | 165 |
}; |
... | ... |
@@ -480,8 +480,10 @@ AVCodec ff_mjpeg_encoder = { |
480 | 480 |
.init = ff_MPV_encode_init, |
481 | 481 |
.encode2 = ff_MPV_encode_picture, |
482 | 482 |
.close = ff_MPV_encode_end, |
483 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_NONE}, |
|
484 |
- .long_name= NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), |
|
483 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
484 |
+ PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_NONE |
|
485 |
+ }, |
|
486 |
+ .long_name = NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"), |
|
485 | 487 |
}; |
486 | 488 |
|
487 | 489 |
AVCodec ff_amv_encoder = { |
... | ... |
@@ -1202,7 +1202,7 @@ AVCodec ff_mlp_decoder = { |
1202 | 1202 |
.init = mlp_decode_init, |
1203 | 1203 |
.decode = read_access_unit, |
1204 | 1204 |
.capabilities = CODEC_CAP_DR1, |
1205 |
- .long_name = NULL_IF_CONFIG_SMALL("MLP (Meridian Lossless Packing)"), |
|
1205 |
+ .long_name = NULL_IF_CONFIG_SMALL("MLP (Meridian Lossless Packing)"), |
|
1206 | 1206 |
}; |
1207 | 1207 |
|
1208 | 1208 |
#if CONFIG_TRUEHD_DECODER |
... | ... |
@@ -1214,6 +1214,6 @@ AVCodec ff_truehd_decoder = { |
1214 | 1214 |
.init = mlp_decode_init, |
1215 | 1215 |
.decode = read_access_unit, |
1216 | 1216 |
.capabilities = CODEC_CAP_DR1, |
1217 |
- .long_name = NULL_IF_CONFIG_SMALL("TrueHD"), |
|
1217 |
+ .long_name = NULL_IF_CONFIG_SMALL("TrueHD"), |
|
1218 | 1218 |
}; |
1219 | 1219 |
#endif /* CONFIG_TRUEHD_DECODER */ |
... | ... |
@@ -236,5 +236,5 @@ AVCodec ff_mmvideo_decoder = { |
236 | 236 |
.close = mm_decode_end, |
237 | 237 |
.decode = mm_decode_frame, |
238 | 238 |
.capabilities = CODEC_CAP_DR1, |
239 |
- .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM Video"), |
|
239 |
+ .long_name = NULL_IF_CONFIG_SMALL("American Laser Games MM Video"), |
|
240 | 240 |
}; |
... | ... |
@@ -318,5 +318,5 @@ AVCodec ff_motionpixels_decoder = { |
318 | 318 |
.close = mp_decode_end, |
319 | 319 |
.decode = mp_decode_frame, |
320 | 320 |
.capabilities = CODEC_CAP_DR1, |
321 |
- .long_name = NULL_IF_CONFIG_SMALL("Motion Pixels video"), |
|
321 |
+ .long_name = NULL_IF_CONFIG_SMALL("Motion Pixels video"), |
|
322 | 322 |
}; |
... | ... |
@@ -341,7 +341,7 @@ AVCodec ff_mpc7_decoder = { |
341 | 341 |
.init = mpc7_decode_init, |
342 | 342 |
.close = mpc7_decode_close, |
343 | 343 |
.decode = mpc7_decode_frame, |
344 |
- .flush = mpc7_decode_flush, |
|
344 |
+ .flush = mpc7_decode_flush, |
|
345 | 345 |
.capabilities = CODEC_CAP_DR1, |
346 |
- .long_name = NULL_IF_CONFIG_SMALL("Musepack SV7"), |
|
346 |
+ .long_name = NULL_IF_CONFIG_SMALL("Musepack SV7"), |
|
347 | 347 |
}; |
... | ... |
@@ -2561,17 +2561,19 @@ static const AVProfile mpeg2_video_profiles[] = { |
2561 | 2561 |
|
2562 | 2562 |
|
2563 | 2563 |
AVCodec ff_mpeg1video_decoder = { |
2564 |
- .name = "mpeg1video", |
|
2565 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
2566 |
- .id = CODEC_ID_MPEG1VIDEO, |
|
2567 |
- .priv_data_size = sizeof(Mpeg1Context), |
|
2568 |
- .init = mpeg_decode_init, |
|
2569 |
- .close = mpeg_decode_end, |
|
2570 |
- .decode = mpeg_decode_frame, |
|
2571 |
- .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS, |
|
2572 |
- .flush = flush, |
|
2573 |
- .max_lowres = 3, |
|
2574 |
- .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
|
2564 |
+ .name = "mpeg1video", |
|
2565 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
2566 |
+ .id = CODEC_ID_MPEG1VIDEO, |
|
2567 |
+ .priv_data_size = sizeof(Mpeg1Context), |
|
2568 |
+ .init = mpeg_decode_init, |
|
2569 |
+ .close = mpeg_decode_end, |
|
2570 |
+ .decode = mpeg_decode_frame, |
|
2571 |
+ .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | |
|
2572 |
+ CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | |
|
2573 |
+ CODEC_CAP_SLICE_THREADS, |
|
2574 |
+ .flush = flush, |
|
2575 |
+ .max_lowres = 3, |
|
2576 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
|
2575 | 2577 |
.update_thread_context = ONLY_IF_THREADS_ENABLED(mpeg_decode_update_thread_context) |
2576 | 2578 |
}; |
2577 | 2579 |
|
... | ... |
@@ -2583,7 +2585,9 @@ AVCodec ff_mpeg2video_decoder = { |
2583 | 2583 |
.init = mpeg_decode_init, |
2584 | 2584 |
.close = mpeg_decode_end, |
2585 | 2585 |
.decode = mpeg_decode_frame, |
2586 |
- .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS, |
|
2586 |
+ .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | |
|
2587 |
+ CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | |
|
2588 |
+ CODEC_CAP_SLICE_THREADS, |
|
2587 | 2589 |
.flush = flush, |
2588 | 2590 |
.max_lowres = 3, |
2589 | 2591 |
.long_name = NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
... | ... |
@@ -2631,7 +2635,8 @@ AVCodec ff_mpeg_xvmc_decoder = { |
2631 | 2631 |
.init = mpeg_mc_decode_init, |
2632 | 2632 |
.close = mpeg_decode_end, |
2633 | 2633 |
.decode = mpeg_decode_frame, |
2634 |
- .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY, |
|
2634 |
+ .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | |
|
2635 |
+ CODEC_CAP_TRUNCATED| CODEC_CAP_HWACCEL | CODEC_CAP_DELAY, |
|
2635 | 2636 |
.flush = flush, |
2636 | 2637 |
.long_name = NULL_IF_CONFIG_SMALL("MPEG-1/2 video XvMC (X-Video Motion Compensation)"), |
2637 | 2638 |
}; |
... | ... |
@@ -2647,7 +2652,8 @@ AVCodec ff_mpeg_vdpau_decoder = { |
2647 | 2647 |
.init = mpeg_decode_init, |
2648 | 2648 |
.close = mpeg_decode_end, |
2649 | 2649 |
.decode = mpeg_decode_frame, |
2650 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_HWACCEL_VDPAU | CODEC_CAP_DELAY, |
|
2650 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | |
|
2651 |
+ CODEC_CAP_HWACCEL_VDPAU | CODEC_CAP_DELAY, |
|
2651 | 2652 |
.flush = flush, |
2652 | 2653 |
.long_name = NULL_IF_CONFIG_SMALL("MPEG-1/2 video (VDPAU acceleration)"), |
2653 | 2654 |
}; |
... | ... |
@@ -2662,7 +2668,8 @@ AVCodec ff_mpeg1_vdpau_decoder = { |
2662 | 2662 |
.init = mpeg_decode_init, |
2663 | 2663 |
.close = mpeg_decode_end, |
2664 | 2664 |
.decode = mpeg_decode_frame, |
2665 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_HWACCEL_VDPAU | CODEC_CAP_DELAY, |
|
2665 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | |
|
2666 |
+ CODEC_CAP_HWACCEL_VDPAU | CODEC_CAP_DELAY, |
|
2666 | 2667 |
.flush = flush, |
2667 | 2668 |
.long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video (VDPAU acceleration)"), |
2668 | 2669 |
}; |
... | ... |
@@ -963,31 +963,34 @@ mpeg12_class(1) |
963 | 963 |
mpeg12_class(2) |
964 | 964 |
|
965 | 965 |
AVCodec ff_mpeg1video_encoder = { |
966 |
- .name = "mpeg1video", |
|
967 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
968 |
- .id = CODEC_ID_MPEG1VIDEO, |
|
969 |
- .priv_data_size = sizeof(MpegEncContext), |
|
970 |
- .init = encode_init, |
|
971 |
- .encode2 = ff_MPV_encode_picture, |
|
972 |
- .close = ff_MPV_encode_end, |
|
973 |
- .supported_framerates= avpriv_frame_rate_tab+1, |
|
974 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
975 |
- .capabilities= CODEC_CAP_DELAY, |
|
976 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
|
977 |
- .priv_class = &mpeg1_class, |
|
966 |
+ .name = "mpeg1video", |
|
967 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
968 |
+ .id = CODEC_ID_MPEG1VIDEO, |
|
969 |
+ .priv_data_size = sizeof(MpegEncContext), |
|
970 |
+ .init = encode_init, |
|
971 |
+ .encode2 = ff_MPV_encode_picture, |
|
972 |
+ .close = ff_MPV_encode_end, |
|
973 |
+ .supported_framerates = avpriv_frame_rate_tab+1, |
|
974 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, |
|
975 |
+ PIX_FMT_NONE }, |
|
976 |
+ .capabilities = CODEC_CAP_DELAY, |
|
977 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-1 video"), |
|
978 |
+ .priv_class = &mpeg1_class, |
|
978 | 979 |
}; |
979 | 980 |
|
980 | 981 |
AVCodec ff_mpeg2video_encoder = { |
981 |
- .name = "mpeg2video", |
|
982 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
983 |
- .id = CODEC_ID_MPEG2VIDEO, |
|
984 |
- .priv_data_size = sizeof(MpegEncContext), |
|
985 |
- .init = encode_init, |
|
986 |
- .encode2 = ff_MPV_encode_picture, |
|
987 |
- .close = ff_MPV_encode_end, |
|
988 |
- .supported_framerates= avpriv_frame_rate_tab+1, |
|
989 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_NONE}, |
|
990 |
- .capabilities= CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS, |
|
991 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
|
992 |
- .priv_class = &mpeg2_class, |
|
982 |
+ .name = "mpeg2video", |
|
983 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
984 |
+ .id = CODEC_ID_MPEG2VIDEO, |
|
985 |
+ .priv_data_size = sizeof(MpegEncContext), |
|
986 |
+ .init = encode_init, |
|
987 |
+ .encode2 = ff_MPV_encode_picture, |
|
988 |
+ .close = ff_MPV_encode_end, |
|
989 |
+ .supported_framerates = avpriv_frame_rate_tab + 1, |
|
990 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
991 |
+ PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_NONE |
|
992 |
+ }, |
|
993 |
+ .capabilities = CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS, |
|
994 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
|
995 |
+ .priv_class = &mpeg2_class, |
|
993 | 996 |
}; |
... | ... |
@@ -2315,20 +2315,22 @@ static const AVClass mpeg4_vdpau_class = { |
2315 | 2315 |
}; |
2316 | 2316 |
|
2317 | 2317 |
AVCodec ff_mpeg4_decoder = { |
2318 |
- .name = "mpeg4", |
|
2319 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
2320 |
- .id = CODEC_ID_MPEG4, |
|
2321 |
- .priv_data_size = sizeof(MpegEncContext), |
|
2322 |
- .init = decode_init, |
|
2323 |
- .close = ff_h263_decode_end, |
|
2324 |
- .decode = ff_h263_decode_frame, |
|
2325 |
- .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS, |
|
2326 |
- .flush= ff_mpeg_flush, |
|
2327 |
- .max_lowres= 3, |
|
2328 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2"), |
|
2329 |
- .pix_fmts= ff_hwaccel_pixfmt_list_420, |
|
2330 |
- .profiles = NULL_IF_CONFIG_SMALL(mpeg4_video_profiles), |
|
2331 |
- .update_thread_context= ONLY_IF_THREADS_ENABLED(ff_mpeg_update_thread_context), |
|
2318 |
+ .name = "mpeg4", |
|
2319 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
2320 |
+ .id = CODEC_ID_MPEG4, |
|
2321 |
+ .priv_data_size = sizeof(MpegEncContext), |
|
2322 |
+ .init = decode_init, |
|
2323 |
+ .close = ff_h263_decode_end, |
|
2324 |
+ .decode = ff_h263_decode_frame, |
|
2325 |
+ .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | |
|
2326 |
+ CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | |
|
2327 |
+ CODEC_CAP_FRAME_THREADS, |
|
2328 |
+ .flush = ff_mpeg_flush, |
|
2329 |
+ .max_lowres = 3, |
|
2330 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2"), |
|
2331 |
+ .pix_fmts = ff_hwaccel_pixfmt_list_420, |
|
2332 |
+ .profiles = NULL_IF_CONFIG_SMALL(mpeg4_video_profiles), |
|
2333 |
+ .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_mpeg_update_thread_context), |
|
2332 | 2334 |
.priv_class = &mpeg4_class, |
2333 | 2335 |
}; |
2334 | 2336 |
|
... | ... |
@@ -2342,9 +2344,11 @@ AVCodec ff_mpeg4_vdpau_decoder = { |
2342 | 2342 |
.init = decode_init, |
2343 | 2343 |
.close = ff_h263_decode_end, |
2344 | 2344 |
.decode = ff_h263_decode_frame, |
2345 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU, |
|
2346 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 (VDPAU)"), |
|
2347 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_VDPAU_MPEG4, PIX_FMT_NONE}, |
|
2348 |
- .priv_class = &mpeg4_vdpau_class, |
|
2345 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY | |
|
2346 |
+ CODEC_CAP_HWACCEL_VDPAU, |
|
2347 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 (VDPAU)"), |
|
2348 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_VDPAU_MPEG4, |
|
2349 |
+ PIX_FMT_NONE }, |
|
2350 |
+ .priv_class = &mpeg4_vdpau_class, |
|
2349 | 2351 |
}; |
2350 | 2352 |
#endif |
... | ... |
@@ -1349,8 +1349,8 @@ AVCodec ff_mpeg4_encoder = { |
1349 | 1349 |
.init = encode_init, |
1350 | 1350 |
.encode2 = ff_MPV_encode_picture, |
1351 | 1351 |
.close = ff_MPV_encode_end, |
1352 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
1353 |
- .capabilities= CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS, |
|
1354 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2"), |
|
1352 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
1353 |
+ .capabilities = CODEC_CAP_DELAY | CODEC_CAP_SLICE_THREADS, |
|
1354 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2"), |
|
1355 | 1355 |
.priv_class = &mpeg4enc_class, |
1356 | 1356 |
}; |
... | ... |
@@ -780,15 +780,18 @@ static const AVCodecDefault mp2_defaults[] = { |
780 | 780 |
}; |
781 | 781 |
|
782 | 782 |
AVCodec ff_mp2_encoder = { |
783 |
- .name = "mp2", |
|
784 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
785 |
- .id = CODEC_ID_MP2, |
|
786 |
- .priv_data_size = sizeof(MpegAudioContext), |
|
787 |
- .init = MPA_encode_init, |
|
788 |
- .encode2 = MPA_encode_frame, |
|
789 |
- .close = MPA_encode_close, |
|
790 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
791 |
- .supported_samplerates= (const int[]){44100, 48000, 32000, 22050, 24000, 16000, 0}, |
|
792 |
- .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), |
|
793 |
- .defaults = mp2_defaults, |
|
783 |
+ .name = "mp2", |
|
784 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
785 |
+ .id = CODEC_ID_MP2, |
|
786 |
+ .priv_data_size = sizeof(MpegAudioContext), |
|
787 |
+ .init = MPA_encode_init, |
|
788 |
+ .encode2 = MPA_encode_frame, |
|
789 |
+ .close = MPA_encode_close, |
|
790 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
791 |
+ AV_SAMPLE_FMT_NONE }, |
|
792 |
+ .supported_samplerates = (const int[]){ |
|
793 |
+ 44100, 48000, 32000, 22050, 24000, 16000, 0 |
|
794 |
+ }, |
|
795 |
+ .long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), |
|
796 |
+ .defaults = mp2_defaults, |
|
794 | 797 |
}; |
... | ... |
@@ -4205,9 +4205,9 @@ AVCodec ff_h263p_encoder = { |
4205 | 4205 |
.init = ff_MPV_encode_init, |
4206 | 4206 |
.encode2 = ff_MPV_encode_picture, |
4207 | 4207 |
.close = ff_MPV_encode_end, |
4208 |
- .capabilities = CODEC_CAP_SLICE_THREADS, |
|
4209 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
4210 |
- .long_name= NULL_IF_CONFIG_SMALL("H.263+ / H.263-1998 / H.263 version 2"), |
|
4208 |
+ .capabilities = CODEC_CAP_SLICE_THREADS, |
|
4209 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
4210 |
+ .long_name = NULL_IF_CONFIG_SMALL("H.263+ / H.263-1998 / H.263 version 2"), |
|
4211 | 4211 |
.priv_class = &h263p_class, |
4212 | 4212 |
}; |
4213 | 4213 |
|
... | ... |
@@ -4221,8 +4221,8 @@ AVCodec ff_msmpeg4v2_encoder = { |
4221 | 4221 |
.init = ff_MPV_encode_init, |
4222 | 4222 |
.encode2 = ff_MPV_encode_picture, |
4223 | 4223 |
.close = ff_MPV_encode_end, |
4224 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
4225 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 2"), |
|
4224 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
4225 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 2"), |
|
4226 | 4226 |
.priv_class = &msmpeg4v2_class, |
4227 | 4227 |
}; |
4228 | 4228 |
|
... | ... |
@@ -4236,8 +4236,8 @@ AVCodec ff_msmpeg4v3_encoder = { |
4236 | 4236 |
.init = ff_MPV_encode_init, |
4237 | 4237 |
.encode2 = ff_MPV_encode_picture, |
4238 | 4238 |
.close = ff_MPV_encode_end, |
4239 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
4240 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 3"), |
|
4239 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
4240 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 3"), |
|
4241 | 4241 |
.priv_class = &msmpeg4v3_class, |
4242 | 4242 |
}; |
4243 | 4243 |
|
... | ... |
@@ -4251,7 +4251,7 @@ AVCodec ff_wmv1_encoder = { |
4251 | 4251 |
.init = ff_MPV_encode_init, |
4252 | 4252 |
.encode2 = ff_MPV_encode_picture, |
4253 | 4253 |
.close = ff_MPV_encode_end, |
4254 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
4255 |
- .long_name= NULL_IF_CONFIG_SMALL("Windows Media Video 7"), |
|
4254 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
4255 |
+ .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 7"), |
|
4256 | 4256 |
.priv_class = &wmv1_class, |
4257 | 4257 |
}; |
... | ... |
@@ -1216,9 +1216,9 @@ AVCodec ff_msmpeg4v1_decoder = { |
1216 | 1216 |
.close = ff_h263_decode_end, |
1217 | 1217 |
.decode = ff_h263_decode_frame, |
1218 | 1218 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
1219 |
- .max_lowres= 3, |
|
1220 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 1"), |
|
1221 |
- .pix_fmts= ff_pixfmt_list_420, |
|
1219 |
+ .max_lowres = 3, |
|
1220 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 1"), |
|
1221 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
1222 | 1222 |
}; |
1223 | 1223 |
|
1224 | 1224 |
AVCodec ff_msmpeg4v2_decoder = { |
... | ... |
@@ -1230,9 +1230,9 @@ AVCodec ff_msmpeg4v2_decoder = { |
1230 | 1230 |
.close = ff_h263_decode_end, |
1231 | 1231 |
.decode = ff_h263_decode_frame, |
1232 | 1232 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
1233 |
- .max_lowres= 3, |
|
1234 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 2"), |
|
1235 |
- .pix_fmts= ff_pixfmt_list_420, |
|
1233 |
+ .max_lowres = 3, |
|
1234 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 2"), |
|
1235 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
1236 | 1236 |
}; |
1237 | 1237 |
|
1238 | 1238 |
AVCodec ff_msmpeg4v3_decoder = { |
... | ... |
@@ -1244,9 +1244,9 @@ AVCodec ff_msmpeg4v3_decoder = { |
1244 | 1244 |
.close = ff_h263_decode_end, |
1245 | 1245 |
.decode = ff_h263_decode_frame, |
1246 | 1246 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
1247 |
- .max_lowres= 3, |
|
1248 |
- .long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 3"), |
|
1249 |
- .pix_fmts= ff_pixfmt_list_420, |
|
1247 |
+ .max_lowres = 3, |
|
1248 |
+ .long_name = NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 3"), |
|
1249 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
1250 | 1250 |
}; |
1251 | 1251 |
|
1252 | 1252 |
AVCodec ff_wmv1_decoder = { |
... | ... |
@@ -1258,7 +1258,7 @@ AVCodec ff_wmv1_decoder = { |
1258 | 1258 |
.close = ff_h263_decode_end, |
1259 | 1259 |
.decode = ff_h263_decode_frame, |
1260 | 1260 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
1261 |
- .max_lowres= 3, |
|
1262 |
- .long_name= NULL_IF_CONFIG_SMALL("Windows Media Video 7"), |
|
1263 |
- .pix_fmts= ff_pixfmt_list_420, |
|
1261 |
+ .max_lowres = 3, |
|
1262 |
+ .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 7"), |
|
1263 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
1264 | 1264 |
}; |
... | ... |
@@ -343,5 +343,5 @@ AVCodec ff_msvideo1_decoder = { |
343 | 343 |
.close = msvideo1_decode_end, |
344 | 344 |
.decode = msvideo1_decode_frame, |
345 | 345 |
.capabilities = CODEC_CAP_DR1, |
346 |
- .long_name= NULL_IF_CONFIG_SMALL("Microsoft Video 1"), |
|
346 |
+ .long_name = NULL_IF_CONFIG_SMALL("Microsoft Video 1"), |
|
347 | 347 |
}; |
... | ... |
@@ -227,7 +227,7 @@ AVCodec ff_nellymoser_decoder = { |
227 | 227 |
.close = decode_end, |
228 | 228 |
.decode = decode_tag, |
229 | 229 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_PARAM_CHANGE, |
230 |
- .long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"), |
|
230 |
+ .long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"), |
|
231 | 231 |
.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, |
232 | 232 |
AV_SAMPLE_FMT_S16, |
233 | 233 |
AV_SAMPLE_FMT_NONE }, |
... | ... |
@@ -414,14 +414,15 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt, |
414 | 414 |
} |
415 | 415 |
|
416 | 416 |
AVCodec ff_nellymoser_encoder = { |
417 |
- .name = "nellymoser", |
|
418 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
419 |
- .id = CODEC_ID_NELLYMOSER, |
|
417 |
+ .name = "nellymoser", |
|
418 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
419 |
+ .id = CODEC_ID_NELLYMOSER, |
|
420 | 420 |
.priv_data_size = sizeof(NellyMoserEncodeContext), |
421 |
- .init = encode_init, |
|
422 |
- .encode2 = encode_frame, |
|
423 |
- .close = encode_end, |
|
424 |
- .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
|
425 |
- .long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"), |
|
426 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_FLT,AV_SAMPLE_FMT_NONE}, |
|
421 |
+ .init = encode_init, |
|
422 |
+ .encode2 = encode_frame, |
|
423 |
+ .close = encode_end, |
|
424 |
+ .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY, |
|
425 |
+ .long_name = NULL_IF_CONFIG_SMALL("Nellymoser Asao"), |
|
426 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
|
427 |
+ AV_SAMPLE_FMT_NONE }, |
|
427 | 428 |
}; |
... | ... |
@@ -136,6 +136,8 @@ AVCodec ff_pam_encoder = { |
136 | 136 |
.priv_data_size = sizeof(PNMContext), |
137 | 137 |
.init = ff_pnm_init, |
138 | 138 |
.encode2 = pam_encode_frame, |
139 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_RGB48BE, PIX_FMT_RGBA64BE, PIX_FMT_GRAY8, PIX_FMT_GRAY8A, PIX_FMT_GRAY16BE, PIX_FMT_MONOBLACK, PIX_FMT_NONE}, |
|
140 |
- .long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"), |
|
139 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
140 |
+ PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_RGB48BE, PIX_FMT_RGBA64BE, PIX_FMT_GRAY8, PIX_FMT_GRAY8A, PIX_FMT_GRAY16BE, PIX_FMT_MONOBLACK, PIX_FMT_NONE |
|
141 |
+ }, |
|
142 |
+ .long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"), |
|
141 | 143 |
}; |
... | ... |
@@ -323,7 +323,8 @@ AVCodec ff_pcm_bluray_decoder = { |
323 | 323 |
.init = pcm_bluray_decode_init, |
324 | 324 |
.decode = pcm_bluray_decode_frame, |
325 | 325 |
.capabilities = CODEC_CAP_DR1, |
326 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, |
|
327 |
- AV_SAMPLE_FMT_NONE}, |
|
328 |
- .long_name = NULL_IF_CONFIG_SMALL("PCM signed 16|20|24-bit big-endian for Blu-ray media"), |
|
326 |
+ .sample_fmts = (const enum AVSampleFormat[]){ |
|
327 |
+ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE |
|
328 |
+ }, |
|
329 |
+ .long_name = NULL_IF_CONFIG_SMALL("PCM signed 16|20|24-bit big-endian for Blu-ray media"), |
|
329 | 330 |
}; |
... | ... |
@@ -259,5 +259,5 @@ AVCodec ff_pcx_decoder = { |
259 | 259 |
.close = pcx_end, |
260 | 260 |
.decode = pcx_decode_frame, |
261 | 261 |
.capabilities = CODEC_CAP_DR1, |
262 |
- .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), |
|
262 |
+ .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), |
|
263 | 263 |
}; |
... | ... |
@@ -214,10 +214,12 @@ AVCodec ff_pcx_encoder = { |
214 | 214 |
.priv_data_size = sizeof(PCXContext), |
215 | 215 |
.init = pcx_encode_init, |
216 | 216 |
.encode2 = pcx_encode_frame, |
217 |
- .pix_fmts = (const enum PixelFormat[]){ |
|
217 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
218 | 218 |
PIX_FMT_RGB24, |
219 |
- PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, |
|
219 |
+ PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, |
|
220 |
+ PIX_FMT_GRAY8, PIX_FMT_PAL8, |
|
220 | 221 |
PIX_FMT_MONOBLACK, |
221 |
- PIX_FMT_NONE}, |
|
222 |
- .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), |
|
222 |
+ PIX_FMT_NONE |
|
223 |
+ }, |
|
224 |
+ .long_name = NULL_IF_CONFIG_SMALL("PC Paintbrush PCX image"), |
|
223 | 225 |
}; |
... | ... |
@@ -527,6 +527,6 @@ AVCodec ff_pgssub_decoder = { |
527 | 527 |
.init = init_decoder, |
528 | 528 |
.close = close_decoder, |
529 | 529 |
.decode = decode, |
530 |
- .long_name = NULL_IF_CONFIG_SMALL("HDMV Presentation Graphic Stream subtitles"), |
|
530 |
+ .long_name = NULL_IF_CONFIG_SMALL("HDMV Presentation Graphic Stream subtitles"), |
|
531 | 531 |
.priv_class = &pgsdec_class, |
532 | 532 |
}; |
... | ... |
@@ -741,5 +741,5 @@ AVCodec ff_png_decoder = { |
741 | 741 |
.close = png_dec_end, |
742 | 742 |
.decode = decode_frame, |
743 | 743 |
.capabilities = CODEC_CAP_DR1 /*| CODEC_CAP_DRAW_HORIZ_BAND*/, |
744 |
- .long_name = NULL_IF_CONFIG_SMALL("PNG (Portable Network Graphics) image"), |
|
744 |
+ .long_name = NULL_IF_CONFIG_SMALL("PNG (Portable Network Graphics) image"), |
|
745 | 745 |
}; |
... | ... |
@@ -443,11 +443,13 @@ AVCodec ff_png_encoder = { |
443 | 443 |
.priv_data_size = sizeof(PNGEncContext), |
444 | 444 |
.init = png_enc_init, |
445 | 445 |
.encode2 = encode_frame, |
446 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, |
|
447 |
- PIX_FMT_RGB48BE, PIX_FMT_RGBA64BE, |
|
448 |
- PIX_FMT_PAL8, |
|
449 |
- PIX_FMT_GRAY8, PIX_FMT_GRAY8A, |
|
450 |
- PIX_FMT_GRAY16BE, |
|
451 |
- PIX_FMT_MONOBLACK, PIX_FMT_NONE}, |
|
452 |
- .long_name= NULL_IF_CONFIG_SMALL("PNG (Portable Network Graphics) image"), |
|
446 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
447 |
+ PIX_FMT_RGB24, PIX_FMT_RGBA, |
|
448 |
+ PIX_FMT_RGB48BE, PIX_FMT_RGBA64BE, |
|
449 |
+ PIX_FMT_PAL8, |
|
450 |
+ PIX_FMT_GRAY8, PIX_FMT_GRAY8A, |
|
451 |
+ PIX_FMT_GRAY16BE, |
|
452 |
+ PIX_FMT_MONOBLACK, PIX_FMT_NONE |
|
453 |
+ }, |
|
454 |
+ .long_name = NULL_IF_CONFIG_SMALL("PNG (Portable Network Graphics) image"), |
|
453 | 455 |
}; |
... | ... |
@@ -201,7 +201,7 @@ AVCodec ff_pgm_decoder = { |
201 | 201 |
.close = ff_pnm_end, |
202 | 202 |
.decode = pnm_decode_frame, |
203 | 203 |
.capabilities = CODEC_CAP_DR1, |
204 |
- .long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), |
|
204 |
+ .long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), |
|
205 | 205 |
}; |
206 | 206 |
#endif |
207 | 207 |
|
... | ... |
@@ -215,7 +215,7 @@ AVCodec ff_pgmyuv_decoder = { |
215 | 215 |
.close = ff_pnm_end, |
216 | 216 |
.decode = pnm_decode_frame, |
217 | 217 |
.capabilities = CODEC_CAP_DR1, |
218 |
- .long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), |
|
218 |
+ .long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), |
|
219 | 219 |
}; |
220 | 220 |
#endif |
221 | 221 |
|
... | ... |
@@ -229,7 +229,7 @@ AVCodec ff_ppm_decoder = { |
229 | 229 |
.close = ff_pnm_end, |
230 | 230 |
.decode = pnm_decode_frame, |
231 | 231 |
.capabilities = CODEC_CAP_DR1, |
232 |
- .long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), |
|
232 |
+ .long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), |
|
233 | 233 |
}; |
234 | 234 |
#endif |
235 | 235 |
|
... | ... |
@@ -243,7 +243,7 @@ AVCodec ff_pbm_decoder = { |
243 | 243 |
.close = ff_pnm_end, |
244 | 244 |
.decode = pnm_decode_frame, |
245 | 245 |
.capabilities = CODEC_CAP_DR1, |
246 |
- .long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), |
|
246 |
+ .long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), |
|
247 | 247 |
}; |
248 | 248 |
#endif |
249 | 249 |
|
... | ... |
@@ -257,6 +257,6 @@ AVCodec ff_pam_decoder = { |
257 | 257 |
.close = ff_pnm_end, |
258 | 258 |
.decode = pnm_decode_frame, |
259 | 259 |
.capabilities = CODEC_CAP_DR1, |
260 |
- .long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"), |
|
260 |
+ .long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"), |
|
261 | 261 |
}; |
262 | 262 |
#endif |
... | ... |
@@ -127,8 +127,10 @@ AVCodec ff_pgm_encoder = { |
127 | 127 |
.priv_data_size = sizeof(PNMContext), |
128 | 128 |
.init = ff_pnm_init, |
129 | 129 |
.encode2 = pnm_encode_frame, |
130 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE}, |
|
131 |
- .long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), |
|
130 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
131 |
+ PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE |
|
132 |
+ }, |
|
133 |
+ .long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"), |
|
132 | 134 |
}; |
133 | 135 |
#endif |
134 | 136 |
|
... | ... |
@@ -140,8 +142,8 @@ AVCodec ff_pgmyuv_encoder = { |
140 | 140 |
.priv_data_size = sizeof(PNMContext), |
141 | 141 |
.init = ff_pnm_init, |
142 | 142 |
.encode2 = pnm_encode_frame, |
143 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
144 |
- .long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), |
|
143 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
144 |
+ .long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"), |
|
145 | 145 |
}; |
146 | 146 |
#endif |
147 | 147 |
|
... | ... |
@@ -153,8 +155,10 @@ AVCodec ff_ppm_encoder = { |
153 | 153 |
.priv_data_size = sizeof(PNMContext), |
154 | 154 |
.init = ff_pnm_init, |
155 | 155 |
.encode2 = pnm_encode_frame, |
156 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE}, |
|
157 |
- .long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), |
|
156 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
157 |
+ PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE |
|
158 |
+ }, |
|
159 |
+ .long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"), |
|
158 | 160 |
}; |
159 | 161 |
#endif |
160 | 162 |
|
... | ... |
@@ -166,7 +170,8 @@ AVCodec ff_pbm_encoder = { |
166 | 166 |
.priv_data_size = sizeof(PNMContext), |
167 | 167 |
.init = ff_pnm_init, |
168 | 168 |
.encode2 = pnm_encode_frame, |
169 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE}, |
|
170 |
- .long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), |
|
169 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_MONOWHITE, |
|
170 |
+ PIX_FMT_NONE }, |
|
171 |
+ .long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"), |
|
171 | 172 |
}; |
172 | 173 |
#endif |
... | ... |
@@ -2017,13 +2017,13 @@ static int qdm2_decode_frame(AVCodecContext *avctx, void *data, |
2017 | 2017 |
|
2018 | 2018 |
AVCodec ff_qdm2_decoder = |
2019 | 2019 |
{ |
2020 |
- .name = "qdm2", |
|
2021 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
2022 |
- .id = CODEC_ID_QDM2, |
|
2020 |
+ .name = "qdm2", |
|
2021 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
2022 |
+ .id = CODEC_ID_QDM2, |
|
2023 | 2023 |
.priv_data_size = sizeof(QDM2Context), |
2024 |
- .init = qdm2_decode_init, |
|
2025 |
- .close = qdm2_decode_close, |
|
2026 |
- .decode = qdm2_decode_frame, |
|
2027 |
- .capabilities = CODEC_CAP_DR1, |
|
2028 |
- .long_name = NULL_IF_CONFIG_SMALL("QDesign Music Codec 2"), |
|
2024 |
+ .init = qdm2_decode_init, |
|
2025 |
+ .close = qdm2_decode_close, |
|
2026 |
+ .decode = qdm2_decode_frame, |
|
2027 |
+ .capabilities = CODEC_CAP_DR1, |
|
2028 |
+ .long_name = NULL_IF_CONFIG_SMALL("QDesign Music Codec 2"), |
|
2029 | 2029 |
}; |
... | ... |
@@ -524,5 +524,5 @@ AVCodec ff_qtrle_decoder = { |
524 | 524 |
.close = qtrle_decode_end, |
525 | 525 |
.decode = qtrle_decode_frame, |
526 | 526 |
.capabilities = CODEC_CAP_DR1, |
527 |
- .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), |
|
527 |
+ .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), |
|
528 | 528 |
}; |
... | ... |
@@ -354,6 +354,8 @@ AVCodec ff_qtrle_encoder = { |
354 | 354 |
.init = qtrle_encode_init, |
355 | 355 |
.encode2 = qtrle_encode_frame, |
356 | 356 |
.close = qtrle_encode_end, |
357 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_FMT_ARGB, PIX_FMT_GRAY8, PIX_FMT_NONE}, |
|
358 |
- .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), |
|
357 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
358 |
+ PIX_FMT_RGB24, PIX_FMT_RGB555BE, PIX_FMT_ARGB, PIX_FMT_GRAY8, PIX_FMT_NONE |
|
359 |
+ }, |
|
360 |
+ .long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"), |
|
359 | 361 |
}; |
... | ... |
@@ -112,7 +112,7 @@ AVCodec ff_r210_decoder = { |
112 | 112 |
.close = decode_close, |
113 | 113 |
.decode = decode_frame, |
114 | 114 |
.capabilities = CODEC_CAP_DR1, |
115 |
- .long_name = NULL_IF_CONFIG_SMALL("Uncompressed RGB 10-bit"), |
|
115 |
+ .long_name = NULL_IF_CONFIG_SMALL("Uncompressed RGB 10-bit"), |
|
116 | 116 |
}; |
117 | 117 |
#endif |
118 | 118 |
#if CONFIG_R10K_DECODER |
... | ... |
@@ -124,7 +124,7 @@ AVCodec ff_r10k_decoder = { |
124 | 124 |
.close = decode_close, |
125 | 125 |
.decode = decode_frame, |
126 | 126 |
.capabilities = CODEC_CAP_DR1, |
127 |
- .long_name = NULL_IF_CONFIG_SMALL("AJA Kona 10-bit RGB Codec"), |
|
127 |
+ .long_name = NULL_IF_CONFIG_SMALL("AJA Kona 10-bit RGB Codec"), |
|
128 | 128 |
}; |
129 | 129 |
#endif |
130 | 130 |
#if CONFIG_AVRP_DECODER |
... | ... |
@@ -256,6 +256,6 @@ AVCodec ff_rawvideo_decoder = { |
256 | 256 |
.init = raw_init_decoder, |
257 | 257 |
.close = raw_close_decoder, |
258 | 258 |
.decode = raw_decode, |
259 |
- .long_name = NULL_IF_CONFIG_SMALL("raw video"), |
|
260 |
- .priv_class= &class, |
|
259 |
+ .long_name = NULL_IF_CONFIG_SMALL("raw video"), |
|
260 |
+ .priv_class = &class, |
|
261 | 261 |
}; |
... | ... |
@@ -209,6 +209,7 @@ AVCodec ff_roq_dpcm_encoder = { |
209 | 209 |
.encode2 = roq_dpcm_encode_frame, |
210 | 210 |
.close = roq_dpcm_encode_close, |
211 | 211 |
.capabilities = CODEC_CAP_DELAY, |
212 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
213 |
- .long_name = NULL_IF_CONFIG_SMALL("id RoQ DPCM"), |
|
212 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
213 |
+ AV_SAMPLE_FMT_NONE }, |
|
214 |
+ .long_name = NULL_IF_CONFIG_SMALL("id RoQ DPCM"), |
|
214 | 215 |
}; |
... | ... |
@@ -1078,7 +1078,8 @@ AVCodec ff_roq_encoder = { |
1078 | 1078 |
.init = roq_encode_init, |
1079 | 1079 |
.encode2 = roq_encode_frame, |
1080 | 1080 |
.close = roq_encode_end, |
1081 |
- .supported_framerates = (const AVRational[]){{30,1}, {0,0}}, |
|
1082 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV444P, PIX_FMT_NONE}, |
|
1081 |
+ .supported_framerates = (const AVRational[]){ {30,1}, {0,0} }, |
|
1082 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV444P, |
|
1083 |
+ PIX_FMT_NONE }, |
|
1083 | 1084 |
.long_name = NULL_IF_CONFIG_SMALL("id RoQ video"), |
1084 | 1085 |
}; |
... | ... |
@@ -289,5 +289,5 @@ AVCodec ff_rpza_decoder = { |
289 | 289 |
.close = rpza_decode_end, |
290 | 290 |
.decode = rpza_decode_frame, |
291 | 291 |
.capabilities = CODEC_CAP_DR1, |
292 |
- .long_name = NULL_IF_CONFIG_SMALL("QuickTime video (RPZA)"), |
|
292 |
+ .long_name = NULL_IF_CONFIG_SMALL("QuickTime video (RPZA)"), |
|
293 | 293 |
}; |
... | ... |
@@ -746,9 +746,9 @@ AVCodec ff_rv10_decoder = { |
746 | 746 |
.close = rv10_decode_end, |
747 | 747 |
.decode = rv10_decode_frame, |
748 | 748 |
.capabilities = CODEC_CAP_DR1, |
749 |
- .max_lowres = 3, |
|
750 |
- .long_name = NULL_IF_CONFIG_SMALL("RealVideo 1.0"), |
|
751 |
- .pix_fmts= ff_pixfmt_list_420, |
|
749 |
+ .max_lowres = 3, |
|
750 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealVideo 1.0"), |
|
751 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
752 | 752 |
}; |
753 | 753 |
|
754 | 754 |
AVCodec ff_rv20_decoder = { |
... | ... |
@@ -760,8 +760,8 @@ AVCodec ff_rv20_decoder = { |
760 | 760 |
.close = rv10_decode_end, |
761 | 761 |
.decode = rv10_decode_frame, |
762 | 762 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY, |
763 |
- .flush= ff_mpeg_flush, |
|
764 |
- .max_lowres = 3, |
|
765 |
- .long_name = NULL_IF_CONFIG_SMALL("RealVideo 2.0"), |
|
766 |
- .pix_fmts= ff_pixfmt_list_420, |
|
763 |
+ .flush = ff_mpeg_flush, |
|
764 |
+ .max_lowres = 3, |
|
765 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealVideo 2.0"), |
|
766 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
767 | 767 |
}; |
... | ... |
@@ -66,7 +66,7 @@ AVCodec ff_rv10_encoder = { |
66 | 66 |
.init = ff_MPV_encode_init, |
67 | 67 |
.encode2 = ff_MPV_encode_picture, |
68 | 68 |
.close = ff_MPV_encode_end, |
69 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
70 |
- .long_name= NULL_IF_CONFIG_SMALL("RealVideo 1.0"), |
|
69 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
70 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealVideo 1.0"), |
|
71 | 71 |
.priv_class = &rv10_class, |
72 | 72 |
}; |
... | ... |
@@ -67,7 +67,7 @@ AVCodec ff_rv20_encoder = { |
67 | 67 |
.init = ff_MPV_encode_init, |
68 | 68 |
.encode2 = ff_MPV_encode_picture, |
69 | 69 |
.close = ff_MPV_encode_end, |
70 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
71 |
- .long_name= NULL_IF_CONFIG_SMALL("RealVideo 2.0"), |
|
70 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
71 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealVideo 2.0"), |
|
72 | 72 |
.priv_class = &rv20_class, |
73 | 73 |
}; |
... | ... |
@@ -272,17 +272,18 @@ static av_cold int rv30_decode_init(AVCodecContext *avctx) |
272 | 272 |
} |
273 | 273 |
|
274 | 274 |
AVCodec ff_rv30_decoder = { |
275 |
- .name = "rv30", |
|
276 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
277 |
- .id = CODEC_ID_RV30, |
|
278 |
- .priv_data_size = sizeof(RV34DecContext), |
|
279 |
- .init = rv30_decode_init, |
|
280 |
- .close = ff_rv34_decode_end, |
|
281 |
- .decode = ff_rv34_decode_frame, |
|
282 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS, |
|
283 |
- .flush = ff_mpeg_flush, |
|
284 |
- .long_name = NULL_IF_CONFIG_SMALL("RealVideo 3.0"), |
|
285 |
- .pix_fmts = ff_pixfmt_list_420, |
|
275 |
+ .name = "rv30", |
|
276 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
277 |
+ .id = CODEC_ID_RV30, |
|
278 |
+ .priv_data_size = sizeof(RV34DecContext), |
|
279 |
+ .init = rv30_decode_init, |
|
280 |
+ .close = ff_rv34_decode_end, |
|
281 |
+ .decode = ff_rv34_decode_frame, |
|
282 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | |
|
283 |
+ CODEC_CAP_FRAME_THREADS, |
|
284 |
+ .flush = ff_mpeg_flush, |
|
285 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealVideo 3.0"), |
|
286 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
286 | 287 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_init_thread_copy), |
287 | 288 |
.update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), |
288 | 289 |
}; |
... | ... |
@@ -560,17 +560,18 @@ static av_cold int rv40_decode_init(AVCodecContext *avctx) |
560 | 560 |
} |
561 | 561 |
|
562 | 562 |
AVCodec ff_rv40_decoder = { |
563 |
- .name = "rv40", |
|
564 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
565 |
- .id = CODEC_ID_RV40, |
|
566 |
- .priv_data_size = sizeof(RV34DecContext), |
|
567 |
- .init = rv40_decode_init, |
|
568 |
- .close = ff_rv34_decode_end, |
|
569 |
- .decode = ff_rv34_decode_frame, |
|
570 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_FRAME_THREADS, |
|
571 |
- .flush = ff_mpeg_flush, |
|
572 |
- .long_name = NULL_IF_CONFIG_SMALL("RealVideo 4.0"), |
|
573 |
- .pix_fmts = ff_pixfmt_list_420, |
|
563 |
+ .name = "rv40", |
|
564 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
565 |
+ .id = CODEC_ID_RV40, |
|
566 |
+ .priv_data_size = sizeof(RV34DecContext), |
|
567 |
+ .init = rv40_decode_init, |
|
568 |
+ .close = ff_rv34_decode_end, |
|
569 |
+ .decode = ff_rv34_decode_frame, |
|
570 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | |
|
571 |
+ CODEC_CAP_FRAME_THREADS, |
|
572 |
+ .flush = ff_mpeg_flush, |
|
573 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealVideo 4.0"), |
|
574 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
574 | 575 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_init_thread_copy), |
575 | 576 |
.update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), |
576 | 577 |
}; |
... | ... |
@@ -212,10 +212,12 @@ AVCodec ff_sgi_encoder = { |
212 | 212 |
.priv_data_size = sizeof(SgiContext), |
213 | 213 |
.init = encode_init, |
214 | 214 |
.encode2 = encode_frame, |
215 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, |
|
216 |
- PIX_FMT_RGB48LE, PIX_FMT_RGB48BE, |
|
217 |
- PIX_FMT_RGBA64LE, PIX_FMT_RGBA64BE, |
|
218 |
- PIX_FMT_GRAY16LE, PIX_FMT_GRAY16BE, |
|
219 |
- PIX_FMT_GRAY8, PIX_FMT_NONE}, |
|
220 |
- .long_name= NULL_IF_CONFIG_SMALL("SGI image"), |
|
215 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
216 |
+ PIX_FMT_RGB24, PIX_FMT_RGBA, |
|
217 |
+ PIX_FMT_RGB48LE, PIX_FMT_RGB48BE, |
|
218 |
+ PIX_FMT_RGBA64LE, PIX_FMT_RGBA64BE, |
|
219 |
+ PIX_FMT_GRAY16LE, PIX_FMT_GRAY16BE, |
|
220 |
+ PIX_FMT_GRAY8, PIX_FMT_NONE |
|
221 |
+ }, |
|
222 |
+ .long_name = NULL_IF_CONFIG_SMALL("SGI image"), |
|
221 | 223 |
}; |
... | ... |
@@ -638,5 +638,5 @@ AVCodec ff_shorten_decoder = { |
638 | 638 |
.close = shorten_decode_close, |
639 | 639 |
.decode = shorten_decode_frame, |
640 | 640 |
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_DR1, |
641 |
- .long_name= NULL_IF_CONFIG_SMALL("Shorten"), |
|
641 |
+ .long_name = NULL_IF_CONFIG_SMALL("Shorten"), |
|
642 | 642 |
}; |
... | ... |
@@ -569,5 +569,5 @@ AVCodec ff_sipr_decoder = { |
569 | 569 |
.init = sipr_decoder_init, |
570 | 570 |
.decode = sipr_decode_frame, |
571 | 571 |
.capabilities = CODEC_CAP_DR1, |
572 |
- .long_name = NULL_IF_CONFIG_SMALL("RealAudio SIPR / ACELP.NET"), |
|
572 |
+ .long_name = NULL_IF_CONFIG_SMALL("RealAudio SIPR / ACELP.NET"), |
|
573 | 573 |
}; |
... | ... |
@@ -744,7 +744,7 @@ AVCodec ff_smacker_decoder = { |
744 | 744 |
.close = decode_end, |
745 | 745 |
.decode = decode_frame, |
746 | 746 |
.capabilities = CODEC_CAP_DR1, |
747 |
- .long_name = NULL_IF_CONFIG_SMALL("Smacker video"), |
|
747 |
+ .long_name = NULL_IF_CONFIG_SMALL("Smacker video"), |
|
748 | 748 |
}; |
749 | 749 |
|
750 | 750 |
AVCodec ff_smackaud_decoder = { |
... | ... |
@@ -755,5 +755,5 @@ AVCodec ff_smackaud_decoder = { |
755 | 755 |
.init = smka_decode_init, |
756 | 756 |
.decode = smka_decode_frame, |
757 | 757 |
.capabilities = CODEC_CAP_DR1, |
758 |
- .long_name = NULL_IF_CONFIG_SMALL("Smacker audio"), |
|
758 |
+ .long_name = NULL_IF_CONFIG_SMALL("Smacker audio"), |
|
759 | 759 |
}; |
... | ... |
@@ -474,5 +474,5 @@ AVCodec ff_smc_decoder = { |
474 | 474 |
.close = smc_decode_end, |
475 | 475 |
.decode = smc_decode_frame, |
476 | 476 |
.capabilities = CODEC_CAP_DR1, |
477 |
- .long_name = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"), |
|
477 |
+ .long_name = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"), |
|
478 | 478 |
}; |
... | ... |
@@ -1924,7 +1924,7 @@ AVCodec ff_snow_encoder = { |
1924 | 1924 |
.init = encode_init, |
1925 | 1925 |
.encode2 = encode_frame, |
1926 | 1926 |
.close = encode_end, |
1927 |
- .long_name = NULL_IF_CONFIG_SMALL("Snow"), |
|
1927 |
+ .long_name = NULL_IF_CONFIG_SMALL("Snow"), |
|
1928 | 1928 |
.priv_class = &snowenc_class, |
1929 | 1929 |
}; |
1930 | 1930 |
#endif |
... | ... |
@@ -102,8 +102,8 @@ AVCodec ff_sp5x_decoder = { |
102 | 102 |
.close = ff_mjpeg_decode_end, |
103 | 103 |
.decode = sp5x_decode_frame, |
104 | 104 |
.capabilities = CODEC_CAP_DR1, |
105 |
- .max_lowres = 3, |
|
106 |
- .long_name = NULL_IF_CONFIG_SMALL("Sunplus JPEG (SP5X)"), |
|
105 |
+ .max_lowres = 3, |
|
106 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sunplus JPEG (SP5X)"), |
|
107 | 107 |
}; |
108 | 108 |
|
109 | 109 |
AVCodec ff_amv_decoder = { |
... | ... |
@@ -114,5 +114,5 @@ AVCodec ff_amv_decoder = { |
114 | 114 |
.init = ff_mjpeg_decode_init, |
115 | 115 |
.close = ff_mjpeg_decode_end, |
116 | 116 |
.decode = sp5x_decode_frame, |
117 |
- .long_name = NULL_IF_CONFIG_SMALL("AMV Video"), |
|
117 |
+ .long_name = NULL_IF_CONFIG_SMALL("AMV Video"), |
|
118 | 118 |
}; |
... | ... |
@@ -243,5 +243,5 @@ AVCodec ff_sunrast_decoder = { |
243 | 243 |
.close = sunrast_end, |
244 | 244 |
.decode = sunrast_decode_frame, |
245 | 245 |
.capabilities = CODEC_CAP_DR1, |
246 |
- .long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"), |
|
246 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sun Rasterfile image"), |
|
247 | 247 |
}; |
... | ... |
@@ -818,7 +818,7 @@ AVCodec ff_svq1_decoder = { |
818 | 818 |
.close = svq1_decode_end, |
819 | 819 |
.decode = svq1_decode_frame, |
820 | 820 |
.capabilities = CODEC_CAP_DR1, |
821 |
- .flush= ff_mpeg_flush, |
|
822 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE}, |
|
823 |
- .long_name= NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1"), |
|
821 |
+ .flush = ff_mpeg_flush, |
|
822 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV410P, PIX_FMT_NONE }, |
|
823 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1"), |
|
824 | 824 |
}; |
... | ... |
@@ -587,6 +587,6 @@ AVCodec ff_svq1_encoder = { |
587 | 587 |
.init = svq1_encode_init, |
588 | 588 |
.encode2 = svq1_encode_frame, |
589 | 589 |
.close = svq1_encode_end, |
590 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE}, |
|
591 |
- .long_name= NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1"), |
|
590 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV410P, PIX_FMT_NONE }, |
|
591 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1"), |
|
592 | 592 |
}; |
... | ... |
@@ -1139,7 +1139,8 @@ AVCodec ff_svq3_decoder = { |
1139 | 1139 |
.init = svq3_decode_init, |
1140 | 1140 |
.close = svq3_decode_end, |
1141 | 1141 |
.decode = svq3_decode_frame, |
1142 |
- .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_DELAY, |
|
1143 |
- .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3"), |
|
1144 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_NONE}, |
|
1142 |
+ .capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | |
|
1143 |
+ CODEC_CAP_DELAY, |
|
1144 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3"), |
|
1145 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUVJ420P, PIX_FMT_NONE }, |
|
1145 | 1146 |
}; |
... | ... |
@@ -299,5 +299,5 @@ AVCodec ff_targa_decoder = { |
299 | 299 |
.close = targa_end, |
300 | 300 |
.decode = decode_frame, |
301 | 301 |
.capabilities = CODEC_CAP_DR1, |
302 |
- .long_name = NULL_IF_CONFIG_SMALL("Truevision Targa image"), |
|
302 |
+ .long_name = NULL_IF_CONFIG_SMALL("Truevision Targa image"), |
|
303 | 303 |
}; |
... | ... |
@@ -160,12 +160,15 @@ static av_cold int targa_encode_init(AVCodecContext *avctx) |
160 | 160 |
} |
161 | 161 |
|
162 | 162 |
AVCodec ff_targa_encoder = { |
163 |
- .name = "targa", |
|
164 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
165 |
- .id = CODEC_ID_TARGA, |
|
163 |
+ .name = "targa", |
|
164 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
165 |
+ .id = CODEC_ID_TARGA, |
|
166 | 166 |
.priv_data_size = sizeof(TargaContext), |
167 |
- .init = targa_encode_init, |
|
168 |
- .encode2 = targa_encode_frame, |
|
169 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_BGRA, PIX_FMT_RGB555LE, PIX_FMT_GRAY8, PIX_FMT_NONE}, |
|
167 |
+ .init = targa_encode_init, |
|
168 |
+ .encode2 = targa_encode_frame, |
|
169 |
+ .pix_fmts = (const enum PixelFormat[]){ |
|
170 |
+ PIX_FMT_BGR24, PIX_FMT_BGRA, PIX_FMT_RGB555LE, PIX_FMT_GRAY8, |
|
171 |
+ PIX_FMT_NONE |
|
172 |
+ }, |
|
170 | 173 |
.long_name= NULL_IF_CONFIG_SMALL("Truevision Targa image"), |
171 | 174 |
}; |
... | ... |
@@ -266,5 +266,5 @@ AVCodec ff_tiertexseqvideo_decoder = { |
266 | 266 |
.close = seqvideo_decode_end, |
267 | 267 |
.decode = seqvideo_decode_frame, |
268 | 268 |
.capabilities = CODEC_CAP_DR1, |
269 |
- .long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ video"), |
|
269 |
+ .long_name = NULL_IF_CONFIG_SMALL("Tiertex Limited SEQ video"), |
|
270 | 270 |
}; |
... | ... |
@@ -491,13 +491,14 @@ AVCodec ff_tiff_encoder = { |
491 | 491 |
.id = CODEC_ID_TIFF, |
492 | 492 |
.priv_data_size = sizeof(TiffEncoderContext), |
493 | 493 |
.encode2 = encode_frame, |
494 |
- .pix_fmts = |
|
495 |
- (const enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8, |
|
496 |
- PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE, |
|
497 |
- PIX_FMT_YUV420P, PIX_FMT_YUV422P, |
|
498 |
- PIX_FMT_YUV444P, PIX_FMT_YUV410P, |
|
499 |
- PIX_FMT_YUV411P, PIX_FMT_RGB48LE, |
|
500 |
- PIX_FMT_RGBA, PIX_FMT_RGBA64LE, PIX_FMT_NONE}, |
|
501 |
- .long_name = NULL_IF_CONFIG_SMALL("TIFF image"), |
|
494 |
+ .pix_fmts = (const enum PixelFormat[]) { |
|
495 |
+ PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8, |
|
496 |
+ PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE, |
|
497 |
+ PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, |
|
498 |
+ PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_RGB48LE, |
|
499 |
+ PIX_FMT_RGBA, PIX_FMT_RGBA64LE, |
|
500 |
+ PIX_FMT_NONE |
|
501 |
+ }, |
|
502 |
+ .long_name = NULL_IF_CONFIG_SMALL("TIFF image"), |
|
502 | 503 |
.priv_class = &tiffenc_class, |
503 | 504 |
}; |
... | ... |
@@ -900,5 +900,5 @@ AVCodec ff_truemotion1_decoder = { |
900 | 900 |
.close = truemotion1_decode_end, |
901 | 901 |
.decode = truemotion1_decode_frame, |
902 | 902 |
.capabilities = CODEC_CAP_DR1, |
903 |
- .long_name = NULL_IF_CONFIG_SMALL("Duck TrueMotion 1.0"), |
|
903 |
+ .long_name = NULL_IF_CONFIG_SMALL("Duck TrueMotion 1.0"), |
|
904 | 904 |
}; |
... | ... |
@@ -977,5 +977,5 @@ AVCodec ff_truemotion2_decoder = { |
977 | 977 |
.close = decode_end, |
978 | 978 |
.decode = decode_frame, |
979 | 979 |
.capabilities = CODEC_CAP_DR1, |
980 |
- .long_name = NULL_IF_CONFIG_SMALL("Duck TrueMotion 2.0"), |
|
980 |
+ .long_name = NULL_IF_CONFIG_SMALL("Duck TrueMotion 2.0"), |
|
981 | 981 |
}; |
... | ... |
@@ -365,5 +365,5 @@ AVCodec ff_truespeech_decoder = { |
365 | 365 |
.init = truespeech_decode_init, |
366 | 366 |
.decode = truespeech_decode_frame, |
367 | 367 |
.capabilities = CODEC_CAP_DR1, |
368 |
- .long_name = NULL_IF_CONFIG_SMALL("DSP Group TrueSpeech"), |
|
368 |
+ .long_name = NULL_IF_CONFIG_SMALL("DSP Group TrueSpeech"), |
|
369 | 369 |
}; |
... | ... |
@@ -172,5 +172,5 @@ AVCodec ff_txd_decoder = { |
172 | 172 |
.close = txd_end, |
173 | 173 |
.decode = txd_decode_frame, |
174 | 174 |
.capabilities = CODEC_CAP_DR1, |
175 |
- .long_name = NULL_IF_CONFIG_SMALL("Renderware TXD (TeXture Dictionary) image"), |
|
175 |
+ .long_name = NULL_IF_CONFIG_SMALL("Renderware TXD (TeXture Dictionary) image"), |
|
176 | 176 |
}; |
... | ... |
@@ -183,6 +183,6 @@ AVCodec ff_v210_decoder = { |
183 | 183 |
.close = decode_close, |
184 | 184 |
.decode = decode_frame, |
185 | 185 |
.capabilities = CODEC_CAP_DR1, |
186 |
- .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), |
|
186 |
+ .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), |
|
187 | 187 |
.priv_class = &v210dec_class, |
188 | 188 |
}; |
... | ... |
@@ -121,6 +121,6 @@ AVCodec ff_v210_encoder = { |
121 | 121 |
.init = encode_init, |
122 | 122 |
.encode2 = encode_frame, |
123 | 123 |
.close = encode_close, |
124 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P10, PIX_FMT_NONE}, |
|
125 |
- .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), |
|
124 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV422P10, PIX_FMT_NONE }, |
|
125 |
+ .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), |
|
126 | 126 |
}; |
... | ... |
@@ -142,5 +142,5 @@ AVCodec ff_v210x_decoder = { |
142 | 142 |
.close = decode_close, |
143 | 143 |
.decode = decode_frame, |
144 | 144 |
.capabilities = CODEC_CAP_DR1, |
145 |
- .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), |
|
145 |
+ .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), |
|
146 | 146 |
}; |
... | ... |
@@ -5721,7 +5721,7 @@ AVCodec ff_wmv3_vdpau_decoder = { |
5721 | 5721 |
.decode = vc1_decode_frame, |
5722 | 5722 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU, |
5723 | 5723 |
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9 VDPAU"), |
5724 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_VDPAU_WMV3, PIX_FMT_NONE}, |
|
5724 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_VDPAU_WMV3, PIX_FMT_NONE }, |
|
5725 | 5725 |
.profiles = NULL_IF_CONFIG_SMALL(profiles) |
5726 | 5726 |
}; |
5727 | 5727 |
#endif |
... | ... |
@@ -5737,7 +5737,7 @@ AVCodec ff_vc1_vdpau_decoder = { |
5737 | 5737 |
.decode = vc1_decode_frame, |
5738 | 5738 |
.capabilities = CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU, |
5739 | 5739 |
.long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1 VDPAU"), |
5740 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_VDPAU_VC1, PIX_FMT_NONE}, |
|
5740 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_VDPAU_VC1, PIX_FMT_NONE }, |
|
5741 | 5741 |
.profiles = NULL_IF_CONFIG_SMALL(profiles) |
5742 | 5742 |
}; |
5743 | 5743 |
#endif |
... | ... |
@@ -187,7 +187,7 @@ AVCodec ff_vcr1_decoder = { |
187 | 187 |
.close = decode_end, |
188 | 188 |
.decode = decode_frame, |
189 | 189 |
.capabilities = CODEC_CAP_DR1, |
190 |
- .long_name = NULL_IF_CONFIG_SMALL("ATI VCR1"), |
|
190 |
+ .long_name = NULL_IF_CONFIG_SMALL("ATI VCR1"), |
|
191 | 191 |
}; |
192 | 192 |
|
193 | 193 |
#if CONFIG_VCR1_ENCODER |
... | ... |
@@ -198,6 +198,6 @@ AVCodec ff_vcr1_encoder = { |
198 | 198 |
.priv_data_size = sizeof(VCR1Context), |
199 | 199 |
.init = encode_init, |
200 | 200 |
.encode = encode_frame, |
201 |
- .long_name = NULL_IF_CONFIG_SMALL("ATI VCR1"), |
|
201 |
+ .long_name = NULL_IF_CONFIG_SMALL("ATI VCR1"), |
|
202 | 202 |
}; |
203 | 203 |
#endif |
... | ... |
@@ -651,7 +651,7 @@ AVCodec ff_vmdvideo_decoder = { |
651 | 651 |
.close = vmdvideo_decode_end, |
652 | 652 |
.decode = vmdvideo_decode_frame, |
653 | 653 |
.capabilities = CODEC_CAP_DR1, |
654 |
- .long_name = NULL_IF_CONFIG_SMALL("Sierra VMD video"), |
|
654 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sierra VMD video"), |
|
655 | 655 |
}; |
656 | 656 |
|
657 | 657 |
AVCodec ff_vmdaudio_decoder = { |
... | ... |
@@ -662,5 +662,5 @@ AVCodec ff_vmdaudio_decoder = { |
662 | 662 |
.init = vmdaudio_decode_init, |
663 | 663 |
.decode = vmdaudio_decode_frame, |
664 | 664 |
.capabilities = CODEC_CAP_DR1, |
665 |
- .long_name = NULL_IF_CONFIG_SMALL("Sierra VMD audio"), |
|
665 |
+ .long_name = NULL_IF_CONFIG_SMALL("Sierra VMD audio"), |
|
666 | 666 |
}; |
... | ... |
@@ -519,5 +519,5 @@ AVCodec ff_vmnc_decoder = { |
519 | 519 |
.close = decode_end, |
520 | 520 |
.decode = decode_frame, |
521 | 521 |
.capabilities = CODEC_CAP_DR1, |
522 |
- .long_name = NULL_IF_CONFIG_SMALL("VMware Screen Codec / VMware Video"), |
|
522 |
+ .long_name = NULL_IF_CONFIG_SMALL("VMware Screen Codec / VMware Video"), |
|
523 | 523 |
}; |
... | ... |
@@ -1726,18 +1726,18 @@ static av_cold void vorbis_decode_flush(AVCodecContext *avccontext) |
1726 | 1726 |
} |
1727 | 1727 |
|
1728 | 1728 |
AVCodec ff_vorbis_decoder = { |
1729 |
- .name = "vorbis", |
|
1730 |
- .type = AVMEDIA_TYPE_AUDIO, |
|
1731 |
- .id = CODEC_ID_VORBIS, |
|
1732 |
- .priv_data_size = sizeof(vorbis_context), |
|
1733 |
- .init = vorbis_decode_init, |
|
1734 |
- .close = vorbis_decode_close, |
|
1735 |
- .decode = vorbis_decode_frame, |
|
1736 |
- .flush = vorbis_decode_flush, |
|
1737 |
- .capabilities = CODEC_CAP_DR1, |
|
1738 |
- .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), |
|
1729 |
+ .name = "vorbis", |
|
1730 |
+ .type = AVMEDIA_TYPE_AUDIO, |
|
1731 |
+ .id = CODEC_ID_VORBIS, |
|
1732 |
+ .priv_data_size = sizeof(vorbis_context), |
|
1733 |
+ .init = vorbis_decode_init, |
|
1734 |
+ .close = vorbis_decode_close, |
|
1735 |
+ .decode = vorbis_decode_frame, |
|
1736 |
+ .flush = vorbis_decode_flush, |
|
1737 |
+ .capabilities = CODEC_CAP_DR1, |
|
1738 |
+ .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), |
|
1739 | 1739 |
.channel_layouts = ff_vorbis_channel_layouts, |
1740 |
- .sample_fmts = (const enum AVSampleFormat[]) { |
|
1740 |
+ .sample_fmts = (const enum AVSampleFormat[]) { |
|
1741 | 1741 |
AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE |
1742 | 1742 |
}, |
1743 | 1743 |
}; |
... | ... |
@@ -1210,7 +1210,8 @@ AVCodec ff_vorbis_encoder = { |
1210 | 1210 |
.init = vorbis_encode_init, |
1211 | 1211 |
.encode2 = vorbis_encode_frame, |
1212 | 1212 |
.close = vorbis_encode_close, |
1213 |
- .capabilities= CODEC_CAP_DELAY | CODEC_CAP_EXPERIMENTAL, |
|
1214 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
1215 |
- .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), |
|
1213 |
+ .capabilities = CODEC_CAP_DELAY | CODEC_CAP_EXPERIMENTAL, |
|
1214 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
1215 |
+ AV_SAMPLE_FMT_NONE }, |
|
1216 |
+ .long_name = NULL_IF_CONFIG_SMALL("Vorbis"), |
|
1216 | 1217 |
}; |
... | ... |
@@ -2369,32 +2369,34 @@ static av_cold int theora_decode_init(AVCodecContext *avctx) |
2369 | 2369 |
} |
2370 | 2370 |
|
2371 | 2371 |
AVCodec ff_theora_decoder = { |
2372 |
- .name = "theora", |
|
2373 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
2374 |
- .id = CODEC_ID_THEORA, |
|
2375 |
- .priv_data_size = sizeof(Vp3DecodeContext), |
|
2376 |
- .init = theora_decode_init, |
|
2377 |
- .close = vp3_decode_end, |
|
2378 |
- .decode = vp3_decode_frame, |
|
2379 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_FRAME_THREADS, |
|
2380 |
- .flush = vp3_decode_flush, |
|
2381 |
- .long_name = NULL_IF_CONFIG_SMALL("Theora"), |
|
2372 |
+ .name = "theora", |
|
2373 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
2374 |
+ .id = CODEC_ID_THEORA, |
|
2375 |
+ .priv_data_size = sizeof(Vp3DecodeContext), |
|
2376 |
+ .init = theora_decode_init, |
|
2377 |
+ .close = vp3_decode_end, |
|
2378 |
+ .decode = vp3_decode_frame, |
|
2379 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | |
|
2380 |
+ CODEC_CAP_FRAME_THREADS, |
|
2381 |
+ .flush = vp3_decode_flush, |
|
2382 |
+ .long_name = NULL_IF_CONFIG_SMALL("Theora"), |
|
2382 | 2383 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
2383 | 2384 |
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context) |
2384 | 2385 |
}; |
2385 | 2386 |
#endif |
2386 | 2387 |
|
2387 | 2388 |
AVCodec ff_vp3_decoder = { |
2388 |
- .name = "vp3", |
|
2389 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
2390 |
- .id = CODEC_ID_VP3, |
|
2391 |
- .priv_data_size = sizeof(Vp3DecodeContext), |
|
2392 |
- .init = vp3_decode_init, |
|
2393 |
- .close = vp3_decode_end, |
|
2394 |
- .decode = vp3_decode_frame, |
|
2395 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_FRAME_THREADS, |
|
2396 |
- .flush = vp3_decode_flush, |
|
2397 |
- .long_name = NULL_IF_CONFIG_SMALL("On2 VP3"), |
|
2389 |
+ .name = "vp3", |
|
2390 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
2391 |
+ .id = CODEC_ID_VP3, |
|
2392 |
+ .priv_data_size = sizeof(Vp3DecodeContext), |
|
2393 |
+ .init = vp3_decode_init, |
|
2394 |
+ .close = vp3_decode_end, |
|
2395 |
+ .decode = vp3_decode_frame, |
|
2396 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_DRAW_HORIZ_BAND | |
|
2397 |
+ CODEC_CAP_FRAME_THREADS, |
|
2398 |
+ .flush = vp3_decode_flush, |
|
2399 |
+ .long_name = NULL_IF_CONFIG_SMALL("On2 VP3"), |
|
2398 | 2400 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp3_init_thread_copy), |
2399 |
- .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context) |
|
2401 |
+ .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
|
2400 | 2402 |
}; |
... | ... |
@@ -633,7 +633,7 @@ AVCodec ff_vp6_decoder = { |
633 | 633 |
.close = vp6_decode_free, |
634 | 634 |
.decode = ff_vp56_decode_frame, |
635 | 635 |
.capabilities = CODEC_CAP_DR1, |
636 |
- .long_name = NULL_IF_CONFIG_SMALL("On2 VP6"), |
|
636 |
+ .long_name = NULL_IF_CONFIG_SMALL("On2 VP6"), |
|
637 | 637 |
}; |
638 | 638 |
|
639 | 639 |
/* flash version, not flipped upside-down */ |
... | ... |
@@ -646,7 +646,7 @@ AVCodec ff_vp6f_decoder = { |
646 | 646 |
.close = vp6_decode_free, |
647 | 647 |
.decode = ff_vp56_decode_frame, |
648 | 648 |
.capabilities = CODEC_CAP_DR1, |
649 |
- .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version)"), |
|
649 |
+ .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version)"), |
|
650 | 650 |
}; |
651 | 651 |
|
652 | 652 |
/* flash version, not flipped upside-down, with alpha channel */ |
... | ... |
@@ -659,5 +659,5 @@ AVCodec ff_vp6a_decoder = { |
659 | 659 |
.close = vp6_decode_free, |
660 | 660 |
.decode = ff_vp56_decode_frame, |
661 | 661 |
.capabilities = CODEC_CAP_DR1, |
662 |
- .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version, with alpha channel)"), |
|
662 |
+ .long_name = NULL_IF_CONFIG_SMALL("On2 VP6 (Flash version, with alpha channel)"), |
|
663 | 663 |
}; |
... | ... |
@@ -1851,16 +1851,16 @@ static int vp8_decode_update_thread_context(AVCodecContext *dst, const AVCodecCo |
1851 | 1851 |
} |
1852 | 1852 |
|
1853 | 1853 |
AVCodec ff_vp8_decoder = { |
1854 |
- .name = "vp8", |
|
1855 |
- .type = AVMEDIA_TYPE_VIDEO, |
|
1856 |
- .id = CODEC_ID_VP8, |
|
1857 |
- .priv_data_size = sizeof(VP8Context), |
|
1858 |
- .init = vp8_decode_init, |
|
1859 |
- .close = vp8_decode_free, |
|
1860 |
- .decode = vp8_decode_frame, |
|
1861 |
- .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
1862 |
- .flush = vp8_decode_flush, |
|
1863 |
- .long_name = NULL_IF_CONFIG_SMALL("On2 VP8"), |
|
1854 |
+ .name = "vp8", |
|
1855 |
+ .type = AVMEDIA_TYPE_VIDEO, |
|
1856 |
+ .id = CODEC_ID_VP8, |
|
1857 |
+ .priv_data_size = sizeof(VP8Context), |
|
1858 |
+ .init = vp8_decode_init, |
|
1859 |
+ .close = vp8_decode_free, |
|
1860 |
+ .decode = vp8_decode_frame, |
|
1861 |
+ .capabilities = CODEC_CAP_DR1 | CODEC_CAP_FRAME_THREADS, |
|
1862 |
+ .flush = vp8_decode_flush, |
|
1863 |
+ .long_name = NULL_IF_CONFIG_SMALL("On2 VP8"), |
|
1864 | 1864 |
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp8_decode_init_thread_copy), |
1865 | 1865 |
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp8_decode_update_thread_context), |
1866 | 1866 |
}; |
... | ... |
@@ -638,5 +638,5 @@ AVCodec ff_vqa_decoder = { |
638 | 638 |
.close = vqa_decode_end, |
639 | 639 |
.decode = vqa_decode_frame, |
640 | 640 |
.capabilities = CODEC_CAP_DR1, |
641 |
- .long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA (Vector Quantized Animation) video"), |
|
641 |
+ .long_name = NULL_IF_CONFIG_SMALL("Westwood Studios VQA (Vector Quantized Animation) video"), |
|
642 | 642 |
}; |
... | ... |
@@ -425,7 +425,8 @@ AVCodec ff_wmav1_encoder = { |
425 | 425 |
.init = encode_init, |
426 | 426 |
.encode2 = encode_superframe, |
427 | 427 |
.close = ff_wma_end, |
428 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
428 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
429 |
+ AV_SAMPLE_FMT_NONE }, |
|
429 | 430 |
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 1"), |
430 | 431 |
}; |
431 | 432 |
|
... | ... |
@@ -437,6 +438,7 @@ AVCodec ff_wmav2_encoder = { |
437 | 437 |
.init = encode_init, |
438 | 438 |
.encode2 = encode_superframe, |
439 | 439 |
.close = ff_wma_end, |
440 |
- .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE}, |
|
440 |
+ .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
|
441 |
+ AV_SAMPLE_FMT_NONE }, |
|
441 | 442 |
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 2"), |
442 | 443 |
}; |
... | ... |
@@ -1624,6 +1624,6 @@ AVCodec ff_wmapro_decoder = { |
1624 | 1624 |
.close = decode_end, |
1625 | 1625 |
.decode = decode_packet, |
1626 | 1626 |
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, |
1627 |
- .flush= flush, |
|
1628 |
- .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 9 Professional"), |
|
1627 |
+ .flush = flush, |
|
1628 |
+ .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio 9 Professional"), |
|
1629 | 1629 |
}; |
... | ... |
@@ -2052,6 +2052,6 @@ AVCodec ff_wmavoice_decoder = { |
2052 | 2052 |
.close = wmavoice_decode_end, |
2053 | 2053 |
.decode = wmavoice_decode_packet, |
2054 | 2054 |
.capabilities = CODEC_CAP_SUBFRAMES | CODEC_CAP_DR1, |
2055 |
- .flush = wmavoice_flush, |
|
2056 |
- .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio Voice"), |
|
2055 |
+ .flush = wmavoice_flush, |
|
2056 |
+ .long_name = NULL_IF_CONFIG_SMALL("Windows Media Audio Voice"), |
|
2057 | 2057 |
}; |
... | ... |
@@ -479,6 +479,6 @@ AVCodec ff_wmv2_decoder = { |
479 | 479 |
.close = wmv2_decode_end, |
480 | 480 |
.decode = ff_h263_decode_frame, |
481 | 481 |
.capabilities = CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1, |
482 |
- .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"), |
|
483 |
- .pix_fmts= ff_pixfmt_list_420, |
|
482 |
+ .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"), |
|
483 |
+ .pix_fmts = ff_pixfmt_list_420, |
|
484 | 484 |
}; |
... | ... |
@@ -219,6 +219,6 @@ AVCodec ff_wmv2_encoder = { |
219 | 219 |
.init = wmv2_encode_init, |
220 | 220 |
.encode2 = ff_MPV_encode_picture, |
221 | 221 |
.close = ff_MPV_encode_end, |
222 |
- .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE}, |
|
223 |
- .long_name= NULL_IF_CONFIG_SMALL("Windows Media Video 8"), |
|
222 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_YUV420P, PIX_FMT_NONE }, |
|
223 |
+ .long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 8"), |
|
224 | 224 |
}; |
... | ... |
@@ -190,5 +190,5 @@ AVCodec ff_ws_snd1_decoder = { |
190 | 190 |
.init = ws_snd_decode_init, |
191 | 191 |
.decode = ws_snd_decode_frame, |
192 | 192 |
.capabilities = CODEC_CAP_DR1, |
193 |
- .long_name = NULL_IF_CONFIG_SMALL("Westwood Audio (SND1)"), |
|
193 |
+ .long_name = NULL_IF_CONFIG_SMALL("Westwood Audio (SND1)"), |
|
194 | 194 |
}; |
... | ... |
@@ -427,5 +427,5 @@ AVCodec ff_xan_wc4_decoder = { |
427 | 427 |
.close = xan_decode_end, |
428 | 428 |
.decode = xan_decode_frame, |
429 | 429 |
.capabilities = CODEC_CAP_DR1, |
430 |
- .long_name = NULL_IF_CONFIG_SMALL("Wing Commander IV / Xxan"), |
|
430 |
+ .long_name = NULL_IF_CONFIG_SMALL("Wing Commander IV / Xxan"), |
|
431 | 431 |
}; |
... | ... |
@@ -679,5 +679,5 @@ AVCodec ff_zmbv_decoder = { |
679 | 679 |
.close = decode_end, |
680 | 680 |
.decode = decode_frame, |
681 | 681 |
.capabilities = CODEC_CAP_DR1, |
682 |
- .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"), |
|
682 |
+ .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"), |
|
683 | 683 |
}; |
... | ... |
@@ -342,6 +342,6 @@ AVCodec ff_zmbv_encoder = { |
342 | 342 |
.init = encode_init, |
343 | 343 |
.encode2 = encode_frame, |
344 | 344 |
.close = encode_end, |
345 |
- .pix_fmts = (const enum PixelFormat[]){PIX_FMT_PAL8, PIX_FMT_NONE}, |
|
346 |
- .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"), |
|
345 |
+ .pix_fmts = (const enum PixelFormat[]){ PIX_FMT_PAL8, PIX_FMT_NONE }, |
|
346 |
+ .long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"), |
|
347 | 347 |
}; |
... | ... |
@@ -26,6 +26,7 @@ |
26 | 26 |
#include "libavutil/avstring.h" |
27 | 27 |
#include "libavutil/dict.h" |
28 | 28 |
#include "libavutil/mathematics.h" |
29 |
+#include "libavutil/opt.h" |
|
29 | 30 |
#include "avformat.h" |
30 | 31 |
#include "internal.h" |
31 | 32 |
#include "avio_internal.h" |
... | ... |
@@ -35,6 +36,7 @@ |
35 | 35 |
#include "avlanguage.h" |
36 | 36 |
|
37 | 37 |
typedef struct { |
38 |
+ const AVClass *class; |
|
38 | 39 |
int asfid2avid[128]; ///< conversion table from asf ID 2 AVStream ID |
39 | 40 |
ASFStream streams[128]; ///< it's max number and it's not that big |
40 | 41 |
uint32_t stream_bitrates[128]; ///< max number of streams, bitrate for each (for streaming) |
... | ... |
@@ -72,8 +74,22 @@ typedef struct { |
72 | 72 |
int stream_index; |
73 | 73 |
|
74 | 74 |
ASFStream* asf_st; ///< currently decoded stream |
75 |
+ |
|
76 |
+ int no_resync_search; |
|
75 | 77 |
} ASFContext; |
76 | 78 |
|
79 |
+static const AVOption options[] = { |
|
80 |
+ {"no_resync_search", "Don't try to resynchronize by looking for a certain optional start code", offsetof(ASFContext, no_resync_search), AV_OPT_TYPE_INT, {.dbl = 0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM }, |
|
81 |
+ { NULL }, |
|
82 |
+}; |
|
83 |
+ |
|
84 |
+static const AVClass asf_class = { |
|
85 |
+ .class_name = "asf demuxer", |
|
86 |
+ .item_name = av_default_item_name, |
|
87 |
+ .option = options, |
|
88 |
+ .version = LIBAVUTIL_VERSION_INT, |
|
89 |
+}; |
|
90 |
+ |
|
77 | 91 |
#undef NDEBUG |
78 | 92 |
#include <assert.h> |
79 | 93 |
|
... | ... |
@@ -713,7 +729,9 @@ static int ff_asf_get_packet(AVFormatContext *s, AVIOContext *pb) |
713 | 713 |
|
714 | 714 |
// if we do not know packet size, allow skipping up to 32 kB |
715 | 715 |
off= 32768; |
716 |
- if (s->packet_size > 0) |
|
716 |
+ if (asf->no_resync_search) |
|
717 |
+ off = 3; |
|
718 |
+ else if (s->packet_size > 0) |
|
717 | 719 |
off= (avio_tell(pb) - s->data_offset) % s->packet_size + 3; |
718 | 720 |
|
719 | 721 |
c=d=e=-1; |
... | ... |
@@ -1302,4 +1320,5 @@ AVInputFormat ff_asf_demuxer = { |
1302 | 1302 |
.read_seek = asf_read_seek, |
1303 | 1303 |
.read_timestamp = asf_read_pts, |
1304 | 1304 |
.flags = AVFMT_NOBINSEARCH | AVFMT_NOGENSEARCH, |
1305 |
+ .priv_class = &asf_class, |
|
1305 | 1306 |
}; |
... | ... |
@@ -99,6 +99,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p) |
99 | 99 |
if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) { |
100 | 100 |
AVIOContext pb; |
101 | 101 |
RTSPState *rt = s->priv_data; |
102 |
+ AVDictionary *opts = NULL; |
|
102 | 103 |
int len = strlen(p) * 6 / 8; |
103 | 104 |
char *buf = av_mallocz(len); |
104 | 105 |
av_base64_decode(buf, p, len); |
... | ... |
@@ -113,7 +114,9 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p) |
113 | 113 |
if (!(rt->asf_ctx = avformat_alloc_context())) |
114 | 114 |
return AVERROR(ENOMEM); |
115 | 115 |
rt->asf_ctx->pb = &pb; |
116 |
- ret = avformat_open_input(&rt->asf_ctx, "", &ff_asf_demuxer, NULL); |
|
116 |
+ av_dict_set(&opts, "no_resync_search", "1", 0); |
|
117 |
+ ret = avformat_open_input(&rt->asf_ctx, "", &ff_asf_demuxer, &opts); |
|
118 |
+ av_dict_free(&opts); |
|
117 | 119 |
if (ret < 0) |
118 | 120 |
return ret; |
119 | 121 |
av_dict_copy(&s->metadata, rt->asf_ctx->metadata, 0); |
... | ... |
@@ -2483,7 +2483,9 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) |
2483 | 2483 |
break; |
2484 | 2484 |
if(st->parser && st->parser->parser->split && !st->codec->extradata) |
2485 | 2485 |
break; |
2486 |
- if(st->first_dts == AV_NOPTS_VALUE && (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || st->codec->codec_type == AVMEDIA_TYPE_AUDIO)) |
|
2486 |
+ if (st->first_dts == AV_NOPTS_VALUE && |
|
2487 |
+ (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || |
|
2488 |
+ st->codec->codec_type == AVMEDIA_TYPE_AUDIO)) |
|
2487 | 2489 |
break; |
2488 | 2490 |
} |
2489 | 2491 |
if (i == ic->nb_streams) { |