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
f4c311fe
Commit
f4c311fe
authored
Apr 25, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mpeg12dec: Change mb decode tracing stuff to use ff_tlog()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a3110bee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mpeg12dec.c
libavcodec/mpeg12dec.c
+7
-7
No files found.
libavcodec/mpeg12dec.c
View file @
f4c311fe
...
...
@@ -156,7 +156,7 @@ static inline int mpeg1_decode_block_intra(MpegEncContext *s,
dc
+=
diff
;
s
->
last_dc
[
component
]
=
dc
;
block
[
0
]
=
dc
*
quant_matrix
[
0
];
ff_
d
log
(
s
->
avctx
,
"dc=%d diff=%d
\n
"
,
dc
,
diff
);
ff_
t
log
(
s
->
avctx
,
"dc=%d diff=%d
\n
"
,
dc
,
diff
);
i
=
0
;
{
OPEN_READER
(
re
,
&
s
->
gb
);
...
...
@@ -568,7 +568,7 @@ static inline int mpeg2_decode_block_intra(MpegEncContext *s,
dc
+=
diff
;
s
->
last_dc
[
component
]
=
dc
;
block
[
0
]
=
dc
<<
(
3
-
s
->
intra_dc_precision
);
ff_
d
log
(
s
->
avctx
,
"dc=%d
\n
"
,
block
[
0
]);
ff_
t
log
(
s
->
avctx
,
"dc=%d
\n
"
,
block
[
0
]);
mismatch
=
block
[
0
]
^
1
;
i
=
0
;
if
(
s
->
intra_vlc_format
)
...
...
@@ -735,7 +735,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
const
int
mb_block_count
=
4
+
(
1
<<
s
->
chroma_format
);
int
ret
;
ff_
d
log
(
s
->
avctx
,
"decode_mb: x=%d y=%d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
ff_
t
log
(
s
->
avctx
,
"decode_mb: x=%d y=%d
\n
"
,
s
->
mb_x
,
s
->
mb_y
);
av_assert2
(
s
->
mb_skipped
==
0
);
...
...
@@ -800,7 +800,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
mb_type
=
btype2mb_type
[
mb_type
];
break
;
}
ff_
d
log
(
s
->
avctx
,
"mb_type=%x
\n
"
,
mb_type
);
ff_
t
log
(
s
->
avctx
,
"mb_type=%x
\n
"
,
mb_type
);
// motion_type = 0; /* avoid warning */
if
(
IS_INTRA
(
mb_type
))
{
s
->
bdsp
.
clear_blocks
(
s
->
block
[
0
]);
...
...
@@ -897,7 +897,7 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
/* motion vectors */
s
->
mv_dir
=
(
mb_type
>>
13
)
&
3
;
ff_
d
log
(
s
->
avctx
,
"motion_type=%d
\n
"
,
motion_type
);
ff_
t
log
(
s
->
avctx
,
"motion_type=%d
\n
"
,
motion_type
);
switch
(
motion_type
)
{
case
MT_FRAME
:
/* or MT_16X8 */
if
(
s
->
picture_structure
==
PICT_FRAME
)
{
...
...
@@ -954,12 +954,12 @@ static int mpeg_decode_mb(MpegEncContext *s, int16_t block[12][64])
s
->
last_mv
[
i
][
j
][
0
]);
s
->
last_mv
[
i
][
j
][
0
]
=
val
;
s
->
mv
[
i
][
j
][
0
]
=
val
;
ff_
d
log
(
s
->
avctx
,
"fmx=%d
\n
"
,
val
);
ff_
t
log
(
s
->
avctx
,
"fmx=%d
\n
"
,
val
);
val
=
mpeg_decode_motion
(
s
,
s
->
mpeg_f_code
[
i
][
1
],
s
->
last_mv
[
i
][
j
][
1
]
>>
1
);
s
->
last_mv
[
i
][
j
][
1
]
=
2
*
val
;
s
->
mv
[
i
][
j
][
1
]
=
val
;
ff_
d
log
(
s
->
avctx
,
"fmy=%d
\n
"
,
val
);
ff_
t
log
(
s
->
avctx
,
"fmy=%d
\n
"
,
val
);
}
}
}
...
...
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