Lines Matching refs:target_pixels
61 int GetIncreasedMaxPixelsWanted(int target_pixels) { in GetIncreasedMaxPixelsWanted() argument
62 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() argument
83 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() argument
89 int max_pixels_wanted = GetIncreasedMaxPixelsWanted(target_pixels); in CanIncreaseResolutionTo()
470 int target_pixels = in DecreaseResolution() local
472 if (!CanDecreaseResolutionTo(target_pixels, input_state, in DecreaseResolution()
477 RTC_LOG(LS_INFO) << "Scaling down resolution, max pixels: " << target_pixels; in DecreaseResolution()
479 target_pixels != std::numeric_limits<int>::max() in DecreaseResolution()
480 ? absl::optional<size_t>(target_pixels) in DecreaseResolution()
519 int target_pixels = input_state.frame_size_pixels().value(); in IncreaseResolution() local
522 target_pixels = std::numeric_limits<int>::max(); in IncreaseResolution()
524 target_pixels = GetHigherResolutionThan(target_pixels); in IncreaseResolution()
525 if (!CanIncreaseResolutionTo(target_pixels, in IncreaseResolution()
529 int max_pixels_wanted = GetIncreasedMaxPixelsWanted(target_pixels); in IncreaseResolution()
539 ? absl::optional<size_t>(target_pixels) in IncreaseResolution()