Lines Matching refs:dst_ratio
2500 float dst_ratio = 1.0f;2506 dst_ratio = (float)dst_w / (float)dst_h;2509 if (dst_ratio <= src_ratio) {2511 *crop_w = src_h * dst_ratio;2516 *crop_h = src_w / dst_ratio;2519 if (dst_ratio <= src_ratio) {2521 *crop_w = src_h * dst_ratio;2526 *crop_h = src_w / dst_ratio;