Commit a9e89414 authored by Mans Rullgard's avatar Mans Rullgard

move bit depth table to mqa-common

parent 8dd280f0
......@@ -54,3 +54,10 @@ const char *mqa_rates[32] = {
"4.096 MHz",
"8.192 MHz",
};
const char *mqb_bitdepths[4] = {
"20 bits",
"18 bits",
"16 bits",
"15 bits",
};
......@@ -31,5 +31,6 @@
extern const char *mqa_rates[32];
extern const uint8_t mqa_auth_keys[16][384];
extern const char *mqb_bitdepths[4];
#endif
......@@ -55,18 +55,11 @@ static const struct bitfield frame_00[] = {
{ 0 },
};
static const char *bitdepth_tab[4] = {
"20 bits",
"18 bits",
"16 bits",
"15 bits",
};
static const struct bitfield frame_01[] = {
{ 8, BF_RET, "size" },
{ 5, 0, "resampling_filter" },
{ 2, 0, "noise_shaping_filter" },
{ 2, 0, "bitdepth", bitdepth_tab },
{ 2, 0, "bitdepth", mqb_bitdepths },
{ 1, 0, "unknown" },
{ 10, BF_SIGNED, "replay_gain" },
{ 5, BF_HEX, "orig_rate", mqa_rates },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment