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 bunnei
parent 70b82efc42
commit 55f72465ea

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();