FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
rawdec.h File Reference
#include "avformat.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  FFRawVideoDemuxerContext
 

Macros

#define FF_RAWVIDEO_DEMUXER_CLASS(name)
 
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)
 
#define FF_DEF_RAWVIDEO_DEMUXER(shortname, longname, probe, ext, id)   FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, AVFMT_GENERIC_INDEX)
 

Functions

int ff_raw_read_partial_packet (AVFormatContext *s, AVPacket *pkt)
 
int ff_raw_audio_read_header (AVFormatContext *s)
 
int ff_raw_video_read_header (AVFormatContext *s)
 

Variables

const AVOption ff_rawvideo_options []
 

Macro Definition Documentation

#define FF_RAWVIDEO_DEMUXER_CLASS (   name)
Value:
static const AVClass name ## _demuxer_class = {\
.class_name = #name " demuxer",\
.item_name = av_default_item_name,\
.option = ff_rawvideo_options,\
.version = LIBAVUTIL_VERSION_INT,\
};

Definition at line 44 of file rawdec.h.

#define FF_DEF_RAWVIDEO_DEMUXER2 (   shortname,
  longname,
  probe,
  ext,
  id,
  flag 
)
Value:
AVInputFormat ff_ ## shortname ## _demuxer = {\
.name = #shortname,\
.long_name = NULL_IF_CONFIG_SMALL(longname),\
.read_probe = probe,\
.read_header = ff_raw_video_read_header,\
.read_packet = ff_raw_read_partial_packet,\
.extensions = ext,\
.flags = flag,\
.raw_codec_id = id,\
.priv_data_size = sizeof(FFRawVideoDemuxerContext),\
.priv_class = &shortname ## _demuxer_class,\
};

Definition at line 52 of file rawdec.h.

#define FF_DEF_RAWVIDEO_DEMUXER (   shortname,
  longname,
  probe,
  ext,
  id 
)    FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, AVFMT_GENERIC_INDEX)

Definition at line 67 of file rawdec.h.

Function Documentation

int ff_raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 35 of file rawdec.c.

Referenced by flac_read_timestamp(), and raw_read_packet().

int ff_raw_audio_read_header ( AVFormatContext s)

Definition at line 55 of file rawdec.c.

int ff_raw_video_read_header ( AVFormatContext s)

Definition at line 70 of file rawdec.c.

Variable Documentation

const AVOption ff_rawvideo_options[]

Definition at line 109 of file rawdec.c.