mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Silence some (more) Visual Studio warnings.
Change-Id: Idac44feac894ab13630e032222c4744d6fa785df
This commit is contained in:
parent
60306e8cf3
commit
7c43663036
@ -168,6 +168,7 @@ void (*VP8TransformWHT)(const int16_t* in, int16_t* out) = TransformWHT;
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Intra predictions
|
// Intra predictions
|
||||||
|
|
||||||
|
#undef OUT
|
||||||
#define OUT(x, y) dst[(x) + (y) * BPS]
|
#define OUT(x, y) dst[(x) + (y) * BPS]
|
||||||
|
|
||||||
static inline void TrueMotion(uint8_t *dst, int size) {
|
static inline void TrueMotion(uint8_t *dst, int size) {
|
||||||
|
@ -492,7 +492,7 @@ static void ExportRow(WebPRescaler* const wrk) {
|
|||||||
assert(wrk->y_accum <= 0);
|
assert(wrk->y_accum <= 0);
|
||||||
for (x_out = 0; x_out < wrk->dst_width; ++x_out) {
|
for (x_out = 0; x_out < wrk->dst_width; ++x_out) {
|
||||||
const int frac = MULT(wrk->frow[x_out], yscale);
|
const int frac = MULT(wrk->frow[x_out], yscale);
|
||||||
const int v = MULT(wrk->irow[x_out] - frac, wrk->fxy_scale);
|
const int v = (int)MULT(wrk->irow[x_out] - frac, wrk->fxy_scale);
|
||||||
wrk->dst[x_out] = (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255;
|
wrk->dst[x_out] = (!(v & ~0xff)) ? v : (v < 0) ? 0 : 255;
|
||||||
wrk->irow[x_out] = frac; // new fractional start
|
wrk->irow[x_out] = frac; // new fractional start
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user