VA-API  2.19.0
va_dec_jpeg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007-2012 Intel Corporation. All Rights Reserved.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the
6  * "Software"), to deal in the Software without restriction, including
7  * without limitation the rights to use, copy, modify, merge, publish,
8  * distribute, sub license, and/or sell copies of the Software, and to
9  * permit persons to whom the Software is furnished to do so, subject to
10  * the following conditions:
11  *
12  * The above copyright notice and this permission notice (including the
13  * next paragraph) shall be included in all copies or substantial portions
14  * of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19  * IN NO EVENT SHALL INTEL AND/OR ITS SUPPLIERS BE LIABLE FOR
20  * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24 
32 #ifndef VA_DEC_JPEG_H
33 #define VA_DEC_JPEG_H
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #include <va/va.h>
40 
55 typedef struct _VAPictureParameterBufferJPEGBaseline {
57  uint16_t picture_width;
59  uint16_t picture_height;
60 
61  struct {
63  uint8_t component_id;
68  /* \brief Quantization table selector (Tqi). */
69  uint8_t quantiser_table_selector;
70  } components[255];
72  uint8_t num_components;
73 
75  uint8_t color_space;
77  uint32_t rotation;
79  uint32_t va_reserved[VA_PADDING_MEDIUM - 1];
81 
96 typedef struct _VAIQMatrixBufferJPEGBaseline {
98  uint8_t load_quantiser_table[4];
100  uint8_t quantiser_table[4][64];
101 
103  uint32_t va_reserved[VA_PADDING_LOW];
105 
113 typedef struct _VASliceParameterBufferJPEGBaseline {
117  uint32_t slice_data_size;
121  uint32_t slice_data_flag;
128 
129  struct {
136  } components[4];
138  uint8_t num_components;
139 
143  uint32_t num_mcus;
144 
146  uint32_t va_reserved[VA_PADDING_LOW];
148 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* VA_DEC_JPEG_H */
uint8_t component_id
Component identifier (Ci).
Definition: va_dec_jpeg.h:63
Picture parameter for JPEG decoding.
Definition: va_dec_jpeg.h:55
uint32_t slice_data_offset
The offset to the first byte of the first MCU.
Definition: va_dec_jpeg.h:119
uint16_t picture_height
Picture height in pixels.
Definition: va_dec_jpeg.h:59
uint32_t slice_horizontal_position
Scan horizontal position.
Definition: va_dec_jpeg.h:125
uint32_t num_mcus
Number of MCUs in a scan.
Definition: va_dec_jpeg.h:143
uint8_t v_sampling_factor
Vertical sampling factor (Vi).
Definition: va_dec_jpeg.h:67
uint8_t dc_table_selector
DC entropy coding table selector (Tdj).
Definition: va_dec_jpeg.h:133
uint16_t picture_width
Picture width in pixels.
Definition: va_dec_jpeg.h:57
The Core API.
uint32_t slice_data_size
Number of bytes in the slice data buffer for this slice.
Definition: va_dec_jpeg.h:117
uint8_t ac_table_selector
AC entropy coding table selector (Taj).
Definition: va_dec_jpeg.h:135
uint32_t slice_vertical_position
Scan vertical position.
Definition: va_dec_jpeg.h:127
uint32_t rotation
Set to VA_ROTATION_* for a single rotation angle reported by VAConfigAttribDecJPEG.
Definition: va_dec_jpeg.h:77
uint8_t component_selector
Scan component selector (Csj).
Definition: va_dec_jpeg.h:131
uint16_t restart_interval
Restart interval definition (Ri).
Definition: va_dec_jpeg.h:141
uint8_t h_sampling_factor
Horizontal sampling factor (Hi).
Definition: va_dec_jpeg.h:65
uint8_t color_space
Input color space 0: YUV, 1: RGB, 2: BGR, others: reserved.
Definition: va_dec_jpeg.h:75
uint8_t num_components
Number of components in frame (Nf).
Definition: va_dec_jpeg.h:72
#define VA_PADDING_LOW
Definition: va.h:359
Slice parameter for JPEG decoding.
Definition: va_dec_jpeg.h:113
Quantization table for JPEG decoding.
Definition: va_dec_jpeg.h:96
uint32_t slice_data_flag
Slice data buffer flags. See VA_SLICE_DATA_FLAG_xxx.
Definition: va_dec_jpeg.h:121
uint8_t num_components
Number of components in scan (Ns).
Definition: va_dec_jpeg.h:138