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
220a6f40
Commit
220a6f40
authored
May 16, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some benchmarking code
Originally committed as revision 4250 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d5e18835
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
7 deletions
+32
-7
vp3.c
libavcodec/vp3.c
+32
-7
No files found.
libavcodec/vp3.c
View file @
220a6f40
...
...
@@ -2318,7 +2318,7 @@ static void apply_loop_filter(Vp3DecodeContext *s)
for
(
y
=
0
;
y
<
height
;
y
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
START_TIMER
/* do not perform left edge filter for left columns frags */
if
((
x
>
0
)
&&
(
s
->
all_fragments
[
fragment
].
coding_method
!=
MODE_COPY
))
{
...
...
@@ -2358,6 +2358,7 @@ static void apply_loop_filter(Vp3DecodeContext *s)
}
fragment
++
;
STOP_TIMER
(
"loop filter"
)
}
}
}
...
...
@@ -2716,7 +2717,9 @@ static int vp3_decode_frame(AVCodecContext *avctx,
s
->
current_frame
.
qscale_table
=
s
->
qscale_table
;
//FIXME allocate individual tables per AVFrame
s
->
current_frame
.
qstride
=
0
;
{
START_TIMER
init_frame
(
s
,
&
gb
);
STOP_TIMER
(
"init_frame"
)}
#if KEYFRAMES_ONLY
if
(
!
s
->
keyframe
)
{
...
...
@@ -2731,17 +2734,37 @@ if (!s->keyframe) {
}
else
{
#endif
if
(
unpack_superblocks
(
s
,
&
gb
)
||
unpack_modes
(
s
,
&
gb
)
||
unpack_vectors
(
s
,
&
gb
)
||
unpack_dct_coeffs
(
s
,
&
gb
))
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
" vp3: could not decode frame
\n
"
);
{
START_TIMER
if
(
unpack_superblocks
(
s
,
&
gb
)){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"error in unpack_superblocks
\n
"
);
return
-
1
;
}
STOP_TIMER
(
"unpack_superblocks"
)}
{
START_TIMER
if
(
unpack_modes
(
s
,
&
gb
)){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"error in unpack_modes
\n
"
);
return
-
1
;
}
STOP_TIMER
(
"unpack_modes"
)}
{
START_TIMER
if
(
unpack_vectors
(
s
,
&
gb
)){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"error in unpack_vectors
\n
"
);
return
-
1
;
}
STOP_TIMER
(
"unpack_vectors"
)}
{
START_TIMER
if
(
unpack_dct_coeffs
(
s
,
&
gb
)){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"error in unpack_dct_coeffs
\n
"
);
return
-
1
;
}
STOP_TIMER
(
"unpack_dct_coeffs"
)}
{
START_TIMER
reverse_dc_prediction
(
s
,
0
,
s
->
fragment_width
,
s
->
fragment_height
);
STOP_TIMER
(
"reverse_dc_prediction"
)}
{
START_TIMER
render_fragments
(
s
,
0
,
s
->
width
,
s
->
height
,
0
);
STOP_TIMER
(
"render_fragments"
)}
if
((
avctx
->
flags
&
CODEC_FLAG_GRAY
)
==
0
)
{
reverse_dc_prediction
(
s
,
s
->
u_fragment_start
,
...
...
@@ -2755,7 +2778,9 @@ if (!s->keyframe) {
memset
(
s
->
current_frame
.
data
[
2
],
0x80
,
s
->
width
*
s
->
height
/
4
);
}
{
START_TIMER
apply_loop_filter
(
s
);
STOP_TIMER
(
"apply_loop_filter"
)}
#if KEYFRAMES_ONLY
}
#endif
...
...
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