FFmpeg
Data Structures | Macros | Functions | Variables
evcdec.c File Reference
#include "libavcodec/evc.h"
#include "libavcodec/bsf.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "avio_internal.h"
#include "evc.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  EVCDemuxContext
 

Macros

#define RAW_PACKET_SIZE   1024
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 
#define OFFSET(x)   offsetof(EVCDemuxContext, x)
 

Functions

static int annexb_probe (const AVProbeData *p)
 
static int evc_read_header (AVFormatContext *s)
 
static int evc_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int evc_read_close (AVFormatContext *s)
 

Variables

static const AVOption evc_options []
 
static const AVClass evc_demuxer_class
 
const AVInputFormat ff_evc_demuxer
 

Macro Definition Documentation

◆ RAW_PACKET_SIZE

#define RAW_PACKET_SIZE   1024

Definition at line 34 of file evcdec.c.

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 44 of file evcdec.c.

◆ OFFSET

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

Definition at line 45 of file evcdec.c.

Function Documentation

◆ annexb_probe()

static int annexb_probe ( const AVProbeData p)
static

Definition at line 59 of file evcdec.c.

◆ evc_read_header()

static int evc_read_header ( AVFormatContext s)
static

Definition at line 98 of file evcdec.c.

◆ evc_read_packet()

static int evc_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 141 of file evcdec.c.

◆ evc_read_close()

static int evc_read_close ( AVFormatContext s)
static

Definition at line 196 of file evcdec.c.

Variable Documentation

◆ evc_options

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

Definition at line 46 of file evcdec.c.

◆ evc_demuxer_class

const AVClass evc_demuxer_class
static
Initial value:
= {
.class_name = "EVC Annex B demuxer",
.item_name = av_default_item_name,
.option = evc_options,
}

Definition at line 52 of file evcdec.c.

◆ ff_evc_demuxer

const AVInputFormat ff_evc_demuxer
Initial value:
= {
.name = "evc",
.long_name = NULL_IF_CONFIG_SMALL("EVC Annex B"),
.read_probe = annexb_probe,
.read_header = evc_read_header,
.read_packet = evc_read_packet,
.read_close = evc_read_close,
.extensions = "evc",
.flags_internal = FF_FMT_INIT_CLEANUP,
.raw_codec_id = AV_CODEC_ID_EVC,
.priv_data_size = sizeof(EVCDemuxContext),
.priv_class = &evc_demuxer_class,
}

Definition at line 204 of file evcdec.c.

FF_FMT_INIT_CLEANUP
#define FF_FMT_INIT_CLEANUP
For an AVInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: internal.h:46
AV_OPT_TYPE_VIDEO_RATE
@ AV_OPT_TYPE_VIDEO_RATE
offset must point to AVRational
Definition: opt.h:238
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:480
evc_demuxer_class
static const AVClass evc_demuxer_class
Definition: evcdec.c:52
evc_options
static const AVOption evc_options[]
Definition: evcdec.c:46
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:481
annexb_probe
static int annexb_probe(const AVProbeData *p)
Definition: evcdec.c:59
evc_read_packet
static int evc_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: evcdec.c:141
evc_read_header
static int evc_read_header(AVFormatContext *s)
Definition: evcdec.c:98
AV_CODEC_ID_EVC
@ AV_CODEC_ID_EVC
Definition: codec_id.h:324
DEC
#define DEC
Definition: evcdec.c:44
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
OFFSET
#define OFFSET(x)
Definition: evcdec.c:45
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
evc_read_close
static int evc_read_close(AVFormatContext *s)
Definition: evcdec.c:196
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:106
EVCDemuxContext
Definition: evcdec.c:36