Searched refs:target_pixels (Results 1 – 2 of 2) sorted by relevance
61 int GetIncreasedMaxPixelsWanted(int target_pixels) { in GetIncreasedMaxPixelsWanted() argument62 if (target_pixels == std::numeric_limits<int>::max()) in GetIncreasedMaxPixelsWanted()73 RTC_DCHECK(target_pixels != std::numeric_limits<int>::max()); in GetIncreasedMaxPixelsWanted()74 return (target_pixels * 12) / 5; in GetIncreasedMaxPixelsWanted()77 bool CanDecreaseResolutionTo(int target_pixels, in CanDecreaseResolutionTo() argument83 return target_pixels < max_pixels_per_frame && in CanDecreaseResolutionTo()84 target_pixels >= input_state.min_pixels_per_frame(); in CanDecreaseResolutionTo()87 bool CanIncreaseResolutionTo(int target_pixels, in CanIncreaseResolutionTo() argument89 int max_pixels_wanted = GetIncreasedMaxPixelsWanted(target_pixels); in CanIncreaseResolutionTo()470 int target_pixels = in DecreaseResolution() local[all …]
58 int target_pixels, in FindScale() argument62 RTC_DCHECK_GT(target_pixels, 0); in FindScale()64 RTC_DCHECK_GE(max_pixels, target_pixels); in FindScale()69 if (target_pixels >= input_pixels) in FindScale()92 min_pixel_diff = std::abs(input_pixels - target_pixels); in FindScale()99 while (current_scale.scale_pixel_count(input_pixels) > target_pixels) { in FindScale()113 int diff = std::abs(target_pixels - output_pixels); in FindScale()