Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
4ff46af0
Commit
4ff46af0
authored
13 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
h264-test: cleanup: drop timer invocations, commented out code and other cruft
parent
3856a2aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/h264.c
+0
-15
0 additions, 15 deletions
libavcodec/h264.c
with
0 additions
and
15 deletions
libavcodec/h264.c
+
0
−
15
View file @
4ff46af0
...
...
@@ -4101,7 +4101,6 @@ static inline void fill_mb_avail(H264Context *h){
#ifdef TEST
#undef printf
#undef random
#define COUNT 8000
#define SIZE (COUNT*40)
int
main
(
void
){
...
...
@@ -4113,9 +4112,7 @@ int main(void){
init_put_bits
(
&
pb
,
temp
,
SIZE
);
printf
(
"testing unsigned exp golomb
\n
"
);
for
(
i
=
0
;
i
<
COUNT
;
i
++
){
START_TIMER
set_ue_golomb
(
&
pb
,
i
);
STOP_TIMER
(
"set_ue_golomb"
);
}
flush_put_bits
(
&
pb
);
...
...
@@ -4123,22 +4120,16 @@ int main(void){
for
(
i
=
0
;
i
<
COUNT
;
i
++
){
int
j
,
s
=
show_bits
(
&
gb
,
24
);
START_TIMER
j
=
get_ue_golomb
(
&
gb
);
if
(
j
!=
i
){
printf
(
"mismatch! at %d (%d should be %d) bits:%6X
\n
"
,
i
,
j
,
i
,
s
);
// return -1;
}
STOP_TIMER
(
"get_ue_golomb"
);
}
init_put_bits
(
&
pb
,
temp
,
SIZE
);
printf
(
"testing signed exp golomb
\n
"
);
for
(
i
=
0
;
i
<
COUNT
;
i
++
){
START_TIMER
set_se_golomb
(
&
pb
,
i
-
COUNT
/
2
);
STOP_TIMER
(
"set_se_golomb"
);
}
flush_put_bits
(
&
pb
);
...
...
@@ -4146,18 +4137,12 @@ int main(void){
for
(
i
=
0
;
i
<
COUNT
;
i
++
){
int
j
,
s
=
show_bits
(
&
gb
,
24
);
START_TIMER
j
=
get_se_golomb
(
&
gb
);
if
(
j
!=
i
-
COUNT
/
2
){
printf
(
"mismatch! at %d (%d should be %d) bits:%6X
\n
"
,
i
,
j
,
i
,
s
);
// return -1;
}
STOP_TIMER
(
"get_se_golomb"
);
}
printf
(
"Testing RBSP
\n
"
);
return
0
;
}
#endif
/* TEST */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment