Lines Matching refs:min_num_pixels
632 int min_num_pixels = INT_MAX; in AdaptToMinimumFormat() local
637 (encoder_desired_num_pixels_ < min_num_pixels)) { in AdaptToMinimumFormat()
639 min_num_pixels = encoder_desired_num_pixels_; in AdaptToMinimumFormat()
643 (cpu_desired_num_pixels_ <= min_num_pixels)) { in AdaptToMinimumFormat()
644 if (cpu_desired_num_pixels_ < min_num_pixels) { in AdaptToMinimumFormat()
649 min_num_pixels = cpu_desired_num_pixels_; in AdaptToMinimumFormat()
652 if (!input.IsSize0x0() && min_num_pixels != INT_MAX) { in AdaptToMinimumFormat()
653 float scale = FindClosestScale(input.width, input.height, min_num_pixels); in AdaptToMinimumFormat()
654 min_num_pixels = static_cast<int>(input.width * scale + .5f) * in AdaptToMinimumFormat()
658 if (view_desired_num_pixels_ <= min_num_pixels) { in AdaptToMinimumFormat()
659 if (view_desired_num_pixels_ < min_num_pixels) { in AdaptToMinimumFormat()
664 min_num_pixels = view_desired_num_pixels_; in AdaptToMinimumFormat()
669 scale = FindLowerScale(input.width, input.height, min_num_pixels); in AdaptToMinimumFormat()
670 min_num_pixels = static_cast<int>(input.width * scale + .5f) * in AdaptToMinimumFormat()
679 SetOutputNumPixels(min_num_pixels); in AdaptToMinimumFormat()
700 << " Pixels: " << min_num_pixels in AdaptToMinimumFormat()