Move all core types into namespaces (#1886)

* Reorganize namespaces

- Most types are now moved into the `melonDS` namespace
- Only good chance to do this for a while, since a big refactor is next

* Fix the build
This commit is contained in:
Jesse Talavera-Greenberg
2023-11-25 12:32:09 -05:00
committed by GitHub
parent 651b0f680c
commit 346dd4006e
178 changed files with 529 additions and 268 deletions

View File

@ -89,11 +89,11 @@ public:
void setXFlip(bool flip);
void captureFrame(u32* frame, int width, int height, bool yuv);
void captureFrame(melonDS::u32* frame, int width, int height, bool yuv);
void feedFrame(u32* frame, int width, int height, bool yuv);
void feedFrame_UYVY(u32* frame, int width, int height);
void feedFrame_NV12(u8* planeY, u8* planeUV, int width, int height);
void feedFrame(melonDS::u32* frame, int width, int height, bool yuv);
void feedFrame_UYVY(melonDS::u32* frame, int width, int height);
void feedFrame_NV12(melonDS::u8* planeY, melonDS::u8* planeUV, int width, int height);
signals:
void camStartSignal();
@ -120,15 +120,15 @@ private:
int frameWidth, frameHeight;
bool frameFormatYUV;
u32* frameBuffer;
u32* tempFrameBuffer;
melonDS::u32* frameBuffer;
melonDS::u32* tempFrameBuffer;
QMutex frameMutex;
bool xFlip;
void copyFrame_Straight(u32* src, int swidth, int sheight, u32* dst, int dwidth, int dheight, bool xflip, bool yuv);
void copyFrame_RGBtoYUV(u32* src, int swidth, int sheight, u32* dst, int dwidth, int dheight, bool xflip);
void copyFrame_YUVtoRGB(u32* src, int swidth, int sheight, u32* dst, int dwidth, int dheight, bool xflip);
void copyFrame_Straight(melonDS::u32* src, int swidth, int sheight, melonDS::u32* dst, int dwidth, int dheight, bool xflip, bool yuv);
void copyFrame_RGBtoYUV(melonDS::u32* src, int swidth, int sheight, melonDS::u32* dst, int dwidth, int dheight, bool xflip);
void copyFrame_YUVtoRGB(melonDS::u32* src, int swidth, int sheight, melonDS::u32* dst, int dwidth, int dheight, bool xflip);
};
#endif // CAMERAMANAGER_H