Lines Matching refs:dst_ratio
4046 float dst_ratio = 1.0f;
4052 dst_ratio = (float)dst_w / (float)dst_h;
4054 if (src_ratio != dst_ratio) {
4056 if (src_ratio <= dst_ratio) {
4059 *crop_h = src_w / dst_ratio;
4062 *crop_w = dst_h * dst_ratio;
4066 if (src_ratio <= dst_ratio) {
4069 *crop_h = src_w / dst_ratio;
4072 *crop_w = src_h * dst_ratio;