Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d817c978
Commit
d817c978
authored
Jul 28, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: Remove dead code
parent
c3d40f74
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
655 deletions
+0
-655
modules/text_renderer/text_renderer.c
modules/text_renderer/text_renderer.c
+0
-604
modules/text_renderer/text_renderer.h
modules/text_renderer/text_renderer.h
+0
-51
No files found.
modules/text_renderer/text_renderer.c
View file @
d817c978
This diff is collapsed.
Click to expand it.
modules/text_renderer/text_renderer.h
View file @
d817c978
...
@@ -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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment