Home
last modified time | relevance | path

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

12

/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)); \
Dupsampling_sse2.c96 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument
98 memcpy(r1, (tb), (num_pixels)); \
99 memcpy(r2, (bb), (num_pixels)); \
101 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 17 - (num_pixels)); \
102 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 17 - (num_pixels)); \
Dlossless_enc_mips_dsp_r2.c22 int num_pixels) { in SubtractGreenFromBlueAndRed_MIPSdspR2() argument
24 uint32_t* const p_loop1_end = argb_data + (num_pixels & ~3); in SubtractGreenFromBlueAndRed_MIPSdspR2()
25 uint32_t* const p_loop2_end = p_loop1_end + (num_pixels & 3); in SubtractGreenFromBlueAndRed_MIPSdspR2()
82 uint32_t* data, int num_pixels) { in TransformColor_MIPSdspR2() argument
88 uint32_t* const p_loop_end = data + (num_pixels & ~1); in TransformColor_MIPSdspR2()
148 if (num_pixels & 1) { in TransformColor_MIPSdspR2()
Dupsampling_neon.c66 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument
68 memcpy(r1, (tb), (num_pixels)); \
69 memcpy(r2, (bb), (num_pixels)); \
71 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 9 - (num_pixels)); \
72 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 9 - (num_pixels)); \
Dlossless_enc_sse41.c28 int num_pixels) { in SubtractGreenFromBlueAndRed_SSE41() argument
32 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed_SSE41()
39 if (i != num_pixels) { in SubtractGreenFromBlueAndRed_SSE41()
40 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed_SSE41()
Dlossless_enc.c522 void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, int num_pixels) { in VP8LSubtractGreenFromBlueAndRed_C() argument
524 for (i = 0; i < num_pixels; ++i) { in VP8LSubtractGreenFromBlueAndRed_C()
542 int num_pixels) { in VP8LTransformColor_C() argument
544 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColor_C()
725 int num_pixels, uint32_t* out) { in PredictorSub0_C() argument
727 for (i = 0; i < num_pixels; ++i) out[i] = VP8LSubPixels(in[i], ARGB_BLACK); in PredictorSub0_C()
732 int num_pixels, uint32_t* out) { in PredictorSub1_C() argument
734 for (i = 0; i < num_pixels; ++i) out[i] = VP8LSubPixels(in[i], in[i - 1]); in PredictorSub1_C()
743 int num_pixels, uint32_t* out) { \
746 for (x = 0; x < num_pixels; ++x) { \
/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);
Drgb.c57 int num_pixels) in cupsRGBDoGray() argument
73 if (!rgbptr || !input || !output || num_pixels <= 0) in cupsRGBDoGray()
90 while (num_pixels > 0) in cupsRGBDoGray()
96 num_pixels --; in cupsRGBDoGray()
170 int num_pixels) in cupsRGBDoRGB() argument
193 if (!rgbptr || !input || !output || num_pixels <= 0) in cupsRGBDoRGB()
210 while (num_pixels > 0) in cupsRGBDoRGB()
216 num_pixels --; in cupsRGBDoRGB()
/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 …]
/third_party/ffmpeg/libavcodec/
Dqtrle.c152 int num_pixels = (bpp == 4) ? 8 : 16; in qtrle_decode_2n4bpp() local
155 pixel_ptr = row_ptr + (num_pixels * (bytestream2_get_byte(&s->g) - 1)); in qtrle_decode_2n4bpp()
163 pixel_ptr += (num_pixels * (bytestream2_get_byte(&s->g) - 1)); in qtrle_decode_2n4bpp()
170 for (i = num_pixels-1; i >= 0; i--) { in qtrle_decode_2n4bpp()
171 … pi[num_pixels-1-i] = (bytestream2_peek_byte(&s->g) >> ((i*bpp) & 0x07)) & ((1<<bpp)-1); in qtrle_decode_2n4bpp()
172 bytestream2_skip(&s->g, ((i & ((num_pixels>>2)-1)) == 0)); in qtrle_decode_2n4bpp()
174 CHECK_PIXEL_PTR(rle_code * num_pixels); in qtrle_decode_2n4bpp()
176 memcpy(&rgb[pixel_ptr], &pi, num_pixels); in qtrle_decode_2n4bpp()
177 pixel_ptr += num_pixels; in qtrle_decode_2n4bpp()
182 CHECK_PIXEL_PTR(rle_code*(num_pixels>>2)); in qtrle_decode_2n4bpp()
/third_party/astc-encoder/Source/
Dastcenccli_image_external.cpp121 size_t num_pixels = dim_x * dim_y; in load_png_with_wuffs() local
122 if (num_pixels > (SIZE_MAX / 4)) in load_png_with_wuffs()
147 …lice_u8 pixbuf_slice = wuffs_base__make_slice_u8((uint8_t*)malloc(num_pixels * 4), num_pixels * 4); in load_png_with_wuffs()
/third_party/libdrm/tests/exynos/
Dexynos_fimg2d_perf.c151 unsigned num_pixels = 0; in fimg2d_perf_multi() local
172 num_pixels += w * h; in fimg2d_perf_multi()
185 fprintf(stderr, "error: iteration %u failed (num_pixels = %u)\n", i, num_pixels); in fimg2d_perf_multi()
196 printf("{%u,%llu}", num_pixels, g2d_time); in fimg2d_perf_multi()
198 printf("num_pixels = %u, usecs = %llu\n", num_pixels, g2d_time); in fimg2d_perf_multi()
/third_party/mesa3d/src/mesa/main/
Dtexcompress_cpal.c81 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color() argument
91 remain = num_pixels % 2; in paletted_to_color()
92 for (i = 0; i < num_pixels / 2; i++) { in paletted_to_color()
103 for (i = 0; i < num_pixels; i++) in paletted_to_color()

12