mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 05:38:22 +01:00
fix type and conversion warnings
avoids warning messages on MSVC mainly Change-Id: I80f281d5263a54c6a224bb095175497cf2f4ce1e
This commit is contained in:
parent
7d853d79dc
commit
a7cc729126
@ -268,7 +268,7 @@ static int EncodeAlpha(VP8Encoder* const enc,
|
||||
*output_size = VP8BitWriterSize(&bw);
|
||||
*output = VP8BitWriterBuf(&bw);
|
||||
if (pic->stats != NULL) { // need stats?
|
||||
pic->stats->coded_size += *output_size;
|
||||
pic->stats->coded_size += (int)(*output_size);
|
||||
enc->sse_[3] = sse;
|
||||
}
|
||||
}
|
||||
|
@ -1030,7 +1030,7 @@ WebPEncodingError VP8LEncodeStream(const WebPConfig* const config,
|
||||
stats->transform_bits = enc->transform_bits_;
|
||||
stats->cache_bits = enc->cache_bits_;
|
||||
stats->palette_size = enc->palette_size_;
|
||||
stats->lossless_size = VP8LBitWriterNumBytes(bw) - byte_position;
|
||||
stats->lossless_size = (int)(VP8LBitWriterNumBytes(bw) - byte_position);
|
||||
}
|
||||
|
||||
Error:
|
||||
@ -1065,11 +1065,11 @@ int VP8LEncodeImage(const WebPConfig* const config,
|
||||
if (picture->stats != NULL) {
|
||||
WebPAuxStats* const stats = picture->stats;
|
||||
memset(stats, 0, sizeof(*stats));
|
||||
stats->PSNR[0] = 99.;
|
||||
stats->PSNR[1] = 99.;
|
||||
stats->PSNR[2] = 99.;
|
||||
stats->PSNR[3] = 99.;
|
||||
stats->PSNR[4] = 99.;
|
||||
stats->PSNR[0] = 99.f;
|
||||
stats->PSNR[1] = 99.f;
|
||||
stats->PSNR[2] = 99.f;
|
||||
stats->PSNR[3] = 99.f;
|
||||
stats->PSNR[4] = 99.f;
|
||||
}
|
||||
|
||||
// Write image size.
|
||||
|
Loading…
Reference in New Issue
Block a user