Commit d817c978 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Freetype: Remove dead code

parent c3d40f74
This diff is collapsed.
...@@ -27,44 +27,11 @@ ...@@ -27,44 +27,11 @@
#include <vlc_text_style.h> /* text_style_t*/ #include <vlc_text_style.h> /* text_style_t*/
/* fonts and font_stack_t functions */
typedef struct font_stack_t font_stack_t;
struct font_stack_t
{
char *psz_name;
int i_size;
uint32_t i_color; /* ARGB */
uint32_t i_karaoke_bg_color; /* ARGB */
font_stack_t *p_next;
};
int PushFont( font_stack_t **p_font, const char *psz_name, int i_size,
uint32_t i_color, uint32_t i_karaoke_bg_color );
int PopFont( font_stack_t **p_font );
int PeekFont( font_stack_t **p_font, char **psz_name, int *i_size,
uint32_t *i_color, uint32_t *i_karaoke_bg_color );
int HandleFontAttributes( xml_reader_t *p_xml_reader,
font_stack_t **p_fonts );
int HandleTT(font_stack_t **p_fonts, const char *p_fontfamily );
/* Turn any multiple-whitespaces into single spaces */
void HandleWhiteSpace( char *psz_node );
/* text_style_t functions */ /* text_style_t functions */
text_style_t *CreateStyle( char *psz_fontname, int i_font_size, text_style_t *CreateStyle( char *psz_fontname, int i_font_size,
uint32_t i_font_color, uint32_t i_karaoke_bg_color, uint32_t i_font_color, uint32_t i_karaoke_bg_color,
int i_style_flags ); int i_style_flags );
text_style_t *GetStyleFromFontStack( filter_t *p_filter,
font_stack_t **p_fonts,
text_style_t *style,
int i_style_flags );
#ifdef __OS2__ #ifdef __OS2__
typedef uint16_t uni_char_t; typedef uint16_t uni_char_t;
# define FREETYPE_TO_UCS "UCS-2LE" # define FREETYPE_TO_UCS "UCS-2LE"
...@@ -77,23 +44,5 @@ typedef uint32_t uni_char_t; ...@@ -77,23 +44,5 @@ typedef uint32_t uni_char_t;
# endif # endif
#endif #endif
unsigned SetupText( filter_t *p_filter,
uni_char_t *psz_text_out,
text_style_t **pp_styles,
uint32_t *pi_k_dates,
const char *psz_text_in,
text_style_t *p_style,
uint32_t i_k_date );
bool FaceStyleEquals( const text_style_t *p_style1, bool FaceStyleEquals( const text_style_t *p_style1,
const text_style_t *p_style2 ); const text_style_t *p_style2 );
/* Parser */
int ProcessNodes( filter_t *p_filter,
uni_char_t *psz_text,
text_style_t **pp_styles,
uint32_t *pi_k_dates,
int *pi_len,
xml_reader_t *p_xml_reader,
text_style_t *p_font_style,
text_style_t *p_default_style );
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment