IPhone Buffer for iPhone

I am trying to build a VCR without jailbreaking my iPhone (I have a developer license). I started using the private PhotoLibrary structure, but I can only reach 2ftp (too slow). Cycoder application has fps of 15, I think it uses a different approach. I tried to create a bitmap from the CameraController preview, but it always returns e black bitmap.

I wonder if there is a way to directly access the video book, possibly with the IOKit infrastructure.

Thanks Marco

+3
source share
5 answers

Here is the code:

image = [window _createCGImageRefRepresentationInFrame:rectToCapture]; 

Marco

+1
source

This is a big problem. So far, I have decided to use some temporary fixed size buffers and disconnect the stream for each buffer when it is full. The stream will store the contents of the buffer in flash memory. The launch of some heavy threads, heavy beacause, each stream of access to the flash will slow down the device and update the look of the camera. Buffers cannot be large because you get a memory warning and cannot be small because you will freeze the device due to too many threads and accessing flash memory at a time. The solution is in the balancing buffer size and the number of threads.

I have not tried using sqlite3 db yet to store binary image data, but I won’t if it would be a better solution.

PS: speed up the method call of the class, avoid the general solution [object method] because of how the method call works, but try to get and save the method address, as shown below.

From Apple ObjC doc:

"The example below shows how a procedure that implements the setFilled: method is called:

 void (*setter)(id, SEL, BOOL); int i; setter = (void (*)(id, SEL, BOOL))[target methodForSelector:@selector(setFilled:)]; for ( i = 0; i < 1000, i++ ) setter(targetList[i], @selector(setFilled:), YES); " 

Marco

+1
source

If you plan to ever release your app on the App Store, using a private framework ensures that it is rejected. Video using the SDK is simply not supported.

0
source

To capture the video that you can see when the Camera is active, quite complex methods are required that do not display any wireframe / lib out of the box.

0
source

I used the undocumented UIWindow method to get the currently displayed frame as CGImageRef. Now it works successfully.

If you, and if I were allowed, I can post code that does the trick.

Marco

0
source

All Articles