FFmpeg
Data Structures | Macros | Functions | Variables
rawdec.h File Reference
#include "avformat.h"
#include "libavutil/log.h"

Go to the source code of this file.

Data Structures

struct  FFRawVideoDemuxerContext
 
struct  FFRawDemuxerContext
 

Macros

#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_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_subtitle_read_header (AVFormatContext *s)
 

Variables

const AVClass ff_rawvideo_demuxer_class
 
const AVClass ff_raw_demuxer_class
 

Macro Definition Documentation

◆ FF_DEF_RAWVIDEO_DEMUXER2

#define FF_DEF_RAWVIDEO_DEMUXER2 (   shortname,
  longname,
  probe,
  ext,
  id,
  flag 
)
Value:
const 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 = &ff_rawvideo_demuxer_class,\
};

Definition at line 52 of file rawdec.h.

◆ 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)

Definition at line 66 of file rawdec.h.

◆ FF_DEF_RAWSUB_DEMUXER

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

Definition at line 69 of file rawdec.h.

Function Documentation

◆ ff_raw_read_partial_packet()

int ff_raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 34 of file rawdec.c.

Referenced by flac_read_timestamp(), 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 mlp_read_header().

◆ ff_raw_video_read_header()

int ff_raw_video_read_header ( AVFormatContext s)

Definition at line 70 of file rawdec.c.

◆ ff_raw_subtitle_read_header()

int ff_raw_subtitle_read_header ( AVFormatContext s)

Definition at line 96 of file rawdec.c.

Variable Documentation

◆ ff_rawvideo_demuxer_class

const AVClass ff_rawvideo_demuxer_class

Definition at line 129 of file rawdec.c.

◆ ff_raw_demuxer_class

const AVClass ff_raw_demuxer_class

Definition at line 142 of file rawdec.c.

FFRawDemuxerContext
Definition: rawdec.h:36
AVInputFormat
Definition: avformat.h:650
ff_raw_demuxer_class
const AVClass ff_raw_demuxer_class
Definition: rawdec.c:142
AVInputFormat::name
const char * name
A comma separated list of short names for the format.
Definition: avformat.h:655
ff_raw_read_partial_packet
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:34
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
id
enum AVCodecID id
Definition: extract_extradata_bsf.c:325
FFRawVideoDemuxerContext
Definition: rawdec.h:28
flag
#define flag(name)
Definition: cbs_av1.c:553
probe
static int probe(const AVProbeData *p)
Definition: act.c:37
ff_raw_subtitle_read_header
int ff_raw_subtitle_read_header(AVFormatContext *s)
Definition: rawdec.c:96
ff_rawvideo_demuxer_class
const AVClass ff_rawvideo_demuxer_class
Definition: rawdec.c:129
ff_raw_video_read_header
int ff_raw_video_read_header(AVFormatContext *s)
Definition: rawdec.c:70