MayaFlux 0.3.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 270 of file SoundContainerBuffer.cpp.

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