Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
41ebb645
Commit
41ebb645
authored
Apr 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/output: fix alpha scale in the new functions
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a4b5e45e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
output.c
libswscale/output.c
+9
-9
No files found.
libswscale/output.c
View file @
41ebb645
...
@@ -1391,9 +1391,9 @@ yuv2rgb_full_2_c_template(SwsContext *c, const int16_t *buf[2],
...
@@ -1391,9 +1391,9 @@ yuv2rgb_full_2_c_template(SwsContext *c, const int16_t *buf[2],
int
A
;
int
A
;
if
(
hasAlpha
)
{
if
(
hasAlpha
)
{
A
=
(
abuf0
[
i
]
*
yalpha1
+
abuf1
[
i
]
*
yalpha
)
<<
3
;
A
=
(
abuf0
[
i
]
*
yalpha1
+
abuf1
[
i
]
*
yalpha
+
(
1
<<
18
))
>>
19
;
if
(
A
&
0x
C00000
00
)
if
(
A
&
0x
1
00
)
A
=
av_clip_uint
p2
(
A
,
30
);
A
=
av_clip_uint
8
(
A
);
}
}
yuv2rgb_write_full
(
c
,
dest
,
i
,
Y
,
A
,
U
,
V
,
y
,
target
,
hasAlpha
,
err
);
yuv2rgb_write_full
(
c
,
dest
,
i
,
Y
,
A
,
U
,
V
,
y
,
target
,
hasAlpha
,
err
);
...
@@ -1428,9 +1428,9 @@ yuv2rgb_full_1_c_template(SwsContext *c, const int16_t *buf0,
...
@@ -1428,9 +1428,9 @@ yuv2rgb_full_1_c_template(SwsContext *c, const int16_t *buf0,
int
A
;
int
A
;
if
(
hasAlpha
)
{
if
(
hasAlpha
)
{
A
=
abuf0
[
i
]
<<
15
;
A
=
(
abuf0
[
i
]
+
64
)
>>
7
;
if
(
A
&
0x
C00000
00
)
if
(
A
&
0x
1
00
)
A
=
av_clip_uint
p2
(
A
,
30
);
A
=
av_clip_uint
8
(
A
);
}
}
yuv2rgb_write_full
(
c
,
dest
,
i
,
Y
,
A
,
U
,
V
,
y
,
target
,
hasAlpha
,
err
);
yuv2rgb_write_full
(
c
,
dest
,
i
,
Y
,
A
,
U
,
V
,
y
,
target
,
hasAlpha
,
err
);
...
@@ -1445,9 +1445,9 @@ yuv2rgb_full_1_c_template(SwsContext *c, const int16_t *buf0,
...
@@ -1445,9 +1445,9 @@ yuv2rgb_full_1_c_template(SwsContext *c, const int16_t *buf0,
int
A
;
int
A
;
if
(
hasAlpha
)
{
if
(
hasAlpha
)
{
A
=
abuf0
[
i
]
<<
15
;
A
=
(
abuf0
[
i
]
+
64
)
>>
7
;
if
(
A
&
0x
C00000
00
)
if
(
A
&
0x
1
00
)
A
=
av_clip_uint
p2
(
A
,
30
);
A
=
av_clip_uint
8
(
A
);
}
}
yuv2rgb_write_full
(
c
,
dest
,
i
,
Y
,
A
,
U
,
V
,
y
,
target
,
hasAlpha
,
err
);
yuv2rgb_write_full
(
c
,
dest
,
i
,
Y
,
A
,
U
,
V
,
y
,
target
,
hasAlpha
,
err
);
...
...
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