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 1:26 PM, Sean Williams wrote:

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()

When I invoke VDGetCompressionTypes(), it returns me a -32766.
(Note: I'm using QT 7.0.3, OSX 10.4.2, Cocoa/Objc, on dual 2GHz G5 machines.)


 SeqGrabComponent seqGrabComp;
 VDCompressionListHandle h;

 seqGrabComp = OpenDefaultComponent(SeqGrabComponentType,0);
 SGInitialize(seqGrabComp);
 SGSetDataRef(seqGrabComp,0,0,seqGrabDontMakeMovie);
 VDGetCompressionTypes(seqGrabComp,h);


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()


SGSetCideoCompressorType() doesn't seem to like k422YpCbCr8CodecType or kYUV411PixelFormat; it returns -8961 for these.

Here are the compressor types for which SGSetVideoCompressorType() returns noErr. None of these gives me color, much less the full resolution I need with format 7 mode 0:

kRawCodecType:                  0
kCinepakCodecType:              0
kGraphicsCodecType:             0
kAnimationCodecType:            0
kVideoCodecType:                0
kComponentVideoCodecType:       0
kJPEGCodecType:                 0
kMotionJPEGACodecType:          0
kMotionJPEGBCodecType:          0
kPlanarRGBCodecType:            0
kBMPCodecType:                  0
kH261CodecType:                 0
kH263CodecType:                 0
kDVCNTSCCodecType:              0
kDVCPALCodecType:               0
kDVCProPALCodecType:            0
kDVCPro50NTSCCodecType:         0
kDVCPro50PALCodecType:          0
kTargaCodecType:                0
kPNGCodecType:                  0
kTIFFCodecType:                 0
kSorensonCodecType:             0
kSorenson3CodecType:            0
kMPEG4VisualCodecType:          0
kJPEG2000CodecType:             0
kPixletCodecType:               0

The compressor types for which SGSetVideoCompressorType() returns -8961 ("no codec" error?):

kSGICodecType:              -8961
kMacPaintCodecType:         -8961
kGIFCodecType:              -8961
kPhotoCDCodecType:          -8961
kQuickDrawGXCodecType:      -8961
kAVRJPEGCodecType:          -8961
kOpenDMLJPEGCodecType:      -8961
kWindowsRawCodecType:       -8961
kVectorCodecType:           -8961
kQuickDrawCodecType:        -8961
kWaterRippleCodecType:      -8961
kFireCodecType:             -8961
kCloudCodecType:            -8961
kDVCPro100NTSCCodecType:    -8961
kDVCPro100PALCodecType:     -8961
kBaseCodecType:             -8961
kFLCCodecType:              -8961
kComponentVideoSigned:      -8961
kComponentVideoUnsigned:    -8961
kCMYKCodecType:             -8961
kMicrosoftVideo1CodecType:  -8961
kIndeo4CodecType:           -8961
k64ARGBCodecType:           -8961
k48RGBCodecType:            -8961
k32AlphaGrayCodecType:      -8961
k16GrayCodecType:           -8961
kMpegYUV420CodecType:       -8961
kYUV420CodecType:           -8961
kSorensonYUV9CodecType:     -8961
k422YpCbCr8CodecType:       -8961
k444YpCbCr8CodecType:       -8961
k4444YpCbCrA8CodecType:     -8961
k422YpCbCr16CodecType:      -8961
k422YpCbCr10CodecType:      -8961
k444YpCbCr10CodecType:      -8961
k4444YpCbCrA8RCodecType:    -8961

So, what does this mean? What can I do next to get this working?

Thanks,
Alex


_______________________________________________ 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: Sean Williams <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.