Home | History | Annotate | Download | only in thumbnails

Lines Matching refs:desired_aspect

488   float desired_aspect =
493 float aspect_change_delta = std::abs(computed_aspect - desired_aspect);
499 (computed_aspect / desired_aspect > kAspectRatioToleranceFactor ||
500 desired_aspect / computed_aspect > kAspectRatioToleranceFactor)) {
508 if (computed_aspect / desired_aspect > kAspectRatioToleranceFactor) {
517 static_cast<int>(computed_width / desired_aspect + 0.5f));
528 static_cast<int>(computed_width / desired_aspect + 0.5f));
533 new_computed_width = desired_aspect * computed_height + 0.5f;
542 static_cast<int>(desired_aspect * computed_height + 0.5f));
551 static_cast<int>(desired_aspect * computed_height + 0.5f));
553 new_computed_height = computed_width / desired_aspect + 0.5f;
564 if (std::abs(new_computed_aspect - desired_aspect) >
565 std::abs(computed_aspect - desired_aspect)) {
574 aspect_change_delta = std::abs(new_computed_aspect - desired_aspect);