Home
last modified time | relevance | path

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

12

/external/webp/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_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.h40 const uint32_t* upper, int num_pixels,
46 int num_pixels, uint32_t* dst);
58 int num_pixels, uint32_t* dst);
72 typedef void (*VP8LConvertFunc)(const uint32_t* src, int num_pixels,
81 void VP8LConvertFromBGRA(const uint32_t* const in_data, int num_pixels,
105 const uint32_t* src, int num_pixels,
108 void VP8LConvertBGRAToRGB_C(const uint32_t* src, int num_pixels, uint8_t* dst);
109 void VP8LConvertBGRAToRGBA_C(const uint32_t* src, int num_pixels, uint8_t* dst);
111 int num_pixels, uint8_t* dst);
113 int num_pixels, uint8_t* dst);
[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.c174 int num_pixels, uint32_t* out) { in GENERATE_PREDICTOR_ADD()
177 for (i = 0; i < num_pixels; ++i) { in GENERATE_PREDICTOR_ADD()
244 void VP8LAddGreenToBlueAndRed_C(const uint32_t* src, int num_pixels, in VP8LAddGreenToBlueAndRed_C() argument
247 for (i = 0; i < num_pixels; ++i) { in VP8LAddGreenToBlueAndRed_C()
270 const uint32_t* src, int num_pixels, in VP8LTransformColorInverse_C() argument
273 for (i = 0; i < num_pixels; ++i) { in VP8LTransformColorInverse_C()
428 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGB_C() argument
429 const uint32_t* const src_end = src + num_pixels; in VP8LConvertBGRAToRGB_C()
439 int num_pixels, uint8_t* dst) { in VP8LConvertBGRAToRGBA_C() argument
440 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()
50 uint32_t* argb_data, int num_pixels) { in TransformColor_SSE2() argument
62 for (i = 0; i + 4 <= num_pixels; i += 4) { in TransformColor_SSE2()
77 if (i != num_pixels) { in TransformColor_SSE2()
78 VP8LTransformColor_C(m, argb_data + i, num_pixels - i); in TransformColor_SSE2()
477 int num_pixels, uint32_t* out) { in PredictorSub0_SSE2() argument
480 for (i = 0; i + 4 <= num_pixels; i += 4) { in PredictorSub0_SSE2()
[all …]
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)); \
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) { \
Dlossless_enc_sse41.c25 int num_pixels) { in SubtractGreenFromBlueAndRed_SSE41() argument
29 for (i = 0; i + 4 <= num_pixels; i += 4) { in SubtractGreenFromBlueAndRed_SSE41()
36 if (i != num_pixels) { in SubtractGreenFromBlueAndRed_SSE41()
37 VP8LSubtractGreenFromBlueAndRed_C(argb_data + i, num_pixels - i); in SubtractGreenFromBlueAndRed_SSE41()
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()
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_common.h178 int num_pixels, uint32_t* out) { \
180 for (x = 0; x < num_pixels; ++x) { \
190 int num_pixels, uint32_t* out) { \
192 for (x = 0; x < num_pixels; ++x) { \
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_aos.c481 unsigned num_pixels = type.length / 4; in lp_build_fetch_rgba_aos() local
635 for (k = 0; k < num_pixels; ++k) { in lp_build_fetch_rgba_aos()
638 packed = lp_build_gather_elem(gallivm, num_pixels, in lp_build_fetch_rgba_aos()
660 num_conv_src = num_pixels; in lp_build_fetch_rgba_aos()
663 if (num_pixels % 8 == 0) { in lp_build_fetch_rgba_aos()
665 tmps, num_pixels, tmps, num_pixels / 2); in lp_build_fetch_rgba_aos()
666 conv_type.length *= num_pixels / 4; in lp_build_fetch_rgba_aos()
667 num_conv_src = 4 * num_pixels / 8; in lp_build_fetch_rgba_aos()
677 type.length /= num_pixels / 4; in lp_build_fetch_rgba_aos()
678 num_conv_dst = num_pixels / 4; in lp_build_fetch_rgba_aos()
[all …]
/external/webrtc/webrtc/modules/video_processing/
Dbrightness_detection.cc51 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()
Dvideo_processing_impl.cc64 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()
Dcontent_analysis.cc165 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()
Dcontent_analysis_sse2.cc19 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/libdrm/tests/exynos/
Dexynos_fimg2d_perf.c144 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/
Dtexcompress_cpal.c80 const void *indices, GLuint num_pixels, GLubyte *image) in paletted_to_color() argument
90 remain = num_pixels % 2; in paletted_to_color()
91 for (i = 0; i < num_pixels / 2; i++) { in paletted_to_color()
102 for (i = 0; i < num_pixels; i++) in paletted_to_color()
/external/webrtc/talk/media/base/
Dvideoadapter.cc252 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/
Dbrightness_detection_test.cc34 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()
Dvideo_processing_unittest.cc105 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/webrtc/webrtc/video/
Doveruse_frame_detector.cc220 bool OveruseFrameDetector::FrameSizeChanged(int num_pixels) const { in FrameSizeChanged()
221 if (num_pixels != num_pixels_) { in FrameSizeChanged()
234 void OveruseFrameDetector::ResetAll(int num_pixels) { in ResetAll() argument
235 num_pixels_ = num_pixels; in ResetAll()

12