IWICJpegFrameDecode::GetQuantizationTable method
Retrieves a copy of the quantization table.
Syntax
HRESULT GetQuantizationTable( UINT scanIndex, UINT tableIndex, [out] DXGI_JPEG_QUANTIZATION_TABLE *pQuantizationTable );
Parameters
- scanIndex
-
Type: UINT
The zero-based index of the scan for which data is retrieved.
- tableIndex
-
Type: UINT
The index of the quantization table to retrieve. Valid indices for a given scan can be determined by retrieving the scan header with IWICJpegFrameDecode::GetScanHeader.
- pQuantizationTable [out]
-
Type: DXGI_JPEG_QUANTIZATION_TABLE*
A pointer that receives the table data. This parameter must not be NULL.
Return value
Type: HRESULT
This method can return one of these values.
| Return value | Description |
|---|---|
|
The operation was successful. |
|
The specified scan index is invalid. |
|
Can occur if pTable is NULL or if tableIndex does not point to a valid table slot. Check the scan header for valid table indices. |
Requirements
|
Minimum supported client |
Windows 10 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
Library |
|
|
DLL |
|
See also