FFmpeg
Data Structures | Macros | Functions | Variables
apvdec.c File Reference
#include "libavutil/opt.h"
#include "libavcodec/apv.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  APVDemuxerContext
 
struct  APVHeaderInfo
 

Macros

#define OFFSET(x)   offsetof(APVDemuxerContext, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Functions

static int apv_extract_header_info (GetByteContext *gbc)
 
static int apv_probe (const AVProbeData *p)
 
static int apv_read_header (AVFormatContext *s)
 
static int apv_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption apv_options []
 
static const AVClass apv_demuxer_class
 
const FFInputFormat ff_apv_demuxer
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(APVDemuxerContext, x)

Definition at line 231 of file apvdec.c.

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 232 of file apvdec.c.

Function Documentation

◆ apv_extract_header_info()

static int apv_extract_header_info ( GetByteContext gbc)
static

Definition at line 48 of file apvdec.c.

Referenced by apv_probe().

◆ apv_probe()

static int apv_probe ( const AVProbeData p)
static

Definition at line 115 of file apvdec.c.

◆ apv_read_header()

static int apv_read_header ( AVFormatContext s)
static

Definition at line 152 of file apvdec.c.

◆ apv_read_packet()

static int apv_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 202 of file apvdec.c.

Variable Documentation

◆ apv_options

const AVOption apv_options[]
static
Initial value:
= {
{ "framerate", "set frame rate", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, { .str = "30" }, 0, INT_MAX, DEC },
{ NULL },
}

Definition at line 233 of file apvdec.c.

◆ apv_demuxer_class

const AVClass apv_demuxer_class
static
Initial value:
= {
.class_name = "apv demuxer",
.item_name = av_default_item_name,
.option = apv_options,
}

Definition at line 238 of file apvdec.c.

◆ ff_apv_demuxer

const FFInputFormat ff_apv_demuxer
Initial value:
= {
.p.name = "apv",
.p.long_name = NULL_IF_CONFIG_SMALL("APV raw bitstream"),
.p.extensions = "apv",
.p.priv_class = &apv_demuxer_class,
.priv_data_size = sizeof(APVDemuxerContext),
}

Definition at line 245 of file apvdec.c.

AV_OPT_TYPE_VIDEO_RATE
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
Definition: opt.h:315
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:478
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:479
OFFSET
#define OFFSET(x)
Definition: apvdec.c:231
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
DEC
#define DEC
Definition: apvdec.c:232
apv_read_packet
static int apv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: apvdec.c:202
framerate
float framerate
Definition: av1_levels.c:29
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
apv_probe
static int apv_probe(const AVProbeData *p)
Definition: apvdec.c:115
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:240
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:94
read_header
static int read_header(FFV1Context *f, RangeCoder *c)
Definition: ffv1dec.c:489
apv_demuxer_class
static const AVClass apv_demuxer_class
Definition: apvdec.c:238
apv_options
static const AVOption apv_options[]
Definition: apvdec.c:233
APVDemuxerContext
Definition: apvdec.c:29
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
apv_read_header
static int apv_read_header(AVFormatContext *s)
Definition: apvdec.c:152