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
0b13f422
Commit
0b13f422
authored
Apr 26, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/interplayvideo: Use ff_tlog() for block level decode tracing
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
febbb3cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
interplayvideo.c
libavcodec/interplayvideo.c
+6
-6
No files found.
libavcodec/interplayvideo.c
View file @
0b13f422
...
@@ -118,7 +118,7 @@ static int ipvideo_decode_block_opcode_0x2(IpvideoContext *s, AVFrame *frame)
...
@@ -118,7 +118,7 @@ static int ipvideo_decode_block_opcode_0x2(IpvideoContext *s, AVFrame *frame)
y
=
8
+
((
B
-
56
)
/
29
);
y
=
8
+
((
B
-
56
)
/
29
);
}
}
ff_
d
log
(
s
->
avctx
,
"motion byte = %d, (x, y) = (%d, %d)
\n
"
,
B
,
x
,
y
);
ff_
t
log
(
s
->
avctx
,
"motion byte = %d, (x, y) = (%d, %d)
\n
"
,
B
,
x
,
y
);
return
copy_from
(
s
,
s
->
second_last_frame
,
frame
,
x
,
y
);
return
copy_from
(
s
,
s
->
second_last_frame
,
frame
,
x
,
y
);
}
}
...
@@ -144,7 +144,7 @@ static int ipvideo_decode_block_opcode_0x3(IpvideoContext *s, AVFrame *frame)
...
@@ -144,7 +144,7 @@ static int ipvideo_decode_block_opcode_0x3(IpvideoContext *s, AVFrame *frame)
y
=
-
(
8
+
((
B
-
56
)
/
29
));
y
=
-
(
8
+
((
B
-
56
)
/
29
));
}
}
ff_
d
log
(
s
->
avctx
,
"motion byte = %d, (x, y) = (%d, %d)
\n
"
,
B
,
x
,
y
);
ff_
t
log
(
s
->
avctx
,
"motion byte = %d, (x, y) = (%d, %d)
\n
"
,
B
,
x
,
y
);
return
copy_from
(
s
,
frame
,
frame
,
x
,
y
);
return
copy_from
(
s
,
frame
,
frame
,
x
,
y
);
}
}
...
@@ -165,7 +165,7 @@ static int ipvideo_decode_block_opcode_0x4(IpvideoContext *s, AVFrame *frame)
...
@@ -165,7 +165,7 @@ static int ipvideo_decode_block_opcode_0x4(IpvideoContext *s, AVFrame *frame)
x
=
-
8
+
BL
;
x
=
-
8
+
BL
;
y
=
-
8
+
BH
;
y
=
-
8
+
BH
;
ff_
d
log
(
s
->
avctx
,
"motion byte = %d, (x, y) = (%d, %d)
\n
"
,
B
,
x
,
y
);
ff_
t
log
(
s
->
avctx
,
"motion byte = %d, (x, y) = (%d, %d)
\n
"
,
B
,
x
,
y
);
return
copy_from
(
s
,
s
->
last_frame
,
frame
,
x
,
y
);
return
copy_from
(
s
,
s
->
last_frame
,
frame
,
x
,
y
);
}
}
...
@@ -178,7 +178,7 @@ static int ipvideo_decode_block_opcode_0x5(IpvideoContext *s, AVFrame *frame)
...
@@ -178,7 +178,7 @@ static int ipvideo_decode_block_opcode_0x5(IpvideoContext *s, AVFrame *frame)
x
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
x
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
y
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
y
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
ff_
d
log
(
s
->
avctx
,
"motion bytes = %d, %d
\n
"
,
x
,
y
);
ff_
t
log
(
s
->
avctx
,
"motion bytes = %d, %d
\n
"
,
x
,
y
);
return
copy_from
(
s
,
s
->
last_frame
,
frame
,
x
,
y
);
return
copy_from
(
s
,
s
->
last_frame
,
frame
,
x
,
y
);
}
}
...
@@ -553,7 +553,7 @@ static int ipvideo_decode_block_opcode_0x6_16(IpvideoContext *s, AVFrame *frame)
...
@@ -553,7 +553,7 @@ static int ipvideo_decode_block_opcode_0x6_16(IpvideoContext *s, AVFrame *frame)
x
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
x
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
y
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
y
=
bytestream2_get_byte
(
&
s
->
stream_ptr
);
ff_
d
log
(
s
->
avctx
,
"motion bytes = %d, %d
\n
"
,
x
,
y
);
ff_
t
log
(
s
->
avctx
,
"motion bytes = %d, %d
\n
"
,
x
,
y
);
return
copy_from
(
s
,
s
->
second_last_frame
,
frame
,
x
,
y
);
return
copy_from
(
s
,
s
->
second_last_frame
,
frame
,
x
,
y
);
}
}
...
@@ -928,7 +928,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame)
...
@@ -928,7 +928,7 @@ static void ipvideo_decode_opcodes(IpvideoContext *s, AVFrame *frame)
for
(
x
=
0
;
x
<
s
->
avctx
->
width
;
x
+=
8
)
{
for
(
x
=
0
;
x
<
s
->
avctx
->
width
;
x
+=
8
)
{
opcode
=
get_bits
(
&
gb
,
4
);
opcode
=
get_bits
(
&
gb
,
4
);
ff_
d
log
(
s
->
avctx
,
ff_
t
log
(
s
->
avctx
,
" block @ (%3d, %3d): encoding 0x%X, data ptr offset %d
\n
"
,
" block @ (%3d, %3d): encoding 0x%X, data ptr offset %d
\n
"
,
x
,
y
,
opcode
,
bytestream2_tell
(
&
s
->
stream_ptr
));
x
,
y
,
opcode
,
bytestream2_tell
(
&
s
->
stream_ptr
));
...
...
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