VA-API  2.22.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;
81  uint32_t va_reserved[VA_PADDING_MEDIUM - 3];
83 
98 typedef struct _VAIQMatrixBufferJPEGBaseline {
100  uint8_t load_quantiser_table[4];
102  uint8_t quantiser_table[4][64];
103 
105  uint32_t va_reserved[VA_PADDING_LOW];
107 
115 typedef struct _VASliceParameterBufferJPEGBaseline {
119  uint32_t slice_data_size;
123  uint32_t slice_data_flag;
130 
131  struct {
138  } components[4];
140  uint8_t num_components;
141 
145  uint32_t num_mcus;
146 
148  uint32_t va_reserved[VA_PADDING_LOW];
150 
153 #ifdef __cplusplus
154 }
155 #endif
156 
157 #endif /* VA_DEC_JPEG_H */
#define VA_PADDING_LOW
Definition: va.h:360
Quantization table for JPEG decoding.
Definition: va_dec_jpeg.h:98
Picture parameter for JPEG decoding.
Definition: va_dec_jpeg.h:55
VARectangle crop_rectangle
crop rectangle boundary in pixels
Definition: va_dec_jpeg.h:79
uint8_t color_space
Input color space 0: YUV, 1: RGB, 2: BGR, others: reserved.
Definition: va_dec_jpeg.h:75
uint8_t h_sampling_factor
Horizontal sampling factor (Hi).
Definition: va_dec_jpeg.h:65
uint8_t component_id
Component identifier (Ci).
Definition: va_dec_jpeg.h:63
uint16_t picture_width
Picture width in pixels.
Definition: va_dec_jpeg.h:57
uint8_t num_components
Number of components in frame (Nf).
Definition: va_dec_jpeg.h:72
uint32_t rotation
Set to VA_ROTATION_* for a single rotation angle reported by VAConfigAttribDecJPEG.
Definition: va_dec_jpeg.h:77
uint16_t picture_height
Picture height in pixels.
Definition: va_dec_jpeg.h:59
uint8_t v_sampling_factor
Vertical sampling factor (Vi).
Definition: va_dec_jpeg.h:67
Structure to describe rectangle.
Definition: va.h:406
Slice parameter for JPEG decoding.
Definition: va_dec_jpeg.h:115
uint8_t ac_table_selector
AC entropy coding table selector (Taj).
Definition: va_dec_jpeg.h:137
uint32_t slice_data_flag
Slice data buffer flags. See VA_SLICE_DATA_FLAG_xxx.
Definition: va_dec_jpeg.h:123
uint8_t dc_table_selector
DC entropy coding table selector (Tdj).
Definition: va_dec_jpeg.h:135
uint32_t slice_horizontal_position
Scan horizontal position.
Definition: va_dec_jpeg.h:127
uint16_t restart_interval
Restart interval definition (Ri).
Definition: va_dec_jpeg.h:143
uint32_t slice_data_offset
The offset to the first byte of the first MCU.
Definition: va_dec_jpeg.h:121
uint8_t num_components
Number of components in scan (Ns).
Definition: va_dec_jpeg.h:140
uint32_t slice_vertical_position
Scan vertical position.
Definition: va_dec_jpeg.h:129
uint32_t slice_data_size
Number of bytes in the slice data buffer for this slice.
Definition: va_dec_jpeg.h:119
uint32_t num_mcus
Number of MCUs in a scan.
Definition: va_dec_jpeg.h:145
uint8_t component_selector
Scan component selector (Csj).
Definition: va_dec_jpeg.h:133
The Core API.