3DS, Qt: Fix flipped camera images (fixes #844)
Vicki Pfau vi@endrift.com
Fri, 04 Aug 2017 10:20:23 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
src/platform/3ds/main.c
→
src/platform/3ds/main.c
@@ -254,6 +254,7 @@ }
CAMU_SetSize(imageSource->cam, SIZE_QCIF, CONTEXT_A); CAMU_SetOutputFormat(imageSource->cam, OUTPUT_RGB_565, CONTEXT_A); CAMU_SetFrameRate(imageSource->cam, FRAME_RATE_30); + CAMU_FlipImage(imageSource->cam, FLIP_NONE, CONTEXT_A); CAMU_SetNoiseFilter(imageSource->cam, true); CAMU_SetAutoExposure(imageSource->cam, false);
M
src/platform/qt/VideoDumper.cpp
→
src/platform/qt/VideoDumper.cpp
@@ -39,7 +39,7 @@ image = image.rgbSwapped();
} else { #ifdef Q_OS_WIN // Qt's DirectShow plug-in is pretty dang buggy - image = image.mirrored(true); + image = image.mirrored(); #else image = image.copy(); // Create a deep copy of the bits #endif