VA-API  2.13.0.pre1
va_dec_vp9.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 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_VP9_H
33 #define VA_DEC_VP9_H
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
58 typedef struct _VADecPictureParameterBufferVP9
59 {
63  uint16_t frame_width;
67  uint16_t frame_height;
68 
77  VASurfaceID reference_frames[8];
78 
79  union
80  {
81  struct
82  {
86  uint32_t subsampling_x : 1;
87  uint32_t subsampling_y : 1;
88  uint32_t frame_type : 1;
89  uint32_t show_frame : 1;
90  uint32_t error_resilient_mode : 1;
91  uint32_t intra_only : 1;
92  uint32_t allow_high_precision_mv : 1;
93  uint32_t mcomp_filter_type : 3;
94  uint32_t frame_parallel_decoding_mode : 1;
95  uint32_t reset_frame_context : 2;
96  uint32_t refresh_frame_context : 1;
97  uint32_t frame_context_idx : 2;
98  uint32_t segmentation_enabled : 1;
99 
107 
112  uint32_t last_ref_frame : 3;
121  uint32_t golden_ref_frame : 3;
130  uint32_t alt_ref_frame : 3;
143  uint32_t lossless_flag : 1;
144  } bits;
145  uint32_t value;
146  } pic_fields;
147 
148  /* following parameters have same syntax with those in VP9 code */
149  uint8_t filter_level;
150  uint8_t sharpness_level;
151 
155  uint8_t log2_tile_rows;
169 
174 
179  uint8_t mb_segment_tree_probs[7];
180  uint8_t segment_pred_probs[3];
181 
185  uint8_t profile;
186 
190  uint8_t bit_depth;
191 
193  uint32_t va_reserved[VA_PADDING_MEDIUM];
194 
196 
197 
198 
207 typedef struct _VASegmentParameterVP9
208 {
209  union
210  {
211  struct
212  {
227  uint16_t segment_reference : 2;
233  } fields;
234  uint16_t value;
235  } segment_flags;
236 
241  uint8_t filter_level[4][2];
262 
264  uint32_t va_reserved[VA_PADDING_LOW];
265 
267 
268 
269 
285 typedef struct _VASliceParameterBufferVP9
286 {
292  uint32_t slice_data_size;
300  uint32_t slice_data_flag;
301 
305  VASegmentParameterVP9 seg_param[8];
306 
308  uint32_t va_reserved[VA_PADDING_LOW];
309 
311 
312 
315 #ifdef __cplusplus
316 }
317 #endif
318 
319 #endif /* VA_DEC_VP9_H */
uint8_t log2_tile_rows
number of tile rows specified by (1 << log2_tile_rows). It corresponds the variable with same name in...
Definition: va_dec_vp9.h:155
uint32_t last_ref_frame
Index of reference_frames[] and points to the LAST reference frame. It corresponds to active_ref_idx[...
Definition: va_dec_vp9.h:112
VP9 Segmentation Parameter Data Structure.
Definition: va_dec_vp9.h:207
int16_t luma_dc_quant_scale
Specifies per segment Luma DC quantization scale. Corresponding to y_dequant[qindex][0] in vp9_mb_ini...
Definition: va_dec_vp9.h:251
uint32_t slice_data_flag
Definition: va_dec_vp9.h:300
uint32_t subsampling_x
flags for current picture same syntax and semantic as those in VP9 code
Definition: va_dec_vp9.h:86
uint8_t bit_depth
VP9 bit depth per sample same for both luma and chroma samples.
Definition: va_dec_vp9.h:190
uint32_t slice_data_size
The byte count of current frame in the bitstream buffer, starting from first byte of the buffer...
Definition: va_dec_vp9.h:292
uint32_t alt_ref_frame
Index of reference_frames[] and points to the ALTERNATE reference frame. Corresponds to active_ref_id...
Definition: va_dec_vp9.h:130
uint32_t slice_data_offset
Definition: va_dec_vp9.h:296
uint32_t golden_ref_frame_sign_bias
Sign Bias of the GOLDERN reference frame. Corresponds to ref_frame_sign_bias[GOLDERN_FRAME] in VP9 co...
Definition: va_dec_vp9.h:125
uint16_t frame_height
picture height Picture original resolution. The value may not be multiple of 8.
Definition: va_dec_vp9.h:67
VP9 Slice Parameter Buffer Structure.
Definition: va_dec_vp9.h:285
uint32_t lossless_flag
Lossless Mode LosslessFlag = base_qindex == 0 && y_dc_delta_q == 0 && uv_dc_delta_q == 0 && uv_ac_del...
Definition: va_dec_vp9.h:143
int16_t luma_ac_quant_scale
Specifies per segment Luma AC quantization scale. Corresponding to y_dequant[qindex][1] in vp9_mb_ini...
Definition: va_dec_vp9.h:246
uint8_t frame_header_length_in_bytes
Number of bytes taken up by the uncompressed frame header, which corresponds to byte length of functi...
Definition: va_dec_vp9.h:168
uint16_t segment_reference_skipped
Indicates if per segment skip feature is enabled. Corresponding to variable feature_enabled when j ==...
Definition: va_dec_vp9.h:232
uint32_t segmentation_update_map
corresponds to variable update_mb_segmentation_map in VP9 code.
Definition: va_dec_vp9.h:106
#define VA_PADDING_LOW
Definition: va.h:358
uint32_t alt_ref_frame_sign_bias
Sign Bias of the ALTERNATE reference frame. Corresponds to ref_frame_sign_bias[ALTREF_FRAME] in VP9 c...
Definition: va_dec_vp9.h:134
VP9 Decoding Picture Parameter Buffer Structure.
Definition: va_dec_vp9.h:58
uint32_t last_ref_frame_sign_bias
Sign Bias of the LAST reference frame. It corresponds to ref_frame_sign_bias[LAST_FRAME] in VP9 code...
Definition: va_dec_vp9.h:116
uint32_t segmentation_temporal_update
corresponds to variable temporal_update in VP9 code.
Definition: va_dec_vp9.h:102
uint16_t segment_reference_enabled
Indicates if per segment reference frame indicator is enabled. Corresponding to variable feature_enab...
Definition: va_dec_vp9.h:218
uint8_t profile
VP9 Profile definition value range [0..3].
Definition: va_dec_vp9.h:185
uint16_t segment_reference
Specifies per segment reference indication. 0: reserved 1: Last ref 2: golden 3: altref Value can be ...
Definition: va_dec_vp9.h:227
uint16_t first_partition_size
The byte count of compressed header the bitstream buffer, which corresponds to syntax first_partition...
Definition: va_dec_vp9.h:173
uint16_t frame_width
picture width Picture original resolution. The value may not be multiple of 8.
Definition: va_dec_vp9.h:63
uint32_t golden_ref_frame
Index of reference_frames[] and points to the GOLDERN reference frame. It corresponds to active_ref_i...
Definition: va_dec_vp9.h:121
uint8_t log2_tile_columns
number of tile columns specified by (1 << log2_tile_columns). It corresponds the variable with same n...
Definition: va_dec_vp9.h:159
int16_t chroma_ac_quant_scale
Specifies per segment Chroma AC quantization scale. Corresponding to uv_dequant[qindex][1] in vp9_mb_...
Definition: va_dec_vp9.h:256
int16_t chroma_dc_quant_scale
Specifies per segment Chroma DC quantization scale. Corresponding to uv_dequant[qindex][0] in vp9_mb_...
Definition: va_dec_vp9.h:261