FFmpeg
Loading...
Searching...
No Matches
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)
 
#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)
Value:

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 },
}
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
Definition opt.h:314
#define DEC
Definition librsvgdec.c:149
float framerate
Definition av1_levels.c:29

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,
}
static const AVOption apv_options[]
Definition apvdec.c:233
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85

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),
}
static int apv_read_header(AVFormatContext *s)
Definition apvdec.c:152
static int apv_probe(const AVProbeData *p)
Definition apvdec.c:115
static int apv_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition apvdec.c:202
static const AVClass apv_demuxer_class
Definition apvdec.c:238
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition avformat.h:498
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
#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 245 of file apvdec.c.