What does HRESULT 0x88982F96 (WINCODEC_ERR_INVALIDJPEGSCANINDEX) mean?

 
Previous Next
WINCODEC_ERR_INVALIDPROGRESSIVELEVEL DWRITE_E_FILEFORMAT

WINCODEC_ERR_INVALIDJPEGSCANINDEX

JPEG scans are indexed structures, not progressive display levels

WINCODEC_ERR_INVALIDJPEGSCANINDEX is used by IWICJpegFrameDecode methods such as CopyScan and table-access functions when the requested scan index is invalid. Progressive JPEG stores image data in multiple scans, while baseline JPEG generally has a simpler scan structure; the available indices come from the encoded frame and the decoder’s indexing support.

A progressive WIC level and a JPEG scan index are related concepts but not interchangeable API values. Before random scan access, query whether the decoder supports indexing and obtain the scan information through the JPEG frame interface. Passing a guessed ordinal can fail even though ordinary pixel decoding succeeds.

JPEG-specific evidence

  • Confirm that the frame exposes IWICJpegFrameDecode.
  • Check DoesSupportIndexing before relying on random access to scans.
  • Log the requested scan index together with the frame and decoder identity.
  • Use ordinary frame decoding when scan-level access is unnecessary or unsupported.

References


Looking for a different code? Search another status or error code.