зеркало из https://github.com/xamarin/ios-samples.git
9aeaba7ab6 | ||
---|---|---|
.. | ||
Resources | ||
Screenshots | ||
Shaders | ||
AppDelegate.cs | ||
Info.plist | ||
MainWindow.xib | ||
Metadata.xml | ||
README.md | ||
RosyWriter.csproj | ||
RosyWriter.sln | ||
RosyWriterPreviewWindow.cs | ||
RosyWriterVideoProcessor.cs | ||
RosyWriterViewController.cs | ||
RosyWriterViewController.designer.cs | ||
RosyWriterViewControllerUniversal.cs | ||
RosyWriterViewControllerUniversal.designer.cs | ||
RosyWriterViewControllerUniversal_iPad.xib | ||
RosyWriterViewControllerUniversal_iPhone.xib | ||
RosyWriterViewControlleriPad.xib | ||
RosyWriterViewControlleriPod.xib |
README.md
RosyWriter
This is a port of Apple's RosyWriter sample to C# and MonoTouch.
This sample shows how to use AVFoundation to capture video, process video frames (in this example, we remove the "green" component from each frame turning images rosy), show the resulting data and optionally save the resulting video and audio into the user's Photo storage.
This sample shows multiple parts of iOS in action:
* GLKit to easily setup a GL context, load shaders and render frames.
* AVFoundation to connect to the video camera
* CoreVide's OpenGLTextureCache to directly bind camera frames
to OpenGL textures
* ALAssets for creating assets.
* Grand Central Dispatch, showing how the main thread uses two
separate dispatch queues with their own threads to perform
the CPU intensive "pinkening" and the saving of the data.
Port
This port was written by Eric Beisecker of Xamarin.