Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
SGVideoChannel#settingsDialog() v. API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SGVideoChannel#settingsDialog() v. API



Dear list,

I'm trying to do two things.

Firstly, my application is headless so there is no way to call SGVideoChannel#settingsDialog() to set the codec, compression, etc. I'm trying to figure out how to do this programmatically but I'm not sure how what I see on the dialog maps to the API, if at all. On this topic, I see some code related to MovieExporter that uses AtomContainer (and shows how to save an AtomContainer for later use) but SGVideoChannel doesn't appear to use AtomContainer.

It isn't readily apparent to me how I tell the SGVideoChannel programmatically to use H.264 (for example).

Secondly, in SGDataProc#execute() I'm trying to use DSequence and CSequence to first decode, then manipulate then encode the frame. I'm having trouble getting everything to match up just right and I was wondering how the various settings for SGVideoChannel map to the constructors for DSequence and CSequence:

DSequence( ImageDescription desc, EncodedImage data, QDGraphics port, QDRect srcRect, Matrix matrix, Region mask, int flags, int accuracy, CodecComponent codec)

CSequence( QDGraphics src, QDRect srcRect, int cType, CodecComponent codec, int spatialQuality, int temporalQuality, int keyFrameRate, int flags)

Again, it isn't readily apparent to me how I get the CodecComponent that would correspond to the H.264 I chose in the previous step described.

Thanks for whatever help you can give.

Cheers,
Steve



_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.