我正在头文件中寻找 QTAtomContainer
很多quicktime示例参考QTAtomContainer来设置Movie导出参数。
我已经得到了古代所有的工作代码。现在我使用 xcode 4,编译器找不到 QTAtomContainer。根据苹果文档,这应该在 Movie.h 中声明。但是没有QTAtomContainer。有人知道苹果将此声明移至何处或我丢失了哪个标头吗?
a lot of quicktime examples refer to QTAtomContainer to set Movie export parameters.
I've got all that working code from ancient times. Now I am using xcode 4 and the compiler cannot find QTAtomContainer. According to Apples documentation this should be declared in Movie.h. But there is no QTAtomContainer. Does someone know where Apple moved this declaration into or which header I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我终于找到了问题所在。在 Quicktime 中定义了很多符号!仅此而已!如果您的 xcode 项目以 PLAIN 32 位模式编译。使用“标准(32/64 位-Intel)”或仅 64 位的通用二进制文件永远不会找到这些符号。 (“标准(32/64 位-Intel)”是实际 xcode 4 系列编译器的默认设置。恕我直言,Quicktime 将/必须更改。Lion 默认情况下将随 64 位一起提供)
在“QuickTime/QuicktimeComponents.h”中,您将找到以下行:
这意味着如果至少定义一次 64 位代码,编译器将找不到符号
QTAtomContainer
MovieExportGetSettingsAsAtomContainer
电影导出组件
canMovieExportFiles
至今一直缺失。现在,我可以成功地使用该示例,使用 QTMovieExportSettings 键在 Quicktime 中设置 VideoQuality 设置,您可以在此处找到该键:
http://www.cocoadev.com/index.pl?QTMovieExportSettings
我正在使用以下标头:
这些标头隐式包括“QuickTime/QuicktimeComponents.h”
希望我可以帮助其他遇到这个问题的人。
问候
杰克
I finally I found the problem. In Quicktime a lot of symbols are defined !ONLY! if your xcode-project compiles in PLAIN 32-Bit mode. Universal binaries using "Standard (32/64 bit-Intel)" or just 64-Bit will never find these symbols. ("Standard (32/64 bit-Intel)" is the default setting of the actual xcode 4 series compiler. IMHO Quicktime will/must change. Lion will be shipped with 64Bit by default)
In "QuickTime/QuicktimeComponents.h" you will find the following line:
That means if 64 Bit-Code is defined at least once, the compiler will not find the symbols
QTAtomContainer
MovieExportGetSettingsAsAtomContainer
MovieExportComponent
canMovieExportFiles
which have been missing until now. Now I can successfully use the example to set the VideoQuality settings in Quicktime using the QTMovieExportSettings key, which you can find here:
http://www.cocoadev.com/index.pl?QTMovieExportSettings
I am using the following headers:
These headers implicitly include "QuickTime/QuicktimeComponents.h"
Hope I could help someone else who struggled with this problem.
Greetings
Jack
谢谢你!四年后,我正在为 OS X 10.7 进行开发,我确信这节省了我很多时间。
Thanks for this! Four years later and I'm developing for OS X 10.7, this saved me lots of time, I'm sure.