FFmpeg
Loading...
Searching...
No Matches
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)
 
#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),\
};
static int probe(const AVProbeData *p)
Definition act.c:39
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
#define flag(name)
Definition cbs_h264.c:60
enum AVCodecID id
Definition dts2pts.c:607
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
Definition rawdec.c:33
const AVClass ff_rawvideo_demuxer_class
Definition rawdec.c:128
int ff_raw_video_read_header(AVFormatContext *s)
Definition rawdec.c:69
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88

Definition at line 53 of file rawdec.h.

◆ FF_DEF_RAWVIDEO_DEMUXER

#define FF_DEF_RAWVIDEO_DEMUXER ( shortname,
longname,
probe,
ext,
id )
Value:
FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, AVFMT_GENERIC_INDEX)
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
#define FF_DEF_RAWVIDEO_DEMUXER2(shortname, longname, probe, ext, id, flag)
Definition rawdec.h:53

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),\
};
const AVClass ff_raw_demuxer_class
Definition rawdec.c:141
int ff_raw_subtitle_read_header(AVFormatContext *s)
Definition rawdec.c:95

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 adx_read_packet(), 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
extern

Definition at line 128 of file rawdec.c.

◆ ff_raw_demuxer_class

const AVClass ff_raw_demuxer_class
extern

Definition at line 141 of file rawdec.c.