Include dependency graph for quartztext.c:

Data Structures | |
| struct | font_stack_t |
| struct | offscreen_bitmap_t |
| struct | filter_sys_t |
| filter_sys_t: chroma method descriptor More... | |
Defines | |
| #define | DEFAULT_FONT "Verdana" |
| #define | DEFAULT_FONT_COLOR 0xffffff |
| #define | DEFAULT_REL_FONT_SIZE 16 |
| #define | VERTICAL_MARGIN 3 |
| #define | HORIZONTAL_MARGIN 10 |
| #define | FONT_TEXT N_("Font") |
| #define | FONT_LONGTEXT N_("Name for the font you want to use") |
| #define | FONTSIZER_TEXT N_("Relative font size") |
| #define | FONTSIZER_LONGTEXT |
| #define | COLOR_TEXT N_("Text default color") |
| #define | COLOR_LONGTEXT |
Typedefs | |
| typedef font_stack_t | font_stack_t |
| typedef offscreen_bitmap_t | offscreen_bitmap_t |
Functions | |
| static int | Create (vlc_object_t *) |
| static void | Destroy (vlc_object_t *) |
| static int | LoadFontsFromAttachments (filter_t *p_filter) |
| static int | RenderText (filter_t *, subpicture_region_t *, subpicture_region_t *) |
| static int | RenderHtml (filter_t *, subpicture_region_t *, subpicture_region_t *) |
| static int | GetFontSize (filter_t *p_filter) |
| static int | RenderYUVA (filter_t *p_filter, subpicture_region_t *p_region, UniChar *psz_utfString, uint32_t i_text_len, uint32_t i_runs, uint32_t *pi_run_lengths, ATSUStyle *pp_styles) |
| static ATSUStyle | CreateStyle (char *psz_fontname, int i_font_size, uint32_t i_font_color, bool b_bold, bool b_italic, bool b_uline) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static char * | EliminateCRLF (char *psz_string) |
| static void | ConvertToUTF16 (const char *psz_utf8_str, uint32_t *pi_strlen, UniChar **ppsz_utf16_str) |
| static int | PushFont (font_stack_t **p_font, const char *psz_name, int i_size, uint32_t i_color) |
| static int | PopFont (font_stack_t **p_font) |
| static int | PeekFont (font_stack_t **p_font, char **psz_name, int *i_size, uint32_t *i_color) |
| static ATSUStyle | GetStyleFromFontStack (filter_sys_t *p_sys, font_stack_t **p_fonts, bool b_bold, bool b_italic, bool b_uline) |
| static int | HandleFontAttributes (xml_reader_t *p_xml_reader, font_stack_t **p_fonts, int i_scale) |
| static int | ProcessNodes (filter_t *p_filter, xml_reader_t *p_xml_reader, text_style_t *p_font_style, UniChar *psz_text, int *pi_len, uint32_t *pi_runs, uint32_t **ppi_run_lengths, ATSUStyle **ppp_styles) |
| static CGContextRef | CreateOffScreenContext (int i_width, int i_height, offscreen_bitmap_t **pp_memory, CGColorSpaceRef *pp_colorSpace) |
| static offscreen_bitmap_t * | Compose (int i_text_align, UniChar *psz_utf16_str, uint32_t i_text_len, uint32_t i_runs, uint32_t *pi_run_lengths, ATSUStyle *pp_styles, int i_width, int i_height, int *pi_textblock_height) |
Variables | |
| static const int | pi_color_values [] |
| static const char *const | ppsz_color_descriptions [] |
| static const int | pi_sizes [] = { 20, 18, 16, 12, 6 } |
| static const char *const | ppsz_sizes_text [] |
| #define COLOR_LONGTEXT |
Value:
N_("The color of the text that will be rendered on "\ "the video. This must be an hexadecimal (like HTML colors). The first two "\ "chars are for red, then green, then blue. #000000 = black, #FF0000 = red,"\ " #00FF00 = green, #FFFF00 = yellow (red + green), #FFFFFF = white" )
| #define COLOR_TEXT N_("Text default color") |
| #define DEFAULT_FONT "Verdana" |
| #define DEFAULT_FONT_COLOR 0xffffff |
| #define DEFAULT_REL_FONT_SIZE 16 |
| #define FONT_LONGTEXT N_("Name for the font you want to use") |
| #define FONT_TEXT N_("Font") |
| #define FONTSIZER_LONGTEXT |
Value:
N_("This is the relative default size of the " \ "fonts that will be rendered on the video. If absolute font size is set, "\ "relative size will be overriden." )
| #define FONTSIZER_TEXT N_("Relative font size") |
| #define HORIZONTAL_MARGIN 10 |
| #define VERTICAL_MARGIN 3 |
| typedef struct font_stack_t font_stack_t |
| typedef struct offscreen_bitmap_t offscreen_bitmap_t |
| static offscreen_bitmap_t* Compose | ( | int | i_text_align, | |
| UniChar * | psz_utf16_str, | |||
| uint32_t | i_text_len, | |||
| uint32_t | i_runs, | |||
| uint32_t * | pi_run_lengths, | |||
| ATSUStyle * | pp_styles, | |||
| int | i_width, | |||
| int | i_height, | |||
| int * | pi_textblock_height | |||
| ) | [static] |
| static void ConvertToUTF16 | ( | const char * | psz_utf8_str, | |
| uint32_t * | pi_strlen, | |||
| UniChar ** | ppsz_utf16_str | |||
| ) | [static] |
| static int Create | ( | vlc_object_t * | ) | [static] |
| static CGContextRef CreateOffScreenContext | ( | int | i_width, | |
| int | i_height, | |||
| offscreen_bitmap_t ** | pp_memory, | |||
| CGColorSpaceRef * | pp_colorSpace | |||
| ) | [static] |
| static ATSUStyle CreateStyle | ( | char * | psz_fontname, | |
| int | i_font_size, | |||
| uint32_t | i_font_color, | |||
| bool | b_bold, | |||
| bool | b_italic, | |||
| bool | b_uline | |||
| ) | [static] |
| static void Destroy | ( | vlc_object_t * | ) | [static] |
| static char* EliminateCRLF | ( | char * | psz_string | ) | [static] |
| static int GetFontSize | ( | filter_t * | p_filter | ) | [static] |
| static ATSUStyle GetStyleFromFontStack | ( | filter_sys_t * | p_sys, | |
| font_stack_t ** | p_fonts, | |||
| bool | b_bold, | |||
| bool | b_italic, | |||
| bool | b_uline | |||
| ) | [static] |
| static int HandleFontAttributes | ( | xml_reader_t * | p_xml_reader, | |
| font_stack_t ** | p_fonts, | |||
| int | i_scale | |||
| ) | [static] |
| static int LoadFontsFromAttachments | ( | filter_t * | p_filter | ) | [static] |
| static int PeekFont | ( | font_stack_t ** | p_font, | |
| char ** | psz_name, | |||
| int * | i_size, | |||
| uint32_t * | i_color | |||
| ) | [static] |
| static int PopFont | ( | font_stack_t ** | p_font | ) | [static] |
| static int ProcessNodes | ( | filter_t * | p_filter, | |
| xml_reader_t * | p_xml_reader, | |||
| text_style_t * | p_font_style, | |||
| UniChar * | psz_text, | |||
| int * | pi_len, | |||
| uint32_t * | pi_runs, | |||
| uint32_t ** | ppi_run_lengths, | |||
| ATSUStyle ** | ppp_styles | |||
| ) | [static] |
| static int PushFont | ( | font_stack_t ** | p_font, | |
| const char * | psz_name, | |||
| int | i_size, | |||
| uint32_t | i_color | |||
| ) | [static] |
| static int RenderHtml | ( | filter_t * | , | |
| subpicture_region_t * | , | |||
| subpicture_region_t * | ||||
| ) | [static] |
| static int RenderText | ( | filter_t * | , | |
| subpicture_region_t * | , | |||
| subpicture_region_t * | ||||
| ) | [static] |
| static int RenderYUVA | ( | filter_t * | p_filter, | |
| subpicture_region_t * | p_region, | |||
| UniChar * | psz_utfString, | |||
| uint32_t | i_text_len, | |||
| uint32_t | i_runs, | |||
| uint32_t * | pi_run_lengths, | |||
| ATSUStyle * | pp_styles | |||
| ) | [static] |
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const int pi_color_values[] [static] |
Initial value:
{
0x00000000, 0x00808080, 0x00C0C0C0, 0x00FFFFFF, 0x00800000,
0x00FF0000, 0x00FF00FF, 0x00FFFF00, 0x00808000, 0x00008000, 0x00008080,
0x0000FF00, 0x00800080, 0x00000080, 0x000000FF, 0x0000FFFF }
const int pi_sizes[] = { 20, 18, 16, 12, 6 } [static] |
const char* const ppsz_color_descriptions[] [static] |
const char* const ppsz_sizes_text[] [static] |
1.5.1