• Home
  • Raw
  • Download

Lines Matching refs:kPixels

2324   const int kPixels = benchmark_width_ * benchmark_height_;  in TEST_F()  local
2325 align_buffer_page_end(src_pixels, kPixels * 4); in TEST_F()
2326 align_buffer_page_end(dst_pixels_opt, kPixels); in TEST_F()
2327 align_buffer_page_end(dst_pixels_c, kPixels); in TEST_F()
2329 MemRandomize(src_pixels, kPixels * 4); in TEST_F()
2330 MemRandomize(dst_pixels_opt, kPixels); in TEST_F()
2331 memcpy(dst_pixels_c, dst_pixels_opt, kPixels); in TEST_F()
2342 for (int i = 0; i < kPixels; ++i) { in TEST_F()
2352 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2353 align_buffer_page_end(orig_pixels, kPixels); in TEST_F()
2354 align_buffer_page_end(dst_pixels_opt, kPixels * 4); in TEST_F()
2355 align_buffer_page_end(dst_pixels_c, kPixels * 4); in TEST_F()
2357 MemRandomize(orig_pixels, kPixels); in TEST_F()
2358 MemRandomize(dst_pixels_opt, kPixels * 4); in TEST_F()
2359 memcpy(dst_pixels_c, dst_pixels_opt, kPixels * 4); in TEST_F()
2370 for (int i = 0; i < kPixels * 4; ++i) { in TEST_F()
2485 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2486 align_buffer_page_end(src_pixels, kPixels * 2); in TEST_F()
2487 align_buffer_page_end(tmp_pixels_u, kPixels); in TEST_F()
2488 align_buffer_page_end(tmp_pixels_v, kPixels); in TEST_F()
2489 align_buffer_page_end(dst_pixels_opt, kPixels * 2); in TEST_F()
2490 align_buffer_page_end(dst_pixels_c, kPixels * 2); in TEST_F()
2492 MemRandomize(src_pixels, kPixels * 2); in TEST_F()
2493 MemRandomize(tmp_pixels_u, kPixels); in TEST_F()
2494 MemRandomize(tmp_pixels_v, kPixels); in TEST_F()
2495 MemRandomize(dst_pixels_opt, kPixels * 2); in TEST_F()
2496 MemRandomize(dst_pixels_c, kPixels * 2); in TEST_F()
2517 for (int i = 0; i < kPixels * 2; ++i) { in TEST_F()
2529 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2530 align_buffer_page_end(src_pixels, kPixels * 2); in TEST_F()
2531 align_buffer_page_end(tmp_pixels_u, kPixels); in TEST_F()
2532 align_buffer_page_end(tmp_pixels_v, kPixels); in TEST_F()
2533 align_buffer_page_end(dst_pixels_opt, kPixels * 2); in TEST_F()
2534 align_buffer_page_end(dst_pixels_c, kPixels * 2); in TEST_F()
2536 MemRandomize(src_pixels, kPixels * 2); in TEST_F()
2537 MemRandomize(tmp_pixels_u, kPixels); in TEST_F()
2538 MemRandomize(tmp_pixels_v, kPixels); in TEST_F()
2539 MemRandomize(dst_pixels_opt, kPixels * 2); in TEST_F()
2540 MemRandomize(dst_pixels_c, kPixels * 2); in TEST_F()
2560 for (int i = 0; i < kPixels * 2; ++i) { in TEST_F()
2572 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2573 align_buffer_page_end(src_pixels, kPixels * 3); in TEST_F()
2574 align_buffer_page_end(tmp_pixels_r, kPixels); in TEST_F()
2575 align_buffer_page_end(tmp_pixels_g, kPixels); in TEST_F()
2576 align_buffer_page_end(tmp_pixels_b, kPixels); in TEST_F()
2577 align_buffer_page_end(dst_pixels_opt, kPixels * 3); in TEST_F()
2578 align_buffer_page_end(dst_pixels_c, kPixels * 3); in TEST_F()
2580 MemRandomize(src_pixels, kPixels * 3); in TEST_F()
2581 MemRandomize(tmp_pixels_r, kPixels); in TEST_F()
2582 MemRandomize(tmp_pixels_g, kPixels); in TEST_F()
2583 MemRandomize(tmp_pixels_b, kPixels); in TEST_F()
2584 MemRandomize(dst_pixels_opt, kPixels * 3); in TEST_F()
2585 MemRandomize(dst_pixels_c, kPixels * 3); in TEST_F()
2607 for (int i = 0; i < kPixels * 3; ++i) { in TEST_F()
2620 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2621 align_buffer_page_end(src_pixels, kPixels * 3); in TEST_F()
2622 align_buffer_page_end(tmp_pixels_r, kPixels); in TEST_F()
2623 align_buffer_page_end(tmp_pixels_g, kPixels); in TEST_F()
2624 align_buffer_page_end(tmp_pixels_b, kPixels); in TEST_F()
2625 align_buffer_page_end(dst_pixels_opt, kPixels * 3); in TEST_F()
2626 align_buffer_page_end(dst_pixels_c, kPixels * 3); in TEST_F()
2628 MemRandomize(src_pixels, kPixels * 3); in TEST_F()
2629 MemRandomize(tmp_pixels_r, kPixels); in TEST_F()
2630 MemRandomize(tmp_pixels_g, kPixels); in TEST_F()
2631 MemRandomize(tmp_pixels_b, kPixels); in TEST_F()
2632 MemRandomize(dst_pixels_opt, kPixels * 3); in TEST_F()
2633 MemRandomize(dst_pixels_c, kPixels * 3); in TEST_F()
2654 for (int i = 0; i < kPixels * 3; ++i) { in TEST_F()
2669 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2670 align_buffer_page_end(src_pixels_u, kPixels * 2); in TEST_F()
2671 align_buffer_page_end(src_pixels_v, kPixels * 2); in TEST_F()
2672 align_buffer_page_end(dst_pixels_uv_opt, kPixels * 2 * 2); in TEST_F()
2673 align_buffer_page_end(dst_pixels_uv_c, kPixels * 2 * 2); in TEST_F()
2675 MemRandomize(src_pixels_u, kPixels * 2); in TEST_F()
2676 MemRandomize(src_pixels_v, kPixels * 2); in TEST_F()
2677 memset(dst_pixels_uv_opt, 0, kPixels * 2 * 2); in TEST_F()
2678 memset(dst_pixels_uv_c, 1, kPixels * 2 * 2); in TEST_F()
2682 reinterpret_cast<uint16_t*>(dst_pixels_uv_c), 64, kPixels); in TEST_F()
2690 kPixels); in TEST_F()
2695 kPixels); in TEST_F()
2699 for (int i = 0; i < kPixels * 2 * 2; ++i) { in TEST_F()
2713 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2714 align_buffer_page_end(src_pixels_y, kPixels * 2); in TEST_F()
2715 align_buffer_page_end(dst_pixels_y_opt, kPixels * 2); in TEST_F()
2716 align_buffer_page_end(dst_pixels_y_c, kPixels * 2); in TEST_F()
2718 MemRandomize(src_pixels_y, kPixels * 2); in TEST_F()
2719 memset(dst_pixels_y_opt, 0, kPixels * 2); in TEST_F()
2720 memset(dst_pixels_y_c, 1, kPixels * 2); in TEST_F()
2723 reinterpret_cast<uint16_t*>(dst_pixels_y_c), 64, kPixels); in TEST_F()
2730 kPixels); in TEST_F()
2734 kPixels); in TEST_F()
2738 for (int i = 0; i < kPixels * 2; ++i) { in TEST_F()
2749 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2750 align_buffer_page_end(src_pixels_y, kPixels * 2); in TEST_F()
2751 align_buffer_page_end(dst_pixels_y_opt, kPixels); in TEST_F()
2752 align_buffer_page_end(dst_pixels_y_c, kPixels); in TEST_F()
2754 MemRandomize(src_pixels_y, kPixels * 2); in TEST_F()
2755 memset(dst_pixels_y_opt, 0, kPixels); in TEST_F()
2756 memset(dst_pixels_y_c, 1, kPixels); in TEST_F()
2770 for (int i = 0; i < kPixels; ++i) { in TEST_F()
2783 const int kPixels = (benchmark_width_ * benchmark_height_ + 31) & ~31; in TEST_F() local
2784 align_buffer_page_end(src_pixels_y, kPixels * 2); in TEST_F()
2785 align_buffer_page_end(dst_pixels_y_opt, kPixels); in TEST_F()
2786 align_buffer_page_end(dst_pixels_y_c, kPixels); in TEST_F()
2788 MemRandomize(src_pixels_y, kPixels * 2); in TEST_F()
2790 for (int i = 0; i < kPixels; ++i) { in TEST_F()
2794 memset(dst_pixels_y_opt, 0, kPixels); in TEST_F()
2795 memset(dst_pixels_y_c, 1, kPixels); in TEST_F()
2798 dst_pixels_y_c, 16384, kPixels); in TEST_F()
2805 dst_pixels_y_opt, 16384, kPixels); in TEST_F()
2808 dst_pixels_y_opt, 16384, kPixels); in TEST_F()
2811 dst_pixels_y_opt, 16384, kPixels); in TEST_F()
2815 for (int i = 0; i < kPixels; ++i) { in TEST_F()
2826 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
2827 align_buffer_page_end(src_pixels_y, kPixels); in TEST_F()
2828 align_buffer_page_end(dst_pixels_y_opt, kPixels * 2); in TEST_F()
2829 align_buffer_page_end(dst_pixels_y_c, kPixels * 2); in TEST_F()
2831 MemRandomize(src_pixels_y, kPixels); in TEST_F()
2832 memset(dst_pixels_y_opt, 0, kPixels * 2); in TEST_F()
2833 memset(dst_pixels_y_c, 1, kPixels * 2); in TEST_F()
2849 for (int i = 0; i < kPixels * 2; ++i) { in TEST_F()
2861 const int kPixels = (benchmark_width_ * benchmark_height_ + 31) & ~31; in TEST_F() local
2862 align_buffer_page_end(src_pixels_y, kPixels); in TEST_F()
2863 align_buffer_page_end(dst_pixels_y_opt, kPixels * 2); in TEST_F()
2864 align_buffer_page_end(dst_pixels_y_c, kPixels * 2); in TEST_F()
2866 MemRandomize(src_pixels_y, kPixels); in TEST_F()
2867 memset(dst_pixels_y_opt, 0, kPixels * 2); in TEST_F()
2868 memset(dst_pixels_y_c, 1, kPixels * 2); in TEST_F()
2871 1024, kPixels); in TEST_F()
2879 kPixels); in TEST_F()
2883 kPixels); in TEST_F()
2887 kPixels); in TEST_F()
2891 for (int i = 0; i < kPixels * 2; ++i) { in TEST_F()
2909 const int kPixels = (benchmark_width * benchmark_height + 7) & ~7; in TestScaleMaxSamples() local
2910 align_buffer_page_end(orig_y, kPixels * 4 * 3 + 48); in TestScaleMaxSamples()
2911 uint8_t* dst_c = orig_y + kPixels * 4 + 16; in TestScaleMaxSamples()
2912 uint8_t* dst_opt = orig_y + kPixels * 4 * 2 + 32; in TestScaleMaxSamples()
2917 for (i = 0; i < kPixels; ++i) { in TestScaleMaxSamples()
2920 memset(dst_c, 0, kPixels * 4); in TestScaleMaxSamples()
2921 memset(dst_opt, 1, kPixels * 4); in TestScaleMaxSamples()
2924 reinterpret_cast<float*>(dst_c), scale, kPixels); in TestScaleMaxSamples()
2931 kPixels); in TestScaleMaxSamples()
2935 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleMaxSamples()
2940 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleMaxSamples()
2945 for (i = 0; i < kPixels; ++i) { in TestScaleMaxSamples()
2977 const int kPixels = (benchmark_width * benchmark_height + 7) & ~7; in TestScaleSumSamples() local
2978 align_buffer_page_end(orig_y, kPixels * 4 * 3); in TestScaleSumSamples()
2979 uint8_t* dst_c = orig_y + kPixels * 4; in TestScaleSumSamples()
2980 uint8_t* dst_opt = orig_y + kPixels * 4 * 2; in TestScaleSumSamples()
2985 for (i = 0; i < kPixels; ++i) { in TestScaleSumSamples()
2988 memset(dst_c, 0, kPixels * 4); in TestScaleSumSamples()
2989 memset(dst_opt, 1, kPixels * 4); in TestScaleSumSamples()
2992 reinterpret_cast<float*>(dst_c), scale, kPixels); in TestScaleSumSamples()
2999 kPixels); in TestScaleSumSamples()
3003 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleSumSamples()
3008 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleSumSamples()
3012 float mse_opt = sum_opt / kPixels * 4; in TestScaleSumSamples()
3013 float mse_c = sum_c / kPixels * 4; in TestScaleSumSamples()
3024 for (i = 0; i < kPixels; ++i) { in TestScaleSumSamples()
3055 const int kPixels = (benchmark_width * benchmark_height + 7) & ~7; in TestScaleSamples() local
3056 align_buffer_page_end(orig_y, kPixels * 4 * 3); in TestScaleSamples()
3057 uint8_t* dst_c = orig_y + kPixels * 4; in TestScaleSamples()
3058 uint8_t* dst_opt = orig_y + kPixels * 4 * 2; in TestScaleSamples()
3063 for (i = 0; i < kPixels; ++i) { in TestScaleSamples()
3066 memset(dst_c, 0, kPixels * 4); in TestScaleSamples()
3067 memset(dst_opt, 1, kPixels * 4); in TestScaleSamples()
3070 reinterpret_cast<float*>(dst_c), scale, kPixels); in TestScaleSamples()
3076 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleSamples()
3079 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleSamples()
3083 reinterpret_cast<float*>(dst_opt), scale, kPixels); in TestScaleSamples()
3088 for (i = 0; i < kPixels; ++i) { in TestScaleSamples()
3118 const int kPixels = (benchmark_width * benchmark_height + 15) & ~15; in TestCopySamples() local
3119 align_buffer_page_end(orig_y, kPixels * 4 * 3); in TestCopySamples()
3120 uint8_t* dst_c = orig_y + kPixels * 4; in TestCopySamples()
3121 uint8_t* dst_opt = orig_y + kPixels * 4 * 2; in TestCopySamples()
3126 for (i = 0; i < kPixels; ++i) { in TestCopySamples()
3129 memset(dst_c, 0, kPixels * 4); in TestCopySamples()
3130 memset(dst_opt, 1, kPixels * 4); in TestCopySamples()
3133 kPixels * 4); in TestCopySamples()
3138 CopyRow_NEON(orig_y, dst_opt, kPixels * 4); in TestCopySamples()
3140 CopyRow_C(orig_y, dst_opt, kPixels * 4); in TestCopySamples()
3143 CopyRow_C(orig_y, dst_opt, kPixels * 4); in TestCopySamples()
3148 for (i = 0; i < kPixels; ++i) { in TestCopySamples()
3279 const int kPixels = (benchmark_width * benchmark_height + 7) & ~7; in TestFloatDivToByte() local
3280 align_buffer_page_end(src_weights, kPixels * 4); in TestFloatDivToByte()
3281 align_buffer_page_end(src_values, kPixels * 4); in TestFloatDivToByte()
3282 align_buffer_page_end(dst_out_c, kPixels); in TestFloatDivToByte()
3283 align_buffer_page_end(dst_out_opt, kPixels); in TestFloatDivToByte()
3284 align_buffer_page_end(dst_mask_c, kPixels); in TestFloatDivToByte()
3285 align_buffer_page_end(dst_mask_opt, kPixels); in TestFloatDivToByte()
3290 for (i = 0; i < kPixels; ++i) { in TestFloatDivToByte()
3295 memset(dst_out_c, 0, kPixels); in TestFloatDivToByte()
3296 memset(dst_out_opt, 1, kPixels); in TestFloatDivToByte()
3297 memset(dst_mask_c, 2, kPixels); in TestFloatDivToByte()
3298 memset(dst_mask_opt, 3, kPixels); in TestFloatDivToByte()
3302 dst_mask_c, kPixels); in TestFloatDivToByte()
3309 dst_mask_opt, kPixels); in TestFloatDivToByte()
3313 dst_mask_opt, kPixels); in TestFloatDivToByte()
3318 dst_mask_opt, kPixels); in TestFloatDivToByte()
3323 for (i = 0; i < kPixels; ++i) { in TestFloatDivToByte()
3354 const int kPixels = benchmark_width_ * benchmark_height_; in TEST_F() local
3355 align_buffer_page_end(src_pixels_vu, kPixels * 2); in TEST_F()
3356 align_buffer_page_end(dst_pixels_uv, kPixels * 2); in TEST_F()
3358 MemRandomize(src_pixels_vu, kPixels * 2); in TEST_F()
3359 memset(dst_pixels_uv, 1, kPixels * 2); in TEST_F()
3361 UVToVURow_C(src_pixels_vu, dst_pixels_uv, kPixels); in TEST_F()
3363 for (int i = 0; i < kPixels; ++i) { in TEST_F()