mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Code cleanup
This commit is contained in:
parent
93c81c01c3
commit
5fdbf2e5d6
@ -20,7 +20,7 @@ bool HuffmanTable::load(const RGNFile *rgn, SubFile::Handle &rgnHdl)
|
||||
return false;
|
||||
|
||||
_s0 = (quint8)_buffer.at(0) & 0x0F;
|
||||
_s1e = (quint8)_buffer.at(0) & 0x10 ? 1 : 8;
|
||||
_s1e = (quint8)_buffer.at(0) & 0x10;
|
||||
_s2 = (quint8)_buffer.at(1);
|
||||
_s3 = bs(_s2);
|
||||
_s1d = (quint8)_buffer.at(2);
|
||||
@ -87,7 +87,7 @@ quint32 HuffmanTable::symbol(quint32 data, quint8 &size) const
|
||||
size = *tp;
|
||||
sym = (data - sym) >> (_s2 - *tp);
|
||||
|
||||
if (_s1e == 8)
|
||||
if (!_s1e)
|
||||
sym = readVUint32(tp, _s20);
|
||||
else {
|
||||
sym = (sym + ss) * _s1f;
|
||||
|
@ -21,8 +21,9 @@ private:
|
||||
HuffmanBuffer _buffer;
|
||||
quint8 _s0, _s1, _s2, _s3;
|
||||
quint8 *_s10, *_s14, *_s18;
|
||||
quint8 _s1c, _s1d, _s1e, _s1f, _s20;
|
||||
quint8 _s1c, _s1d, _s1f, _s20;
|
||||
quint16 _s22;
|
||||
bool _s1e;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user