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
5bebd13d
Commit
5bebd13d
authored
Apr 28, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/vqavideo: Use ff_tlog() for byte and opcode tracing
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
191dd219
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vqavideo.c
libavcodec/vqavideo.c
+6
-6
No files found.
libavcodec/vqavideo.c
View file @
5bebd13d
...
...
@@ -234,7 +234,7 @@ static int decode_format80(VqaContext *s, int src_size,
start
=
bytestream2_tell
(
&
s
->
gb
);
while
(
bytestream2_tell
(
&
s
->
gb
)
-
start
<
src_size
)
{
opcode
=
bytestream2_get_byte
(
&
s
->
gb
);
ff_
d
log
(
s
->
avctx
,
"opcode %02X: "
,
opcode
);
ff_
t
log
(
s
->
avctx
,
"opcode %02X: "
,
opcode
);
/* 0x80 means that frame is finished */
if
(
opcode
==
0x80
)
...
...
@@ -250,7 +250,7 @@ static int decode_format80(VqaContext *s, int src_size,
count
=
bytestream2_get_le16
(
&
s
->
gb
);
src_pos
=
bytestream2_get_le16
(
&
s
->
gb
);
ff_
d
log
(
s
->
avctx
,
"(1) copy %X bytes from absolute pos %X
\n
"
,
count
,
src_pos
);
ff_
t
log
(
s
->
avctx
,
"(1) copy %X bytes from absolute pos %X
\n
"
,
count
,
src_pos
);
CHECK_COUNT
();
CHECK_COPY
(
src_pos
);
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -261,7 +261,7 @@ static int decode_format80(VqaContext *s, int src_size,
count
=
bytestream2_get_le16
(
&
s
->
gb
);
color
=
bytestream2_get_byte
(
&
s
->
gb
);
ff_
d
log
(
s
->
avctx
,
"(2) set %X bytes to %02X
\n
"
,
count
,
color
);
ff_
t
log
(
s
->
avctx
,
"(2) set %X bytes to %02X
\n
"
,
count
,
color
);
CHECK_COUNT
();
memset
(
&
dest
[
dest_index
],
color
,
count
);
dest_index
+=
count
;
...
...
@@ -270,7 +270,7 @@ static int decode_format80(VqaContext *s, int src_size,
count
=
(
opcode
&
0x3F
)
+
3
;
src_pos
=
bytestream2_get_le16
(
&
s
->
gb
);
ff_
d
log
(
s
->
avctx
,
"(3) copy %X bytes from absolute pos %X
\n
"
,
count
,
src_pos
);
ff_
t
log
(
s
->
avctx
,
"(3) copy %X bytes from absolute pos %X
\n
"
,
count
,
src_pos
);
CHECK_COUNT
();
CHECK_COPY
(
src_pos
);
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -280,7 +280,7 @@ static int decode_format80(VqaContext *s, int src_size,
}
else
if
(
opcode
>
0x80
)
{
count
=
opcode
&
0x3F
;
ff_
d
log
(
s
->
avctx
,
"(4) copy %X bytes from source to dest
\n
"
,
count
);
ff_
t
log
(
s
->
avctx
,
"(4) copy %X bytes from source to dest
\n
"
,
count
);
CHECK_COUNT
();
bytestream2_get_buffer
(
&
s
->
gb
,
&
dest
[
dest_index
],
count
);
dest_index
+=
count
;
...
...
@@ -289,7 +289,7 @@ static int decode_format80(VqaContext *s, int src_size,
count
=
((
opcode
&
0x70
)
>>
4
)
+
3
;
src_pos
=
bytestream2_get_byte
(
&
s
->
gb
)
|
((
opcode
&
0x0F
)
<<
8
);
ff_
d
log
(
s
->
avctx
,
"(5) copy %X bytes from relpos %X
\n
"
,
count
,
src_pos
);
ff_
t
log
(
s
->
avctx
,
"(5) copy %X bytes from relpos %X
\n
"
,
count
,
src_pos
);
CHECK_COUNT
();
CHECK_COPY
(
dest_index
-
src_pos
);
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
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