drop obsolete and unsupported big endian support - refs #2806
This commit is contained in:
parent
73dbec32fa
commit
613766b104
2 changed files with 0 additions and 21 deletions
|
@ -157,11 +157,7 @@ public:
|
||||||
|
|
||||||
inline unsigned rgba() const
|
inline unsigned rgba() const
|
||||||
{
|
{
|
||||||
#ifdef MAPNIK_BIG_ENDIAN
|
|
||||||
return static_cast<unsigned>((alpha_) | (blue_ << 8) | (green_ << 16) | (red_ << 24)) ;
|
|
||||||
#else
|
|
||||||
return static_cast<unsigned>((alpha_ << 24) | (blue_ << 16) | (green_ << 8) | (red_)) ;
|
return static_cast<unsigned>((alpha_ << 24) | (blue_ << 16) | (green_ << 8) | (red_)) ;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
void swap(color & rhs)
|
void swap(color & rhs)
|
||||||
|
|
|
@ -220,30 +220,13 @@ public:
|
||||||
inline double read_double()
|
inline double read_double()
|
||||||
{
|
{
|
||||||
double val;
|
double val;
|
||||||
#ifndef MAPNIK_BIG_ENDIAN
|
|
||||||
file_.read(reinterpret_cast<char*>(&val), 8);
|
file_.read(reinterpret_cast<char*>(&val), 8);
|
||||||
#else
|
|
||||||
char b[8];
|
|
||||||
file_.read(b, 8);
|
|
||||||
read_double_ndr(b, val);
|
|
||||||
#endif
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void read_envelope(box2d<double>& envelope)
|
inline void read_envelope(box2d<double>& envelope)
|
||||||
{
|
{
|
||||||
#ifndef MAPNIK_BIG_ENDIAN
|
|
||||||
file_.read(reinterpret_cast<char*>(&envelope), sizeof(envelope));
|
file_.read(reinterpret_cast<char*>(&envelope), sizeof(envelope));
|
||||||
#else
|
|
||||||
char data[4 * 8];
|
|
||||||
file_.read(data,4 * 8);
|
|
||||||
double minx, miny, maxx, maxy;
|
|
||||||
read_double_ndr(data + 0 * 8, minx);
|
|
||||||
read_double_ndr(data + 1 * 8, miny);
|
|
||||||
read_double_ndr(data + 2 * 8, maxx);
|
|
||||||
read_double_ndr(data + 3 * 8, maxy);
|
|
||||||
envelope.init(minx, miny, maxx, maxy);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void skip(std::streampos bytes)
|
inline void skip(std::streampos bytes)
|
||||||
|
|
Loading…
Add table
Reference in a new issue