forked from eden-emu/eden
CAM: implement basic camera functions with a blank camera
This commit is contained in:
parent
77b58b740d
commit
caee572f78
14 changed files with 1517 additions and 169 deletions
28
src/core/frontend/camera/blank_camera.h
Normal file
28
src/core/frontend/camera/blank_camera.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2016 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "core/frontend/camera/factory.h"
|
||||
#include "core/frontend/camera/interface.h"
|
||||
|
||||
namespace Camera {
|
||||
|
||||
class BlankCamera final : public CameraInterface {
|
||||
public:
|
||||
void StartCapture() override;
|
||||
void StopCapture() override;
|
||||
void SetResolution(const Service::CAM::Resolution&) override;
|
||||
void SetFlip(Service::CAM::Flip) override;
|
||||
void SetEffect(Service::CAM::Effect) override;
|
||||
void SetFormat(Service::CAM::OutputFormat) override;
|
||||
std::vector<u16> ReceiveFrame() const override;
|
||||
|
||||
private:
|
||||
int width = 0;
|
||||
int height = 0;
|
||||
bool output_rgb = false;
|
||||
};
|
||||
|
||||
} // namespace Camera
|
||||
Loading…
Add table
Add a link
Reference in a new issue