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

◆ setup_zero_copy_if_possible()

void MayaFlux::Buffers::SoundContainerBuffer::setup_zero_copy_if_possible ( )
private

Attempt to enable zero-copy operation if container layout allows.

Definition at line 230 of file SoundContainerBuffer.cpp.

231{
232 // Check if we can use zero-copy mode
233 // This would be possible if:
234 // 1. Container data is contiguous doubles
235 // 2. Channel is deinterleaved (column-major for audio)
236 // 3. Buffer size matches container frame size
237
238 if (!m_container) {
239 m_zero_copy_mode = false;
240 return;
241 }
242
243 auto dimensions = m_container->get_dimensions();
244 auto layout = m_container->get_memory_layout();
245
246 m_zero_copy_mode = false;
247
248 // TODO: Implement zero-copy when container provides direct memory access
249}
std::shared_ptr< Kakshya::StreamContainer > m_container

References m_container, and m_zero_copy_mode.

Referenced by set_container(), and SoundContainerBuffer().

+ Here is the caller graph for this function: