Home
last modified time | relevance | path

Searched refs:num_pixels (Results 1 – 25 of 54) sorted by relevance

123

/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Dlossless_msa.c113 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_MSA() argument
120 while (num_pixels >= 8) { in ConvertBGRAToRGBA_MSA()
127 num_pixels -= 8; in ConvertBGRAToRGBA_MSA()
129 if (num_pixels > 0) { in ConvertBGRAToRGBA_MSA()
130 if (num_pixels >= 4) { in ConvertBGRAToRGBA_MSA()
136 num_pixels -= 4; in ConvertBGRAToRGBA_MSA()
138 for (i = 0; i < num_pixels; i++) { in ConvertBGRAToRGBA_MSA()
154 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR_MSA() argument
164 while (num_pixels >= 16) { in ConvertBGRAToBGR_MSA()
168 num_pixels -= 16; in ConvertBGRAToBGR_MSA()
[all …]
Dlossless_neon.c30 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_NEON() argument
31 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGBA_NEON()
41 VP8LConvertBGRAToRGBA_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGBA_NEON()
45 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR_NEON() argument
46 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToBGR_NEON()
53 VP8LConvertBGRAToBGR_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToBGR_NEON()
57 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB_NEON() argument
58 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGB_NEON()
65 VP8LConvertBGRAToRGB_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGB_NEON()
75 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_NEON() argument
[all …]
Dlossless_sse2.c185 int num_pixels, uint32_t* out) { in PredictorAdd0_SSE2() argument
188 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorAdd0_SSE2()
193 if (i != num_pixels) { in PredictorAdd0_SSE2()
194 VP8LPredictorsAdd_C[0](in + i, upper + i, num_pixels - i, out + i); in PredictorAdd0_SSE2()
200 int num_pixels, uint32_t* out) { in PredictorAdd1_SSE2() argument
203 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorAdd1_SSE2()
219 if (i != num_pixels) { in PredictorAdd1_SSE2()
220 VP8LPredictorsAdd_C[1](in + i, upper + i, num_pixels - i, out + i); in PredictorAdd1_SSE2()
228 int num_pixels, uint32_t* out) { \
230 for (i = 0; i + 4 <= num_pixels; i += 4) { \
[all …]
Dlossless.h36 const uint32_t* upper, int num_pixels,
42 int num_pixels, uint32_t* dst);
54 int num_pixels, uint32_t* dst);
68 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels,
77 void VP8LConvertFromBGRA(const uint32_t* const in_data, int num_pixels,
101 const uint32_t* src, int num_pixels,
104 void VP8LConvertBGRAToRGB_C(const uint32_t* src, int num_pixels, uint8_t* dst);
105 void VP8LConvertBGRAToRGBA_C(const uint32_t* src, int num_pixels, uint8_t* dst);
107 int num_pixels, uint8_t* dst);
109 int num_pixels, uint8_t* dst);
[all …]
Dlossless_enc_msa.c52 int num_pixels) { in TransformColor_MSA() argument
62 while (num_pixels >= 8) { in TransformColor_MSA()
68 num_pixels -= 8; in TransformColor_MSA()
70 if (num_pixels > 0) { in TransformColor_MSA()
71 if (num_pixels >= 4) { in TransformColor_MSA()
76 num_pixels -= 4; in TransformColor_MSA()
78 if (num_pixels > 0) { in TransformColor_MSA()
81 if (num_pixels == 3) { in TransformColor_MSA()
86 } else if (num_pixels == 2) { in TransformColor_MSA()
98 int num_pixels) { in SubtractGreenFromBlueAndRed_MSA() argument
[all …]
Dlossless_mips_dsp_r2.c235 static void AddGreenToBlueAndRed_MIPSdspR2(const uint32_t* src, int num_pixels, in AddGreenToBlueAndRed_MIPSdspR2() argument
238 const uint32_t* const p_loop1_end = src + (num_pixels & ~3); in AddGreenToBlueAndRed_MIPSdspR2()
239 const uint32_t* const p_loop2_end = src + num_pixels; in AddGreenToBlueAndRed_MIPSdspR2()
293 const uint32_t* src, int num_pixels, in TransformColorInverse_MIPSdspR2() argument
300 const uint32_t* const p_loop_end = src + (num_pixels & ~1); in TransformColorInverse_MIPSdspR2()
360 if (num_pixels & 1) VP8LTransformColorInverse_C(m, src, 1, dst); in TransformColorInverse_MIPSdspR2()
364 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB_MIPSdspR2() argument
366 const uint32_t* const p_loop1_end = src + (num_pixels & ~3); in ConvertBGRAToRGB_MIPSdspR2()
367 const uint32_t* const p_loop2_end = src + num_pixels; in ConvertBGRAToRGB_MIPSdspR2()
416 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_MIPSdspR2() argument
[all …]
Dlossless.c172 int num_pixels, uint32_t* out) { in GENERATE_PREDICTOR_ADD()
175 for (i = 0; i < num_pixels; ++i) { in GENERATE_PREDICTOR_ADD()
242 void VP8LAddGreenToBlueAndRed_C(const uint32_t* src, int num_pixels, in VP8LAddGreenToBlueAndRed_C() argument
245 for (i = 0; i < num_pixels; ++i) { in VP8LAddGreenToBlueAndRed_C()
268 const uint32_t* src, int num_pixels, in VP8LTransformColorInverse_C() argument
271 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColorInverse_C()
426 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGB_C() argument
427 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGB_C()
437 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGBA_C() argument
438 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGBA_C()
[all …]
Dlossless_enc_sse2.c30 int num_pixels) { in SubtractGreenFromBlueAndRed_SSE2() argument
32 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed_SSE2()
41 if (i != num_pixels) { in SubtractGreenFromBlueAndRed_SSE2()
42 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed_SSE2()
53 uint32_t* argb_data, int num_pixels) { in TransformColor_SSE2() argument
60 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor_SSE2()
75 if (i != num_pixels) { in TransformColor_SSE2()
76 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor_SSE2()
449 int num_pixels, uint32_t* out) { in PredictorSub0_SSE2() argument
452 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorSub0_SSE2()
[all …]
Dlossless_enc_neon.c56 int num_pixels) { in SubtractGreenFromBlueAndRed_NEON() argument
57 const uint32_t* const end = argb_data + (num_pixels & ~3); in SubtractGreenFromBlueAndRed_NEON()
69 VP8LSubtractGreenFromBlueAndRed_C(argb_data, num_pixels & 3); in SubtractGreenFromBlueAndRed_NEON()
76 uint32_t* argb_data, int num_pixels) { in TransformColor_NEON() argument
103 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor_NEON()
125 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor_NEON()
Dupsampling_sse41.c98 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument
100 memcpy(r1, (tb), (num_pixels)); \
101 memcpy(r2, (bb), (num_pixels)); \
103 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 17 - (num_pixels)); \
104 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 17 - (num_pixels)); \
/third_party/skia/third_party/externals/libwebp/src/dsp/
Dlossless_msa.c113 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_MSA() argument
120 while (num_pixels >= 8) { in ConvertBGRAToRGBA_MSA()
127 num_pixels -= 8; in ConvertBGRAToRGBA_MSA()
129 if (num_pixels > 0) { in ConvertBGRAToRGBA_MSA()
130 if (num_pixels >= 4) { in ConvertBGRAToRGBA_MSA()
136 num_pixels -= 4; in ConvertBGRAToRGBA_MSA()
138 for (i = 0; i < num_pixels; i++) { in ConvertBGRAToRGBA_MSA()
154 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR_MSA() argument
164 while (num_pixels >= 16) { in ConvertBGRAToBGR_MSA()
168 num_pixels -= 16; in ConvertBGRAToBGR_MSA()
[all …]
Dlossless_neon.c30 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_NEON() argument
31 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGBA_NEON()
41 VP8LConvertBGRAToRGBA_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGBA_NEON()
45 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR_NEON() argument
46 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToBGR_NEON()
53 VP8LConvertBGRAToBGR_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToBGR_NEON()
57 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB_NEON() argument
58 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGB_NEON()
65 VP8LConvertBGRAToRGB_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGB_NEON()
75 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_NEON() argument
[all …]
Dlossless_sse2.c184 int num_pixels, uint32_t* out) { in PredictorAdd0_SSE2() argument
187 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorAdd0_SSE2()
192 if (i != num_pixels) { in PredictorAdd0_SSE2()
193 VP8LPredictorsAdd_C[0](in + i, NULL, num_pixels - i, out + i); in PredictorAdd0_SSE2()
200 int num_pixels, uint32_t* out) { in PredictorAdd1_SSE2() argument
203 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorAdd1_SSE2()
219 if (i != num_pixels) { in PredictorAdd1_SSE2()
220 VP8LPredictorsAdd_C[1](in + i, upper + i, num_pixels - i, out + i); in PredictorAdd1_SSE2()
228 int num_pixels, uint32_t* out) { \
230 for (i = 0; i + 4 <= num_pixels; i += 4) { \
[all …]
Dlossless_enc_msa.c52 int num_pixels) { in TransformColor_MSA() argument
62 while (num_pixels >= 8) { in TransformColor_MSA()
68 num_pixels -= 8; in TransformColor_MSA()
70 if (num_pixels > 0) { in TransformColor_MSA()
71 if (num_pixels >= 4) { in TransformColor_MSA()
76 num_pixels -= 4; in TransformColor_MSA()
78 if (num_pixels > 0) { in TransformColor_MSA()
81 if (num_pixels == 3) { in TransformColor_MSA()
86 } else if (num_pixels == 2) { in TransformColor_MSA()
98 int num_pixels) { in SubtractGreenFromBlueAndRed_MSA() argument
[all …]
Dlossless_mips_dsp_r2.c235 static void AddGreenToBlueAndRed_MIPSdspR2(const uint32_t* src, int num_pixels, in AddGreenToBlueAndRed_MIPSdspR2() argument
238 const uint32_t* const p_loop1_end = src + (num_pixels & ~3); in AddGreenToBlueAndRed_MIPSdspR2()
239 const uint32_t* const p_loop2_end = src + num_pixels; in AddGreenToBlueAndRed_MIPSdspR2()
293 const uint32_t* src, int num_pixels, in TransformColorInverse_MIPSdspR2() argument
300 const uint32_t* const p_loop_end = src + (num_pixels & ~1); in TransformColorInverse_MIPSdspR2()
360 if (num_pixels & 1) VP8LTransformColorInverse_C(m, src, 1, dst); in TransformColorInverse_MIPSdspR2()
364 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB_MIPSdspR2() argument
366 const uint32_t* const p_loop1_end = src + (num_pixels & ~3); in ConvertBGRAToRGB_MIPSdspR2()
367 const uint32_t* const p_loop2_end = src + num_pixels; in ConvertBGRAToRGB_MIPSdspR2()
416 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA_MIPSdspR2() argument
[all …]
Dlossless.c171 int num_pixels, uint32_t* out) { in PredictorAdd0_C() argument
174 for (x = 0; x < num_pixels; ++x) out[x] = VP8LAddPixels(in[x], ARGB_BLACK); in PredictorAdd0_C()
177 int num_pixels, uint32_t* out) { in PredictorAdd1_C() argument
181 for (i = 0; i < num_pixels; ++i) { in PredictorAdd1_C()
247 void VP8LAddGreenToBlueAndRed_C(const uint32_t* src, int num_pixels, in VP8LAddGreenToBlueAndRed_C() argument
250 for (i = 0; i < num_pixels; ++i) { in VP8LAddGreenToBlueAndRed_C()
273 const uint32_t* src, int num_pixels, in VP8LTransformColorInverse_C() argument
276 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColorInverse_C()
431 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGB_C() argument
432 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGB_C()
[all …]
Dlossless.h51 const uint32_t* upper, int num_pixels,
57 int num_pixels, uint32_t* dst);
69 int num_pixels, uint32_t* dst);
83 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels,
92 void VP8LConvertFromBGRA(const uint32_t* const in_data, int num_pixels,
116 const uint32_t* src, int num_pixels,
119 void VP8LConvertBGRAToRGB_C(const uint32_t* src, int num_pixels, uint8_t* dst);
120 void VP8LConvertBGRAToRGBA_C(const uint32_t* src, int num_pixels, uint8_t* dst);
122 int num_pixels, uint8_t* dst);
124 int num_pixels, uint8_t* dst);
[all …]
Dlossless_sse41.c25 int num_pixels, uint32_t* dst) { in TransformColorInverse_SSE41() argument
38 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColorInverse_SSE41()
50 if (i != num_pixels) { in TransformColorInverse_SSE41()
51 VP8LTransformColorInverse_C(m, src + i, num_pixels - i, dst + i); in TransformColorInverse_SSE41()
58 while (num_pixels >= 16) { \
75 num_pixels -= 16; \
79 static void ConvertBGRAToRGB_SSE41(const uint32_t* src, int num_pixels, in ConvertBGRAToRGB_SSE41() argument
92 if (num_pixels > 0) { in ConvertBGRAToRGB_SSE41()
93 VP8LConvertBGRAToRGB_C((const uint32_t*)in, num_pixels, (uint8_t*)out); in ConvertBGRAToRGB_SSE41()
98 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR_SSE41() argument
[all …]
Dlossless_enc_sse2.c30 int num_pixels) { in SubtractGreenFromBlueAndRed_SSE2() argument
32 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed_SSE2()
41 if (i != num_pixels) { in SubtractGreenFromBlueAndRed_SSE2()
42 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed_SSE2()
53 uint32_t* argb_data, int num_pixels) { in TransformColor_SSE2() argument
60 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor_SSE2()
75 if (i != num_pixels) { in TransformColor_SSE2()
76 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor_SSE2()
428 int num_pixels, uint32_t* out) { in PredictorSub0_SSE2() argument
431 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorSub0_SSE2()
[all …]
Dlossless_enc_neon.c56 int num_pixels) { in SubtractGreenFromBlueAndRed_NEON() argument
57 const uint32_t* const end = argb_data + (num_pixels & ~3); in SubtractGreenFromBlueAndRed_NEON()
69 VP8LSubtractGreenFromBlueAndRed_C(argb_data, num_pixels & 3); in SubtractGreenFromBlueAndRed_NEON()
76 uint32_t* argb_data, int num_pixels) { in TransformColor_NEON() argument
103 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor_NEON()
125 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor_NEON()
Dupsampling_sse41.c98 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument
100 memcpy(r1, (tb), (num_pixels)); \
101 memcpy(r2, (bb), (num_pixels)); \
103 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 17 - (num_pixels)); \
104 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 17 - (num_pixels)); \
/third_party/cups-filters/cupsfilters/
Dcmyk.c73 int num_pixels) in cupsCMYKDoBlack() argument
86 if (cmyk == NULL || input == NULL || output == NULL || num_pixels <= 0) in cupsCMYKDoBlack()
99 while (num_pixels > 0) in cupsCMYKDoBlack()
109 num_pixels --; in cupsCMYKDoBlack()
114 while (num_pixels > 0) in cupsCMYKDoBlack()
137 num_pixels --; in cupsCMYKDoBlack()
142 while (num_pixels > 0) in cupsCMYKDoBlack()
167 num_pixels --; in cupsCMYKDoBlack()
172 while (num_pixels > 0) in cupsCMYKDoBlack()
185 num_pixels --; in cupsCMYKDoBlack()
[all …]
Ddriver.h187 unsigned char *output, int num_pixels);
190 unsigned char *output, int num_pixels);
206 short *output, int num_pixels);
209 short *output, int num_pixels);
212 short *output, int num_pixels);
215 short *output, int num_pixels);
/third_party/ffmpeg/libswscale/
Drgb2rgb.c148 int i, num_pixels = src_size >> 2; in rgb32to24() local
150 for (i = 0; i < num_pixels; i++) { in rgb32to24()
241 int i, num_pixels = src_size >> 1; in rgb16tobgr16() local
243 for (i = 0; i < num_pixels; i++) { in rgb16tobgr16()
251 int i, num_pixels = src_size >> 1; in rgb16tobgr15() local
253 for (i = 0; i < num_pixels; i++) { in rgb16tobgr15()
297 int i, num_pixels = src_size >> 1; in rgb15tobgr16() local
299 for (i = 0; i < num_pixels; i++) { in rgb15tobgr16()
307 int i, num_pixels = src_size >> 1; in rgb15tobgr15() local
309 for (i = 0; i < num_pixels; i++) { in rgb15tobgr15()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c484 unsigned num_pixels = type.length / 4; in lp_build_fetch_rgba_aos() local
638 for (k = 0; k < num_pixels; ++k) { in lp_build_fetch_rgba_aos()
641 packed = lp_build_gather_elem(gallivm, num_pixels, in lp_build_fetch_rgba_aos()
663 num_conv_src = num_pixels; in lp_build_fetch_rgba_aos()
666 if (num_pixels % 8 == 0) { in lp_build_fetch_rgba_aos()
668 tmps, num_pixels, tmps, num_pixels / 2); in lp_build_fetch_rgba_aos()
669 conv_type.length *= num_pixels / 4; in lp_build_fetch_rgba_aos()
670 num_conv_src = 4 * num_pixels / 8; in lp_build_fetch_rgba_aos()
680 type.length /= num_pixels / 4; in lp_build_fetch_rgba_aos()
681 num_conv_dst = num_pixels / 4; in lp_build_fetch_rgba_aos()
[all …]

123