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
da6b5aac
Commit
da6b5aac
authored
May 12, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: kill compile warnings
parent
3bd4f0e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+6
-5
No files found.
modules/text_renderer/freetype.c
View file @
da6b5aac
...
...
@@ -371,7 +371,8 @@ static int RenderYUVP( filter_t *p_filter, subpicture_region_t *p_region,
uint8_t
*
p_dst
;
video_format_t
fmt
;
int
i
,
x
,
y
,
i_pitch
;
int
i
,
i_pitch
;
unsigned
int
x
,
y
;
uint8_t
i_y
,
i_u
,
i_v
;
/* YUV values, derived from incoming RGB */
/* Create a new subpicture region */
...
...
@@ -459,13 +460,13 @@ static int RenderYUVP( filter_t *p_filter, subpicture_region_t *p_region,
uint8_t
*
p_top
=
p_dst
;
/* Use 1st line as a cache */
uint8_t
left
,
current
;
for
(
y
=
1
;
y
<
(
int
)
fmt
.
i_height
-
1
;
y
++
)
for
(
y
=
1
;
y
<
fmt
.
i_height
-
1
;
y
++
)
{
if
(
y
>
1
)
memcpy
(
p_top
,
p_dst
,
fmt
.
i_width
);
p_dst
+=
p_region
->
p_picture
->
Y_PITCH
;
left
=
0
;
for
(
x
=
1
;
x
<
(
int
)
fmt
.
i_width
-
1
;
x
++
)
for
(
x
=
1
;
x
<
fmt
.
i_width
-
1
;
x
++
)
{
current
=
p_dst
[
x
];
p_dst
[
x
]
=
(
8
*
(
int
)
p_dst
[
x
]
+
left
+
p_dst
[
x
+
1
]
+
p_top
[
x
-
1
]
+
p_top
[
x
]
+
p_top
[
x
+
1
]
+
...
...
@@ -629,9 +630,9 @@ static inline void BlendAXYZGlyph( picture_t *p_picture,
void
(
*
BlendPixel
)(
picture_t
*
,
int
,
int
,
int
,
int
,
int
,
int
,
int
)
)
{
for
(
int
dy
=
0
;
dy
<
p_glyph
->
bitmap
.
rows
;
dy
++
)
for
(
unsigned
int
dy
=
0
;
dy
<
p_glyph
->
bitmap
.
rows
;
dy
++
)
{
for
(
int
dx
=
0
;
dx
<
p_glyph
->
bitmap
.
width
;
dx
++
)
for
(
unsigned
int
dx
=
0
;
dx
<
p_glyph
->
bitmap
.
width
;
dx
++
)
BlendPixel
(
p_picture
,
i_picture_x
+
dx
,
i_picture_y
+
dy
,
i_a
,
i_x
,
i_y
,
i_z
,
p_glyph
->
bitmap
.
buffer
[
dy
*
p_glyph
->
bitmap
.
width
+
dx
]
);
...
...
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