char *
SFTMsgReader::readFileUploadData(unsigned int *pDataSize, unsigned int *pModTime)
{
- unsigned char compressedLevel = m_pIS->readU8();
+ /*
+ * Compressed level is not used now so we have to skip one byte
+ *
+ * unsigned char compressedLevel = m_pIS->readU8();
+ */
+ (void) m_pIS->readU8();
unsigned int realSize = m_pIS->readU16();
unsigned int compressedSize = m_pIS->readU16();
namespace rfb {
- #define SCALE_ERROR 1e-7
+ #define SCALE_ERROR (1e-7)
#define BITS_OF_CHANEL 8
#define BITS_OF_WEIGHT 14
- #define FINALSHIFT 2 * BITS_OF_WEIGHT - BITS_OF_CHANEL
- #define WEIGHT_OF_ONE 1 << BITS_OF_WEIGHT
+ #define FINALSHIFT (2 * BITS_OF_WEIGHT - BITS_OF_CHANEL)
+ #define WEIGHT_OF_ONE (1 << BITS_OF_WEIGHT)
typedef double (*filter_func)(double x);
ScaledPixelBuffer::ScaledPixelBuffer(U8 **src_data_, int src_width_,
int src_height_, int scale_, PixelFormat pf_)
: scale(scale_), scale_ratio_x(1), scale_ratio_y(1), scaleFilterID(scaleFilterBilinear),
- xWeightTabs(0), yWeightTabs(0), scaled_data(0), raccum(0), gaccum(0), baccum(0) {
+ xWeightTabs(0), yWeightTabs(0), raccum(0), gaccum(0), baccum(0), scaled_data(0) {
setSourceBuffer(src_data_, src_width_, src_height_);
setPF(pf_);
ScaledPixelBuffer::ScaledPixelBuffer()
: src_width(0), src_height(0), scaled_width(0), scaled_height(0), scale(100),
scale_ratio_x(1), scale_ratio_y(1), scaleFilterID(scaleFilterBilinear),
- xWeightTabs(0), yWeightTabs(0), src_data(0), scaled_data(0), raccum(0),
- gaccum(0), baccum(0) {
+ xWeightTabs(0), yWeightTabs(0), raccum(0), gaccum(0), baccum(0),
+ src_data(0), scaled_data(0) {
memset(&pf, 0, sizeof(pf));
}