|
OpenShot Library | libopenshot
0.7.0
|
#include <CameraCaptureReader.h>
Public Member Functions | |
| CameraCaptureReader (const CameraCaptureSettings &settings) | |
| void | Close () override |
| Close the reader (and any resources it was consuming) More... | |
| CacheBase * | GetCache () override |
| Get the cache object used by this reader (note: not all readers use cache) More... | |
| std::shared_ptr< openshot::Frame > | GetFrame (int64_t number) override |
| CameraCaptureSettings | GetSettings () const |
| openshot::CaptureReaderStats | GetStats () const |
| bool | IsOpen () override |
| Determine if reader is open or closed. More... | |
| std::string | Json () const override |
| Generate JSON string of this object. More... | |
| Json::Value | JsonValue () const override |
| Generate Json::Value for this object. More... | |
| std::string | Name () override |
| Return the type name of the class. More... | |
| void | Open () override |
| Open the reader (and start consuming resources, such as images or video files) More... | |
| void | SetJson (const std::string value) override |
| Load JSON string into this object. More... | |
| void | SetJsonValue (const Json::Value root) override |
| Load Json::Value into this object. More... | |
| ~CameraCaptureReader () override | |
Public Member Functions inherited from openshot::ReaderBase | |
| bool | ApplyOrientationMetadata () const |
| Return whether readers apply source orientation metadata to returned frames. More... | |
| void | ApplyOrientationMetadata (bool value) |
| Set whether readers should apply source orientation metadata to returned frames. More... | |
| void | DisplayInfo (std::ostream *out=&std::cout) |
| Display file information in the standard output stream (stdout) More... | |
| virtual bool | HardwareDecodeSuccessful () const |
| bool | HasMaxDecodeSize () const |
| Return true when a maximum decoded frame size is active. More... | |
| int | MaxDecodeHeight () const |
| Return the current maximum decoded frame height (0 when unlimited). More... | |
| int | MaxDecodeWidth () const |
| Return the current maximum decoded frame width (0 when unlimited). More... | |
| openshot::ClipBase * | ParentClip () |
| Parent clip object of this reader (which can be unparented and NULL) More... | |
| void | ParentClip (openshot::ClipBase *new_clip) |
| Set parent clip object of this reader. More... | |
| ReaderBase () | |
| Constructor for the base reader, where many things are initialized. More... | |
| void | SetMaxDecodeSize (int width, int height) |
| Set an optional maximum decoded frame size. Use 0,0 to disable the limit. More... | |
| virtual | ~ReaderBase ()=default |
Static Public Member Functions | |
| static CameraCaptureBackend | DefaultBackend () |
| static AudioDeviceList | GetDeviceNames (CameraCaptureBackend backend=CAMERA_CAPTURE_AUTO) |
| static bool | IsBackendSupported (CameraCaptureBackend backend) |
Additional Inherited Members | |
Public Attributes inherited from openshot::ReaderBase | |
| openshot::ReaderInfo | info |
| Information about the current media file. More... | |
Protected Attributes inherited from openshot::ReaderBase | |
| bool | apply_orientation_metadata |
| Apply source orientation metadata while reading frames. More... | |
| openshot::ClipBase * | clip |
| Pointer to the parent clip instance (if any) More... | |
| std::recursive_mutex | getFrameMutex |
| Mutex for multiple threads. More... | |
| int | max_decode_height |
| Optional maximum decoded frame height (0 disables the limit) More... | |
| int | max_decode_width |
| Optional maximum decoded frame width (0 disables the limit) More... | |
Definition at line 41 of file CameraCaptureReader.h.
|
explicit |
Definition at line 122 of file CameraCaptureReader.cpp.
|
override |
Definition at line 133 of file CameraCaptureReader.cpp.
|
overridevirtual |
Close the reader (and any resources it was consuming)
Implements openshot::ReaderBase.
Definition at line 280 of file CameraCaptureReader.cpp.
Referenced by ~CameraCaptureReader().
|
static |
Definition at line 152 of file CameraCaptureReader.cpp.
Referenced by CameraCaptureReader(), GetDeviceNames(), and SetJsonValue().
|
inlineoverridevirtual |
Get the cache object used by this reader (note: not all readers use cache)
Implements openshot::ReaderBase.
Definition at line 48 of file CameraCaptureReader.h.
|
static |
Definition at line 165 of file CameraCaptureReader.cpp.
|
overridevirtual |
This method is required for all derived classes of ReaderBase, and returns the openshot::Frame object, which contains the image and audio information for that frame of video.
| [in] | number | The frame number that is requested. |
Implements openshot::ReaderBase.
Definition at line 292 of file CameraCaptureReader.cpp.
|
inline |
Definition at line 59 of file CameraCaptureReader.h.
| openshot::CaptureReaderStats CameraCaptureReader::GetStats | ( | ) | const |
Definition at line 287 of file CameraCaptureReader.cpp.
|
static |
Definition at line 138 of file CameraCaptureReader.cpp.
|
inlineoverridevirtual |
Determine if reader is open or closed.
Implements openshot::ReaderBase.
Definition at line 50 of file CameraCaptureReader.h.
|
overridevirtual |
Generate JSON string of this object.
Implements openshot::ReaderBase.
Definition at line 297 of file CameraCaptureReader.cpp.
|
overridevirtual |
Generate Json::Value for this object.
Implements openshot::ReaderBase.
Definition at line 302 of file CameraCaptureReader.cpp.
Referenced by Json().
|
inlineoverridevirtual |
Return the type name of the class.
Implements openshot::ReaderBase.
Definition at line 51 of file CameraCaptureReader.h.
|
overridevirtual |
Open the reader (and start consuming resources, such as images or video files)
Implements openshot::ReaderBase.
Definition at line 273 of file CameraCaptureReader.cpp.
|
overridevirtual |
Load JSON string into this object.
Implements openshot::ReaderBase.
Definition at line 319 of file CameraCaptureReader.cpp.
|
overridevirtual |
Load Json::Value into this object.
Implements openshot::ReaderBase.
Definition at line 328 of file CameraCaptureReader.cpp.
Referenced by SetJson().
1.8.17