FFmpeg
Loading...
Searching...
No Matches
rawdec.c File Reference
#include "config_components.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"
#include "rawdec.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Macros

#define RAW_PACKET_SIZE   1024
 
#define OFFSET(x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 
#define OFFSET(x)
 

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

Variables

static const AVOption rawvideo_options []
 
const AVClass ff_rawvideo_demuxer_class
 
static const AVOption raw_options []
 
const AVClass ff_raw_demuxer_class
 

Macro Definition Documentation

◆ RAW_PACKET_SIZE

#define RAW_PACKET_SIZE   1024

Definition at line 31 of file rawdec.c.

◆ OFFSET [1/2]

#define OFFSET ( x)
Value:

Definition at line 119 of file rawdec.c.

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 120 of file rawdec.c.

◆ OFFSET [2/2]

#define OFFSET ( x)
Value:

Definition at line 119 of file rawdec.c.

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.

◆ raw_data_read_header()

static int raw_data_read_header ( AVFormatContext * s)
static

Definition at line 106 of file rawdec.c.

Variable Documentation

◆ rawvideo_options

const AVOption rawvideo_options[]
static
Initial value:
= {
{ "framerate", "", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_MAX, DEC},
{ "raw_packet_size", "", OFFSET(raw_packet_size), AV_OPT_TYPE_INT, {.i64 = RAW_PACKET_SIZE }, 1, INT_MAX, DEC},
{ NULL },
}
#define NULL
Definition coverity.c:32
#define RAW_PACKET_SIZE
Definition evcdec.c:35
#define OFFSET(x)
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
Definition opt.h:314
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258
#define DEC
Definition librsvgdec.c:149
float framerate
Definition av1_levels.c:29

Definition at line 121 of file rawdec.c.

◆ ff_rawvideo_demuxer_class

const AVClass ff_rawvideo_demuxer_class
Initial value:
= {
.class_name = "generic raw video demuxer",
.item_name = av_default_item_name,
.option = rawvideo_options,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption rawvideo_options[]
Definition rawdec.c:121

Definition at line 128 of file rawdec.c.

◆ raw_options

const AVOption raw_options[]
static
Initial value:
= {
{ "raw_packet_size", "", OFFSET(raw_packet_size), AV_OPT_TYPE_INT, {.i64 = RAW_PACKET_SIZE }, 1, INT_MAX, DEC},
{ NULL },
}

Definition at line 136 of file rawdec.c.

◆ ff_raw_demuxer_class

const AVClass ff_raw_demuxer_class
Initial value:
= {
.class_name = "generic raw demuxer",
.item_name = av_default_item_name,
.option = raw_options,
}
static const AVOption raw_options[]
Definition mpegts.c:240

Definition at line 141 of file rawdec.c.