problem about gpuimage-Collection of common programming errors


  • Robert
    ios image-processing gpuimage
    I have tried to setup a simple GPUImage environment in a UIViewControler. However, I get a blank screen. I want to animate a property of the swirl filter whilst the source image is kept constant. How can I do this?I want good performance (> 30 fps) for large-ish images so would ideally like to avoid unnecessary pixel copies back and forth from GPU to CPU.- (void)viewDidLoad {UIImage *inputImage = [UIImage imageNamed:@”image.jpg”];self.stillImageSource = [[GPUImagePicture alloc] initWithImage:

  • zakinaeem
    objective-c gpuimage avmutablecomposition
    I am working on integrating a video player with the very powerful GPUImage framework (https://github.com/BradLarson/GPUImage), whereby user can queue videos for continuous playback (AVMutableComposition) and also select a number of GPUImage filters to be applied to selected clips in the queue on runtime. Say clips number 2 and 4 out of the total 5. The key is that I have unfiltered clips and cannot afford to generate and save “filtered” versions of them for use so this has to be runtime.Is there

  • Brad Larson
    ios avfoundation gpuimage
    GPUImage has allowed me to manipulate my video files incredibly efficiently in just the way I desire, but only if I use AVFileTypeQuickTimeMovie when I specify the fileType of the GPUImageMovieWriter.My application needs to interact with Android devices which are incapable of playing quicktime movie files, so I attempted to change my code to encode as follows:movieWriter = [[GPUImageMovieWriter alloc] initWithMovieURL:movieURL size:CGSizeMake([UIScreen mainScreen].bounds.size.width, [UIScreen ma

  • shannoga
    ios gpuimage application-state gpuimagestillcamera
    I know it’s sounds silly but just to clear a point. Is there any chance that view did load will be called before didBecomeActive ? Is it totally impossible ?EDITWe have a crash that happens when user is coming back to the app from the background and we start to use openGL. The crash error points that we try to use openGL in the background.It is important to say that our app lives in the background as a VOIP app.We try to figure out if there is a chance that somehow we are triggering something in

  • MarkPowell
    ios opengl-es vbo gpuimage
    I am making use of Brad Larson’s wonderful GPUImage library for image manipulation. So far, it’s been great. However, I’m trying to add a filter to allow Mesh Deformation and running into quite a bit of issues. Specifically, I want to have a filter that uses VBO to render the Quad so I can ultimately dynamically change the vertices for the deformation. The first step of using VBOs is causing a crash.I created a subclass of GPUImageFilter overriding the – (void)newFrameReadyAtTime:(CMTime)frameTi

  • genpfault
    ios opengl-es gpuimage
    We decoding MP4-compressed video with mask embedded using GPUImageMovie.Problem that if user presses Home button during video decoding – the app became crashed because of OpenGL trap. iOS does not allow to use OpenGL in background.Is there any way to tell GPUImageMovie to stop decoding immediately, including video thread?

  • RomanHouse
    iphone objective-c ios gpuimage
    After I made [_stillCamera pauseCameraCapture]; I want to save captured photo. Code:[_stillCamera capturePhotoAsJPEGProcessedUpToFilter:_filter withCompletionHandler:^(NSData *processedJPEG, NSError *error){[self savePhotoToAlbum:processedJPEG];if (error) {NSLog(@”error”)} }];In first time photo saved successfully. After this I didn’t make [_stillCamera resumeCameraCapture];, but when I tap save button again my application crashes without any message. How can I solve this?

  • tiltem
    ios avassetwriter gpuimage
    Trying to get started with the really great GPUImage framework so graciously shared by Brad Larson, but having an issue. When running the SimpleVideoFileFilter sample it always crashes at completion with the following error:[AVAssetWriterInput markAsFinished] Cannot call method when status is 2Anyone know how to correct this? Also do not see the video when run in simulator, does it not work for simulator?Running iOS 6.1 and Xcode 4.6Thanks!I am noticing that finishRecordingWithCompletionHandler

  • Student
    iphone ios objective-c gpuimage
    I am working a picture/video filter effect project. For making effect i am using GPUImage project. It works fine for pictures. Now i need to do the same effect on videos too. I grab images from video at 30 frames per second. Now for 1 min video i filtered about 1800 images. and filtering, for each image i allocate GPUImagePicture and GPUImageSepiaFilter classes, and release them manully. But these allocations is not released, and after processing on about 20 sec video application crashes due to

  • jokerdc
    ios gpuimage
    I started from Brad Larson’s Tutorial on Github.Here when i added these code into my project- (void)viewDidLoad { [super viewDidLoad];GPUImageVideoCamera *videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack]; videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait; GPUImageFilter *customFilter = [[GPUImageFilter alloc] initWithFragmentShaderFromFile:@”CustomShader”]; GPUImageView *filteredVideoView

  • Eric
    ios iphone memory uiimageview gpuimage
    We are creating several custom filters using a combination of GPUImage and CIFIlter. The image we are filtering is around 2048 X 2048 pixels. The following code eats up around 300MB of app memory. We need to chain the filters together to get the desired effects, but the image’s memory footprints are never getting released. Can someone advise?UIImage *filteredImage = [self getFilteredImage:initialImage Min:11 Gamma:1.09 Max:226 MinOut:46 MaxOut:208];filteredImage = [self getFilteredImage:filtered

  • Saad Imran.
    c# ios monotouch uiimagepickercontroller gpuimage
    I’m working on an iOS app using Xamrain.iOS and Brad Larson’s GPUImage library. For some reason the app crashes whenever I initialize a GPUImagePicture object from an image just taken from the camera. The same code works fine when I pick an image from the gallery.I checked for MemoryLeaks, and there does seem to be one (usage jumps from 4MB to 69MB), but I’m not sure what the problem is because it works fine when an image is loaded from the gallery (memory only goes up to 7MB). Is there somethin

  • kshitij godara
    iphone ios objective-c gpuimage gpuimagestillcamera
    I am working on GPUImage framework , to record video using GPUImageVideoCamera .it used to work sometime very flawlessly, but sometimes i go back and forth from my cameraScreen, it does crash sometime . I donot what is happening . I am Using ARC and IOS 6.I am adding images of my error please have a look .

  • genpfault
    ios cocoa-touch opengl-es gpuimage
    I’m using a GPUIImage library for developing an iOS camera app. Sometimes, when the app is suspended after 2-3 minutes the Xcode gives me a crash on the app, pointing to the lines in the method:- (void)presentBufferForDisplay; {[self.context presentRenderbuffer:GL_RENDERBUFFER]; } What might possibly be the reason of this crash? I’ve got a really long camera set up and the code itself is in the GPUImageContext class. What I might be doing wrong here?

  • Perry Borst
    ios crash gpuimage
    UPDATE: I know now that i’m sending messages to a deallocated instance, i think i’ve setup my project correct, but are starting to doubt this….I’ve read brad’s documentation and set up my project as no-arc, that will probably have something to do with the situation. I’ve added the linker flag -fobjc-arc and targeted GPUImage and my target to ios 4.3.Any one out there with the same problem that discoverd what he/she was doing wrong????I’ve been searching for an answer for days now, but I can’t

  • Jonic
    ios crash gpuimage marmalade marmalade-edk
    i’m trying write extension of GPUImage for marmalade Framework. For this i used oficial documentation and Extension Development Kit (EDK) Marmalade. I write some sample code, compile with:mkb s3egpuimage_iphone.mkb –arm –release –compiler clangIt’s compile fine, and i get library and headers and make link with deploying tool marlmalade and linkage complete fine. But i write ipa into iPod touch and run this code, i get or freez application or crash application. Crash or freez begin of i call:[

  • Nguyen HongSon
    gpuimage
    I tried to write a program using GPUImageTwoInputFilter to create my blending. But it is wrong. can you help me. thanksUIImage *baseImg = [UIImage imageNamed:@”a.png”];GPUImagePicture * basePicture = [[GPUImagePicture alloc] initWithImage:baseImg smoothlyScaleOutput:YES];UIImage *blendImg = [UIImage imageNamed:@”image.png”];GPUImagePicture *blendPicture = [[GPUImagePicture alloc] initWithImage:blendImg smoothlyScaleOutput:YES];GPUImageTwoInputFilter * blendFilter = [[GPUImageTwoInputFilter alloc

  • folex
    ios opengl-es-2.0 gpuimage
    I have a problem with understanding GPUImage. Specifically, I can’t figure out how to use GPUImageLookupFilter. I have several examples of usage in GPUImageAmatorkaFilter for example. But LookupFilter used there within GPUImageFilterGroup which I didn’t understood yet either. I wonder whether I can use LookupFilter alone. I’ve tried this:GPUImageLookupFilter *lookup = [[GPUImageLookupFilter alloc] init];UIImage *image = [UIImage imageNamed:@”amatorka.png”]; GPUImagePicture *lookupImageSource =

  • genpfault
    ios opengl-es gpuimage
    I’m trying to create an OpenGL view that will record with my app.I’m trying to record the view with GPUImageMovieWriter and GPUImageUIElementas such:self.imageUIElement = [[GPUImageUIElement alloc]initWithView:self.myView];NSString *pathToMovie = [NSHomeDirectory() stringByAppendingPathComponent:@”Documents/Movie.m4v”]; unlink([pathToMovie UTF8String]); // If a file already exists, AVAssetWriter won’t let you record new frames, so delete the old movie NSURL *movieURL = [NSURL fileURLWithPath:pat

  • user1763004
    ios gpuimage
    I have a problem trying to change filters.On my viewDidLoad I do this:filter = [[GPUImageSepiaFilter alloc] init]; [videoCamera addTarget:filter]; filterView = (GPUImageView *)self.view; [filter addTarget:filterView];filterView is declarated on .h with GPUImageView *filterView;My problem is on this method:-(void)changeEffect { [videoCamera removeAllTargets]; [filter removeAllTargets]; filter = [[GPUImageColorInvertFilter alloc] init]; [videoCamera addTarget:filter]; [filter addTarget: filterView

  • Vineet Singh
    ios objective-c avassetwriter gpuimage
    Can i reuse an existing GPUImageMovieWriter (after calling finishRecording) or is there a method to pause and resume the recording?I get error if i call startRecoding after a finishRecording.Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘*** -[AVAssetWriter addInput:] Cannot call method when status is 2’

  • Sandipan Bhattacharyya
    c++11 cuda gpgpu gpuimage nvcc
    I am trying to convert a c++ program I have which uses random library which is a C++11 feature. After having read through a couple of similar posts here, I tried by separating out the code into three files. At the outset I would like to say that I am not very conversant at C/C++ and mostly use R at work.The main file looks as follows.#ifndef _KERNEL_SUPPORT_ #define _KERNEL_SUPPORT_ #include <complex> #include <random> #include <iostream> #include “my_code_header.h” using names

  • Brad Larson
    objective-c ios gpuimage
    I am trying to make a camera/photo app that will add a filter on an image. I have heard of Brad Larson’s GPUImage and so I downloaded it and tried to manipulate it to be more familiar with the code.Now, I made a new project in Xcode and added it on my frameworks, but i don’t have any idea how to use it on a new project.How can I properly use GPUImage in my new project?

  • iSara
    iphone frameworks gpuimage
    I am developing iPhone application using iOS. I need to add GPUImage framework, i followed this url for adding purpose. http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-frameworkNow i drag and drop GPUImage xcodeproject file in my project. In this project product folder having libGPImage.a file. It showing empty folder, in this file missing. It showing like red color. I am unable to access GPUImage class files. why it is happening.Thanks,

  • Anil
    ios gpuimage
    I was trying to use video filters of GPUImage framework. I followed Filtering and re-encoding a movie tutorial. It giving me error Unknown type name GPUImageRotationFilter. So i tried to apply a simple filter to my video file Here is my code viewController.h @interface ViewController : UIViewController<GPUImageMovieWriterDelegate,GPUImageInput> { GPUImageMovie *_movieFile; GPUImageOutput<GPUImageInput> *_sketchFilter; GPUImageMovieWriter *_movieWriter;}@property (nonatomic,retain)

Web site is in building