MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ CameraContainer()

MayaFlux::Kakshya::CameraContainer::CameraContainer ( uint32_t  width,
uint32_t  height,
Portal::Graphics::ImageFormat  format,
double  frame_rate = 30.0 
)

Construct a CameraContainer with specified resolution and format.

Parameters
widthFrame width in pixels.
heightFrame height in pixels.
formatPixel format (determines channels and storage type).
frame_rateDevice frame rate in fps.

Definition at line 11 of file CameraContainer.cpp.

13 : VideoStreamContainer(width, height, format, frame_rate)
14{
15 m_num_frames = 1;
16
17 m_data.resize(1);
19
21
23 "CameraContainer created: {}x{} @{:.1f}fps ({} bytes/frame)",
24 width, height, frame_rate, get_frame_byte_size());
25}
#define MF_INFO(comp, ctx,...)
uint32_t width
uint32_t height
VideoStreamContainer(uint32_t width=0, uint32_t height=0, Portal::Graphics::ImageFormat format=Portal::Graphics::ImageFormat::RGBA8, double frame_rate=0.0)
Construct a VideoStreamContainer with specified parameters.
size_t get_frame_element_count() const
Elements in one frame: width * height * channels.
size_t get_frame_byte_size() const
Total byte size of one frame: width * height * bytes_per_pixel.
@ Init
Engine/subsystem initialization.
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
DataVariant make_empty_storage(ImageFormat format, size_t element_count)

References MayaFlux::Kakshya::VideoStreamContainer::get_frame_byte_size(), MayaFlux::Kakshya::VideoStreamContainer::get_frame_element_count(), height, MayaFlux::Journal::Init, MayaFlux::Journal::Kakshya, MayaFlux::Kakshya::VideoStreamContainer::m_data, MayaFlux::Kakshya::VideoStreamContainer::m_num_frames, MayaFlux::Kakshya::make_empty_storage(), MF_INFO, MayaFlux::Kakshya::VideoStreamContainer::setup_dimensions(), and width.

+ Here is the call graph for this function: