mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
MIPS: MIPS32r1: rescaler bugfix
Change-Id: I6de6e2488bd5bd58c1f705739e4467feb211f8b4
This commit is contained in:
parent
c16cd99aba
commit
4aa3e4122b
@ -14,6 +14,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "./rescaler.h"
|
#include "./rescaler.h"
|
||||||
|
#include "../dsp/dsp.h"
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Implementations of critical functions ImportRow / ExportRow
|
// Implementations of critical functions ImportRow / ExportRow
|
||||||
@ -243,6 +244,8 @@ static void ExportRowMIPS(WebPRescaler* const wrk, int x_out) {
|
|||||||
: [temp2]"r"(temp2), [yscale]"r"(yscale), [temp8]"r"(temp8)
|
: [temp2]"r"(temp2), [yscale]"r"(yscale), [temp8]"r"(temp8)
|
||||||
: "memory", "hi", "lo"
|
: "memory", "hi", "lo"
|
||||||
);
|
);
|
||||||
|
wrk->y_accum += wrk->y_add;
|
||||||
|
wrk->dst += wrk->dst_stride;
|
||||||
} else {
|
} else {
|
||||||
ExportRowC(wrk, x_out);
|
ExportRowC(wrk, x_out);
|
||||||
}
|
}
|
||||||
@ -281,6 +284,7 @@ void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height,
|
|||||||
if (WebPRescalerImportRow == NULL) {
|
if (WebPRescalerImportRow == NULL) {
|
||||||
WebPRescalerImportRow = ImportRowC;
|
WebPRescalerImportRow = ImportRowC;
|
||||||
WebPRescalerExportRow = ExportRowC;
|
WebPRescalerExportRow = ExportRowC;
|
||||||
|
if (VP8GetCPUInfo) {
|
||||||
#if defined(WEBP_USE_MIPS32)
|
#if defined(WEBP_USE_MIPS32)
|
||||||
if (VP8GetCPUInfo(kMIPS32)) {
|
if (VP8GetCPUInfo(kMIPS32)) {
|
||||||
WebPRescalerImportRow = ImportRowMIPS;
|
WebPRescalerImportRow = ImportRowMIPS;
|
||||||
@ -289,6 +293,7 @@ void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#undef MULT_FIX
|
#undef MULT_FIX
|
||||||
#undef RFIX
|
#undef RFIX
|
||||||
|
Loading…
Reference in New Issue
Block a user