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
d5aef477
Commit
d5aef477
authored
Nov 08, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output decoded residues
parent
f3d349f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+7
-0
No files found.
libavcodec/wmalosslessdec.c
View file @
d5aef477
...
@@ -287,6 +287,8 @@ typedef struct WmallDecodeCtx {
...
@@ -287,6 +287,8 @@ typedef struct WmallDecodeCtx {
#define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
#define dprintf(pctx, ...) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__)
//static int num_logged_tiles;
/**
/**
*@brief helper function to print the most important members of the context
*@brief helper function to print the most important members of the context
*@param s context
*@param s context
...
@@ -335,6 +337,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
...
@@ -335,6 +337,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
int
log2_max_num_subframes
;
int
log2_max_num_subframes
;
int
num_possible_block_sizes
;
int
num_possible_block_sizes
;
//num_logged_tiles = 0;
s
->
avctx
=
avctx
;
s
->
avctx
=
avctx
;
dsputil_init
(
&
s
->
dsp
,
avctx
);
dsputil_init
(
&
s
->
dsp
,
avctx
);
init_put_bits
(
&
s
->
pb
,
s
->
frame_data
,
MAX_FRAMESIZE
);
init_put_bits
(
&
s
->
pb
,
s
->
frame_data
,
MAX_FRAMESIZE
);
...
@@ -694,8 +697,12 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
...
@@ -694,8 +697,12 @@ static int decode_channel_residues(WmallDecodeCtx *s, int ch, int tile_size)
residue
=
residue
>>
1
;
residue
=
residue
>>
1
;
s
->
channel_residues
[
ch
][
i
]
=
residue
;
s
->
channel_residues
[
ch
][
i
]
=
residue
;
//if (num_logged_tiles < 1)
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));
}
}
av_log
(
0
,
0
,
"
\n
"
);
//num_logged_tiles++;
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