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
c54ac7a8
Commit
c54ac7a8
authored
Feb 04, 2011
by
Jason Garrett-Glaser
Committed by
Michael Niedermayer
Feb 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VP8: faster filter_level clip
(cherry picked from commit
a1b227bb
)
parent
8cde1b79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vp8.c
libavcodec/vp8.c
+4
-1
No files found.
libavcodec/vp8.c
View file @
c54ac7a8
...
...
@@ -1480,7 +1480,10 @@ static av_always_inline void filter_level_for_mb(VP8Context *s, VP8Macroblock *m
filter_level
+=
s
->
lf_delta
.
ref
[
mb
->
ref_frame
];
filter_level
+=
s
->
lf_delta
.
mode
[
mb
->
mode
];
}
filter_level
=
av_clip
(
filter_level
,
0
,
63
);
/* Like av_clip for inputs 0 and max, where max is equal to (2^n-1) */
#define POW2CLIP(x,max) (((x) & ~max) ? (-(x))>>31 & max : (x));
filter_level
=
POW2CLIP
(
filter_level
,
63
);
interior_limit
=
filter_level
;
if
(
s
->
filter
.
sharpness
)
{
...
...
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