libavfilter/vf_ass.c File Reference
Libass subtitles burning filter.
More...
#include <ass/ass.h>
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "drawutils.h"
#include "avfilter.h"
Go to the source code of this file.
|
Data Structures |
struct | AssContext |
Defines |
#define | OFFSET(x) offsetof(AssContext, x) |
#define | AR(c) ( (c)>>24) |
#define | AG(c) (((c)>>16)&0xFF) |
#define | AB(c) (((c)>>8) &0xFF) |
#define | AA(c) ((0xFF-c) &0xFF) |
Functions |
static const char * | ass_get_name (void *ctx) |
static void | ass_log (int ass_level, const char *fmt, va_list args, void *ctx) |
static av_cold int | init (AVFilterContext *ctx, const char *args, void *opaque) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_input (AVFilterLink *inlink) |
static void | null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir) |
static void | overlay_ass_image (AssContext *ass, AVFilterBufferRef *picref, const ASS_Image *image) |
static void | end_frame (AVFilterLink *inlink) |
Variables |
static const AVOption | ass_options [] |
static const AVClass | ass_class |
int | ass_libav_log_level_map [] |
AVFilter | avfilter_vf_ass |
Detailed Description
Libass subtitles burning filter.
- See also:
- {http://www.matroska.org/technical/specs/subtitles/ssa.html}
Definition in file vf_ass.c.
Define Documentation
#define AA |
( |
c |
|
) |
((0xFF-c) &0xFF) |
#define AB |
( |
c |
|
) |
(((c)>>8) &0xFF) |
#define AG |
( |
c |
|
) |
(((c)>>16)&0xFF) |
#define AR |
( |
c |
|
) |
( (c)>>24) |
Function Documentation
static const char* ass_get_name |
( |
void * |
ctx |
) |
[static] |
static void ass_log |
( |
int |
ass_level, |
|
|
const char * |
fmt, |
|
|
va_list |
args, |
|
|
void * |
ctx | |
|
) |
| | [static] |
static av_cold int init |
( |
AVFilterContext * |
ctx, |
|
|
const char * |
args, |
|
|
void * |
opaque | |
|
) |
| | [static] |
static void null_draw_slice |
( |
AVFilterLink * |
link, |
|
|
int |
y, |
|
|
int |
h, |
|
|
int |
slice_dir | |
|
) |
| | [static] |
Variable Documentation
Initial value:
Definition at line 62 of file vf_ass.c.
Initial value:
Definition at line 52 of file vf_ass.c.
Initial value:
{
.name = "ass",
.description = NULL_IF_CONFIG_SMALL("Render subtitles onto input video using the libass library."),
.priv_size = sizeof(AssContext),
.init = init,
.uninit = uninit,
.query_formats = query_formats,
.inputs = (const AVFilterPad[]) {
{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.get_video_buffer = avfilter_null_get_video_buffer,
.start_frame = avfilter_null_start_frame,
.draw_slice = null_draw_slice,
.end_frame = end_frame,
.config_props = config_input,
.min_perms = AV_PERM_WRITE | AV_PERM_READ,
.rej_perms = AV_PERM_PRESERVE },
{ .name = NULL}
},
.outputs = (const AVFilterPad[]) {
{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO, },
{ .name = NULL}
},
}
Definition at line 209 of file vf_ass.c.