| Previous | Next |
| WINCODEC_ERR_WRONGSTATE | WINCODEC_ERR_UNKNOWNIMAGEFORMAT |
WINCODEC_ERR_VALUEOUTOFRANGE
WINCODEC_ERR_VALUEOUTOFRANGE means that a value accepted by the API in principle is outside the range supported by the selected WIC codec or operation. The value can be an image dimension, a frame index, an option, a metadata value, or a coordinate.
What to inspect
- Record the exact input value together with the active container format and pixel format.
- Validate width, height, rectangle boundaries and stride calculations before converting them to unsigned WIC parameters.
- For codec-specific encoder options, use only values documented for that codec instead of assuming that an option supported by one format is portable to another.
Do not replace this error with silent clamping unless the application defines how a changed image or metadata value should be represented.
Microsoft: WIC codec error codes
Looking for a different code? Search another status or error code.