iPhone SDK 3.0 相机访问
谁能建议一下 iPhone SDK 3.0 是否仍然不允许访问原始相机像素数据
这就是所有以前的 SDK 的情况,我认为这一定是 Apple 采取的举措,以确保他们是第一个实施的 SDK视频录制。 由于3.0现在有了视频录制功能,而且据我所知情况仍然如此,那么显然我错了。
我想知道苹果在玩什么? 为什么他们不允许我们在 iPhone 上编写疯狂超酷的增强现实应用程序。
有任何想法吗?
Could anyone advise on whether the iPhone SDK 3.0 still does not allow access to the raw camera pixel data
This is how it was with all the previous SDKs and I thought it must have been a move by Apple to ensure they were the first ones to implement the video recording. Since 3.0 now has video recording, and as far as im aware the situation remains the same, then evidently I was wrong.
What I am wondering is what is apple playing at? Why aren't they allowing us to write crazy super-cool augmented reality applications on the iPhone.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,使用 SDK 3.0 和新的 Iphone 3G S,您实际上可以使用提供的 API 来捕捉电影。
您的视频时长仅限 10 分钟。
在 UIImagePickerControllerDelegate 中,您现在可以找到 UIImagePickerControllerMediaType。
这指定用户选择的媒体类型。 该值是一个 NSString 对象,包含类型代码,例如 kUTTypeImage 或 kUTTypeMovie。
添加了此方法:
imagePickerController:didFinishPickingMediaWithInfo:
告诉委托人用户选择了图像或电影。 此方法是可选的。
参数
拾取器
管理图像选择器界面的控制器对象。
信息
如果选取了图像,则包含原始图像和编辑后的图像的字典; 或电影的文件系统 URL(如果选择了电影)。 该词典还包含任何相关的编辑信息。 该词典的键列在“编辑信息键”中。
讨论
您的委托对象对此方法的实现应该将指定的媒体传递给任何需要它的自定义代码,然后关闭选取器视图。
启用编辑后,选取器视图向用户呈现当前所选图像或电影的预览以及用于修改它的控件。 (此行为在调用此方法之前由选取器视图管理。)如果用户修改图像或影片,则 info 参数中提供编辑信息。 原始图像也会在 info 参数中返回。
电影时长最长为 10 分钟。 如果用户选择的电影时长超过 10 分钟,他们将被迫在保存之前对其进行修剪。
此方法的实现是可选的,但是预期的。
可用性
适用于 iPhone OS 3.0b 及更高版本。
No, with SDK 3.0 and a new Iphone 3G S you can actually capture movies using the provide APIs.
You are restricted to 10 minutes video.
In the UIImagePickerControllerDelegate, you can now find UIImagePickerControllerMediaType.
This specifies the media type selected by the user. The value is an NSString object containing a type code such as kUTTypeImage or kUTTypeMovie.
This method has been added:
imagePickerController:didFinishPickingMediaWithInfo:
Tells the delegate that the user picked an image or movie. This method is optional.
Parameters
picker
The controller object managing the image picker interface.
info
A dictionary containing the original image and the edited image, if an image was picked; or a filesystem URL for the movie, if a movie was picked. The dictionary also contains any relevant editing information. The keys for this dictionary are listed in “Editing information keys.”
Discussion
Your delegate object’s implementation of this method should pass the specified media on to any custom code that needs it and then dismiss the picker view.
When editing is enabled, the picker view presents the user with a preview of the currently selected image or movie along with controls for modifying it. (This behavior is managed by the picker view prior to calling this method.) If the user modifies the image or movie, the editing information is available in the info parameter. The original image is also returned in the info parameter.
Maximum movie duration is 10 minutes. If a user picks a movie that is longer in duration than 10 minutes, they are forced to trim it before saving it.
Implementation of this method is optional, but expected.
Availability
Available in iPhone OS 3.0b and later.