image2yuvconfig() should calculate uv_crop_width
image2yuvconfig() should calculate uv_crop_width and uv_crop_height from
y_crop_width and y_crop_height.
Use the same formula to calculate uv_width and uv_height.
The VP8 version of image2yuvconfig() also calculated y_width, y_height,
uv_width, uv_height incorrectly based on img->d_w and img->d_h.
This is a backport from libaom:
0607f6bef8 image2yuvconfig() should calculate uv_crop_width
Bug: 517413744
Change-Id: I8c099dbd36fe3c2cf9696868da8331f83c19828b
2 files changed