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
3c1adccd
Commit
3c1adccd
authored
Aug 27, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
50% faster decode_subband()
Originally committed as revision 3418 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
07140e39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
snow.c
libavcodec/snow.c
+9
-1
No files found.
libavcodec/snow.c
View file @
3c1adccd
...
...
@@ -2033,8 +2033,16 @@ static inline void decode_subband(SnowContext *s, SubBand *b, DWTELEM *src, DWTE
//FIXME try to store a more naive run
v
=
1
;
}
else
{
int
py
=
y
>>
1
;
run
--
;
v
=
0
;
if
(
y
&&
parent
&&
py
<
b
->
parent
->
height
){
while
(
run
&&
x
+
2
<
w
&&
!
src
[
x
+
2
+
(
y
-
1
)
*
stride
]
&&
!
parent
[((
x
+
1
)
>>
1
)
+
py
*
2
*
stride
]){
x
++
;
run
--
;
}
}
}
}
if
(
v
){
...
...
@@ -2046,7 +2054,7 @@ static inline void decode_subband(SnowContext *s, SubBand *b, DWTELEM *src, DWTE
}
}
}
if
(
level
+
1
==
s
->
spatial_decomposition_count
){
if
(
w
>
200
/*level+1 == s->spatial_decomposition_count*/
){
STOP_TIMER
(
"decode_subband"
)
}
...
...
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