OpenShot Library | libopenshot
0.1.9
|
This class uses the Blackmagic Decklink libraries, to send video streams to Blackmagic devices. More...
#include <DecklinkWriter.h>
Public Member Functions | |
void | Close () |
Close the device and video stream. More... | |
DecklinkWriter (int device, int video_mode, int pixel_format, int channels, int sample_depth) | |
bool | IsOpen () |
Determine if writer is open or closed. More... | |
void | Open () |
Open device and video stream - which is called by the constructor automatically. More... | |
void | WriteFrame (std::shared_ptr< Frame > frame) |
This method is required for all derived classes of WriterBase. Write a Frame to the video file. More... | |
void | WriteFrame (ReaderBase *reader, int start, int length) |
This method is required for all derived classes of WriterBase. Write a block of frames from a reader. More... | |
![]() | |
void | CopyReaderInfo (ReaderBase *reader) |
This method copy's the info struct of a reader, and sets the writer with the same info. More... | |
void | DisplayInfo () |
Display file information in the standard output stream (stdout) More... | |
string | Json () |
Get and Set JSON methods. More... | |
Json::Value | JsonValue () |
Generate Json::JsonValue for this object. More... | |
void | SetJson (string value) |
Load JSON string into this object. More... | |
void | SetJsonValue (Json::Value root) |
Load Json::JsonValue into this object. More... | |
virtual void | WriteFrame (ReaderBase *reader, int64_t start, int64_t length)=0 |
This method is required for all derived classes of WriterBase. Write a block of frames from a reader. More... | |
WriterBase () | |
Constructor for WriterBase class, many things are initialized here. More... | |
Additional Inherited Members | |
![]() | |
WriterInfo | info |
Information about the current media file. More... | |
This class uses the Blackmagic Decklink libraries, to send video streams to Blackmagic devices.
This requires special hardware manufactured by Blackmagic Designs. Once the device is aquired and connected, this reader returns openshot::Frame objects containing the image and audio data.
Definition at line 61 of file DecklinkWriter.h.
DecklinkWriter::DecklinkWriter | ( | int | device, |
int | video_mode, | ||
int | pixel_format, | ||
int | channels, | ||
int | sample_depth | ||
) |
Constructor for DecklinkWriter. This automatically opens the device or it throws one of the following exceptions.
Definition at line 32 of file DecklinkWriter.cpp.
void DecklinkWriter::Close | ( | ) |
Close the device and video stream.
Definition at line 190 of file DecklinkWriter.cpp.
|
inlinevirtual |
Determine if writer is open or closed.
Implements openshot::WriterBase.
Definition at line 108 of file DecklinkWriter.h.
|
virtual |
Open device and video stream - which is called by the constructor automatically.
Implements openshot::WriterBase.
Definition at line 57 of file DecklinkWriter.cpp.
|
virtual |
This method is required for all derived classes of WriterBase. Write a Frame to the video file.
Implements openshot::WriterBase.
Definition at line 230 of file DecklinkWriter.cpp.
void DecklinkWriter::WriteFrame | ( | ReaderBase * | reader, |
int | start, | ||
int | length | ||
) |
This method is required for all derived classes of WriterBase. Write a block of frames from a reader.
Definition at line 240 of file DecklinkWriter.cpp.