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

◆ setup_zero_copy_if_possible()

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

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

Definition at line 260 of file ContainerBuffer.cpp.

261{
262 // Check if we can use zero-copy mode
263 // This would be possible if:
264 // 1. Container data is contiguous doubles
265 // 2. Channel is deinterleaved (column-major for audio)
266 // 3. Buffer size matches container frame size
267
268 if (!m_container) {
269 m_zero_copy_mode = false;
270 return;
271 }
272
273 auto dimensions = m_container->get_dimensions();
274 auto layout = m_container->get_memory_layout();
275
276 // For now, disable zero-copy until we have direct memory access APIs
277 m_zero_copy_mode = false;
278
279 // TODO: Implement zero-copy when container provides direct memory access
280}
std::shared_ptr< Kakshya::StreamContainer > m_container

References m_container, and m_zero_copy_mode.

Referenced by ContainerBuffer(), and set_container().

+ Here is the caller graph for this function: