Go to the documentation of this file.
22 #ifndef AVFORMAT_RAWDEC_H
23 #define AVFORMAT_RAWDEC_H
44 #define FF_RAWVIDEO_DEMUXER_CLASS(name)\
45 static const AVClass name ## _demuxer_class = {\
46 .class_name = #name " demuxer",\
47 .item_name = av_default_item_name,\
48 .option = ff_rawvideo_options,\
49 .version = LIBAVUTIL_VERSION_INT,\
52 #define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)\
53 FF_RAWVIDEO_DEMUXER_CLASS(shortname)\
54 AVInputFormat ff_ ## shortname ## _demuxer = {\
56 .long_name = NULL_IF_CONFIG_SMALL(longname),\
58 .read_header = ff_raw_video_read_header,\
59 .read_packet = ff_raw_read_partial_packet,\
63 .priv_data_size = sizeof(FFRawVideoDemuxerContext),\
64 .priv_class = &shortname ## _demuxer_class,\
67 #define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)\
68 FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, AVFMT_GENERIC_INDEX)