|
OpenShot Library | libopenshot
0.7.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_CAMERACAPTUREREADER_H
14 #define OPENSHOT_CAMERACAPTUREREADER_H
38 std::map<std::string, std::string>
options;
47 void Close()
override;
49 std::shared_ptr<openshot::Frame>
GetFrame(int64_t number)
override;
50 bool IsOpen()
override {
return reader && reader->IsOpen(); };
51 std::string
Name()
override {
return "CameraCaptureReader"; };
52 std::string
Json()
const override;
53 void SetJson(
const std::string value)
override;
65 void ValidateSettings()
const;
70 std::unique_ptr<ScreenCaptureReader> reader;
std::map< std::string, std::string > options
void Open() override
Open the reader (and start consuming resources, such as images or video files)
std::vector< std::pair< std::string, std::string > > AudioDeviceList
This namespace is the default namespace for all code in the openshot library.
std::shared_ptr< openshot::Frame > GetFrame(int64_t number) override
CameraCaptureReader(const CameraCaptureSettings &settings)
This class represents a fraction.
CameraCaptureSettings GetSettings() const
static AudioDeviceList GetDeviceNames(CameraCaptureBackend backend=CAMERA_CAPTURE_AUTO)
All cache managers in libopenshot are based on this CacheBase class.
@ CAMERA_CAPTURE_WINDOWS_DSHOW
void SetJson(const std::string value) override
Load JSON string into this object.
std::string Name() override
Return the type name of the class.
CameraCaptureBackend backend
static CameraCaptureBackend DefaultBackend()
void SetJsonValue(const Json::Value root) override
Load Json::Value into this object.
Header file for live screen capture readers.
openshot::CaptureReaderStats GetStats() const
@ CAMERA_CAPTURE_MAC_AVFOUNDATION
static bool IsBackendSupported(CameraCaptureBackend backend)
~CameraCaptureReader() override
This abstract class is the base class, used by all readers in libopenshot.
Json::Value JsonValue() const override
Generate Json::Value for this object.
bool IsOpen() override
Determine if reader is open or closed.
Header file for Audio Device Info struct.
CacheBase * GetCache() override
Get the cache object used by this reader (note: not all readers use cache)
std::string Json() const override
Generate JSON string of this object.
void Close() override
Close the reader (and any resources it was consuming)