/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_mips_dsp_r2.c | 230 static void AddGreenToBlueAndRed(uint32_t* data, int num_pixels) { in AddGreenToBlueAndRed() argument 232 uint32_t* const p_loop1_end = data + (num_pixels & ~3); in AddGreenToBlueAndRed() 233 uint32_t* const p_loop2_end = data + num_pixels; in AddGreenToBlueAndRed() 284 uint32_t* data, int num_pixels) { in TransformColorInverse() argument 290 uint32_t* const p_loop_end = data + (num_pixels & ~1); in TransformColorInverse() 347 if (num_pixels & 1) VP8LTransformColorInverse_C(m, data, 1); in TransformColorInverse() 351 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB() argument 353 const uint32_t* const p_loop1_end = src + (num_pixels & ~3); in ConvertBGRAToRGB() 354 const uint32_t* const p_loop2_end = src + num_pixels; in ConvertBGRAToRGB() 403 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument [all …]
|
D | lossless.c | 238 void VP8LAddGreenToBlueAndRed_C(uint32_t* data, int num_pixels) { in VP8LAddGreenToBlueAndRed_C() argument 240 for (i = 0; i < num_pixels; ++i) { in VP8LAddGreenToBlueAndRed_C() 263 int num_pixels) { in VP8LTransformColorInverse_C() argument 265 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColorInverse_C() 417 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGB_C() argument 418 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGB_C() 428 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGBA_C() argument 429 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGBA_C() 440 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGBA4444_C() argument 441 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGBA4444_C() [all …]
|
D | lossless.h | 38 typedef void (*VP8LProcessBlueAndRedFunc)(uint32_t* argb_data, int num_pixels); 49 uint32_t* argb_data, int num_pixels); 63 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels, 72 void VP8LConvertFromBGRA(const uint32_t* const in_data, int num_pixels, 113 uint32_t* data, int num_pixels); 115 void VP8LConvertBGRAToRGB_C(const uint32_t* src, int num_pixels, uint8_t* dst); 116 void VP8LConvertBGRAToRGBA_C(const uint32_t* src, int num_pixels, uint8_t* dst); 118 int num_pixels, uint8_t* dst); 120 int num_pixels, uint8_t* dst); 121 void VP8LConvertBGRAToBGR_C(const uint32_t* src, int num_pixels, uint8_t* dst); [all …]
|
D | lossless_sse2.c | 158 static void AddGreenToBlueAndRed(uint32_t* argb_data, int num_pixels) { in AddGreenToBlueAndRed() argument 160 for (i = 0; i + 4 <= num_pixels; i += 4) { in AddGreenToBlueAndRed() 169 VP8LAddGreenToBlueAndRed_C(argb_data + i, num_pixels - i); in AddGreenToBlueAndRed() 176 uint32_t* argb_data, int num_pixels) { in TransformColorInverse() argument 190 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColorInverse() 206 VP8LTransformColorInverse_C(m, argb_data + i, num_pixels - i); in TransformColorInverse() 213 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument 216 while (num_pixels >= 8) { in ConvertBGRAToRGBA() 233 num_pixels -= 8; in ConvertBGRAToRGBA() 236 VP8LConvertBGRAToRGBA_C((const uint32_t*)in, num_pixels, (uint8_t*)out); in ConvertBGRAToRGBA() [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_enc_neon.c | 55 static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) { in SubtractGreenFromBlueAndRed() argument 56 const uint32_t* const end = argb_data + (num_pixels & ~3); in SubtractGreenFromBlueAndRed() 68 VP8LSubtractGreenFromBlueAndRed_C(argb_data, num_pixels & 3); in SubtractGreenFromBlueAndRed() 75 uint32_t* argb_data, int num_pixels) { in TransformColor() argument 102 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor() 124 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor()
|
D | lossless_enc_mips_dsp_r2.c | 22 int num_pixels) { in SubtractGreenFromBlueAndRed() argument 24 uint32_t* const p_loop1_end = argb_data + (num_pixels & ~3); in SubtractGreenFromBlueAndRed() 25 uint32_t* const p_loop2_end = p_loop1_end + (num_pixels & 3); in SubtractGreenFromBlueAndRed() 82 int num_pixels) { in TransformColor() argument 88 uint32_t* const p_loop_end = data + (num_pixels & ~1); in TransformColor() 148 if (num_pixels & 1) { in TransformColor()
|
D | lossless_enc_sse41.c | 24 static void SubtractGreenFromBlueAndRed(uint32_t* argb_data, int num_pixels) { in SubtractGreenFromBlueAndRed() argument 28 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed() 35 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed()
|
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/opencv3/3rdparty/libwebp/dsp/ |
D | upsampling_sse2.c | 100 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument 102 memcpy(r1, (tb), (num_pixels)); \ 103 memcpy(r2, (bb), (num_pixels)); \ 105 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 17 - (num_pixels)); \ 106 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 17 - (num_pixels)); \ 112 top_dst, bottom_dst, cur_x, num_pixels) { \ argument 115 for (n = 0; n < (num_pixels); ++n) { \ 121 for (n = 0; n < (num_pixels); ++n) { \
|
D | lossless.c | 1210 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB() argument 1211 const uint32_t* const src_end = src + num_pixels; in ConvertBGRAToRGB() 1221 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA() argument 1222 const uint32_t* const src_end = src + num_pixels; in ConvertBGRAToRGBA() 1233 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGBA4444() argument 1234 const uint32_t* const src_end = src + num_pixels; in ConvertBGRAToRGBA4444() 1250 int num_pixels, uint8_t* dst) { in ConvertBGRAToRGB565() argument 1251 const uint32_t* const src_end = src + num_pixels; in ConvertBGRAToRGB565() 1267 int num_pixels, uint8_t* dst) { in ConvertBGRAToBGR() argument 1268 const uint32_t* const src_end = src + num_pixels; in ConvertBGRAToBGR() [all …]
|
D | upsampling_neon.c | 78 #define UPSAMPLE_LAST_BLOCK(tb, bb, num_pixels, out) { \ argument 80 memcpy(r1, (tb), (num_pixels)); \ 81 memcpy(r2, (bb), (num_pixels)); \ 83 memset(r1 + (num_pixels), r1[(num_pixels) - 1], 9 - (num_pixels)); \ 84 memset(r2 + (num_pixels), r2[(num_pixels) - 1], 9 - (num_pixels)); \
|
/external/webrtc/webrtc/modules/video_processing/ |
D | brightness_detection.cc | 51 prop_low /= stats.num_pixels; in ProcessFrame() 59 prop_high /= stats.num_pixels; in ProcessFrame() 73 std_y = sqrt(std_y / stats.num_pixels); in ProcessFrame() 80 float pos_perc05 = stats.num_pixels * 0.05f; in ProcessFrame() 81 float pos_median = stats.num_pixels * 0.5f; in ProcessFrame() 82 float posPerc95 = stats.num_pixels * 0.95f; in ProcessFrame()
|
D | video_processing_impl.cc | 64 stats->num_pixels = (width * height) / ((1 << stats->sub_sampling_factor) * in GetFrameStats() 66 assert(stats->num_pixels > 0); in GetFrameStats() 69 stats->mean = stats->sum / stats->num_pixels; in GetFrameStats() 73 if (stats.num_pixels == 0) { in ValidFrameStats() 83 stats->num_pixels = 0; in ClearFrameStats() 93 int num_pixels = frame->width() * frame->height(); in Brighten() local 102 for (int i = 0; i < num_pixels; i++) { in Brighten()
|
D | content_analysis.cc | 165 uint32_t num_pixels = 0; // Counter for # of pixels. in TemporalDiffMetric_C() local 170 num_pixels += 1; in TemporalDiffMetric_C() 191 static_cast<float>(tempDiffSum) / static_cast<float>(num_pixels); in TemporalDiffMetric_C() 193 static_cast<float>(pixelSum) / static_cast<float>(num_pixels); in TemporalDiffMetric_C() 195 static_cast<float>(pixelSqSum) / static_cast<float>(num_pixels); in TemporalDiffMetric_C()
|
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() 104 static_cast<float>(tempDiffSum) / static_cast<float>(num_pixels); in TemporalDiffMetric_SSE2() 106 static_cast<float>(pixelSum) / static_cast<float>(num_pixels); in TemporalDiffMetric_SSE2() 108 static_cast<float>(pixelSqSum) / static_cast<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/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/libdrm/tests/exynos/ |
D | exynos_fimg2d_perf.c | 144 unsigned num_pixels = 0; in fimg2d_perf_multi() local 165 num_pixels += w * h; in fimg2d_perf_multi() 178 fprintf(stderr, "error: iteration %u failed (num_pixels = %u)\n", i, num_pixels); in fimg2d_perf_multi() 189 printf("{%u,%llu}", num_pixels, g2d_time); in fimg2d_perf_multi() 191 printf("num_pixels = %u, usecs = %llu\n", num_pixels, g2d_time); in fimg2d_perf_multi()
|
/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/webrtc/talk/media/base/ |
D | videoadapter.cc | 252 void VideoAdapter::SetOutputNumPixels(int num_pixels) { in SetOutputNumPixels() argument 253 output_num_pixels_ = num_pixels; in SetOutputNumPixels() 383 int* num_pixels) { in StepPixelCount() argument 386 *num_pixels /= 2; in StepPixelCount() 390 *num_pixels *= 2; in StepPixelCount() 619 int num_pixels = GetOutputNumPixels(); in IsMinimumFormat() local 620 return new_pixels <= num_pixels; in IsMinimumFormat()
|
/external/webrtc/webrtc/modules/video_processing/test/ |
D | brightness_detection_test.cc | 34 EXPECT_GT(stats.num_pixels, 0u); in TEST_F() 71 EXPECT_GT(stats.num_pixels, 0u); in TEST_F() 105 EXPECT_GT(stats.num_pixels, 0u); in TEST_F()
|
D | video_processing_unittest.cc | 105 EXPECT_EQ(stats.num_pixels, 0u); 144 EXPECT_GT(stats.num_pixels, 0u); 150 EXPECT_GT(stats.num_pixels, 0u); 159 EXPECT_GT(stats.num_pixels, 0u); 182 EXPECT_GT(stats.num_pixels, 0u); 188 static_cast<unsigned int>(stats.num_pixels),
|
/external/webp/src/dec/ |
D | alpha.c | 98 const size_t num_pixels = num_rows * width; in ALPHDecode() local 99 assert(dec->alpha_data_size_ >= ALPHA_HEADER_LEN + offset + num_pixels); in ALPHDecode() 101 dec->alpha_data_ + ALPHA_HEADER_LEN + offset, num_pixels); in ALPHDecode()
|