| Previous | Next |
| WINCODEC_ERR_STREAMNOTAVAILABLE | WINCODEC_ERR_UNSUPPORTEDOPERATION |
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT means that the selected WIC decoder, encoder, transform, or source transform cannot provide or consume the requested pixel format. A valid image can still produce this result if the requested output representation is unsupported.
Recommended approach
- Inspect the source format and ask the component for a supported or closest pixel format when the API provides that capability.
- Use
IWICFormatConverterwhen conversion to a known supported format such as 24bpp RGB or 32bpp BGRA is acceptable. - Do not assume optional representations such as depth, gain, planar YCbCr, or high-bit-depth formats are available on every codec and Windows version.
Keep the native source format and the requested destination format in diagnostic logs.
Microsoft: WIC pixel formats and component model
Looking for a different code? Search another status or error code.