Post

Replies

Boosts

Views

Activity

Reply to Core Image drawing corruption
Hmm, this is really hard to debug without seeing the actual filters. But if I would need to guess, I'd say the implementation of the ROI callback (passed when calling the CIKernel) is wrong. I can also recommend using a MTKView for displaying a CIImage instead of using Core Graphics. There is a sample from Apple showing how to do that.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jul ’23
Reply to New option(.memoryTarget) in CIContextOption
From the comment in the header file: A NSNumber that specifies the maximum memory footprint (in megabytes) that the CIContext allocates for render tasks. Larger values could increase memory footprint while smaller values could reduce performance. It basically sets how much memory Core Image is allowed to use (roughly) during rendering. From what I observed, the default seems to be 256 MB.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’23