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
72a83f72
Commit
72a83f72
authored
Apr 04, 2005
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svg.c: do not subsample U and V planes in RGB->YUVA conversion.
parent
e77471fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
modules/misc/svg.c
modules/misc/svg.c
+3
-11
No files found.
modules/misc/svg.c
View file @
72a83f72
...
...
@@ -316,7 +316,6 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
#define INDEX_IN( x, y ) ( y * rowstride_in + x * channels_in )
#define INDEX_OUT( x, y ) ( y * i_pitch + x * p_pic->p[Y_PLANE].i_pixel_pitch )
#define UV_INDEX_OUT( x, y ) ( ( y / 2 ) * i_u_pitch + ( x / 2 ) * p_pic->p[U_PLANE].i_pixel_pitch )
for
(
y
=
0
;
y
<
i_height
;
y
++
)
{
...
...
@@ -324,7 +323,6 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
{
guchar
*
p_in
;
int
i_out
;
int
i_uv_out
;
p_in
=
&
pixels_in
[
INDEX_IN
(
x
,
y
)];
...
...
@@ -343,16 +341,10 @@ static int Render( filter_t *p_filter, subpicture_region_t *p_region,
p_pic
->
Y_PIXELS
[
i_out
]
=
.
299
*
R
(
p_in
)
+
.
587
*
G
(
p_in
)
+
.
114
*
B
(
p_in
);
p_pic
->
A_PIXELS
[
i_out
]
=
ALPHA
(
p_in
);
if
(
(
x
%
2
==
0
)
&&
(
y
%
2
==
0
)
)
{
i_uv_out
=
UV_INDEX_OUT
(
x
,
y
);
p_pic
->
U_PIXELS
[
i_out
]
=
-
.
1687
*
R
(
p_in
)
-
.
3313
*
G
(
p_in
)
+
.
5
*
B
(
p_in
)
+
128
;
p_pic
->
V_PIXELS
[
i_out
]
=
.
5
*
R
(
p_in
)
-
.
4187
*
G
(
p_in
)
-
.
0813
*
B
(
p_in
)
+
128
;
p_pic
->
U_PIXELS
[
i_uv_out
]
=
-
.
1687
*
R
(
p_in
)
-
.
3313
*
G
(
p_in
)
+
.
5
*
B
(
p_in
)
+
128
;
p_pic
->
V_PIXELS
[
i_uv_out
]
=
.
5
*
R
(
p_in
)
-
.
4187
*
G
(
p_in
)
-
.
0813
*
B
(
p_in
)
+
128
;
}
p_pic
->
A_PIXELS
[
i_out
]
=
ALPHA
(
p_in
);
}
}
}
...
...
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