summaryrefslogtreecommitdiffstats
path: root/contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-07-24 10:07:25 +0300
committerrobot-piglet <[email protected]>2025-07-24 10:16:27 +0300
commit1c295121fa6a70a55c0ed79beb993761eac1fadc (patch)
tree0a3af4cf839ddc14d3d2829c3b224c1da409d80c /contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c
parent026ffc40392187f03308f5ae7445365ad4a1ef7f (diff)
Intermediate changes
commit_hash:9e9c04347de10235f77fcdaf62119e9b89e8bc59
Diffstat (limited to 'contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c')
-rw-r--r--contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c b/contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c
index e10b8f7efca..b93e98bf861 100644
--- a/contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c
+++ b/contrib/libs/libwebp/src/dsp/lossless_enc_mips_dsp_r2.c
@@ -83,9 +83,9 @@ static void TransformColor_MIPSdspR2(
int num_pixels) {
int temp0, temp1, temp2, temp3, temp4, temp5;
uint32_t argb, argb1, new_red, new_red1;
- const uint32_t G_to_R = m->green_to_red_;
- const uint32_t G_to_B = m->green_to_blue_;
- const uint32_t R_to_B = m->red_to_blue_;
+ const uint32_t G_to_R = m->green_to_red;
+ const uint32_t G_to_B = m->green_to_blue;
+ const uint32_t R_to_B = m->red_to_blue;
uint32_t* const p_loop_end = data + (num_pixels & ~1);
__asm__ volatile (
".set push \n\t"
@@ -152,10 +152,10 @@ static void TransformColor_MIPSdspR2(
const uint32_t red = argb_ >> 16;
uint32_t new_blue = argb_;
new_red = red;
- new_red -= ColorTransformDelta(m->green_to_red_, green);
+ new_red -= ColorTransformDelta(m->green_to_red, green);
new_red &= 0xff;
- new_blue -= ColorTransformDelta(m->green_to_blue_, green);
- new_blue -= ColorTransformDelta(m->red_to_blue_, red);
+ new_blue -= ColorTransformDelta(m->green_to_blue, green);
+ new_blue -= ColorTransformDelta(m->red_to_blue, red);
new_blue &= 0xff;
data[0] = (argb_ & 0xff00ff00u) | (new_red << 16) | (new_blue);
}