VA-API  2.13.0.pre1
va_fei.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007-2017 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 
30 #ifndef VA_FEI_H
31 #define VA_FEI_H
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 #include <stdint.h>
38 
62 #define VA_FEI_FUNCTION_ENC 0x00000001
63 
64 #define VA_FEI_FUNCTION_PAK 0x00000002
65 
66 #define VA_FEI_FUNCTION_ENC_PAK 0x00000004
67 
71 typedef union _VAConfigAttribValStats {
72  struct {
78  uint32_t num_outputs : 3;
80  uint32_t interlaced : 1;
81  uint32_t reserved : 20;
82  } bits;
83  uint32_t value;
85 
86 typedef struct _VAPictureStats
87 {
88  VASurfaceID picture_id;
89  /*
90  * see flags below.
91  */
92  uint32_t flags;
93 } VAPictureStats;
94 /* flags in VAPictureStats could be one of the following */
95 #define VA_PICTURE_STATS_INVALID 0x00000001
96 #define VA_PICTURE_STATS_PROGRESSIVE 0x00000000
97 #define VA_PICTURE_STATS_TOP_FIELD 0x00000002
98 #define VA_PICTURE_STATS_BOTTOM_FIELD 0x00000004
99 
103 #define VA_PICTURE_STATS_CONTENT_UPDATED 0x00000010
104 
108 typedef struct _VAStatsStatisticsParameter
109 {
111  VAPictureStats input;
112 
114  VAPictureStats *past_references;
115 
118 
128 
130  VAPictureStats *future_references;
131 
134 
144 
151 
158 
165 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif /* VA_FEI_H */
VABufferID * future_ref_stat_buf
Statistics output for future reference surface. Only enabling statistics output for future reference ...
Definition: va_fei.h:143
uint32_t num_past_references
Past reference surface number.
Definition: va_fei.h:117
uint32_t max_num_past_references
Max number of past reference frames that are supported.
Definition: va_fei.h:74
VAPictureStats input
Source surface ID.
Definition: va_fei.h:111
VAPictureStats * future_references
Future reference surface ID pointer.
Definition: va_fei.h:130
VAGenericID VABufferID
Definition: va.h:1926
VABufferID * outputs
ID of the output buffer. The number of outputs is determined by below DisableMVOutput and DisableStat...
Definition: va_fei.h:150
VABufferID mv_predictor
MV predictor. It is valid only when mv_predictor_ctrl is not 0. Each block has a pair of MVs...
Definition: va_fei.h:157
Attribute value for VAConfigAttribStats.
Definition: va_fei.h:71
VAPictureStats * past_references
Past reference surface ID pointer.
Definition: va_fei.h:114
uint32_t max_num_future_references
Max number of future reference frames that are supported.
Definition: va_fei.h:76
uint32_t interlaced
Interlaced content is supported.
Definition: va_fei.h:80
VABufferID qp
QP input buffer. It is valid only when mb_qp is set to 1. The data in this buffer correspond to the i...
Definition: va_fei.h:163
Motion Vector and Statistics frame level controls. common part VAStatsStatisticsParameterBufferType f...
Definition: va_fei.h:108
uint32_t num_outputs
Number of supported output buffers for VAStatsStatisticsParameter->outputs.
Definition: va_fei.h:78
VABufferID * past_ref_stat_buf
Statistics output for past reference surface. Only enabling statistics output for past reference pict...
Definition: va_fei.h:127
uint32_t num_future_references
Future reference surface number.
Definition: va_fei.h:133