IImageDecoder::InitDecoder (Windows CE 5.0)

Windows CE 5.0
Send Feedback

This method initializes the image decoder object with an input data stream.

The decoder assumes this input stream is always seekable.

After the decoder object is initialized with a stream, it is associated with that stream until you call the IImageDecoder::TerminateDecoder method.

HRESULT InitDecoder(
  IStream*        stream,
  DecoderInitFlag flags
);

Parameters

stream
[in] A pointer to the IStream interface that provides the decoder with the input data stream.
flags
[in] One or more DecoderInitFlag enumeration values specifying the initialization parameters for the decoder.

If you set the DecoderInitFlagNoBlock flag, the decoder is nonblocking. This means that when the decoder runs out of data it returns E_PENDING for the following methods:

Setting the DecoderInitFlagNoBlock flag has no effect on blocking decoders. Blocking decoders have the ImageCodecFlagsBlockingDecode flag set in the Flags member of ImageCodecInfo.

Return Values

If successful, this method returns S_OK.

This method may return E_FAIL if it fails.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Imaging.h.
Link Library: Imaging.lib.

See Also

IImageDecoder | IImageDecoder::TerminateDecoder | IStream | DecoderInitFlag | IImageDecoder::GetImageInfo | IImageDecoder::GetPropertyItem | ImageCodecInfo


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show: