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


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


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


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

Macro Definition Documentation

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

Definition at line 104 of file librsvgdec.c.

Definition at line 105 of file librsvgdec.c.

Function Documentation

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

Definition at line 35 of file librsvgdec.c.

Variable Documentation

const AVOption options[]
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
#define OFFSET(x)
Definition: librsvgdec.c:104
#define DEC
Definition: librsvgdec.c:105
#define width

Definition at line 106 of file librsvgdec.c.

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

Definition at line 113 of file librsvgdec.c.

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),
.capabilities = AV_CODEC_CAP_DR1,
.wrapper_name = "librsvg",
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:117
static const AVClass librsvg_decoder_class
Definition: librsvgdec.c:113
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() or get_encode_buffer() for allocating buffers and supports custom allocators...
Definition: codec.h:52

Definition at line 120 of file librsvgdec.c.