| 59 | }; |
| 60 | |
| 61 | static 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 | |
| 84 | static int ssa_style_set(hb_subtitle_style_context_t * ctx, const char * style) |
| 85 | { |
no outgoing calls
no test coverage detected