FFmpeg  4.0
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)
 
#define FF_RAWSUB_DEMUXER_CLASS(name)
 
#define FF_DEF_RAWSUB_DEMUXER(shortname, longname, probe, ext, id, flag)
 

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)
 
int ff_raw_data_read_header (AVFormatContext *s)
 

Variables

const AVOption ff_rawvideo_options []
 

Macro Definition Documentation

◆ FF_RAWVIDEO_DEMUXER_CLASS

#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,\
};
const char * name
Definition: avisynth_c.h:775
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
const AVOption ff_rawvideo_options[]
Definition: rawdec.c:109
Describe the class of an AVClass context structure.
Definition: log.h:67

Definition at line 46 of file rawdec.h.

Referenced by ingenient_read_packet().

◆ FF_DEF_RAWVIDEO_DEMUXER2

#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,\
};
#define FF_RAWVIDEO_DEMUXER_CLASS(name)
Definition: rawdec.h:46
#define flag(name)
Definition: cbs_h2645.c:346
int ff_raw_video_read_header(AVFormatContext *s)
Definition: rawdec.c:70
static int probe(AVProbeData *p)
Definition: act.c:36
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:35
enum AVCodecID id

Definition at line 54 of file rawdec.h.

Referenced by mpeg4video_probe(), and vc1_probe().

◆ FF_DEF_RAWVIDEO_DEMUXER

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

◆ FF_RAWSUB_DEMUXER_CLASS

#define FF_RAWSUB_DEMUXER_CLASS (   name)
Value:
static const AVClass name ## _demuxer_class = {\
.class_name = #name " demuxer",\
.item_name = av_default_item_name,\
.option = NULL,\
.version = LIBAVUTIL_VERSION_INT,\
};
const char * name
Definition: avisynth_c.h:775
#define NULL
Definition: coverity.c:32
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
Describe the class of an AVClass context structure.
Definition: log.h:67

Definition at line 72 of file rawdec.h.

◆ FF_DEF_RAWSUB_DEMUXER

#define FF_DEF_RAWSUB_DEMUXER (   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_data_read_header,\
.read_packet = ff_raw_read_partial_packet,\
.extensions = ext,\
.flags = flag,\
.raw_codec_id = id,\
.priv_data_size = 0,\
.priv_class = &shortname ## _demuxer_class,\
};
#define FF_RAWVIDEO_DEMUXER_CLASS(name)
Definition: rawdec.h:46
#define flag(name)
Definition: cbs_h2645.c:346
static int probe(AVProbeData *p)
Definition: act.c:36
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
int ff_raw_data_read_header(AVFormatContext *s)
Definition: rawdec.c:94
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:35
enum AVCodecID id

Definition at line 80 of file rawdec.h.

Referenced by dvbsub_probe(), and dvbtxt_probe().

Function Documentation

◆ ff_raw_read_partial_packet()

int ff_raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 35 of file rawdec.c.

Referenced by ac3_eac3_probe(), flac_read_timestamp(), mlp_thd_probe(), and raw_read_packet().

◆ ff_raw_audio_read_header()

int ff_raw_audio_read_header ( AVFormatContext s)

Definition at line 55 of file rawdec.c.

Referenced by ac3_eac3_probe(), and mlp_thd_probe().

◆ ff_raw_video_read_header()

int ff_raw_video_read_header ( AVFormatContext s)

Definition at line 70 of file rawdec.c.

◆ ff_raw_data_read_header()

int ff_raw_data_read_header ( AVFormatContext s)

Definition at line 94 of file rawdec.c.

Variable Documentation

◆ ff_rawvideo_options

const AVOption ff_rawvideo_options[]

Definition at line 109 of file rawdec.c.