IWICJpegFrameEncode::GetDcHuffmanTable method

Retrieves a copy of the DC Huffman table for the specified scan and table.

Syntax


HRESULT GetDcHuffmanTable(
        UINT                       scanIndex,
        UINT                       tableIndex,
  [out] DXGI_JPEG_AC_HUFFMAN_TABLE *pAcHuffmanTable
);

Parameters

scanIndex

The zero-based index of the scan for which data is retrieved.

tableIndex

The index of the DC Huffman table to retrieve.

pAcHuffmanTable [out]

A pointer that receives the table data. This parameter must not be NULL.

Return value

This method can return one of these values.

Return valueDescription
S_OK

The operation was successful.

WINCODEC_ERR_INVALIDJPEGSCANINDEX

The specified scan index is invalid.

WINCODEC_ERR_INVALIDPARAMETER

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

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

See also

IWICJpegFrameEncode

 

 

Show: