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
3e2f664b
Commit
3e2f664b
authored
Nov 12, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump_int_buffer() to dump samples from a buffer
parent
caf9eb85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+14
-0
No files found.
libavcodec/wmalosslessdec.c
View file @
3e2f664b
...
@@ -308,6 +308,19 @@ static void av_cold dump_context(WmallDecodeCtx *s)
...
@@ -308,6 +308,19 @@ static void av_cold dump_context(WmallDecodeCtx *s)
PRINT
(
"num channels"
,
s
->
num_channels
);
PRINT
(
"num channels"
,
s
->
num_channels
);
}
}
static
int
dump_int_buffer
(
int
*
buffer
,
int
length
,
int
delimiter
)
{
int
i
;
for
(
i
=
0
;
i
<
length
;
i
++
)
{
if
(
!
(
i
%
delimiter
))
av_log
(
0
,
0
,
"
\n
[%d] "
,
i
);
av_log
(
0
,
0
,
"%d, "
,
buffer
[
i
]);
}
av_log
(
0
,
0
,
"
\n
"
);
}
/**
/**
*@brief Uninitialize the decoder and free all resources.
*@brief Uninitialize the decoder and free all resources.
*@param avctx codec context
*@param avctx codec context
...
@@ -708,6 +721,7 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
...
@@ -708,6 +721,7 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
av_log
(
0
,
0
,
"%4d "
,
residue
);
av_log
(
0
,
0
,
"%4d "
,
residue
);
// dprintf(s->avctx, "%5d: %5d %10d %12d %12d %5d %-16d %04x\n",i, quo, ave_mean, s->ave_sum[ch], rem, rem_bits, s->channel_residues[ch][i], show_bits(&s->gb, 16));
// dprintf(s->avctx, "%5d: %5d %10d %12d %12d %5d %-16d %04x\n",i, quo, ave_mean, s->ave_sum[ch], rem, rem_bits, s->channel_residues[ch][i], show_bits(&s->gb, 16));
}
}
dump_int_buffer
(
s
->
channel_residues
[
ch
],
tile_size
,
16
);
av_log
(
0
,
0
,
"
\n
Tile size = %d
\n
"
,
tile_size
);
av_log
(
0
,
0
,
"
\n
Tile size = %d
\n
"
,
tile_size
);
return
0
;
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