MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ssa_style_reset

Function ssa_style_reset

libhb/ssautil.c:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61static void ssa_style_reset(hb_subtitle_style_context_t * ctx)
62{
63 if (ctx->styles != NULL && ctx->style_default < ctx->styles_count)
64 {
65 ctx->current = ctx->styles[ctx->event_style_default];
66 }
67 else
68 {
69 ctx->current.font_name = HB_FONT_SANS;
70 ctx->current.font_size = 72;
71 ctx->current.flags = 0;
72 ctx->current.fg_rgb = 0x00FFFFFF;
73 ctx->current.alt_rgb = 0x00FFFFFF;
74 ctx->current.ol_rgb = 0x000F0F0F;
75 ctx->current.bg_rgb = 0x000F0F0F;
76
77 ctx->current.fg_alpha = 0xFF;
78 ctx->current.alt_alpha = 0xFF;
79 ctx->current.ol_alpha = 0xFF;
80 ctx->current.bg_alpha = 0xFF;
81 }
82}
83
84static int ssa_style_set(hb_subtitle_style_context_t * ctx, const char * style)
85{

Callers 3

ssa_style_setFunction · 0.85
hb_subtitle_style_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected