FFmpeg
Data Structures | Macros | Functions | Variables
rawdec.h File Reference
#include "avformat.h"
#include "demux.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 FFInputFormat ff_ ## shortname ## _demuxer = {\
.p.name = #shortname,\
.p.long_name = NULL_IF_CONFIG_SMALL(longname),\
.p.extensions = ext,\
.p.flags = flag | AVFMT_NOTIMESTAMPS,\
.p.priv_class = &ff_rawvideo_demuxer_class,\
.read_probe = probe,\
.read_header = ff_raw_video_read_header,\
.read_packet = ff_raw_read_partial_packet,\
.raw_codec_id = id,\
.priv_data_size = sizeof(FFRawVideoDemuxerContext),\
};

Definition at line 53 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 67 of file rawdec.h.

◆ FF_DEF_RAWSUB_DEMUXER

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

Definition at line 70 of file rawdec.h.

Function Documentation

◆ ff_raw_read_partial_packet()

int ff_raw_read_partial_packet ( AVFormatContext s,
AVPacket pkt 
)

Definition at line 33 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 54 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 69 of file rawdec.c.

◆ ff_raw_subtitle_read_header()

int ff_raw_subtitle_read_header ( AVFormatContext s)

Definition at line 95 of file rawdec.c.

Variable Documentation

◆ ff_rawvideo_demuxer_class

const AVClass ff_rawvideo_demuxer_class

Definition at line 128 of file rawdec.c.

◆ ff_raw_demuxer_class

const AVClass ff_raw_demuxer_class

Definition at line 141 of file rawdec.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
FFRawDemuxerContext
Definition: rawdec.h:37
ff_raw_demuxer_class
const AVClass ff_raw_demuxer_class
Definition: rawdec.c:141
AVInputFormat::name
const char * name
A comma separated list of short names for the format.
Definition: avformat.h:553
ff_raw_read_partial_packet
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawdec.c:33
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:106
FFInputFormat::p
AVInputFormat p
The public AVInputFormat.
Definition: demux.h:41
FFRawVideoDemuxerContext
Definition: rawdec.h:29
flag
#define flag(name)
Definition: cbs_av1.c:474
id
enum AVCodecID id
Definition: dts2pts.c:364
probe
static int probe(const AVProbeData *p)
Definition: act.c:39
FFInputFormat
Definition: demux.h:37
ff_raw_subtitle_read_header
int ff_raw_subtitle_read_header(AVFormatContext *s)
Definition: rawdec.c:95
ff_rawvideo_demuxer_class
const AVClass ff_rawvideo_demuxer_class
Definition: rawdec.c:128
ff_raw_video_read_header
int ff_raw_video_read_header(AVFormatContext *s)
Definition: rawdec.c:69