- Posts: 3037
- Joined: Wed Aug 22, 2012 6:53 am
- Location: Estonia
Currently CPU decode for 12K camera files still requires the GPU to do most of the processing as we have not done a fully optimized CPU only decode path yet (still working on it). The SDK handles this in the background when using the CPU decode path so it's likely your GPU is running out of memory. You need a lot of GPU memory with Linux/Windows dealing with these files, Mac with Metal seems to handle it fine by using host memory when needed so even with just a 4GB GPU you won't get out of memory errors, it will just run slower as the system copies memory around.
Currently the options really are only to either upgrade your GPU or decode at lower resolution(s). Also with the 2.0 SDK and especially 12k camera files, make sure you're using the new IBlackmagicRawClipResolutions interface for this.
Our 12K camera introduces a new image format to Blackmagic RAW that has been engineered with performance and scalability in mind. The new format is specifically designed to accelerate down-scaled decodes and support a wider range of cameras. With this new format comes some unique requirements that means a down-scaled decode won't necessarily result in an expected reduction in dimensions, which has led to the addition of the new IBlackmagicRawClipResolutions interface.
The IBlackmagicRawClipResolutions interface (queryable from a clip) is designed to aid in determining the exact processed image sizes based on desired scale values.
The reverse is also true and you're now able to query what scale would be best used to get a processed image resulting in a resolution as close to that specified.
In addition, this interface also provides methods to query all the available resolutions at which an image may be decoded which is useful for lists in GUIs etc.