Search code examples
quartz-composer

Rearranging pixels on a video in realtime in Quartz Composer


Does anyone know a good resource related to remapping the pixels in a video in realtime using Quartz Composer? I've read through the programming guide, but it doesn't have all the information I need...thanks!


Solution

  • What kind of "remapping" do you have in mind?

    If you have a mathematical expression for, given the location of an output pixel, determining which input pixel(s) combine to form that output pixel, then Core Image is probably what you're looking for. Check out the Core Image Kernel patch --- feed your image data through that patch, then go to its Settings panel to customize the pixel shader.