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
bdd67546
Commit
bdd67546
authored
Aug 20, 2018
by
Martin Vignali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/swscale : small cosmetic
parent
3af1c4ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
swscale.c
libswscale/swscale.c
+2
-2
No files found.
libswscale/swscale.c
View file @
bdd67546
...
...
@@ -75,7 +75,7 @@ static void hScale16To19_c(SwsContext *c, int16_t *_dst, int dstW,
int
sh
=
bits
-
4
;
if
((
isAnyRGB
(
c
->
srcFormat
)
||
c
->
srcFormat
==
AV_PIX_FMT_PAL8
)
&&
desc
->
comp
[
0
].
depth
<
16
)
{
sh
=
9
;
sh
=
9
;
}
else
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_FLOAT
)
{
/* float input are process like uint 16bpc */
sh
=
16
-
1
-
4
;
}
...
...
@@ -103,7 +103,7 @@ static void hScale16To15_c(SwsContext *c, int16_t *dst, int dstW,
int
sh
=
desc
->
comp
[
0
].
depth
-
1
;
if
(
sh
<
15
)
{
sh
=
isAnyRGB
(
c
->
srcFormat
)
||
c
->
srcFormat
==
AV_PIX_FMT_PAL8
?
13
:
(
desc
->
comp
[
0
].
depth
-
1
);
sh
=
isAnyRGB
(
c
->
srcFormat
)
||
c
->
srcFormat
==
AV_PIX_FMT_PAL8
?
13
:
(
desc
->
comp
[
0
].
depth
-
1
);
}
else
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_FLOAT
)
{
/* float input are process like uint 16bpc */
sh
=
16
-
1
;
}
...
...
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