https://github.com/waleedka/rosywriterswift
Apple's Rosy Writer converted from Objective C to Swift
https://github.com/waleedka/rosywriterswift
Last synced: 6 months ago
JSON representation
Apple's Rosy Writer converted from Objective C to Swift
- Host: GitHub
- URL: https://github.com/waleedka/rosywriterswift
- Owner: waleedka
- Created: 2014-10-20T06:54:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-23T18:37:57.000Z (almost 11 years ago)
- Last Synced: 2023-02-26T13:46:05.604Z (over 2 years ago)
- Language: Objective-C
- Size: 207 KB
- Stars: 14
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.txt
Awesome Lists containing this project
README
RosyWriter
This sample demonstrates how to use AVCaptureVideoDataOutput to bring frames from the camera into various processing pipelines, including CPU-based, OpenGL (i.e. on the GPU), CoreImage filters, and OpenCV. It also demonstrates best practices for writing the processed output of these pipelines to a movie file using AVAssetWriter.
The project includes a different target for each of the different processing pipelines.
Classes
RosyWriterViewController
-- This file contains the view controller logic, including support for the Record button and video preview.
RosyWriterCapturePipeline
-- This file manages the audio and video capture pipelines, including the AVCaptureSession, the various queues, and resource management.Renderers
RosyWriterRenderer
-- This file defines a generic protocol for renderer objects used by RosyWriterCapturePipeline.
RosyWriterOpenGLRenderer
-- This file manages the OpenGL (GPU) processing for the "rosy" effect and delivers rendered buffers.
RosyWriterCPURenderer
-- This file manages the CPU processing for the "rosy" effect and delivers rendered buffers.
RosyWriterCIFilterRenderer
-- This file manages the CoreImage processing for the "rosy" effect and delivers rendered buffers.
RosyWriterOpenCVRenderer
-- This file manages the delivery of frames to an OpenCV processing block and delivers rendered buffers.RosyWriterAppDelegate
-- This file is a standard application delegate class.Shaders
myFilter
-- OpenGL shader code for the "rosy" effectUtilities
MovieRecorder
-- Illustrates real-time use of AVAssetWriter to record the displayed effect.
OpenGLPixelBufferView
-- This is a view that displays pixel buffers on the screen using OpenGL.GL
-- Utilities used by the GL processing pipeline.===============================================================
Copyright © 2014 Apple Inc. All rights reserved.