FFmpeg
Data Structures | Macros | Functions | Variables
av1dec.c File Reference
#include "config.h"
#include "config_components.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavcodec/av1_parse.h"
#include "libavcodec/bsf.h"
#include "avformat.h"
#include "avio_internal.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AV1DemuxContext
 

Macros

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

Functions

static int get_score (int type, int *seq)
 
static int av1_read_header (AVFormatContext *s)
 
static int av1_read_close (AVFormatContext *s)
 

Variables

static const AVOption av1_options []
 
static const AVClass av1_demuxer_class
 

Macro Definition Documentation

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 110 of file av1dec.c.

◆ OFFSET

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

Definition at line 111 of file av1dec.c.

Function Documentation

◆ get_score()

static int get_score ( int  type,
int seq 
)
static

Definition at line 42 of file av1dec.c.

◆ av1_read_header()

static int av1_read_header ( AVFormatContext s)
static

Definition at line 60 of file av1dec.c.

◆ av1_read_close()

static int av1_read_close ( AVFormatContext s)
static

Definition at line 102 of file av1dec.c.

Variable Documentation

◆ av1_options

const AVOption av1_options[]
static
Initial value:
= {
{ "framerate", "", OFFSET(framerate), AV_OPT_TYPE_VIDEO_RATE, {.str = "25"}, 0, INT_MAX, DEC},
{ NULL },
}

Definition at line 112 of file av1dec.c.

◆ av1_demuxer_class

const AVClass av1_demuxer_class
static
Initial value:
= {
.class_name = "AV1 Annex B/low overhead OBU demuxer",
.item_name = av_default_item_name,
.option = av1_options,
}

Definition at line 118 of file av1dec.c.

AV_OPT_TYPE_VIDEO_RATE
@ AV_OPT_TYPE_VIDEO_RATE
offset must point to AVRational
Definition: opt.h:238
framerate
int framerate
Definition: h264_levels.c:65
DEC
#define DEC
Definition: av1dec.c:110
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
OFFSET
#define OFFSET(x)
Definition: av1dec.c:111
av1_options
static const AVOption av1_options[]
Definition: av1dec.c:112