mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-31 18:20:01 -06:00
add support for NV12 camera format
This commit is contained in:
@ -42,13 +42,13 @@ class CameraManager;
|
||||
class CameraFrameDumper : public QVideoSink
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
public:
|
||||
CameraFrameDumper(QObject* parent = nullptr);
|
||||
|
||||
|
||||
public slots:
|
||||
void present(const QVideoFrame& frame);
|
||||
|
||||
|
||||
private:
|
||||
CameraManager* cam;
|
||||
};
|
||||
@ -92,6 +92,7 @@ public:
|
||||
void captureFrame(u32* frame, int width, int height, bool yuv);
|
||||
|
||||
void feedFrame(u32* frame, int width, int height, bool yuv);
|
||||
void feedFrame_NV12(u8* planeY, u8* planeUV, int width, int height);
|
||||
|
||||
signals:
|
||||
void camStartSignal();
|
||||
@ -119,6 +120,7 @@ private:
|
||||
int frameWidth, frameHeight;
|
||||
bool frameFormatYUV;
|
||||
u32* frameBuffer;
|
||||
u32* tempFrameBuffer;
|
||||
QMutex frameMutex;
|
||||
|
||||
bool xFlip;
|
||||
|
Reference in New Issue
Block a user