Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mqa
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mans Rullgard
mqa
Commits
f8e6bdf5
Commit
f8e6bdf5
authored
7 years ago
by
Mans Rullgard
Browse files
Options
Downloads
Patches
Plain Diff
mqbscan: print frame sizes
parent
2f8c1bc1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mqbscan.c
+6
-5
6 additions, 5 deletions
mqbscan.c
with
6 additions
and
5 deletions
mqbscan.c
+
6
−
5
View file @
f8e6bdf5
...
...
@@ -45,6 +45,7 @@ static unsigned sample_pos;
static
jmp_buf
eofjmp
;
static
const
struct
bitfield
frame_00
[]
=
{
{
8
,
BF_RET
,
"size"
},
{
32
,
BF_HEX
,
"magic"
},
{
0
},
};
...
...
@@ -57,6 +58,7 @@ static const char *bitdepth_tab[4] = {
};
static
const
struct
bitfield
frame_01
[]
=
{
{
8
,
BF_RET
,
"size"
},
{
5
,
0
,
"resampling_filter"
},
{
2
,
0
,
"noise_shaping_filter"
},
{
2
,
0
,
"bitdepth"
,
bitdepth_tab
},
...
...
@@ -71,11 +73,13 @@ static const struct bitfield frame_01[] = {
};
static
const
struct
bitfield
frame_02
[]
=
{
{
8
,
BF_RET
,
"size"
},
{
16
,
BF_SIGNED
,
"gain"
},
{
0
},
};
static
const
struct
bitfield
frame_04
[]
=
{
{
8
,
BF_RET
,
"size"
},
{
8
,
0
,
"type"
},
{
0
},
};
...
...
@@ -135,11 +139,8 @@ static void print_mqb_frame(struct bitreader *b)
crc
=
0
;
type
=
get_ubits
(
b
,
8
);
size
=
get_ubits
(
b
,
8
);
epos
=
sample_pos
+
size
*
8
;
print_frame
(
b
,
&
frame_types
[
type
],
type
,
spos
);
size
=
print_frame
(
b
,
&
frame_types
[
type
],
type
,
spos
);
epos
=
spos
+
8
+
size
*
8
;
while
(
sample_pos
<
epos
)
get_ubits
(
b
,
8
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment