

If hardware doesn't exist to decode the provided format or if there are insufficient hardware resources to perform hardware decoding, the appropriate result code will be returned.ĭecoded frames are emitted via the VDADecoderOutputCallback function passed in by the caller. OutputCallback- A VDADecoderOutputCallback function called by the decoder when returning decompressed image buffers to the client.ĭecoderOutputCallbackRefcon - A pointer to user data passed to the output callback for all frames from this decoder object.ĭecoderOut - On output, the newly created decoder object.Ĭreates an interface for utilizing hardware resources to decode video by returning a VDADecoder object. See Destination Image Buffer Attribute Keys. If NULL is used, the client should make no assumptions regarding the returned image buffers. This parameter may be NULL if the client has no specific preference for the format of the output image buffers.

See Decoder Configuration Keys.ĭestinationImageBufferAttributes- A CFDictionaryRef describing the clients requirements for output image buffers. VDADecoderOutputCallback *outputCallback,ĭecoderConfiguration - A CFDictionaryRef containing kVDADecoderConfiguratioXXX keys describing the source data and configuration for the decoder.

OSStatus VDADecoderCreate(CFDictionaryRef decoderConfiguration,ĬFDictionaryRef destinationImageBufferAttributes,
