Searched refs:width_diff (Results 1 – 2 of 2) sorted by relevance
305 const float width_diff = (original_box.GetWidth() - size) / 2.0f; in GetCenteredSquare() local307 return BoundingSquare(original_box.left_ + width_diff, in GetCenteredSquare()
903 width_diff = target_width - width904 offset_crop_width = max_(-width_diff // 2, 0)905 offset_pad_width = max_(width_diff // 2, 0)