Lines Matching refs:target_aspect_ratio
202 absl::optional<std::pair<int, int>> target_aspect_ratio; in AdaptFrameResolution() local
204 target_aspect_ratio = target_landscape_aspect_ratio_; in AdaptFrameResolution()
208 target_aspect_ratio = target_portrait_aspect_ratio_; in AdaptFrameResolution()
237 if (!target_aspect_ratio || target_aspect_ratio->first <= 0 || in AdaptFrameResolution()
238 target_aspect_ratio->second <= 0) { in AdaptFrameResolution()
243 target_aspect_ratio->first / in AdaptFrameResolution()
244 static_cast<float>(target_aspect_ratio->second); in AdaptFrameResolution()
294 absl::optional<std::pair<int, int>> target_aspect_ratio; in OnOutputFormatRequest() local
298 target_aspect_ratio = std::make_pair(format->width, format->height); in OnOutputFormatRequest()
303 OnOutputFormatRequest(target_aspect_ratio, max_pixel_count, max_fps); in OnOutputFormatRequest()
307 const absl::optional<std::pair<int, int>>& target_aspect_ratio, in OnOutputFormatRequest() argument
312 if (target_aspect_ratio && target_aspect_ratio->first > 0 && in OnOutputFormatRequest()
313 target_aspect_ratio->second > 0) { in OnOutputFormatRequest()
316 std::max(target_aspect_ratio->first, target_aspect_ratio->second); in OnOutputFormatRequest()
318 std::min(target_aspect_ratio->first, target_aspect_ratio->second); in OnOutputFormatRequest()