android/ndk_camera: Fix rotation

`width` and `height` are not necessarily swapped at this point
This commit is contained in:
zhupengfei 2020-05-04 13:00:35 +08:00 committed by xperia64
parent fa30be7306
commit 151d4f4020

View File

@ -382,7 +382,7 @@ std::vector<u16> Interface::ReceiveFrame() {
std::swap(width, height); std::swap(width, height);
} }
YUVImage rotated(width, height); YUVImage rotated(width, height);
libyuv::I420Rotate(YUV(converted), YUV(rotated), height, width, libyuv::I420Rotate(YUV(converted), YUV(rotated), converted.width, converted.height,
static_cast<libyuv::RotationMode>(rotation)); static_cast<libyuv::RotationMode>(rotation));
converted.Clear(); converted.Clear();