Windows Imaging Component is used for decoding heif images. However extra apps from the microsoft store (heif image extension, hevc video extensions) are required for a successful decoding of the images.
Without them the WIC api returns blank image. Now I want to be able to programatically determine whether the heif file can be correctly decoded.
I have tried to locate the existence of required decoder type using DXVA Checker which is supposed to be WIC_HEIF_Decoder. But I can't find it registered anywhere.
There is a GUID key however CLSID_WICHeifDecoder documented here which I think can be registered in the system even if the decoder is missing.
Does anyone have any idea how to do this?
Since the HEIF decoders are still recognized on Windows that can't decode them this is the best hack imo:
In order to decode HEIF images HEVC video extension should be installed on the machine. So the right check is to see if there is any decoding type matching the HEVC input