#include <candlewick/utils/VideoRecorder.h>
|
| VideoRecorder (NoInitT) |
| Constructor which will not open the file or stream.
|
|
| VideoRecorder (VideoRecorder &&) noexcept |
|
VideoRecorder & | operator= (VideoRecorder &&) noexcept |
|
void | open (Uint32 width, Uint32 height, std::string_view filename) |
| Open the recording stream.
|
|
bool | isRecording () const |
| Returns whether the recording stream is open.
|
|
| VideoRecorder (Uint32 width, Uint32 height, std::string_view filename, Settings settings) |
| Constructor for the video recorder.
|
|
| VideoRecorder (Uint32 width, Uint32 height, std::string_view filename) |
|
Uint32 | frameCounter () const |
|
void | close () noexcept |
|
| ~VideoRecorder () |
|
void | writeTextureToVideoFrame (CommandBuffer &command_buffer, const Device &device, TransferBufferPool &pool, SDL_GPUTexture *texture, SDL_GPUTextureFormat format) |
|
◆ VideoRecorder() [1/4]
candlewick::media::VideoRecorder::VideoRecorder |
( |
NoInitT | | ) |
|
|
explicit |
Constructor which will not open the file or stream.
◆ VideoRecorder() [2/4]
candlewick::media::VideoRecorder::VideoRecorder |
( |
VideoRecorder && | | ) |
|
|
noexcept |
◆ VideoRecorder() [3/4]
candlewick::media::VideoRecorder::VideoRecorder |
( |
Uint32 | width, |
|
|
Uint32 | height, |
|
|
std::string_view | filename, |
|
|
Settings | settings ) |
Constructor for the video recorder.
- Parameters
-
width | Input data width. |
height | Input data height. |
settings | Video recording settings (fps, bitrate, output file width and height). |
- Note
- If the settings' output dimensions are not set, they will automatically be set to be the input's dimensions.
- See also
- open()
◆ VideoRecorder() [4/4]
candlewick::media::VideoRecorder::VideoRecorder |
( |
Uint32 | width, |
|
|
Uint32 | height, |
|
|
std::string_view | filename ) |
◆ ~VideoRecorder()
candlewick::media::VideoRecorder::~VideoRecorder |
( |
| ) |
|
◆ close()
void candlewick::media::VideoRecorder::close |
( |
| ) |
|
|
noexcept |
◆ frameCounter()
Uint32 candlewick::media::VideoRecorder::frameCounter |
( |
| ) |
const |
◆ isRecording()
bool candlewick::media::VideoRecorder::isRecording |
( |
| ) |
const |
|
inline |
Returns whether the recording stream is open.
◆ open()
void candlewick::media::VideoRecorder::open |
( |
Uint32 | width, |
|
|
Uint32 | height, |
|
|
std::string_view | filename ) |
Open the recording stream.
- Parameters
-
width | Input data width. |
height | Input data height. |
filename | Filename to open the outut stream at. |
◆ operator=()
◆ writeTextureToVideoFrame()
void candlewick::media::VideoRecorder::writeTextureToVideoFrame |
( |
CommandBuffer & | command_buffer, |
|
|
const Device & | device, |
|
|
TransferBufferPool & | pool, |
|
|
SDL_GPUTexture * | texture, |
|
|
SDL_GPUTextureFormat | format ) |
◆ settings
The documentation for this class was generated from the following file: