Skip to content

Commit

Permalink
Fixed the orientation of the front camera when switching between the …
Browse files Browse the repository at this point in the history
…two using -rotateCamera.
  • Loading branch information
BradLarson committed May 15, 2012
1 parent ff825d5 commit 485181d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ One thing to note when adding fragment shaders to your Xcode project is that Xco

### Filtering and re-encoding a movie ###

Movies can be loaded into the framework via the GPUImageMovie class, filtered, and then written out using a GPUImageMovieWriter. GPUImageMovieWriter is also fast enough to record video in realtime from an iPhone 4's camera at 640x480, so a direct filtered video source can be fed into it.
Movies can be loaded into the framework via the GPUImageMovie class, filtered, and then written out using a GPUImageMovieWriter. GPUImageMovieWriter is also fast enough to record video in realtime from an iPhone 4's camera at 640x480, so a direct filtered video source can be fed into it. Currently, GPUImageMovieWriter is fast enough to record live 720p video at up to 20 FPS on the iPhone 4, and both 720p and 1080p video at 30 FPS on the iPhone 4S (as well as on the new iPad).

The following is an example of how you would load a sample movie, pass it through a pixellation filter, then record the result to disk as a 480 x 640 h.264 movie:

Expand Down
2 changes: 2 additions & 0 deletions framework/Source/GPUImageVideoCamera.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ - (void)rotateCamera
//captureSession.sessionPreset = oriPreset;
[_captureSession commitConfiguration];
}

[self setOutputImageOrientation:_outputImageOrientation];
}

- (AVCaptureDevicePosition)cameraPosition
Expand Down

0 comments on commit 485181d

Please sign in to comment.