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
7de21960
Commit
7de21960
authored
Oct 27, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sws: fix extreem downscaling
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
95760b33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
utils.c
libswscale/utils.c
+2
-2
No files found.
libswscale/utils.c
View file @
7de21960
...
@@ -230,7 +230,7 @@ static int initFilter(int16_t **outFilter, int32_t **filterPos,
...
@@ -230,7 +230,7 @@ static int initFilter(int16_t **outFilter, int32_t **filterPos,
int
minFilterSize
;
int
minFilterSize
;
int64_t
*
filter
=
NULL
;
int64_t
*
filter
=
NULL
;
int64_t
*
filter2
=
NULL
;
int64_t
*
filter2
=
NULL
;
const
int64_t
fone
=
1LL
<<
54
;
const
int64_t
fone
=
1LL
<<
(
54
-
FFMIN
(
av_log2
(
srcW
/
dstW
),
8
))
;
int
ret
=
-
1
;
int
ret
=
-
1
;
emms_c
();
// FIXME should not be required but IS (even for non-MMX versions)
emms_c
();
// FIXME should not be required but IS (even for non-MMX versions)
...
@@ -356,7 +356,7 @@ static int initFilter(int16_t **outFilter, int32_t **filterPos,
...
@@ -356,7 +356,7 @@ static int initFilter(int16_t **outFilter, int32_t **filterPos,
(
-
12
*
B
-
48
*
C
)
*
d
+
(
-
12
*
B
-
48
*
C
)
*
d
+
(
8
*
B
+
24
*
C
)
*
(
1
<<
30
);
(
8
*
B
+
24
*
C
)
*
(
1
<<
30
);
}
}
coeff
*=
fone
>>
(
30
+
24
)
;
coeff
/=
(
1LL
<<
54
)
/
fone
;
}
}
#if 0
#if 0
else if (flags & SWS_X) {
else if (flags & SWS_X) {
...
...
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