img_codec_list_bymime()
QNX SDP8.0Image Library ReferenceAPIDeveloperProgramming
Enumerate codecs by MIME type
Synopsis:
#include <img/img.h> size_t img_codec_list_bymime( img_lib_t ilib, const char* mime, img_codec_t* buf, size_t nbuf );
Arguments:
- ilib
- The handle for the image library, returned by img_lib_attach().
- mime
- A string describing the desired MIME type (in accordance with RFC 2046).
- buf
- The address of an array that the function populates with handles for available codecs.
- nbuf
- Number of items in the buf array.
Library:
libimg
Use the -l img option to qcc to link against this library.
Description:
This function enumerate codecs that handle a specified MIME type.
The function copies up to nbuf handles into the array specified by buf. No copying is done if nbuf is 0. This function returns the total number of matching codecs, which may be larger than nbuf if your buffer was not big enough to store all the matched codecs.
Returns:
The total number of matching codecs.
Classification:
Image library
Safety: | |
---|---|
Signal handler | No |
Thread | No |
Page updated: