/external/chromium_org/third_party/libwebp/dsp/ |
D | lossless_neon.c | 30 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument 31 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGBA() 41 VP8LConvertBGRAToRGBA_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGBA() 45 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR() argument 46 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToBGR() 53 VP8LConvertBGRAToBGR_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToBGR() 57 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB() argument 58 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGB() 65 VP8LConvertBGRAToRGB_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGB() 75 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument [all …]
|
D | lossless.h | 34 typedef void (*VP8LProcessBlueAndRedFunc)(uint32_t* argb_data, int num_pixels); 46 uint32_t* argb_data, int num_pixels); 50 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels, 60 uint32_t* data, int num_pixels); 62 uint32_t* data, int num_pixels); 65 int num_pixels, uint8_t* dst); 67 int num_pixels, uint8_t* dst); 69 int num_pixels, uint8_t* dst); 71 int num_pixels, uint8_t* dst); 73 int num_pixels, uint8_t* dst); [all …]
|
D | upsampling_sse2.c | 96 #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)); \ 108 top_dst, bottom_dst, cur_x, num_pixels) { \ argument 110 for (n = 0; n < (num_pixels); ++n) { \ 115 for (n = 0; n < (num_pixels); ++n) { \
|
D | lossless_sse2.c | 159 static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) { in SubtractGreenFromBlueAndRed() argument 162 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed() 172 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed() 175 static void AddGreenToBlueAndRed(uint32_t* argb_data, int num_pixels) { in AddGreenToBlueAndRed() argument 178 for (i = 0; i + 4 <= num_pixels; i += 4) { in AddGreenToBlueAndRed() 188 VP8LAddGreenToBlueAndRed_C(argb_data + i, num_pixels - i); in AddGreenToBlueAndRed() 210 int num_pixels) { in TransformColor() argument 217 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor() 244 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor() 249 int num_pixels) { in TransformColorInverse() argument [all …]
|
D | lossless.c | 786 void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, int num_pixels) { in VP8LSubtractGreenFromBlueAndRed_C() argument 788 for (i = 0; i < num_pixels; ++i) { in VP8LSubtractGreenFromBlueAndRed_C() 799 void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels) { in VP8LAddGreenToBlueAndRed_C() argument 801 for (i = 0; i < num_pixels; ++i) { in VP8LAddGreenToBlueAndRed_C() 838 int num_pixels) { in VP8LTransformColor_C() argument 840 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColor_C() 856 int num_pixels) { in VP8LTransformColorInverse_C() argument 858 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColorInverse_C() 1289 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGB_C() argument 1290 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGB_C() [all …]
|
D | upsampling_neon.c | 79 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument 81 memcpy(r1, (tb), (num_pixels)); \ 82 memcpy(r2, (bb), (num_pixels)); \ 84 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 9 - (num_pixels)); \ 85 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 9 - (num_pixels)); \
|
/external/webp/src/dsp/ |
D | lossless_neon.c | 30 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument 31 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGBA() 41 VP8LConvertBGRAToRGBA_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGBA() 45 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR() argument 46 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToBGR() 53 VP8LConvertBGRAToBGR_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToBGR() 57 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB() argument 58 const uint32_t* const end = src + (num_pixels & ~15); in ConvertBGRAToRGB() 65 VP8LConvertBGRAToRGB_C(src, num_pixels & 15, dst); // left-overs in ConvertBGRAToRGB() 75 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument [all …]
|
D | lossless.h | 34 typedef void (*VP8LProcessBlueAndRedFunc)(uint32_t* argb_data, int num_pixels); 46 uint32_t* argb_data, int num_pixels); 50 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels, 60 uint32_t* data, int num_pixels); 62 uint32_t* data, int num_pixels); 65 int num_pixels, uint8_t* dst); 67 int num_pixels, uint8_t* dst); 69 int num_pixels, uint8_t* dst); 71 int num_pixels, uint8_t* dst); 73 int num_pixels, uint8_t* dst); [all …]
|
D | upsampling_sse2.c | 96 #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)); \ 108 top_dst, bottom_dst, cur_x, num_pixels) { \ argument 110 for (n = 0; n < (num_pixels); ++n) { \ 115 for (n = 0; n < (num_pixels); ++n) { \
|
D | lossless_sse2.c | 159 static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) { in SubtractGreenFromBlueAndRed() argument 162 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed() 172 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed() 175 static void AddGreenToBlueAndRed(uint32_t* argb_data, int num_pixels) { in AddGreenToBlueAndRed() argument 178 for (i = 0; i + 4 <= num_pixels; i += 4) { in AddGreenToBlueAndRed() 188 VP8LAddGreenToBlueAndRed_C(argb_data + i, num_pixels - i); in AddGreenToBlueAndRed() 210 int num_pixels) { in TransformColor() argument 217 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor() 244 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor() 249 int num_pixels) { in TransformColorInverse() argument [all …]
|
D | lossless.c | 786 void VP8LSubtractGreenFromBlueAndRed_C(uint32_t* argb_data, int num_pixels) { in VP8LSubtractGreenFromBlueAndRed_C() argument 788 for (i = 0; i < num_pixels; ++i) { in VP8LSubtractGreenFromBlueAndRed_C() 799 void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels) { in VP8LAddGreenToBlueAndRed_C() argument 801 for (i = 0; i < num_pixels; ++i) { in VP8LAddGreenToBlueAndRed_C() 838 int num_pixels) { in VP8LTransformColor_C() argument 840 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColor_C() 856 int num_pixels) { in VP8LTransformColorInverse_C() argument 858 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColorInverse_C() 1289 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGB_C() argument 1290 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGB_C() [all …]
|
D | upsampling_neon.c | 79 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument 81 memcpy(r1, (tb), (num_pixels)); \ 82 memcpy(r2, (bb), (num_pixels)); \ 84 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 9 - (num_pixels)); \ 85 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 9 - (num_pixels)); \
|
/external/chromium_org/third_party/webrtc/modules/video_processing/main/source/ |
D | brightness_detection.cc | 56 prop_low /= stats.num_pixels; in ProcessFrame() 64 prop_high /= stats.num_pixels; in ProcessFrame() 78 std_y = sqrt(std_y / stats.num_pixels); in ProcessFrame() 85 float pos_perc05 = stats.num_pixels * 0.05f; in ProcessFrame() 86 float pos_median = stats.num_pixels * 0.5f; in ProcessFrame() 87 float posPerc95 = stats.num_pixels * 0.95f; in ProcessFrame()
|
D | video_processing_impl.cc | 108 stats->num_pixels = (width * height) / ((1 << stats->subSamplWidth) * in GetFrameStats() 110 assert(stats->num_pixels > 0); in GetFrameStats() 113 stats->mean = stats->sum / stats->num_pixels; in GetFrameStats() 119 if (stats.num_pixels == 0) { in ValidFrameStats() 129 stats->num_pixels = 0; in ClearFrameStats()
|
D | content_analysis.cc | 166 uint32_t num_pixels = 0; // Counter for # of pixels. in TemporalDiffMetric_C() local 171 num_pixels += 1; in TemporalDiffMetric_C() 189 float const tempDiffAvg = (float)tempDiffSum / (float)(num_pixels); in TemporalDiffMetric_C() 190 float const pixelSumAvg = (float)pixelSum / (float)(num_pixels); in TemporalDiffMetric_C() 191 float const pixelSqSumAvg = (float)pixelSqSum / (float)(num_pixels); in TemporalDiffMetric_C()
|
D | brighten.cc | 27 int num_pixels = frame->width() * frame->height(); in Brighten() local 37 for (int i = 0; i < num_pixels; i++) { in Brighten()
|
D | content_analysis_sse2.cc | 19 uint32_t num_pixels = 0; // counter for # of pixels in TemporalDiffMetric_SSE2() local 75 num_pixels += (width_end - border_); in TemporalDiffMetric_SSE2() 102 const float tempDiffAvg = (float)tempDiffSum / (float)(num_pixels); in TemporalDiffMetric_SSE2() 103 const float pixelSumAvg = (float)pixelSum / (float)(num_pixels); in TemporalDiffMetric_SSE2() 104 const float pixelSqSumAvg = (float)pixelSqSum / (float)(num_pixels); in TemporalDiffMetric_SSE2()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_aos.c | 380 unsigned num_pixels = type.length / 4; in lp_build_fetch_rgba_aos() local 441 for (k = 0; k < num_pixels; ++k) { in lp_build_fetch_rgba_aos() 444 packed = lp_build_gather_elem(gallivm, num_pixels, in lp_build_fetch_rgba_aos() 468 tmps, num_pixels, &res, 1); in lp_build_fetch_rgba_aos() 488 tmp_type.length = num_pixels * 4; in lp_build_fetch_rgba_aos() 493 num_pixels, in lp_build_fetch_rgba_aos() 567 res = LLVMGetUndef(LLVMVectorType(i32t, num_pixels)); in lp_build_fetch_rgba_aos() 574 for (k = 0; k < num_pixels; ++k) { in lp_build_fetch_rgba_aos() 579 args[1] = lp_build_gather_elem_ptr(gallivm, num_pixels, in lp_build_fetch_rgba_aos() 582 if (num_pixels == 1) { in lp_build_fetch_rgba_aos() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_aos.c | 380 unsigned num_pixels = type.length / 4; in lp_build_fetch_rgba_aos() local 441 for (k = 0; k < num_pixels; ++k) { in lp_build_fetch_rgba_aos() 444 packed = lp_build_gather_elem(gallivm, num_pixels, in lp_build_fetch_rgba_aos() 468 tmps, num_pixels, &res, 1); in lp_build_fetch_rgba_aos() 488 tmp_type.length = num_pixels * 4; in lp_build_fetch_rgba_aos() 493 num_pixels, in lp_build_fetch_rgba_aos() 567 res = LLVMGetUndef(LLVMVectorType(i32t, num_pixels)); in lp_build_fetch_rgba_aos() 574 for (k = 0; k < num_pixels; ++k) { in lp_build_fetch_rgba_aos() 579 args[1] = lp_build_gather_elem_ptr(gallivm, num_pixels, in lp_build_fetch_rgba_aos() 582 if (num_pixels == 1) { in lp_build_fetch_rgba_aos() [all …]
|
/external/ceres-solver/examples/ |
D | pgm_image.h | 194 int num_pixels = width_*height_; in WriteToFile() local 195 for (int i = 0; i < num_pixels; ++i) { in WriteToFile() 256 int num_pixels = width_*height_; in ReadFromFile() local 257 data_.resize(num_pixels); in ReadFromFile() 260 for (int i = 0; i < num_pixels; ++i) { in ReadFromFile() 282 for (int i = 0; i < num_pixels; ++i) { in ReadFromFile()
|
/external/chromium_org/ui/gfx/ |
D | icon_util.cc | 413 size_t num_pixels = s.GetArea(); in CreateSkBitmapFromHICONHelper() local 414 memset(bits, 0, num_pixels * 4); in CreateSkBitmapFromHICONHelper() 419 scoped_ptr<bool[]> opaque(new bool[num_pixels]); in CreateSkBitmapFromHICONHelper() 420 for (size_t i = 0; i < num_pixels; ++i) in CreateSkBitmapFromHICONHelper() 424 memset(bits, 0, num_pixels * 4); in CreateSkBitmapFromHICONHelper() 426 memcpy(bitmap.getPixels(), static_cast<void*>(bits), num_pixels * 4); in CreateSkBitmapFromHICONHelper() 430 static_cast<const uint32*>(bitmap.getPixels()), num_pixels); in CreateSkBitmapFromHICONHelper() 436 for (size_t i = 0; i < num_pixels; ++p, ++i) { in CreateSkBitmapFromHICONHelper() 523 bool IconUtil::PixelsHaveAlpha(const uint32* pixels, size_t num_pixels) { in PixelsHaveAlpha() argument 524 for (const uint32* end = pixels + num_pixels; pixels != end; ++pixels) { in PixelsHaveAlpha()
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
D | texcompress_cpal.c | 83 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color() argument 93 remain = num_pixels % 2; in paletted_to_color() 94 for (i = 0; i < num_pixels / 2; i++) { in paletted_to_color() 105 for (i = 0; i < num_pixels; i++) in paletted_to_color()
|
/external/mesa3d/src/mesa/main/ |
D | texcompress_cpal.c | 83 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color() argument 93 remain = num_pixels % 2; in paletted_to_color() 94 for (i = 0; i < num_pixels / 2; i++) { in paletted_to_color() 105 for (i = 0; i < num_pixels; i++) in paletted_to_color()
|
/external/pixman/pixman/ |
D | pixman-inlines.h | 1074 int32_t num_pixels; \ 1126 num_pixels = ((src_width_fixed - vx - pixman_fixed_e) / unit_x) + 1; \ 1128 if (num_pixels > width_remain) \ 1129 num_pixels = width_remain; \ 1131 scanline_func (dst, mask, buf1, buf2, num_pixels, \ 1135 width_remain -= num_pixels; \ 1136 vx += num_pixels * unit_x; \ 1137 dst += num_pixels; \ 1140 mask += num_pixels; \ 1154 num_pixels = ((src_width_fixed - pixman_fixed_1 - vx - pixman_fixed_e) \ [all …]
|
/external/webp/src/dec/ |
D | alpha.c | 96 const size_t num_pixels = num_rows * width; in ALPHDecode() local 97 assert(dec->alpha_data_size_ >= ALPHA_HEADER_LEN + offset + num_pixels); in ALPHDecode() 99 dec->alpha_data_ + ALPHA_HEADER_LEN + offset, num_pixels); in ALPHDecode()
|