3DS, Qt: Fix flipped camera images (fixes #844)

This commit is contained in:
Vicki Pfau 2017-08-04 10:20:23 -07:00
parent b1b78a46b5
commit a5852c6e12
2 changed files with 2 additions and 1 deletions

View File

@ -254,6 +254,7 @@ static void _resetCamera(struct m3DSImageSource* imageSource) {
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);

View File

@ -39,7 +39,7 @@ bool VideoDumper::present(const QVideoFrame& frame) {
} 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