Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
35809029
Commit
35809029
authored
Jul 12, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused variable pi_gamma
parent
6f3e4d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
modules/misc/freetype.c
modules/misc/freetype.c
+3
-7
No files found.
modules/misc/freetype.c
View file @
35809029
...
...
@@ -532,10 +532,6 @@ static void DrawBlack( line_desc_t *p_line, int i_width, subpicture_region_t *p_
static
int
RenderYUVA
(
filter_t
*
p_filter
,
subpicture_region_t
*
p_region
,
line_desc_t
*
p_line
,
int
i_width
,
int
i_height
)
{
static
uint8_t
pi_gamma
[
16
]
=
{
0x00
,
0x52
,
0x84
,
0x96
,
0xb8
,
0xca
,
0xdc
,
0xee
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
};
uint8_t
*
p_dst_y
,
*
p_dst_u
,
*
p_dst_v
,
*
p_dst_a
;
video_format_t
fmt
;
int
i
,
x
,
y
,
i_pitch
,
i_alpha
;
...
...
@@ -602,7 +598,7 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
DrawBlack
(
p_line
,
i_width
,
p_region
,
1
,
0
);
DrawBlack
(
p_line
,
i_width
,
p_region
,
0
,
1
);
}
if
(
p_filter
->
p_sys
->
i_effect
==
EFFECT_OUTLINE_FAT
)
{
DrawBlack
(
p_line
,
i_width
,
p_region
,
-
1
,
-
1
);
...
...
@@ -670,7 +666,7 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
p_dst_u
[
i_offset
+
x
]
=
i_u
;
p_dst_v
[
i_offset
+
x
]
=
i_v
;
if
(
p_filter
->
p_sys
->
i_effect
==
EFFECT_BACKGROUND
)
p_dst_a
[
i_offset
+
x
]
=
0xff
;
}
...
...
@@ -679,7 +675,7 @@ static int RenderYUVA( filter_t *p_filter, subpicture_region_t *p_region,
}
}
}
/* Apply the alpha setting */
for
(
i
=
0
;
i
<
(
int
)
fmt
.
i_height
*
i_pitch
;
i
++
)
p_dst_a
[
i
]
=
p_dst_a
[
i
]
*
(
255
-
i_alpha
)
/
255
;
...
...
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