Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0950f3b4
Commit
0950f3b4
authored
May 16, 2014
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_chroma/swscale.c: Fixup commit
eae2f440
parent
0191b268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/video_chroma/swscale.c
modules/video_chroma/swscale.c
+6
-6
No files found.
modules/video_chroma/swscale.c
View file @
0950f3b4
...
...
@@ -650,17 +650,17 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
p_sys
->
ctxA
)
{
/* We extract the A plane to rescale it, and then we reinject it. */
if
(
p_fmti
->
i_chroma
==
VLC_CODEC_RGBA
)
if
(
p_fmti
->
i_chroma
==
VLC_CODEC_RGBA
||
p_fmti
->
i_chroma
==
VLC_CODEC_BGRA
)
ExtractA
(
p_sys
->
p_src_a
,
p_src
,
p_fmti
->
i_visible_width
*
p_sys
->
i_extend_factor
,
p_fmti
->
i_visible_height
,
OFFSET_A
);
else
if
(
p_fmti
->
i_chroma
==
VLC_CODEC_ARGB
||
p_fmti
->
i_chroma
==
VLC_CODEC_BGRA
)
else
if
(
p_fmti
->
i_chroma
==
VLC_CODEC_ARGB
)
ExtractA
(
p_sys
->
p_src_a
,
p_src
,
p_fmti
->
i_visible_width
*
p_sys
->
i_extend_factor
,
p_fmti
->
i_visible_height
,
0
);
else
plane_CopyPixels
(
p_sys
->
p_src_a
->
p
,
p_src
->
p
+
A_PLANE
);
Convert
(
p_filter
,
p_sys
->
ctxA
,
p_sys
->
p_dst_a
,
p_sys
->
p_src_a
,
p_fmti
->
i_visible_height
,
0
,
1
,
false
,
false
);
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_RGBA
)
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_RGBA
||
p_fmto
->
i_chroma
==
VLC_CODEC_BGRA
)
InjectA
(
p_dst
,
p_sys
->
p_dst_a
,
p_fmto
->
i_visible_width
*
p_sys
->
i_extend_factor
,
p_fmto
->
i_visible_height
,
OFFSET_A
);
else
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_ARGB
||
p_fmto
->
i_chroma
==
VLC_CODEC_BGRA
)
else
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_ARGB
)
InjectA
(
p_dst
,
p_sys
->
p_dst_a
,
p_fmto
->
i_visible_width
*
p_sys
->
i_extend_factor
,
p_fmto
->
i_visible_height
,
0
);
else
plane_CopyPixels
(
p_dst
->
p
+
A_PLANE
,
p_sys
->
p_dst_a
->
p
);
...
...
@@ -668,9 +668,9 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
else
if
(
p_sys
->
b_add_a
)
{
/* We inject a complete opaque alpha plane */
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_RGBA
)
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_RGBA
||
p_fmto
->
i_chroma
==
VLC_CODEC_BGRA
)
FillA
(
&
p_dst
->
p
[
0
],
OFFSET_A
);
else
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_ARGB
||
p_fmto
->
i_chroma
==
VLC_CODEC_BGRA
)
else
if
(
p_fmto
->
i_chroma
==
VLC_CODEC_ARGB
)
FillA
(
&
p_dst
->
p
[
0
],
0
);
else
FillA
(
&
p_dst
->
p
[
A_PLANE
],
0
);
...
...
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