MayaFlux 0.2.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 272 of file SoundContainerBuffer.cpp.

273{
274 // Check if we can use zero-copy mode
275 // This would be possible if:
276 // 1. Container data is contiguous doubles
277 // 2. Channel is deinterleaved (column-major for audio)
278 // 3. Buffer size matches container frame size
279
280 if (!m_container) {
281 m_zero_copy_mode = false;
282 return;
283 }
284
285 auto dimensions = m_container->get_dimensions();
286 auto layout = m_container->get_memory_layout();
287
288 m_zero_copy_mode = false;
289
290 // TODO: Implement zero-copy when container provides direct memory access
291}
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: