API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICONTENTTHUMBNAIL0_GENERATE()

Brew Release
Brew MP 1.0.2
Description
Takes the URI string to locate the source file and schedule the request to be performed.
Params
pif
[in]:
Pointer to an IContentThumbnail0 interface
cpszURI
[in]:
URI of the source file
ppiThumb
[out]:
Pointer to IImage thumbnail interface
Return
SUCCESS
[]:
The generation of the thumbnail has started.
EITEMBUSY
[]:
The interface is busy for current request operation. Users need to call Generate() again when the interface is free.
ENOSUCH
[]:
Returned by Generate() when the URI is well-formed but does not point to valid content.
EINVALIDFORMAT
[]:
The format of the object for which a thumbnail is requested is not supported.
EBADPARM
[]:
If any of the pointers is bad.
ENOMEMORY
[]:
Not enough memory
EFAILED
[]:
If DRM protected
Interface
Prototype
  •    int IContentThumbnail0_Generate(IContentThumbnail0 * pif,
                                       const char *cpszURI,
                                       IImage **ppiThumb)
    
Side Effect
  • IContentThumbnail0_Pause IContentThumbnail0_Resume
Comments
The user must use the returned IImage thumbnail interface to call IImage_Notify() to register PFNIMAGEINFO and its user data after calling IContentThumbnail0_Generate(). Unless the user pauses the thumbnail generation, the user's pFnCB will be invoked. To resume the paused request, the user needs to call IContentThumbnail0_Resume().