BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.22k stars 4.62k forks source link

is iPad4 not supported? #2496

Closed sambudda closed 7 years ago

sambudda commented 7 years ago

I am trying to launch a capture still image on my iPad4. Every time I launch the app no preview is shown and camera doesn't start. It works fine on my iPhone 6.

filterView is defined in my storyboard and connected through iboutlet and again works fine for iPhone6

First I tried this to see it will work stillCamera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPresetHigh cameraPosition:AVCaptureDevicePositionBack]; stillCamera.outputImageOrientation = UIInterfaceOrientationLandscapeRight; stillCamera.horizontallyMirrorFrontFacingCamera = NO; stillCamera.horizontallyMirrorRearFacingCamera = NO;

filter = [[GPUImageSepiaFilter alloc] init];
[(GPUImageSepiaFilter *)filter setIntensity:0.0];
[stillCamera addTarget:filter];
[filter addTarget:filterView];

//whole screen fill mode
filterView.fillMode = kGPUImageFillModePreserveAspectRatioAndFill;

[stillCamera startCameraCapture];

Then I thought it maybe because I am using pretty high preset. So I changed it to lower res and still the camera doesn't start. What's happening? Is this project not supported on iPad4 at all?

stillCamera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPreset1280x720 cameraPosition:AVCaptureDevicePositionBack];

sambudda commented 7 years ago

I also tried the sample FilterShowcase project on my iPad4 and that doesn't work either. My iPad4 is running iOS 10

sambudda commented 7 years ago

never mind, sorry, needed to reboot my bloody ipad