Commit b0157aa6 authored by Fergus Simpson's avatar Fergus Simpson
Browse files

frame_superres: Use calculate_scaled_size for scale check

Small change to calculate the encode size for scale checking using the
av1_calculate_scaled_size function used elsewhere instead of calculating
it in place. Done for constistency's sake.

Change-Id: I72626b729477e28e868cf9028ea4537267a12413
parent 87cf61b1
......@@ -1717,8 +1717,8 @@ uint8_t av1_calculate_next_superres_scale(const AV1_COMP *cpi, int width,
}
// Make sure overall reduction is no more than 1/2 of the source size.
if (new_num * width / SCALE_DENOMINATOR * 2 < oxcf->width ||
new_num * height / SCALE_DENOMINATOR * 2 < oxcf->height)
av1_calculate_scaled_size(&width, &height, new_num);
if (width * 2 < oxcf->width || height * 2 < oxcf->height)
new_num = SCALE_DENOMINATOR;
return new_num;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment