Core Image: Performance, Prototyping, and Python
Core Image: Performance, Prototyping, and Python
Core Image: Performance, Prototyping, and Python
Core Image Performance APIs
- Inserting intermediates
- Kernel language features
Inserting Intermediates
- Intermediates are cached by default
- Can turn off for all renders on a CIContext
let context = CIContext(options: [.cacheIntermediates : false] );
- Or turn on for specific intermediates
image.insertingIntermediate(cache: true);
2 Ways to Write CIKernels
- Half float support
- Faster operations (on A11 devices)
- Smaller registers increase utilization - Group reads
- 4 single-channel pixels per read - Group writes
- 4 pixels written per kernel execution
- Since Mac OS X 10.5 Leopard
- Python and ObjC bridge
- Colon → underscore