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
7e5ece9e
Commit
7e5ece9e
authored
Jun 16, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (freetype).
parent
a147594c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
modules/misc/text_renderer/freetype.c
modules/misc/text_renderer/freetype.c
+16
-16
No files found.
modules/misc/text_renderer/freetype.c
View file @
7e5ece9e
...
...
@@ -205,9 +205,9 @@ struct line_desc_t
FT_Vector
*
p_glyph_pos
;
/** list of ARGB information for styled text */
uint32_t
*
pi_color
;
/** underline
information -- only supplied if text should be underlined
*/
int
*
pi_
under
line_offset
;
uint16_t
*
pi_
under
line_thickness
;
/** underline
/strikethrough information
*/
int
*
pi_line_offset
;
uint16_t
*
pi_line_thickness
;
int
i_width
;
...
...
@@ -873,15 +873,15 @@ static int RenderYUVA( filter_t *p_filter,
i_a
,
i_y
,
i_u
,
i_v
,
p_glyph
);
const
int
i_line_thickness
=
p_line
->
pi_
under
line_thickness
[
i
];
const
int
i_line_offset
=
p_line
->
pi_
under
line_offset
[
i
];
const
int
i_line_thickness
=
p_line
->
pi_line_thickness
[
i
];
const
int
i_line_offset
=
p_line
->
pi_line_offset
[
i
];
if
(
i_line_thickness
>
0
)
BlendYUVALine
(
p_picture
,
i_picture_x
,
i_picture_y
,
i_a
,
i_y
,
i_u
,
i_v
,
p_glyph
,
p_line
->
pp_glyphs
[
i
+
1
],
&
p_line
->
p_glyph_pos
[
i
],
&
p_line
->
p_glyph_pos
[
i
+
1
],
i_line_thickness
,
i_line_offset
,
p_line
->
pp_glyphs
[
i
+
1
]
&&
p_line
->
pi_
under
line_thickness
[
i
+
1
]
>
0
);
p_line
->
pp_glyphs
[
i
+
1
]
&&
p_line
->
pi_line_thickness
[
i
+
1
]
>
0
);
}
}
...
...
@@ -1474,8 +1474,8 @@ static void FreeLine( line_desc_t *p_line )
free
(
p_line
->
pp_glyphs
);
free
(
p_line
->
p_glyph_pos
);
free
(
p_line
->
pi_color
);
free
(
p_line
->
pi_
under
line_offset
);
free
(
p_line
->
pi_
under
line_thickness
);
free
(
p_line
->
pi_line_offset
);
free
(
p_line
->
pi_line_thickness
);
free
(
p_line
);
}
...
...
@@ -1500,15 +1500,15 @@ static line_desc_t *NewLine( int i_count )
p_line
->
p_next
=
NULL
;
p_line
->
pp_glyphs
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pp_glyphs
)
);
p_line
->
p_glyph_pos
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
p_glyph_pos
)
);
p_line
->
pi_color
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pi_color
)
);
p_line
->
pi_
underline_offset
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pi_under
line_offset
)
);
p_line
->
pi_
underline_thickness
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pi_under
line_thickness
)
);
p_line
->
pp_glyphs
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pp_glyphs
)
);
p_line
->
p_glyph_pos
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
p_glyph_pos
)
);
p_line
->
pi_color
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pi_color
)
);
p_line
->
pi_
line_offset
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pi_
line_offset
)
);
p_line
->
pi_
line_thickness
=
calloc
(
i_count
+
1
,
sizeof
(
*
p_line
->
pi_
line_thickness
)
);
if
(
!
p_line
->
pp_glyphs
||
!
p_line
->
p_glyph_pos
||
!
p_line
->
pi_color
||
!
p_line
->
pi_
underline_offset
||
!
p_line
->
pi_under
line_thickness
)
!
p_line
->
pi_
line_offset
||
!
p_line
->
pi_
line_thickness
)
{
FreeLine
(
p_line
);
return
NULL
;
...
...
@@ -1944,8 +1944,8 @@ static int ProcessLines( filter_t *p_filter,
p_line
->
pp_glyphs
[
i_line_index
]
=
(
FT_BitmapGlyph
)
glyph
;
p_line
->
p_glyph_pos
[
i_line_index
]
=
glyph_pos
;
p_line
->
pi_color
[
i_line_index
]
=
i_color
;
p_line
->
pi_
under
line_offset
[
i_line_index
]
=
i_ul_offset
;
p_line
->
pi_
under
line_thickness
[
i_line_index
]
=
i_ul_thickness
;
p_line
->
pi_line_offset
[
i_line_index
]
=
i_ul_offset
;
p_line
->
pi_line_thickness
[
i_line_index
]
=
i_ul_thickness
;
pen
.
x
+=
FT_CEIL
(
kerning
.
x
)
+
FT_CEIL
(
p_current_face
->
glyph
->
advance
.
x
);
line_bbox
=
line_bbox_new
;
...
...
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