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
09cbf60f
Commit
09cbf60f
authored
Apr 29, 2011
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace more disabled printf() calls by av_dlog().
parent
03acaa4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
motion_est.c
libavcodec/motion_est.c
+2
-4
parser.c
libavcodec/parser.c
+3
-4
No files found.
libavcodec/motion_est.c
View file @
09cbf60f
...
...
@@ -1119,10 +1119,8 @@ void ff_estimate_p_frame_motion(MpegEncContext * s,
// pic->mb_cmp_score[s->mb_stride * mb_y + mb_x] = dmin;
c
->
mc_mb_var_sum_temp
+=
(
vard
+
128
)
>>
8
;
#if 0
printf("varc=%4d avg_var=%4d (sum=%4d) vard=%4d mx=%2d my=%2d\n",
varc, s->avg_mb_var, sum, vard, mx - xx, my - yy);
#endif
av_dlog
(
s
,
"varc=%4d avg_var=%4d (sum=%4d) vard=%4d mx=%2d my=%2d
\n
"
,
varc
,
s
->
avg_mb_var
,
sum
,
vard
,
mx
-
xx
,
my
-
yy
);
if
(
mb_type
){
int
p_score
=
FFMIN
(
vard
,
varc
-
500
+
(
s
->
lambda2
>>
FF_LAMBDA_SHIFT
)
*
100
);
int
i_score
=
varc
-
500
+
(
s
->
lambda2
>>
FF_LAMBDA_SHIFT
)
*
20
;
...
...
libavcodec/parser.c
View file @
09cbf60f
...
...
@@ -273,12 +273,11 @@ int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s
pc
->
overread
++
;
}
#if 0
if
(
pc
->
overread
){
printf("overread %d, state:%X next:%d index:%d o_index:%d\n", pc->overread, pc->state, next, pc->index, pc->overread_index);
printf("%X %X %X %X\n", (*buf)[0], (*buf)[1],(*buf)[2],(*buf)[3]);
av_dlog
(
pc
,
"overread %d, state:%X next:%d index:%d o_index:%d
\n
"
,
pc
->
overread
,
pc
->
state
,
next
,
pc
->
index
,
pc
->
overread_index
);
av_dlog
(
pc
,
"%X %X %X %X
\n
"
,
(
*
buf
)[
0
],
(
*
buf
)[
1
],(
*
buf
)[
2
],(
*
buf
)[
3
]);
}
#endif
return
0
;
}
...
...
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