Real-time Video Processing Using AVPlayerItemVideoOutput
Version 1.1, 2013-05-23
Fix APLViewController to subclass UIImagePickerController instead of using a category to supply supportedInterfaceOrientations.
(Full Revision History)
Xcode 4.6 or later, iOS 6 or later
iOS 6 or later
AVBasicVideoOutput demonstrates how to perform real-time video processing using AVPlayerItemVideoOutput and how to display processed video frames on screen using CAEAGLLayer and CADisplayLink. AVPlayerItemVideoOutput provides sample buffers (CVPixelBufferRef) which are then adjusted for their luma (Y) and chroma (UV) values based on the input from a user via UISliders. These processed pixel buffers are then rendered to a CAEAGLLayer.