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 "demux.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 FFInputFormat ff_evc_demuxer
 

Macro Definition Documentation

◆ RAW_PACKET_SIZE

#define RAW_PACKET_SIZE   1024

Definition at line 35 of file evcdec.c.

◆ DEC

#define DEC   AV_OPT_FLAG_DECODING_PARAM

Definition at line 45 of file evcdec.c.

◆ OFFSET

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

Definition at line 46 of file evcdec.c.

Function Documentation

◆ annexb_probe()

static int annexb_probe ( const AVProbeData p)
static

Definition at line 60 of file evcdec.c.

◆ evc_read_header()

static int evc_read_header ( AVFormatContext s)
static

Definition at line 99 of file evcdec.c.

◆ evc_read_packet()

static int evc_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 142 of file evcdec.c.

◆ evc_read_close()

static int evc_read_close ( AVFormatContext s)
static

Definition at line 197 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 47 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 53 of file evcdec.c.

◆ ff_evc_demuxer

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

Definition at line 205 of file evcdec.c.

AV_OPT_TYPE_VIDEO_RATE
@ AV_OPT_TYPE_VIDEO_RATE
offset must point to AVRational
Definition: opt.h:248
AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
evc_demuxer_class
static const AVClass evc_demuxer_class
Definition: evcdec.c:53
evc_options
static const AVOption evc_options[]
Definition: evcdec.c:47
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
annexb_probe
static int annexb_probe(const AVProbeData *p)
Definition: evcdec.c:60
evc_read_packet
static int evc_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: evcdec.c:142
evc_read_header
static int evc_read_header(AVFormatContext *s)
Definition: evcdec.c:99
AV_CODEC_ID_EVC
@ AV_CODEC_ID_EVC
Definition: codec_id.h:321
DEC
#define DEC
Definition: evcdec.c:45
FF_INFMT_FLAG_INIT_CLEANUP
#define FF_INFMT_FLAG_INIT_CLEANUP
For an FFInputFormat with this flag set read_close() needs to be called by the caller upon read_heade...
Definition: demux.h:35
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:46
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:197
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:37