Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening camera with specific format/mode?




On Oct 25, 2005, at 12:52 PM, Alex Majora wrote:

On October 25, 2005 at 7:17 AM Sean Williams wrote:
(to get the camera's 4:1:1 format select "Component Video - CCIR-601 uyvy" in the SGSettingsDialog())

When I bring up the settings dialog, a "Component Video" compression is listed in the pulldown menu, but nothing more specific.

Hmmm...that would either mean you are running on a G3 (where I ignore a camera's YUV 4:1:1 modes) or you are seeing a bug I only recently fixed (and as normal, can't elaborate on about potential release dates for the fix).
I had naively expected only a single color encoding to be used for each mode, so if I saw one that was unsupported (i.e, Mono 16) I would also ignore the color encodings I did support.

And, it gives me the same monochrome image as if I had used "None".

Though not really related to the issue at hand, it is useful to remember that the SequenceGrabber only instructs a digitizer to switch to a non-preferred compression type during record operations.  So the preview won't generally change in that dialog when one changes the compression type since the SG is operating in preview mode.

At any rate, is there no programmatic way to do this? If the QuickTimeIIDCDigitizer.component doesn't have an API for setting a camera's format/mode, how can I go about doing this? I'm in a Cocoa / 10.4.2 environment.

Barring the bug mentioned above, if one does not want to use the SGSettingsDialog to configure the video channel

A) Figure out what compression types the video channel natively supports (and for the QuickTimeIIDCDigitizer, this might vary based on which input is active)
VDGetCompressionTypes()

B) If it has one that you want (in your case, the 4:1:1 internal format upscaled to 4:2:2 would be k422YpCbCr8CodecType) tell SG to use that compressor type with the channel:
SGSetVideoCompressorType()

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >Re: Opening camera with specific format/mode? (From: "Alex Majora" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.