FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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

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

Definition at line 102 of file librsvgdec.c.

Definition at line 103 of file librsvgdec.c.

Function Documentation

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

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:102
#define DEC
Definition: librsvgdec.c:103

Definition at line 104 of file librsvgdec.c.

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:86
av_default_item_name
static const AVOption options[]
Definition: librsvgdec.c:104

Definition at line 111 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),
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:179
static const AVClass librsvg_decoder_class
Definition: librsvgdec.c:111
#define AV_CODEC_CAP_LOSSLESS
Codec is lossless.
Definition: avcodec.h:1099
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:1002

Definition at line 118 of file librsvgdec.c.