android/ndk_camera: Fix rotation
`width` and `height` are not necessarily swapped at this point
This commit is contained in:
parent
8a7dacb9c7
commit
7d93f46a03
@ -382,7 +382,7 @@ std::vector<u16> Interface::ReceiveFrame() {
|
||||
std::swap(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));
|
||||
converted.Clear();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user