VA-API  2.19.0
Public Attributes | List of all members
VAHuffmanTableBufferJPEGBaseline Struct Reference

Huffman table for JPEG decoding. More...

#include <va.h>

Public Attributes

uint8_t load_huffman_table [2]
 Specifies which huffman_table is valid.
 
struct {
   uint8_t   num_dc_codes [16]
 Number of Huffman codes of length i + 1 (Li).
 
   uint8_t   dc_values [12]
 Value associated with each Huffman code (Vij).
 
   uint8_t   num_ac_codes [16]
 Number of Huffman codes of length i + 1 (Li).
 
   uint8_t   ac_values [162]
 Value associated with each Huffman code (Vij).
 
   uint8_t   pad [2]
 Padding to 4-byte boundaries. Must be set to zero.
 
huffman_table [2]
 Huffman tables indexed by table identifier (Th).
 
uint32_t va_reserved [VA_PADDING_LOW]
 Reserved bytes for future use, must be zero.
 
DC table (up to 12 categories)
AC table (2 special codes + up to 16 * 10 codes)

Detailed Description

Huffman table for JPEG decoding.

This structure holds the complete Huffman tables. This is an aggregation of all Huffman table (DHT) segments maintained by the application. i.e. up to 2 Huffman tables are stored in there for baseline profile.

The load_huffman_table array can be used as a hint to notify the VA driver implementation about which table(s) actually changed since the last submission of this buffer.


The documentation for this struct was generated from the following file: