mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-20 12:19:11 +02:00
Compare commits
2 Commits
a4449897a7
...
7f20e2e307
Author | SHA1 | Date | |
---|---|---|---|
7f20e2e307 | |||
68f1f1fc3f |
@ -60,18 +60,14 @@ private:
|
|||||||
struct Context
|
struct Context
|
||||||
{
|
{
|
||||||
Context(quint16 width, quint16 range)
|
Context(quint16 width, quint16 range)
|
||||||
|
: data(QVector<quint16>((width + 3) * 2)), w(width), rg(1),
|
||||||
|
runIndex(0), rk(0), lrk(0)
|
||||||
{
|
{
|
||||||
w = width;
|
quint16 A = qMax(2, (range + 32) / 64);
|
||||||
data = QVector<quint16>((w + 3) * 2);
|
|
||||||
last = data.data();
|
last = data.data();
|
||||||
current = data.data() + (w + 3);
|
current = data.data() + (w + 3);
|
||||||
|
|
||||||
runIndex = 0;
|
|
||||||
rk = 0;
|
|
||||||
rg = 1;
|
|
||||||
lrk = 0;
|
|
||||||
|
|
||||||
quint16 A = qMax(2, (range + 32) / 64);
|
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
a[i] = A;
|
a[i] = A;
|
||||||
b[i] = 0;
|
b[i] = 0;
|
||||||
@ -79,18 +75,17 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
quint8 runIndex;
|
QVector<quint16> data;
|
||||||
quint8 rk;
|
quint16 *current;
|
||||||
|
quint16 *last;
|
||||||
|
quint16 w;
|
||||||
quint16 rg;
|
quint16 rg;
|
||||||
quint16 n[4];
|
quint16 n[4];
|
||||||
quint16 a[4];
|
quint16 a[4];
|
||||||
qint16 b[4];
|
qint16 b[4];
|
||||||
|
quint8 runIndex;
|
||||||
|
quint8 rk;
|
||||||
quint8 lrk;
|
quint8 lrk;
|
||||||
|
|
||||||
quint16 w;
|
|
||||||
QVector<quint16> data;
|
|
||||||
quint16 *current;
|
|
||||||
quint16 *last;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bool readLine(BitStream &bs, Context &ctx) const;
|
bool readLine(BitStream &bs, Context &ctx) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user