Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-18-2010, 05:39 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 2
wlindner is on a distinguished road
Default Access to Capture Video in SDK 4.0

From what I've read it seems like with iPhone OS 4.0 we have more access to each frame of captured video in our apps.

I've briefly messed around with it and I've been looking primarily at the enhancements of AVFoundation, which now include AVCaptureDevice and a few other classes that should give me access to the video data. Unfortunately, I can't even create an AVCaptureDevice object because the AVFoundation doesn't import this header. When I open AVFoundation.h I see this at the bottom:

Code:
#if TARGET_OS_EMBEDDED
#import <AVFoundation/AVCaptureSession.h>
#import <AVFoundation/AVCaptureDevice.h>
#import <AVFoundation/AVCaptureInput.h>
#import <AVFoundation/AVCaptureOutput.h>
#import <AVFoundation/AVCaptureVideoPreviewLayer.h>
#endif
And for some reason it is not importing these headers. Shouldn't TARGET_OS_EMBEDDED include the iPhone?

So my questions are.

1. With 4.0, do we really have access to each frame of video data that we can manipulate to modify preview/captured video?

2. Do I need to use AVCaptureDevice to do this, if so, why is the iPhone not considered an EMBEDDED device?
wlindner is offline   Reply With Quote
Old 04-18-2010, 05:46 PM   #2 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 247
linkmx is on a distinguished road
Default

iPhone OS 4.0 is under NDA and can't be disscused here.
linkmx is offline   Reply With Quote
Old 04-18-2010, 06:34 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 2
wlindner is on a distinguished road
Default

Oh, wow. I had no idea o_0. So nothing can be discussed about it here? Not even if the functionality to manipulate video as it is being captured will be present with 4.0 officially comes out?
wlindner is offline   Reply With Quote
Old 07-11-2010, 01:03 AM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Dhaka
Posts: 5
agentBangla is on a distinguished road
Send a message via Skype™ to agentBangla
Default Access to Capture Video in SDK 4.0

Hellow wlindner,

I have faced the same problem when trying to access AVCaptureSession. But After placing the code on that block as follows, the compiler errors have gone.

#if TARGET_OS_EMBEDDED

//Here you can capture the AVCaptureSession

#endif

Still I didnt run the project onto iPhone 4 device, so not sure whether its right or wrong. Moreover, I am sure what is meant by TARGET_OS_EMBEDDED! Is it specifying the iPhone device only or any other embedded device for apple?

If you have come out with a solution please share and that would be a great help to me.

- Agent Bangla
agentBangla is offline   Reply With Quote
Old 07-12-2010, 01:07 AM   #5 (permalink)
Registered Member
 
Join Date: Feb 2010
Location: Dhaka
Posts: 5
agentBangla is on a distinguished road
Send a message via Skype™ to agentBangla
Default

As from other threads, if you build the application on device, then there will be no compiler errors. So, I would like to conclude: TARGET_OS_EMBEDDED means the installed os on device (iPhone).
agentBangla is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 324
22 members and 302 guests
baja_yu, cgokey, chemistry, Domele, Duncan C, Fstuff, gbenna, givensur, guusleijsten, heshiming, HowEver, iAppDeveloper, iphonedevshani, jbro, JoeRCruso, mdpauley, n00b, newDev, seokwon lee, SLIC, stanny, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,874
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:31 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0