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
7f529600
Commit
7f529600
authored
Jun 18, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/swscale: replace potentially slow % by &
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c932f128
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
swscale.c
libswscale/swscale.c
+6
-6
No files found.
libswscale/swscale.c
View file @
7f529600
...
...
@@ -414,8 +414,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
DEBUG_BUFFERS
(
"vLumFilterSize: %d vLumBufSize: %d vChrFilterSize: %d vChrBufSize: %d
\n
"
,
vLumFilterSize
,
vLumBufSize
,
vChrFilterSize
,
vChrBufSize
);
if
(
dstStride
[
0
]
%
16
!=
0
||
dstStride
[
1
]
%
16
!=
0
||
dstStride
[
2
]
%
16
!=
0
||
dstStride
[
3
]
%
16
!=
0
)
{
if
(
dstStride
[
0
]
&
15
||
dstStride
[
1
]
&
15
||
dstStride
[
2
]
&
15
||
dstStride
[
3
]
&
15
)
{
static
int
warnedAlready
=
0
;
// FIXME maybe move this into the context
if
(
flags
&
SWS_PRINT_INFO
&&
!
warnedAlready
)
{
av_log
(
c
,
AV_LOG_WARNING
,
...
...
@@ -425,10 +425,10 @@ static int swscale(SwsContext *c, const uint8_t *src[],
}
}
if
(
(
uintptr_t
)
dst
[
0
]
%
16
||
(
uintptr_t
)
dst
[
1
]
%
16
||
(
uintptr_t
)
dst
[
2
]
%
16
||
(
uintptr_t
)
src
[
0
]
%
16
||
(
uintptr_t
)
src
[
1
]
%
16
||
(
uintptr_t
)
src
[
2
]
%
16
||
dstStride
[
0
]
%
16
||
dstStride
[
1
]
%
16
||
dstStride
[
2
]
%
16
||
dstStride
[
3
]
%
16
||
srcStride
[
0
]
%
16
||
srcStride
[
1
]
%
16
||
srcStride
[
2
]
%
16
||
srcStride
[
3
]
%
16
if
(
(
uintptr_t
)
dst
[
0
]
&
15
||
(
uintptr_t
)
dst
[
1
]
&
15
||
(
uintptr_t
)
dst
[
2
]
&
15
||
(
uintptr_t
)
src
[
0
]
&
15
||
(
uintptr_t
)
src
[
1
]
&
15
||
(
uintptr_t
)
src
[
2
]
&
15
||
dstStride
[
0
]
&
15
||
dstStride
[
1
]
&
15
||
dstStride
[
2
]
&
15
||
dstStride
[
3
]
&
15
||
srcStride
[
0
]
&
15
||
srcStride
[
1
]
&
15
||
srcStride
[
2
]
&
15
||
srcStride
[
3
]
&
15
)
{
static
int
warnedAlready
=
0
;
int
cpu_flags
=
av_get_cpu_flags
();
...
...
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