- Posts: 21
- Joined: Mon Mar 30, 2015 10:35 am
- Location: Leipzig, Germany
Hi Steffen,
Yes this is possible to set byte alignment. With the default memory allocator, the frame buffer will be provided with page alignment. If you need 16-, 32- or 64- bytes alignment then you should create your own memory allocator class that implements IDeckLinkMemoryAllocator. It is a requirement that an implemented IDeckLinkMemoryAllocator::AllocateBuffer outputs a buffer that is at minimum 16-byte aligned.
An example of this can be found in the Windows FileCapture SDK sample, where API call to AllocateBuffer will allocate the requested memory with 64-byte alignment.
Regards
Cameron