1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/map/IMG/huffmanstream.cpp

31 lines
448 B
C++
Raw Normal View History

#include "huffmanstream.h"
bool HuffmanStreamF::init(bool line)
{
if (line) {
if (!(sign(_lonSign) && sign(_latSign)))
return false;
} else {
_lonSign = 0;
_latSign = 0;
}
quint32 eb;
if (!_bs.read(1, eb))
return false;
if (eb) {
qWarning() << "Extended lines/polygons not supported";
return false;
}
return true;
}
bool HuffmanStreamR::init()
{
if (!(sign(_lonSign) && sign(_latSign)))
2020-02-02 09:03:35 +01:00
return false;
return true;
}