SimpleFastOpenAtomicVisualiser
|
An jo_mpeg based Record. More...
#include <jompegRecord.h>
Public Member Functions | |
JompegRecord (std::filesystem::path file, glm::ivec2 resolution, uint8_t fps) | |
Construct a new jo_mpeg based Record from a file path, resolution and fps. | |
~JompegRecord () | |
void | open () |
Open the video file. | |
void | close () |
Close the video file. | |
![]() | |
Record (std::filesystem::path file, glm::ivec2 resolution, uint8_t fps) | |
Construct a new Record from a file path, resolution and fps. | |
virtual | ~Record () |
void | queueFrame (std::vector< uint8_t > pixels) |
Enqueue a frame to be written. | |
uint8_t | queueSize () |
Number of frames yet to be sent for writing. | |
uint64_t | framesLeft () |
Number of frame left to be written in total. | |
void | writeFrames () |
Send the frames in the buffer for writing. | |
bool | isWriting () const |
If the video is being written to in the background. | |
bool | isOpen () const |
If the file is open. | |
bool | finalise () |
Check if finalised. | |
Additional Inherited Members | |
![]() | |
void | writeBuffer () |
![]() | |
std::filesystem::path | file |
glm::ivec2 | resolution |
uint8_t | fps |
bool | fileOpen = false |
bool | writing = false |
std::vector< std::vector< uint8_t > > | inBuffer |
std::vector< std::vector< uint8_t > > | outBuffer |
An jo_mpeg based Record.
|
inline |
Construct a new jo_mpeg based Record from a file path, resolution and fps.
file | the video file path. |
resolution | the resolution. |
fps | the frames per second. |
|
inline |
|
inlinevirtual |
|
inlinevirtual |