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

◆ TextureArrayBuffer() [2/2]

MayaFlux::Buffers::TextureArrayBuffer::TextureArrayBuffer ( const Kakshya::VideoStreamSpec &  spec,
std::optional< Portal::Graphics::FitMode >  fit = Portal::Graphics::FitMode::STRETCH 
)
explicit

Build from a stream spec: width, height and format of every layer, with ring_frames as the layer count.

The frame rate is not used.

Parameters
specExtent, format and layer count.
fitHow a frame of another extent is fitted, or nullopt to drop it.

Definition at line 37 of file TextureArrayBuffer.cpp.

40 : TextureArrayBuffer(spec.width, spec.height, spec.format, static_cast<uint32_t>(spec.ring_frames))
41{
42 m_fit = fit;
43}
std::optional< Portal::Graphics::FitMode > m_fit
TextureArrayBuffer(uint32_t width, uint32_t height, Portal::Graphics::ImageFormat format, uint32_t layers)

References m_fit.