Enumerate codecs by MIME type
#include <img.h> size_t img_codec_list_bymime( img_lib_t ilib, const char* mime, img_codec_t* buf, size_t nbuf );
img
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.
The the total number of matching codecs.
Image library
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
img_codec_list(), img_codec_list_byext(), img_lib_attach()