Libass subtitles burning filter.
More...
#include <ass/ass.h>
#include "config_components.h"
#include "libavutil/avstring.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "filters.h"
#include "drawutils.h"
#include "avfilter.h"
#include "formats.h"
#include "video.h"
Go to the source code of this file.
|
| static enum AVColorSpace | ass_get_color_space (ASS_YCbCrMatrix ass_matrix, enum AVColorSpace inlink_space) |
| |
| static enum AVColorRange | ass_get_color_range (ASS_YCbCrMatrix ass_matrix, enum AVColorRange inlink_range) |
| |
| static void | ass_log (int ass_level, const char *fmt, va_list args, void *ctx) |
| |
| static av_cold int | init (AVFilterContext *ctx) |
| |
| static av_cold void | uninit (AVFilterContext *ctx) |
| |
| static int | query_formats (const AVFilterContext *ctx, AVFilterFormatsConfig **cfg_in, AVFilterFormatsConfig **cfg_out) |
| |
| static int | config_input (AVFilterLink *inlink) |
| |
| static void | overlay_ass_image (AssContext *ass, AVFrame *picref, const ASS_Image *image) |
| |
| static int | filter_frame (AVFilterLink *inlink, AVFrame *picref) |
| |
◆ FF_ASS_FEATURE_WRAP_UNICODE
| #define FF_ASS_FEATURE_WRAP_UNICODE (LIBASS_VERSION >= 0x01600010) |
◆ OFFSET
◆ FLAGS
◆ COMMON_OPTIONS
Value:
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
static const int16_t alpha[]
Definition at line 72 of file vf_subtitles.c.
◆ SHAPING_OPTIONS
Value:
{
"simple",
"simple shaping", 0,
AV_OPT_TYPE_CONST, {.i64 = ASS_SHAPING_SIMPLE}, INT_MIN, INT_MAX,
FLAGS, .unit =
"shaping_mode"}, \
{
"complex",
"complex shaping", 0,
AV_OPT_TYPE_CONST, {.i64 = ASS_SHAPING_COMPLEX}, INT_MIN, INT_MAX,
FLAGS, .unit =
"shaping_mode"}, \
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition at line 79 of file vf_subtitles.c.
◆ AR
◆ AG
◆ AB
◆ AA
◆ ass_get_color_space()
◆ ass_get_color_range()
◆ ass_log()
| static void ass_log |
( |
int | ass_level, |
|
|
const char * | fmt, |
|
|
va_list | args, |
|
|
void * | ctx ) |
|
static |
◆ init()
◆ uninit()
◆ query_formats()
◆ config_input()
◆ overlay_ass_image()
| static void overlay_ass_image |
( |
AssContext * | ass, |
|
|
AVFrame * | picref, |
|
|
const ASS_Image * | image ) |
|
static |
◆ filter_frame()
◆ ass_libavfilter_log_level_map
| const int ass_libavfilter_log_level_map[] |
|
static |
Initial value:= {
}
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_FATAL
Something went wrong and recovery is not possible.
#define AV_LOG_VERBOSE
Detailed information.
#define AV_LOG_INFO
Standard information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition at line 86 of file vf_subtitles.c.
Referenced by ass_log().
◆ ass_inputs
Initial value:= {
{
.name = "default",
},
}
static int config_input(AVFilterLink *inlink)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
#define AVFILTERPAD_FLAG_NEEDS_WRITABLE
The filter expects writable frames from its input link, duplicating data buffers if needed.
Definition at line 257 of file vf_subtitles.c.