2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 22:27:41 +00:00

Working MP3 skin extraction

This commit is contained in:
Jack Andersen
2015-09-25 17:12:08 -10:00
parent 2c5f406c40
commit 60142602fd
29 changed files with 1080 additions and 460 deletions

View File

@@ -31,7 +31,7 @@ union Value
};
struct QuantizedValue
{
atInt16 v[3];
atInt16 v[4];
atInt16& operator[] (size_t idx)
{return v[idx];}
const atInt16& operator[] (size_t idx) const
@@ -48,10 +48,12 @@ struct Channel
{
ROTATION,
TRANSLATION,
SCALE
SCALE,
KF_HEAD,
ROTATION_MP3
} type;
QuantizedValue i = {};
atUint8 q[3] = {};
atUint8 q[4] = {};
};
size_t ComputeBitstreamSize(size_t keyFrameCount, const std::vector<Channel>& channels);