Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
873d06c7
Commit
873d06c7
authored
Nov 09, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/output: Fix alpha shift in yuv2gbrp_full_X_c()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
a340cfef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
output.c
libswscale/output.c
+4
-6
No files found.
libswscale/output.c
View file @
873d06c7
...
...
@@ -1979,10 +1979,8 @@ yuv2gbrp_full_X_c(SwsContext *c, const int16_t *lumFilter,
for
(
j
=
0
;
j
<
lumFilterSize
;
j
++
)
A
+=
alpSrc
[
j
][
i
]
*
lumFilter
[
j
];
A
>>=
19
;
if
(
A
&
0x100
)
A
=
av_clip_uint8
(
A
);
if
(
A
&
0xF8000000
)
A
=
av_clip_uintp2
(
A
,
27
);
}
Y
-=
c
->
yuv2rgb_y_offset
;
...
...
@@ -2003,13 +2001,13 @@ yuv2gbrp_full_X_c(SwsContext *c, const int16_t *lumFilter,
dest16
[
1
][
i
]
=
B
>>
SH
;
dest16
[
2
][
i
]
=
R
>>
SH
;
if
(
hasAlpha
)
dest16
[
3
][
i
]
=
A
;
dest16
[
3
][
i
]
=
A
>>
(
SH
-
3
)
;
}
else
{
dest
[
0
][
i
]
=
G
>>
22
;
dest
[
1
][
i
]
=
B
>>
22
;
dest
[
2
][
i
]
=
R
>>
22
;
if
(
hasAlpha
)
dest
[
3
][
i
]
=
A
;
dest
[
3
][
i
]
=
A
>>
19
;
}
}
if
(
SH
!=
22
&&
(
!
isBE
(
c
->
dstFormat
))
!=
(
!
HAVE_BIGENDIAN
))
{
...
...
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