Writes images to a file in the form of a video.
More...
#include <peak_ipl/io/peak_ipl_video_writer.hpp>
Writes images to a file in the form of a video.
◆ VideoWriter() [1/3]
| peak::ipl::VideoWriter::VideoWriter |
( |
| ) |
|
|
default |
◆ ~VideoWriter()
| peak::ipl::VideoWriter::~VideoWriter |
( |
| ) |
|
|
inline |
◆ VideoWriter() [2/3]
| peak::ipl::VideoWriter::VideoWriter |
( |
const VideoWriter & |
| ) |
|
|
delete |
◆ VideoWriter() [3/3]
| peak::ipl::VideoWriter::VideoWriter |
( |
VideoWriter && |
other | ) |
|
|
inlinenoexcept |
◆ Append()
| void peak::ipl::VideoWriter::Append |
( |
const Image & |
image | ) |
|
|
inline |
Append an image to the opened video.
- Parameters
-
| [in] | image | The image to append. |
- Exceptions
-
- Since
- 1.5
◆ Close()
| void peak::ipl::VideoWriter::Close |
( |
| ) |
|
|
inline |
◆ Container()
Get the used container.
- Returns
- Instance of the container.
◆ Encoder()
Get the used encoder.
- Returns
- Instance of the encoder.
◆ FileSize()
| uint64_t peak::ipl::VideoWriter::FileSize |
( |
| ) |
const |
|
inline |
Get the file size of the video in bytes.
- Returns
- File size of the video.
◆ IsOpen()
| bool peak::ipl::VideoWriter::IsOpen |
( |
| ) |
const |
|
inline |
Check if the VideoWriter is already open.
- Returns
- Boolean if the VideoWriter is already open.
- Exceptions
-
- Since
- 1.5
◆ NumBuffersQueued()
| int32_t peak::ipl::VideoWriter::NumBuffersQueued |
( |
| ) |
|
|
inline |
Get the count of the currently queued buffers, which are waiting to be processed.
- Returns
- the count of the queued buffers
◆ NumFramesDropped()
| uint64_t peak::ipl::VideoWriter::NumFramesDropped |
( |
| ) |
const |
|
inline |
Get the dropped frames in the video stream.
- Returns
- Number of dropped frames in the video stream.
◆ NumFramesEncoded()
| uint64_t peak::ipl::VideoWriter::NumFramesEncoded |
( |
| ) |
const |
|
inline |
Get the encoded frames in the video stream.
- Returns
- Number of encoded frames in the video stream.
◆ Open() [1/2]
| void peak::ipl::VideoWriter::Open |
( |
const std::string & |
fileName | ) |
|
|
inline |
Open the VideoWriter with AVI container and mjpeg encoder. The file is created upon receiving the first image with Append.
- Parameters
-
| [in] | fileName | The filename of the video as an utf-8 encoded string (u8string) |
- Exceptions
-
- Since
- 1.5
◆ Open() [2/2]
Open the VideoWriter and sets up a container and an encoder. The file is created upon receiving the first image with Append.
- Parameters
-
| [in] | fileName | The filename of the video as an utf-8 encoded string (u8string) |
| [in] | container | The container of the video. |
| [in] | encoder | The encoder of the video. |
- Exceptions
-
- Since
- 1.5
◆ operator<<()
Append an image to the opened video.
- Parameters
-
| [in] | image | The image to append. |
- Exceptions
-
- Since
- 1.5
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ QueueSize()
| int32_t peak::ipl::VideoWriter::QueueSize |
( |
| ) |
|
|
inline |
Get the internal queue size of the video writer.
- Returns
- the internal queue size
◆ QueueSizeRange()
| Range< int32_t > peak::ipl::VideoWriter::QueueSizeRange |
( |
| ) |
|
|
inline |
Get the range of the queue size.
- Returns
- Range<int32_t> with valid values
◆ ResetFrameCounters()
| void peak::ipl::VideoWriter::ResetFrameCounters |
( |
| ) |
|
|
inline |
Reset compressed and dropped frame counters.
◆ SetQueueSize()
| void peak::ipl::VideoWriter::SetQueueSize |
( |
int32_t |
queueSize | ) |
|
|
inline |
Set the internal queue size of the video writer.
- Parameters
-
| queueSize | internal queue size to set. See QueueSizeRange() for a range of valid values |
◆ WaitUntilFrameDone()
| void peak::ipl::VideoWriter::WaitUntilFrameDone |
( |
int32_t |
timeout_ms | ) |
|
|
inline |
Wait until frame processing is done.
- Parameters
-
| timeout_ms | The timeout in milliseconds. |
◆ WaitUntilQueueEmpty()
| void peak::ipl::VideoWriter::WaitUntilQueueEmpty |
( |
int32_t |
timeout_ms | ) |
|
|
inline |
Wait until the queue is empty.
- Parameters
-
| timeout_ms | The timeout in milliseconds. |
The documentation for this class was generated from the following file: