FFmpeg  4.0
Data Structures | Macros | Functions | Variables
librsvgdec.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "libavutil/opt.h"
#include "librsvg-2.0/librsvg/rsvg.h"

Go to the source code of this file.

Data Structures

struct  LibRSVGContext
 

Macros

#define OFFSET(x)   offsetof(LibRSVGContext, x)
 
#define DEC   (AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM)
 

Functions

static int librsvg_decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
 

Variables

static const AVOption options []
 
static const AVClass librsvg_decoder_class
 
AVCodec ff_librsvg_decoder
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 104 of file librsvgdec.c.

◆ DEC

Definition at line 105 of file librsvgdec.c.

Referenced by set_spdif().

Function Documentation

◆ librsvg_decode_frame()

static int librsvg_decode_frame ( AVCodecContext avctx,
void data,
int got_frame,
AVPacket pkt 
)
static

Definition at line 35 of file librsvgdec.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "width", "Width to render to (0 for default)", OFFSET(width), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, DEC },
{ "height", "Height to render to (0 for default)", OFFSET(height), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, DEC },
{ "keep_ar", "Keep aspect ratio with custom width/height", OFFSET(keep_ar), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, DEC },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define height
uint16_t width
Definition: gdv.c:47
#define OFFSET(x)
Definition: librsvgdec.c:104
#define DEC
Definition: librsvgdec.c:105

Definition at line 106 of file librsvgdec.c.

◆ librsvg_decoder_class

const AVClass librsvg_decoder_class
static
Initial value:
= {
.class_name = "Librsvg",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191
static const AVOption options[]
Definition: librsvgdec.c:106

Definition at line 113 of file librsvgdec.c.

◆ ff_librsvg_decoder

AVCodec ff_librsvg_decoder
Initial value:
= {
.name = "librsvg",
.long_name = NULL_IF_CONFIG_SMALL("Librsvg rasterizer"),
.priv_class = &librsvg_decoder_class,
.priv_data_size = sizeof(LibRSVGContext),
.wrapper_name = "librsvg",
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVClass librsvg_decoder_class
Definition: librsvgdec.c:113
#define AV_CODEC_CAP_LOSSLESS
Codec is lossless.
Definition: avcodec.h:1049
static int librsvg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
Definition: librsvgdec.c:35
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:959

Definition at line 120 of file librsvgdec.c.