83 #include <va/va_version.h>
89 #if defined(__GNUC__) && !defined(__COVERITY__)
90 #define va_deprecated __attribute__((deprecated))
92 #define va_deprecated_enum va_deprecated
94 #define va_deprecated_enum
98 #define va_deprecated_enum
261 typedef int VAStatus;
263 #define VA_STATUS_SUCCESS 0x00000000
264 #define VA_STATUS_ERROR_OPERATION_FAILED 0x00000001
265 #define VA_STATUS_ERROR_ALLOCATION_FAILED 0x00000002
266 #define VA_STATUS_ERROR_INVALID_DISPLAY 0x00000003
267 #define VA_STATUS_ERROR_INVALID_CONFIG 0x00000004
268 #define VA_STATUS_ERROR_INVALID_CONTEXT 0x00000005
269 #define VA_STATUS_ERROR_INVALID_SURFACE 0x00000006
270 #define VA_STATUS_ERROR_INVALID_BUFFER 0x00000007
271 #define VA_STATUS_ERROR_INVALID_IMAGE 0x00000008
272 #define VA_STATUS_ERROR_INVALID_SUBPICTURE 0x00000009
273 #define VA_STATUS_ERROR_ATTR_NOT_SUPPORTED 0x0000000a
274 #define VA_STATUS_ERROR_MAX_NUM_EXCEEDED 0x0000000b
275 #define VA_STATUS_ERROR_UNSUPPORTED_PROFILE 0x0000000c
276 #define VA_STATUS_ERROR_UNSUPPORTED_ENTRYPOINT 0x0000000d
277 #define VA_STATUS_ERROR_UNSUPPORTED_RT_FORMAT 0x0000000e
278 #define VA_STATUS_ERROR_UNSUPPORTED_BUFFERTYPE 0x0000000f
279 #define VA_STATUS_ERROR_SURFACE_BUSY 0x00000010
280 #define VA_STATUS_ERROR_FLAG_NOT_SUPPORTED 0x00000011
281 #define VA_STATUS_ERROR_INVALID_PARAMETER 0x00000012
282 #define VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED 0x00000013
283 #define VA_STATUS_ERROR_UNIMPLEMENTED 0x00000014
284 #define VA_STATUS_ERROR_SURFACE_IN_DISPLAYING 0x00000015
285 #define VA_STATUS_ERROR_INVALID_IMAGE_FORMAT 0x00000016
286 #define VA_STATUS_ERROR_DECODING_ERROR 0x00000017
287 #define VA_STATUS_ERROR_ENCODING_ERROR 0x00000018
295 #define VA_STATUS_ERROR_INVALID_VALUE 0x00000019
297 #define VA_STATUS_ERROR_UNSUPPORTED_FILTER 0x00000020
299 #define VA_STATUS_ERROR_INVALID_FILTER_CHAIN 0x00000021
301 #define VA_STATUS_ERROR_HW_BUSY 0x00000022
303 #define VA_STATUS_ERROR_UNSUPPORTED_MEMORY_TYPE 0x00000024
305 #define VA_STATUS_ERROR_NOT_ENOUGH_BUFFER 0x00000025
307 #define VA_STATUS_ERROR_TIMEDOUT 0x00000026
308 #define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF
317 #define VA_FRAME_PICTURE 0x00000000
318 #define VA_TOP_FIELD 0x00000001
319 #define VA_BOTTOM_FIELD 0x00000002
320 #define VA_TOP_FIELD_FIRST 0x00000004
321 #define VA_BOTTOM_FIELD_FIRST 0x00000008
329 #define VA_ENABLE_BLEND 0x00000004
336 #define VA_CLEAR_DRAWABLE 0x00000008
339 #define VA_SRC_COLOR_MASK 0x000000f0
340 #define VA_SRC_BT601 0x00000010
341 #define VA_SRC_BT709 0x00000020
342 #define VA_SRC_SMPTE_240 0x00000040
345 #define VA_FILTER_SCALING_DEFAULT 0x00000000
346 #define VA_FILTER_SCALING_FAST 0x00000100
347 #define VA_FILTER_SCALING_HQ 0x00000200
348 #define VA_FILTER_SCALING_NL_ANAMORPHIC 0x00000300
349 #define VA_FILTER_SCALING_MASK 0x00000f00
352 #define VA_FILTER_INTERPOLATION_DEFAULT 0x00000000
353 #define VA_FILTER_INTERPOLATION_NEAREST_NEIGHBOR 0x00001000
354 #define VA_FILTER_INTERPOLATION_BILINEAR 0x00002000
355 #define VA_FILTER_INTERPOLATION_ADVANCED 0x00003000
356 #define VA_FILTER_INTERPOLATION_MASK 0x0000f000
359 #define VA_PADDING_LOW 4
360 #define VA_PADDING_MEDIUM 8
361 #define VA_PADDING_HIGH 16
362 #define VA_PADDING_LARGE 32
366 #define VA_EXEC_SYNC 0x0
368 #define VA_EXEC_ASYNC 0x1
371 #define VA_EXEC_MODE_DEFAULT 0x0
372 #define VA_EXEC_MODE_POWER_SAVING 0x1
373 #define VA_EXEC_MODE_PERFORMANCE 0x2
380 #define VA_FEATURE_NOT_SUPPORTED 0
390 #define VA_FEATURE_SUPPORTED 1
397 #define VA_FEATURE_REQUIRED 2
404 typedef struct _VARectangle {
412 typedef struct _VAMotionVector {
482 typedef int (*VAPrivFunc)(void);
497 VAProfileMPEG2Simple = 0,
498 VAProfileMPEG2Main = 1,
499 VAProfileMPEG4Simple = 2,
500 VAProfileMPEG4AdvancedSimple = 3,
501 VAProfileMPEG4Main = 4,
503 VAProfileH264Main = 6,
504 VAProfileH264High = 7,
505 VAProfileVC1Simple = 8,
506 VAProfileVC1Main = 9,
507 VAProfileVC1Advanced = 10,
508 VAProfileH263Baseline = 11,
509 VAProfileJPEGBaseline = 12,
510 VAProfileH264ConstrainedBaseline = 13,
511 VAProfileVP8Version0_3 = 14,
512 VAProfileH264MultiviewHigh = 15,
513 VAProfileH264StereoHigh = 16,
514 VAProfileHEVCMain = 17,
515 VAProfileHEVCMain10 = 18,
516 VAProfileVP9Profile0 = 19,
517 VAProfileVP9Profile1 = 20,
518 VAProfileVP9Profile2 = 21,
519 VAProfileVP9Profile3 = 22,
520 VAProfileHEVCMain12 = 23,
521 VAProfileHEVCMain422_10 = 24,
522 VAProfileHEVCMain422_12 = 25,
523 VAProfileHEVCMain444 = 26,
524 VAProfileHEVCMain444_10 = 27,
525 VAProfileHEVCMain444_12 = 28,
526 VAProfileHEVCSccMain = 29,
527 VAProfileHEVCSccMain10 = 30,
528 VAProfileHEVCSccMain444 = 31,
529 VAProfileAV1Profile0 = 32,
530 VAProfileAV1Profile1 = 33,
531 VAProfileHEVCSccMain444_10 = 34,
542 VAEntrypointIDCT = 3,
543 VAEntrypointMoComp = 4,
544 VAEntrypointDeblocking = 5,
545 VAEntrypointEncSlice = 6,
546 VAEntrypointEncPicture = 7,
555 VAEntrypointEncSliceLP = 8,
607 VAConfigAttribRTFormat = 0,
608 VAConfigAttribSpatialResidual = 1,
609 VAConfigAttribSpatialClipping = 2,
610 VAConfigAttribIntraResidual = 3,
611 VAConfigAttribEncryption = 4,
612 VAConfigAttribRateControl = 5,
1032 VAConfigAttribTypeMax
1041 typedef struct _VAConfigAttrib {
1048 #define VA_RT_FORMAT_YUV420 0x00000001
1049 #define VA_RT_FORMAT_YUV422 0x00000002
1050 #define VA_RT_FORMAT_YUV444 0x00000004
1051 #define VA_RT_FORMAT_YUV411 0x00000008
1052 #define VA_RT_FORMAT_YUV400 0x00000010
1053 #define VA_RT_FORMAT_YUV420_10 0x00000100
1054 #define VA_RT_FORMAT_YUV422_10 0x00000200
1055 #define VA_RT_FORMAT_YUV444_10 0x00000400
1056 #define VA_RT_FORMAT_YUV420_12 0x00001000
1057 #define VA_RT_FORMAT_YUV422_12 0x00002000
1058 #define VA_RT_FORMAT_YUV444_12 0x00004000
1060 #define VA_RT_FORMAT_RGB16 0x00010000
1061 #define VA_RT_FORMAT_RGB32 0x00020000
1062 #define VA_RT_FORMAT_RGBP 0x00100000
1063 #define VA_RT_FORMAT_RGB32_10 0x00200000
1065 #define VA_RT_FORMAT_PROTECTED 0x80000000
1067 #define VA_RT_FORMAT_RGB32_10BPP VA_RT_FORMAT_RGB32_10
1068 #define VA_RT_FORMAT_YUV420_10BPP VA_RT_FORMAT_YUV420_10
1073 #define VA_RC_NONE 0x00000001
1075 #define VA_RC_CBR 0x00000002
1077 #define VA_RC_VBR 0x00000004
1079 #define VA_RC_VCM 0x00000008
1081 #define VA_RC_CQP 0x00000010
1083 #define VA_RC_VBR_CONSTRAINED 0x00000020
1086 #define VA_RC_ICQ 0x00000040
1089 #define VA_RC_MB 0x00000080
1091 #define VA_RC_CFS 0x00000100
1102 #define VA_RC_PARALLEL 0x00000200
1109 #define VA_RC_QVBR 0x00000400
1120 #define VA_RC_AVBR 0x00000800
1129 #define VA_RC_TCBRC 0x00001000
1136 #define VA_DEC_SLICE_MODE_NORMAL 0x00000001
1138 #define VA_DEC_SLICE_MODE_BASE 0x00000002
1142 typedef union _VAConfigAttribValDecJPEG {
1145 uint32_t rotation : 4;
1147 uint32_t reserved : 28;
1150 } VAConfigAttribValDecJPEG;
1154 #define VA_DEC_PROCESSING_NONE 0x00000000
1156 #define VA_DEC_PROCESSING 0x00000001
1162 #define VA_ENC_PACKED_HEADER_NONE 0x00000000
1169 #define VA_ENC_PACKED_HEADER_SEQUENCE 0x00000001
1176 #define VA_ENC_PACKED_HEADER_PICTURE 0x00000002
1183 #define VA_ENC_PACKED_HEADER_SLICE 0x00000004
1192 #define VA_ENC_PACKED_HEADER_MISC 0x00000008
1194 #define VA_ENC_PACKED_HEADER_RAW_DATA 0x00000010
1200 #define VA_ENC_INTERLACED_NONE 0x00000000
1202 #define VA_ENC_INTERLACED_FRAME 0x00000001
1204 #define VA_ENC_INTERLACED_FIELD 0x00000002
1206 #define VA_ENC_INTERLACED_MBAFF 0x00000004
1208 #define VA_ENC_INTERLACED_PAFF 0x00000008
1214 #define VA_ENC_SLICE_STRUCTURE_POWER_OF_TWO_ROWS 0x00000001
1216 #define VA_ENC_SLICE_STRUCTURE_ARBITRARY_MACROBLOCKS 0x00000002
1218 #define VA_ENC_SLICE_STRUCTURE_EQUAL_ROWS 0x00000004
1220 #define VA_ENC_SLICE_STRUCTURE_MAX_SLICE_SIZE 0x00000008
1222 #define VA_ENC_SLICE_STRUCTURE_ARBITRARY_ROWS 0x00000010
1226 #define VA_ENC_SLICE_STRUCTURE_EQUAL_MULTI_ROWS 0x00000020
1230 typedef union _VAConfigAttribValMaxFrameSize {
1247 typedef union _VAConfigAttribValEncJPEG {
1257 uint32_t max_num_components : 3;
1258 uint32_t max_num_scans : 4;
1259 uint32_t max_num_huffman_tables : 3;
1260 uint32_t max_num_quantization_tables : 3;
1268 #define VA_ENC_QUANTIZATION_NONE 0x00000000
1270 #define VA_ENC_QUANTIZATION_TRELLIS_SUPPORTED 0x00000001
1281 #define VA_PREDICTION_DIRECTION_PREVIOUS 0x00000001
1283 #define VA_PREDICTION_DIRECTION_FUTURE 0x00000002
1285 #define VA_PREDICTION_DIRECTION_BI_NOT_EMPTY 0x00000004
1291 #define VA_ENC_INTRA_REFRESH_NONE 0x00000000
1293 #define VA_ENC_INTRA_REFRESH_ROLLING_COLUMN 0x00000001
1295 #define VA_ENC_INTRA_REFRESH_ROLLING_ROW 0x00000002
1297 #define VA_ENC_INTRA_REFRESH_ADAPTIVE 0x00000010
1299 #define VA_ENC_INTRA_REFRESH_CYCLIC 0x00000020
1301 #define VA_ENC_INTRA_REFRESH_P_FRAME 0x00010000
1303 #define VA_ENC_INTRA_REFRESH_B_FRAME 0x00020000
1305 #define VA_ENC_INTRA_REFRESH_MULTI_REF 0x00040000
1310 typedef union _VAConfigAttribValEncROI {
1338 uint32_t reserved : 22;
1344 typedef union _VAConfigAttribValEncRateControlExt {
1379 uint32_t reserved : 23;
1385 typedef union _VAConfigAttribValMultipleFrame {
1400 typedef union _VAConfigAttribValContextPriority {
1412 typedef union _VAConfigAttribValEncPerBlockControl {
1428 #define VA_PC_CIPHER_AES 0x00000001
1432 #define VA_PC_BLOCK_SIZE_128 0x00000001
1434 #define VA_PC_BLOCK_SIZE_192 0x00000002
1436 #define VA_PC_BLOCK_SIZE_256 0x00000004
1440 #define VA_PC_CIPHER_MODE_ECB 0x00000001
1442 #define VA_PC_CIPHER_MODE_CBC 0x00000002
1444 #define VA_PC_CIPHER_MODE_CTR 0x00000004
1448 #define VA_PC_SAMPLE_TYPE_FULLSAMPLE 0x00000001
1450 #define VA_PC_SAMPLE_TYPE_SUBSAMPLE 0x00000002
1454 #define VA_PC_USAGE_DEFAULT 0x00000000
1456 #define VA_PC_USAGE_WIDEVINE 0x00000001
1461 #define VA_PROCESSING_RATE_NONE 0x00000000
1463 #define VA_PROCESSING_RATE_ENCODE 0x00000001
1465 #define VA_PROCESSING_RATE_DECODE 0x00000002
1471 #define VA_ATTRIB_NOT_SUPPORTED 0x80000000
1510 int *num_entrypoints
1545 VAConfigID *config_id
1553 VAConfigID config_id
1566 VAConfigID config_id,
1597 #define VA_INVALID_ID 0xffffffff
1598 #define VA_INVALID_SURFACE VA_INVALID_ID
1612 typedef struct _VAGenericValue {
1631 #define VA_SURFACE_ATTRIB_NOT_SUPPORTED 0x00000000
1633 #define VA_SURFACE_ATTRIB_GETTABLE 0x00000001
1635 #define VA_SURFACE_ATTRIB_SETTABLE 0x00000002
1640 VASurfaceAttribNone = 0,
1683 typedef struct _VASurfaceAttrib {
1700 #define VA_SURFACE_ATTRIB_MEM_TYPE_VA 0x00000001
1702 #define VA_SURFACE_ATTRIB_MEM_TYPE_V4L2 0x00000002
1704 #define VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR 0x00000004
1711 typedef struct _VASurfaceAttribExternalBuffers {
1723 uint32_t pitches[4];
1725 uint32_t offsets[4];
1739 #define VA_SURFACE_EXTBUF_DESC_ENABLE_TILING 0x00000001
1741 #define VA_SURFACE_EXTBUF_DESC_CACHED 0x00000002
1743 #define VA_SURFACE_EXTBUF_DESC_UNCACHED 0x00000004
1745 #define VA_SURFACE_EXTBUF_DESC_WC 0x00000008
1747 #define VA_SURFACE_EXTBUF_DESC_PROTECTED 0x80000000
1752 #define VA_SURFACE_ATTRIB_USAGE_HINT_GENERIC 0x00000000
1754 #define VA_SURFACE_ATTRIB_USAGE_HINT_DECODER 0x00000001
1756 #define VA_SURFACE_ATTRIB_USAGE_HINT_ENCODER 0x00000002
1758 #define VA_SURFACE_ATTRIB_USAGE_HINT_VPP_READ 0x00000004
1760 #define VA_SURFACE_ATTRIB_USAGE_HINT_VPP_WRITE 0x00000008
1762 #define VA_SURFACE_ATTRIB_USAGE_HINT_DISPLAY 0x00000010
1765 #define VA_SURFACE_ATTRIB_USAGE_HINT_EXPORT 0x00000020
1801 unsigned int *num_attribs
1824 unsigned int format,
1826 unsigned int height,
1827 VASurfaceID *surfaces,
1828 unsigned int num_surfaces,
1830 unsigned int num_attribs
1843 VASurfaceID *surfaces,
1847 #define VA_PROGRESSIVE 0x1
1862 VAConfigID config_id,
1866 VASurfaceID *render_targets,
1867 int num_render_targets,
1901 VAMFContextID *mf_context
1939 VAMFContextID mf_context,
1957 VAMFContextID mf_context,
1972 VAPictureParameterBufferType = 0,
1973 VAIQMatrixBufferType = 1,
1974 VABitPlaneBufferType = 2,
1975 VASliceGroupMapBufferType = 3,
1976 VASliceParameterBufferType = 4,
1977 VASliceDataBufferType = 5,
1978 VAMacroblockParameterBufferType = 6,
1979 VAResidualDataBufferType = 7,
1980 VADeblockingParameterBufferType = 8,
1981 VAImageBufferType = 9,
1982 VAProtectedSliceDataBufferType = 10,
1983 VAQMatrixBufferType = 11,
1984 VAHuffmanTableBufferType = 12,
1985 VAProbabilityBufferType = 13,
1988 VAEncCodedBufferType = 21,
1989 VAEncSequenceParameterBufferType = 22,
1990 VAEncPictureParameterBufferType = 23,
1991 VAEncSliceParameterBufferType = 24,
1992 VAEncPackedHeaderParameterBufferType = 25,
1993 VAEncPackedHeaderDataBufferType = 26,
1994 VAEncMiscParameterBufferType = 27,
1995 VAEncMacroblockParameterBufferType = 28,
1996 VAEncMacroblockMapBufferType = 29,
2031 VAEncFEIMBCodeBufferType = 44,
2032 VAEncFEIDistortionBufferType = 45,
2033 VAEncFEIMBControlBufferType = 46,
2034 VAEncFEIMVPredictorBufferType = 47,
2035 VAStatsStatisticsParameterBufferType = 48,
2040 VAStatsMVBufferType = 51,
2041 VAStatsMVPredictorBufferType = 52,
2113 typedef struct _VAContextParameterUpdateBuffer {
2126 uint32_t reserved[VA_PADDING_MEDIUM];
2141 #define VA_ENCRYPTION_TYPE_FULLSAMPLE_CTR 0x00000001
2142 #define VA_ENCRYPTION_TYPE_FULLSAMPLE_CBC 0x00000002
2143 #define VA_ENCRYPTION_TYPE_SUBSAMPLE_CTR 0x00000004
2144 #define VA_ENCRYPTION_TYPE_SUBSAMPLE_CBC 0x00000008
2147 typedef struct _VAEncryptionSegmentInfo {
2161 uint8_t aes_cbc_iv_or_ctr[64];
2163 uint32_t va_reserved[VA_PADDING_MEDIUM];
2167 typedef struct _VAEncryptionParameters {
2184 uint8_t wrapped_decrypt_blob[64];
2187 uint8_t wrapped_encrypt_blob[64];
2210 uint32_t va_reserved[VA_PADDING_MEDIUM];
2216 typedef struct _VAProcessingRateParameterEnc {
2219 uint8_t reserved[3];
2233 typedef struct _VAProcessingRateParameterDec {
2236 uint8_t reserved0[3];
2240 typedef struct _VAProcessingRateParameter {
2245 } VAProcessingRateParameter;
2271 VAProcessingRateParameter *proc_buf,
2272 unsigned int *processing_rate
2276 VAEncMiscParameterTypeFrameRate = 0,
2277 VAEncMiscParameterTypeRateControl = 1,
2278 VAEncMiscParameterTypeMaxSliceSize = 2,
2279 VAEncMiscParameterTypeAIR = 3,
2284 VAEncMiscParameterTypeQualityLevel = 6,
2342 typedef struct _VAEncPackedHeaderParameterBuffer {
2371 typedef struct _VAEncMiscParameterBuffer {
2377 typedef struct _VAEncMiscParameterTemporalLayerStructure {
2388 uint32_t layer_id[32];
2396 typedef struct _VAEncMiscParameterRateControl {
2456 uint32_t enable_dynamic_scaling : 1;
2513 typedef struct _VAEncMiscParameterFrameRate {
2553 typedef struct _VAEncMiscParameterMaxSliceSize {
2554 uint32_t max_slice_size;
2560 typedef struct _VAEncMiscParameterAIR {
2561 uint32_t air_num_mbs;
2562 uint32_t air_threshold;
2567 } VAEncMiscParameterAIR;
2572 typedef struct _VAEncMiscParameterRIR {
2583 uint32_t enable_rir_column : 1;
2585 uint32_t enable_rir_row : 1;
2586 uint32_t reserved : 30;
2594 uint16_t intra_insertion_location;
2599 uint16_t intra_insert_size;
2604 uint8_t qp_delta_for_inserted_intra;
2607 } VAEncMiscParameterRIR;
2617 typedef struct _VAEncMiscParameterHRD {
2649 typedef struct _VAEncMiscParameterBufferMaxFrameSize {
2669 typedef struct _VAEncMiscParameterBufferMultiPassFrameSize {
2697 typedef struct _VAEncMiscParameterBufferQualityLevel {
2713 typedef struct _VAEncMiscParameterQuantization {
2718 uint32_t disable_trellis : 1;
2720 uint32_t enable_trellis_I : 1;
2722 uint32_t enable_trellis_P : 1;
2724 uint32_t enable_trellis_B : 1;
2725 uint32_t reserved : 28;
2728 } quantization_flags;
2729 uint32_t va_reserved;
2741 typedef struct _VAEncMiscParameterSkipFrame {
2768 typedef struct _VAEncROI {
2794 typedef struct _VAEncMiscParameterBufferROI {
2801 int8_t max_delta_qp;
2802 int8_t min_delta_qp;
2821 uint32_t roi_value_is_qp_delta : 1;
2822 uint32_t reserved : 31;
2829 } VAEncMiscParameterBufferROI;
2841 typedef struct _VAEncMiscParameterBufferDirtyRect {
2843 uint32_t num_roi_rectangle;
2846 VARectangle *roi_rectangle;
2847 } VAEncMiscParameterBufferDirtyRect;
2850 typedef struct _VAEncMiscParameterParallelRateControl {
2862 typedef struct _VAEncMiscParameterEncQuality {
2883 uint32_t ReservedBit : 1;
2918 uint32_t encControls;
2922 uint8_t FTQSkipThresholdLUT[52];
2924 uint16_t NonFTQSkipThresholdLUT[52];
2926 uint32_t reserved[VA_PADDING_HIGH];
2936 typedef struct _VAEncMiscParameterCustomRoundingControl {
2962 uint32_t reserved : 16;
2965 } rounding_offset_setting;
2976 #define VA_SLICE_DATA_FLAG_ALL 0x00
2977 #define VA_SLICE_DATA_FLAG_BEGIN 0x01
2978 #define VA_SLICE_DATA_FLAG_MIDDLE 0x02
2979 #define VA_SLICE_DATA_FLAG_END 0x04
2982 typedef struct _VASliceParameterBufferBase {
2983 uint32_t slice_data_size;
2984 uint32_t slice_data_offset;
2985 uint32_t slice_data_flag;
2986 } VASliceParameterBufferBase;
3003 typedef struct _VAHuffmanTableBufferJPEGBaseline {
3005 uint8_t load_huffman_table[2];
3011 uint8_t num_dc_codes[16];
3013 uint8_t dc_values[12];
3018 uint8_t num_ac_codes[16];
3020 uint8_t ac_values[162];
3039 typedef struct _VAPictureParameterBufferMPEG2 {
3040 uint16_t horizontal_size;
3041 uint16_t vertical_size;
3042 VASurfaceID forward_reference_picture;
3043 VASurfaceID backward_reference_picture;
3045 int32_t picture_coding_type;
3049 uint32_t intra_dc_precision : 2;
3050 uint32_t picture_structure : 2;
3051 uint32_t top_field_first : 1;
3052 uint32_t frame_pred_frame_dct : 1;
3053 uint32_t concealment_motion_vectors : 1;
3054 uint32_t q_scale_type : 1;
3055 uint32_t intra_vlc_format : 1;
3056 uint32_t alternate_scan : 1;
3057 uint32_t repeat_first_field : 1;
3058 uint32_t progressive_frame : 1;
3059 uint32_t is_first_field : 1;
3064 } picture_coding_extension;
3068 } VAPictureParameterBufferMPEG2;
3071 typedef struct _VAIQMatrixBufferMPEG2 {
3081 uint8_t intra_quantiser_matrix[64];
3083 uint8_t non_intra_quantiser_matrix[64];
3085 uint8_t chroma_intra_quantiser_matrix[64];
3087 uint8_t chroma_non_intra_quantiser_matrix[64];
3094 typedef struct _VASliceParameterBufferMPEG2 {
3095 uint32_t slice_data_size;
3096 uint32_t slice_data_offset;
3097 uint32_t slice_data_flag;
3098 uint32_t macroblock_offset;
3099 uint32_t slice_horizontal_position;
3100 uint32_t slice_vertical_position;
3101 int32_t quantiser_scale_code;
3102 int32_t intra_slice_flag;
3109 typedef struct _VAMacroblockParameterBufferMPEG2 {
3110 uint16_t macroblock_address;
3116 uint8_t macroblock_type;
3119 uint32_t frame_motion_type : 2;
3120 uint32_t field_motion_type : 2;
3121 uint32_t dct_type : 1;
3125 uint8_t motion_vertical_field_select;
3135 int16_t PMV[2][2][2];
3136 uint16_t coded_block_pattern;
3143 uint16_t num_skipped_macroblocks;
3152 #define VA_MB_TYPE_MOTION_FORWARD 0x02
3153 #define VA_MB_TYPE_MOTION_BACKWARD 0x04
3154 #define VA_MB_TYPE_MOTION_PATTERN 0x08
3155 #define VA_MB_TYPE_MOTION_INTRA 0x10
3172 typedef struct _VAPictureParameterBufferMPEG4 {
3174 uint16_t vop_height;
3175 VASurfaceID forward_reference_picture;
3176 VASurfaceID backward_reference_picture;
3179 uint32_t short_video_header : 1;
3180 uint32_t chroma_format : 2;
3181 uint32_t interlaced : 1;
3182 uint32_t obmc_disable : 1;
3183 uint32_t sprite_enable : 2;
3184 uint32_t sprite_warping_accuracy : 2;
3185 uint32_t quant_type : 1;
3186 uint32_t quarter_sample : 1;
3187 uint32_t data_partitioned : 1;
3188 uint32_t reversible_vlc : 1;
3189 uint32_t resync_marker_disable : 1;
3193 uint8_t no_of_sprite_warping_points;
3194 int16_t sprite_trajectory_du[3];
3195 int16_t sprite_trajectory_dv[3];
3196 uint8_t quant_precision;
3199 uint32_t vop_coding_type : 2;
3200 uint32_t backward_reference_vop_coding_type : 2;
3201 uint32_t vop_rounding_type : 1;
3202 uint32_t intra_dc_vlc_thr : 3;
3203 uint32_t top_field_first : 1;
3204 uint32_t alternate_vertical_scan_flag : 1;
3208 uint8_t vop_fcode_forward;
3209 uint8_t vop_fcode_backward;
3210 uint16_t vop_time_increment_resolution;
3212 uint8_t num_gobs_in_vop;
3213 uint8_t num_macroblocks_in_gob;
3223 typedef struct _VAIQMatrixBufferMPEG4 {
3229 uint8_t intra_quant_mat[64];
3231 uint8_t non_intra_quant_mat[64];
3238 typedef struct _VASliceParameterBufferMPEG4 {
3239 uint32_t slice_data_size;
3240 uint32_t slice_data_offset;
3241 uint32_t slice_data_flag;
3242 uint32_t macroblock_offset;
3243 uint32_t macroblock_number;
3244 int32_t quant_scale;
3257 VAMvMode1MvHalfPel = 1,
3258 VAMvMode1MvHalfPelBilinear = 2,
3259 VAMvModeMixedMv = 3,
3260 VAMvModeIntensityCompensation = 4
3276 typedef struct _VAPictureParameterBufferVC1 {
3277 VASurfaceID forward_reference_picture;
3278 VASurfaceID backward_reference_picture;
3282 VASurfaceID inloop_decoded_picture;
3287 uint32_t pulldown : 1;
3288 uint32_t interlace : 1;
3289 uint32_t tfcntrflag : 1;
3290 uint32_t finterpflag : 1;
3292 uint32_t multires : 1;
3293 uint32_t overlap : 1;
3294 uint32_t syncmarker : 1;
3295 uint32_t rangered : 1;
3296 uint32_t max_b_frames : 3;
3297 uint32_t profile : 2;
3302 uint16_t coded_width;
3303 uint16_t coded_height;
3306 uint32_t broken_link : 1;
3307 uint32_t closed_entry : 1;
3308 uint32_t panscan_flag : 1;
3309 uint32_t loopfilter : 1;
3312 } entrypoint_fields;
3313 uint8_t conditional_overlap_flag;
3314 uint8_t fast_uvmc_flag;
3317 uint32_t luma_flag : 1;
3319 uint32_t chroma_flag : 1;
3320 uint32_t chroma : 3;
3323 } range_mapping_fields;
3325 uint8_t b_picture_fraction;
3327 uint8_t mb_mode_table;
3328 uint8_t range_reduction_frame;
3329 uint8_t rounding_control;
3330 uint8_t post_processing;
3331 uint8_t picture_resolution_index;
3337 uint32_t picture_type : 3;
3338 uint32_t frame_coding_mode : 3;
3339 uint32_t top_field_first : 1;
3340 uint32_t is_first_field : 1;
3341 uint32_t intensity_compensation : 1;
3347 uint32_t mv_type_mb : 1;
3348 uint32_t direct_mb : 1;
3349 uint32_t skip_mb : 1;
3350 uint32_t field_tx : 1;
3351 uint32_t forward_mb : 1;
3352 uint32_t ac_pred : 1;
3353 uint32_t overflags : 1;
3359 uint32_t bp_mv_type_mb : 1;
3360 uint32_t bp_direct_mb : 1;
3361 uint32_t bp_skip_mb : 1;
3362 uint32_t bp_field_tx : 1;
3363 uint32_t bp_forward_mb : 1;
3364 uint32_t bp_ac_pred : 1;
3365 uint32_t bp_overflags : 1;
3371 uint32_t reference_distance_flag : 1;
3372 uint32_t reference_distance : 5;
3373 uint32_t num_reference_pictures: 1;
3374 uint32_t reference_field_pic_indicator : 1;
3380 uint32_t mv_mode : 3;
3381 uint32_t mv_mode2 : 3;
3382 uint32_t mv_table : 3;
3383 uint32_t two_mv_block_pattern_table: 2;
3384 uint32_t four_mv_switch : 1;
3385 uint32_t four_mv_block_pattern_table : 2;
3386 uint32_t extended_mv_flag : 1;
3387 uint32_t extended_mv_range : 2;
3388 uint32_t extended_dmv_flag : 1;
3389 uint32_t extended_dmv_range : 2;
3395 uint32_t dquant : 2;
3396 uint32_t quantizer : 2;
3397 uint32_t half_qp : 1;
3398 uint32_t pic_quantizer_scale : 5;
3399 uint32_t pic_quantizer_type : 1;
3400 uint32_t dq_frame : 1;
3401 uint32_t dq_profile : 2;
3402 uint32_t dq_sb_edge : 2;
3403 uint32_t dq_db_edge : 2;
3404 uint32_t dq_binary_level : 1;
3405 uint32_t alt_pic_quantizer : 5;
3408 } pic_quantizer_fields;
3411 uint32_t variable_sized_transform_flag : 1;
3412 uint32_t mb_level_transform_type_flag : 1;
3413 uint32_t frame_level_transform_type : 2;
3414 uint32_t transform_ac_codingset_idx1 : 2;
3415 uint32_t transform_ac_codingset_idx2 : 2;
3416 uint32_t intra_transform_dc_table : 1;
3421 uint8_t luma_scale2;
3422 uint8_t luma_shift2;
3423 uint8_t intensity_compensation_field;
3426 uint32_t va_reserved[VA_PADDING_MEDIUM - 1];
3448 typedef struct _VASliceParameterBufferVC1 {
3449 uint32_t slice_data_size;
3450 uint32_t slice_data_offset;
3451 uint32_t slice_data_flag;
3452 uint32_t macroblock_offset;
3453 uint32_t slice_vertical_position;
3468 typedef struct _VAPictureH264 {
3469 VASurfaceID picture_id;
3472 int32_t TopFieldOrderCnt;
3473 int32_t BottomFieldOrderCnt;
3479 #define VA_PICTURE_H264_INVALID 0x00000001
3480 #define VA_PICTURE_H264_TOP_FIELD 0x00000002
3481 #define VA_PICTURE_H264_BOTTOM_FIELD 0x00000004
3482 #define VA_PICTURE_H264_SHORT_TERM_REFERENCE 0x00000008
3483 #define VA_PICTURE_H264_LONG_TERM_REFERENCE 0x00000010
3490 typedef struct _VAPictureParameterBufferH264 {
3491 VAPictureH264 CurrPic;
3492 VAPictureH264 ReferenceFrames[16];
3493 uint16_t picture_width_in_mbs_minus1;
3494 uint16_t picture_height_in_mbs_minus1;
3495 uint8_t bit_depth_luma_minus8;
3496 uint8_t bit_depth_chroma_minus8;
3497 uint8_t num_ref_frames;
3500 uint32_t chroma_format_idc : 2;
3501 uint32_t residual_colour_transform_flag : 1;
3502 uint32_t gaps_in_frame_num_value_allowed_flag : 1;
3503 uint32_t frame_mbs_only_flag : 1;
3504 uint32_t mb_adaptive_frame_field_flag : 1;
3505 uint32_t direct_8x8_inference_flag : 1;
3506 uint32_t MinLumaBiPredSize8x8 : 1;
3507 uint32_t log2_max_frame_num_minus4 : 4;
3508 uint32_t pic_order_cnt_type : 2;
3509 uint32_t log2_max_pic_order_cnt_lsb_minus4 : 4;
3510 uint32_t delta_pic_order_always_zero_flag : 1;
3515 va_deprecated uint8_t num_slice_groups_minus1;
3516 va_deprecated uint8_t slice_group_map_type;
3517 va_deprecated uint16_t slice_group_change_rate_minus1;
3518 int8_t pic_init_qp_minus26;
3519 int8_t pic_init_qs_minus26;
3520 int8_t chroma_qp_index_offset;
3521 int8_t second_chroma_qp_index_offset;
3524 uint32_t entropy_coding_mode_flag : 1;
3525 uint32_t weighted_pred_flag : 1;
3526 uint32_t weighted_bipred_idc : 2;
3527 uint32_t transform_8x8_mode_flag : 1;
3528 uint32_t field_pic_flag : 1;
3529 uint32_t constrained_intra_pred_flag : 1;
3530 uint32_t pic_order_present_flag : 1;
3531 uint32_t deblocking_filter_control_present_flag : 1;
3532 uint32_t redundant_pic_cnt_present_flag : 1;
3533 uint32_t reference_pic_flag : 1;
3540 uint32_t va_reserved[VA_PADDING_MEDIUM];
3544 typedef struct _VAIQMatrixBufferH264 {
3546 uint8_t ScalingList4x4[6][16];
3548 uint8_t ScalingList8x8[2][64];
3555 typedef struct _VASliceParameterBufferH264 {
3556 uint32_t slice_data_size;
3559 uint32_t slice_data_flag;
3571 uint16_t first_mb_in_slice;
3573 uint8_t direct_spatial_mv_pred_flag;
3588 uint8_t cabac_init_idc;
3589 int8_t slice_qp_delta;
3590 uint8_t disable_deblocking_filter_idc;
3591 int8_t slice_alpha_c0_offset_div2;
3592 int8_t slice_beta_offset_div2;
3593 VAPictureH264 RefPicList0[32];
3594 VAPictureH264 RefPicList1[32];
3595 uint8_t luma_log2_weight_denom;
3596 uint8_t chroma_log2_weight_denom;
3597 uint8_t luma_weight_l0_flag;
3598 int16_t luma_weight_l0[32];
3599 int16_t luma_offset_l0[32];
3600 uint8_t chroma_weight_l0_flag;
3601 int16_t chroma_weight_l0[32][2];
3602 int16_t chroma_offset_l0[32][2];
3603 uint8_t luma_weight_l1_flag;
3604 int16_t luma_weight_l1[32];
3605 int16_t luma_offset_l1[32];
3606 uint8_t chroma_weight_l1_flag;
3607 int16_t chroma_weight_l1[32][2];
3608 int16_t chroma_offset_l1[32][2];
3618 VAEncPictureTypeIntra = 0,
3619 VAEncPictureTypePredictive = 1,
3620 VAEncPictureTypeBidirectional = 2,
3630 typedef struct _VAEncSliceParameterBuffer {
3631 uint32_t start_row_number;
3632 uint32_t slice_height;
3635 uint32_t is_intra : 1;
3636 uint32_t disable_deblocking_filter_idc : 2;
3637 uint32_t uses_long_term_ref : 1;
3638 uint32_t is_long_term_ref : 1;
3652 typedef struct _VAEncSequenceParameterBufferH263 {
3653 uint32_t intra_period;
3654 uint32_t bits_per_second;
3655 uint32_t frame_rate;
3656 uint32_t initial_qp;
3661 } VAEncSequenceParameterBufferH263;
3663 typedef struct _VAEncPictureParameterBufferH263 {
3664 VASurfaceID reference_picture;
3665 VASurfaceID reconstructed_picture;
3667 uint16_t picture_width;
3668 uint16_t picture_height;
3669 VAEncPictureType picture_type;
3673 } VAEncPictureParameterBufferH263;
3679 typedef struct _VAEncSequenceParameterBufferMPEG4 {
3680 uint8_t profile_and_level_indication;
3681 uint32_t intra_period;
3682 uint32_t video_object_layer_width;
3683 uint32_t video_object_layer_height;
3684 uint32_t vop_time_increment_resolution;
3685 uint32_t fixed_vop_rate;
3686 uint32_t fixed_vop_time_increment;
3687 uint32_t bits_per_second;
3688 uint32_t frame_rate;
3689 uint32_t initial_qp;
3694 } VAEncSequenceParameterBufferMPEG4;
3696 typedef struct _VAEncPictureParameterBufferMPEG4 {
3697 VASurfaceID reference_picture;
3698 VASurfaceID reconstructed_picture;
3700 uint16_t picture_width;
3701 uint16_t picture_height;
3702 uint32_t modulo_time_base;
3703 uint32_t vop_time_increment;
3704 VAEncPictureType picture_type;
3708 } VAEncPictureParameterBufferMPEG4;
3734 unsigned int num_elements,
3755 unsigned int height,
3756 unsigned int *unit_size,
3757 unsigned int *pitch,
3770 unsigned int num_elements
3788 #define VA_CODED_BUF_STATUS_PICTURE_AVE_QP_MASK 0xff
3789 #define VA_CODED_BUF_STATUS_LARGE_SLICE_MASK 0x100
3790 #define VA_CODED_BUF_STATUS_SLICE_OVERFLOW_MASK 0x200
3791 #define VA_CODED_BUF_STATUS_BITRATE_OVERFLOW 0x400
3792 #define VA_CODED_BUF_STATUS_BITRATE_HIGH 0x800
3800 #define VA_CODED_BUF_STATUS_FRAME_SIZE_OVERFLOW 0x1000
3804 #define VA_CODED_BUF_STATUS_BAD_BITSTREAM 0x8000
3805 #define VA_CODED_BUF_STATUS_AIR_MB_OVER_THRESHOLD 0xff0000
3815 #define VA_CODED_BUF_STATUS_NUMBER_PASSES_MASK 0xf000000
3824 #define VA_CODED_BUF_STATUS_SINGLE_NALU 0x10000000
3836 typedef struct _VACodedBufferSegment {
4007 #define VA_EXPORT_SURFACE_READ_ONLY 0x0001
4009 #define VA_EXPORT_SURFACE_WRITE_ONLY 0x0002
4011 #define VA_EXPORT_SURFACE_READ_WRITE 0x0003
4017 #define VA_EXPORT_SURFACE_SEPARATE_LAYERS 0x0004
4023 #define VA_EXPORT_SURFACE_COMPOSED_LAYERS 0x0008
4060 VASurfaceID surface_id,
4061 uint32_t mem_type, uint32_t flags,
4082 VASurfaceID render_target
4129 VAMFContextID mf_context,
4147 VASurfaceID render_target
4151 #define VA_TIMEOUT_INFINITE 0xFFFFFFFFFFFFFFFF
4175 VASurfaceID surface,
4180 VASurfaceRendering = 1,
4181 VASurfaceDisplaying = 2,
4185 VASurfaceSkipped = 8
4193 VASurfaceID render_target,
4194 VASurfaceStatus *status
4198 VADecodeSliceMissing = 0,
4199 VADecodeMBError = 1,
4200 } VADecodeErrorType;
4206 typedef struct _VASurfaceDecodeMBErrors {
4210 VADecodeErrorType decode_error_type;
4226 VASurfaceID surface,
4227 VAStatus error_status,
4278 #define VA_FOURCC(ch0, ch1, ch2, ch3) \
4279 ((unsigned long)(unsigned char) (ch0) | ((unsigned long)(unsigned char) (ch1) << 8) | \
4280 ((unsigned long)(unsigned char) (ch2) << 16) | ((unsigned long)(unsigned char) (ch3) << 24 ))
4287 #define VA_FOURCC_NV12 0x3231564E
4291 #define VA_FOURCC_NV21 0x3132564E
4297 #define VA_FOURCC_AI44 0x34344149
4303 #define VA_FOURCC_RGBA 0x41424752
4308 #define VA_FOURCC_RGBX 0x58424752
4313 #define VA_FOURCC_BGRA 0x41524742
4318 #define VA_FOURCC_BGRX 0x58524742
4323 #define VA_FOURCC_ARGB 0x42475241
4328 #define VA_FOURCC_XRGB 0x42475258
4333 #define VA_FOURCC_ABGR 0x52474241
4338 #define VA_FOURCC_XBGR 0x52474258
4344 #define VA_FOURCC_UYVY 0x59565955
4349 #define VA_FOURCC_YUY2 0x32595559
4354 #define VA_FOURCC_AYUV 0x56555941
4359 #define VA_FOURCC_NV11 0x3131564e
4364 #define VA_FOURCC_YV12 0x32315659
4369 #define VA_FOURCC_P208 0x38303250
4374 #define VA_FOURCC_I420 0x30323449
4379 #define VA_FOURCC_YV24 0x34325659
4384 #define VA_FOURCC_YV32 0x32335659
4387 #define VA_FOURCC_Y800 0x30303859
4393 #define VA_FOURCC_IMC3 0x33434D49
4398 #define VA_FOURCC_411P 0x50313134
4404 #define VA_FOURCC_411R 0x52313134
4409 #define VA_FOURCC_422H 0x48323234
4414 #define VA_FOURCC_422V 0x56323234
4419 #define VA_FOURCC_444P 0x50343434
4425 #define VA_FOURCC_RGBP 0x50424752
4430 #define VA_FOURCC_BGRP 0x50524742
4436 #define VA_FOURCC_RGB565 0x36314752
4442 #define VA_FOURCC_BGR565 0x36314742
4449 #define VA_FOURCC_Y210 0x30313259
4455 #define VA_FOURCC_Y212 0x32313259
4461 #define VA_FOURCC_Y216 0x36313259
4467 #define VA_FOURCC_Y410 0x30313459
4473 #define VA_FOURCC_Y412 0x32313459
4479 #define VA_FOURCC_Y416 0x36313459
4485 #define VA_FOURCC_YV16 0x36315659
4491 #define VA_FOURCC_P010 0x30313050
4497 #define VA_FOURCC_P012 0x32313050
4503 #define VA_FOURCC_P016 0x36313050
4510 #define VA_FOURCC_I010 0x30313049
4516 #define VA_FOURCC_IYUV 0x56555949
4520 #define VA_FOURCC_A2R10G10B10 0x30335241
4524 #define VA_FOURCC_A2B10G10R10 0x30334241
4528 #define VA_FOURCC_X2R10G10B10 0x30335258
4532 #define VA_FOURCC_X2B10G10R10 0x30334258
4538 #define VA_FOURCC_Y8 0x20203859
4543 #define VA_FOURCC_Y16 0x20363159
4548 #define VA_FOURCC_VYUY 0x59555956
4553 #define VA_FOURCC_YVYU 0x55595659
4558 #define VA_FOURCC_ARGB64 0x34475241
4563 #define VA_FOURCC_ABGR64 0x34474241
4568 #define VA_FOURCC_XYUV 0x56555958
4571 #define VA_LSB_FIRST 1
4572 #define VA_MSB_FIRST 2
4574 typedef struct _VAImageFormat {
4576 uint32_t byte_order;
4577 uint32_t bits_per_pixel;
4581 uint32_t green_mask;
4583 uint32_t alpha_mask;
4591 typedef struct _VAImage {
4593 VAImageFormat format;
4605 uint32_t num_planes;
4610 uint32_t pitches[3];
4615 uint32_t offsets[3];
4618 int32_t num_palette_entries;
4623 int32_t entry_bytes;
4628 int8_t component_order[4];
4647 VAImageFormat *format_list,
4660 VAImageFormat *format,
4674 VAStatus vaSetImagePalette(
4682 unsigned char *palette
4691 VASurfaceID surface,
4695 unsigned int height,
4707 VASurfaceID surface,
4711 unsigned int src_width,
4712 unsigned int src_height,
4715 unsigned int dest_width,
4716 unsigned int dest_height
4752 VASurfaceID surface,
4771 #define VA_SUBPICTURE_CHROMA_KEYING 0x0001
4772 #define VA_SUBPICTURE_GLOBAL_ALPHA 0x0002
4773 #define VA_SUBPICTURE_DESTINATION_IS_SCREEN_COORD 0x0004
4788 VAImageFormat *format_list,
4789 unsigned int *flags,
4790 unsigned int *num_formats
4832 unsigned int chromakey_min,
4833 unsigned int chromakey_max,
4834 unsigned int chromakey_mask
4858 VASurfaceID *target_surfaces,
4863 uint16_t src_height,
4866 uint16_t dest_width,
4867 uint16_t dest_height,
4881 VASurfaceID *target_surfaces,
4904 VADISPLAYATTRIB_BLE_OFF = 0x00,
4905 VADISPLAYATTRIB_BLE_LOW,
4906 VADISPLAYATTRIB_BLE_MEDIUM,
4907 VADISPLAYATTRIB_BLE_HIGH,
4908 VADISPLAYATTRIB_BLE_NONE,
4912 #define VA_ROTATION_NONE 0x00000000
4913 #define VA_ROTATION_90 0x00000001
4914 #define VA_ROTATION_180 0x00000002
4915 #define VA_ROTATION_270 0x00000003
4927 #define VA_MIRROR_NONE 0x00000000
4929 #define VA_MIRROR_HORIZONTAL 0x00000001
4931 #define VA_MIRROR_VERTICAL 0x00000002
4935 #define VA_OOL_DEBLOCKING_FALSE 0x00000000
4936 #define VA_OOL_DEBLOCKING_TRUE 0x00000001
4939 #define VA_RENDER_MODE_UNDEFINED 0
4940 #define VA_RENDER_MODE_LOCAL_OVERLAY 1
4941 #define VA_RENDER_MODE_LOCAL_GPU 2
4942 #define VA_RENDER_MODE_EXTERNAL_OVERLAY 4
4943 #define VA_RENDER_MODE_EXTERNAL_GPU 8
4946 #define VA_RENDER_DEVICE_UNDEFINED 0
4947 #define VA_RENDER_DEVICE_LOCAL 1
4948 #define VA_RENDER_DEVICE_EXTERNAL 2
4963 typedef union _VADisplayAttribValSubDevice {
4993 VADisplayAttribBrightness = 0,
4994 VADisplayAttribContrast = 1,
4995 VADisplayAttribHue = 2,
4996 VADisplayAttribSaturation = 3,
5002 VADisplayAttribBackgroundColor = 4,
5014 VADisplayAttribDirectSurface = 5,
5015 VADisplayAttribRotation = 6,
5016 VADisplayAttribOutofLoopDeblock = 7,
5019 VADisplayAttribBLEBlackMode = 8,
5020 VADisplayAttribBLEWhiteMode = 9,
5021 VADisplayAttribBlueStretch = 10,
5022 VADisplayAttribSkinColorCorrection = 11,
5027 VADisplayAttribCSCMatrix = 12,
5035 VADisplayAttribBlendColor = 13,
5040 VADisplayAttribOverlayAutoPaintColorKey = 14,
5045 VADisplayAttribOverlayColorKey = 15,
5051 VADisplayAttribRenderMode = 16,
5057 VADisplayAttribRenderDevice = 17,
5061 VADisplayAttribRenderRect = 18,
5065 VADisplayAttribSubDevice = 19,
5071 VADisplayAttribCopy = 20,
5076 VADisplayPCIID = 21,
5080 #define VA_DISPLAY_ATTRIB_NOT_SUPPORTED 0x0000
5081 #define VA_DISPLAY_ATTRIB_GETTABLE 0x0001
5082 #define VA_DISPLAY_ATTRIB_SETTABLE 0x0002
5084 typedef struct _VADisplayAttribute {
5094 } VADisplayAttribute;
5109 VADisplayAttribute *attr_list,
5121 VADisplayAttribute *attr_list,
5133 VADisplayAttribute *attr_list,
5149 typedef struct _VAPictureHEVC {
5167 #define VA_PICTURE_HEVC_INVALID 0x00000001
5171 #define VA_PICTURE_HEVC_FIELD_PIC 0x00000002
5176 #define VA_PICTURE_HEVC_BOTTOM_FIELD 0x00000004
5178 #define VA_PICTURE_HEVC_LONG_TERM_REFERENCE 0x00000008
5193 #define VA_PICTURE_HEVC_RPS_ST_CURR_BEFORE 0x00000010
5198 #define VA_PICTURE_HEVC_RPS_ST_CURR_AFTER 0x00000020
5203 #define VA_PICTURE_HEVC_RPS_LT_CURR 0x00000040
5206 VACopyObjectSurface = 0,
5207 VACopyObjectBuffer = 1,
5210 typedef struct _VACopyObject {
5211 VACopyObjectType obj_type;
5213 VASurfaceID surface_id;
5217 uint32_t va_reserved[VA_PADDING_MEDIUM];
5220 typedef union _VACopyOption {
5223 uint32_t va_copy_sync : 2;
5225 uint32_t va_copy_mode : 4;
5226 uint32_t reserved : 26;
5243 VAStatus
vaCopy(
VADisplay dpy, VACopyObject * dst, VACopyObject * src, VACopyOption option);
5247 #include <va/va_dec_vp8.h>
VAStatus vaTerminate(VADisplay dpy)
VAMvModeVC1
Definition: va.h:3255
VAEncMiscParameterType
Definition: va.h:2275
VADisplayAttribBLEMode
Definition: va.h:4903
VAStatus vaDestroySurfaces(VADisplay dpy, VASurfaceID *surfaces, int num_surfaces)
VAGenericID VASubpictureID
Definition: va.h:4763
int vaMaxNumConfigAttributes(VADisplay dpy)
const char * vaErrorStr(VAStatus error_status)
VAStatus vaQueryConfigProfiles(VADisplay dpy, VAProfile *profile_list, int *num_profiles)
VAGenericValueType
Generic value types.
Definition: va.h:1601
VAStatus vaDestroyContext(VADisplay dpy, VAContextID context)
VABufferType
Definition: va.h:1971
VAStatus vaInitialize(VADisplay dpy, int *major_version, int *minor_version)
void(* VAMessageCallback)(void *user_context, const char *message)
Definition: va.h:422
VAStatus vaMFReleaseContext(VADisplay dpy, VAMFContextID mf_context, VAContextID context)
VAConfigAttribType
Definition: va.h:606
VAStatus vaSetDriverName(VADisplay dpy, char *driver_name)
VAStatus vaAcquireBufferHandle(VADisplay dpy, VABufferID buf_id, VABufferInfo *buf_info)
Acquires buffer handle for external API usage.
void(* VAGenericFunc)(void)
Generic function type.
Definition: va.h:1609
VAStatus vaSetSubpictureChromakey(VADisplay dpy, VASubpictureID subpicture, unsigned int chromakey_min, unsigned int chromakey_max, unsigned int chromakey_mask)
VAStatus vaGetImage(VADisplay dpy, VASurfaceID surface, int x, int y, unsigned int width, unsigned int height, VAImageID image)
VAStatus vaQuerySurfaceError(VADisplay dpy, VASurfaceID surface, VAStatus error_status, void **error_info)
VAStatus vaRenderPicture(VADisplay dpy, VAContextID context, VABufferID *buffers, int num_buffers)
VAStatus vaExportSurfaceHandle(VADisplay dpy, VASurfaceID surface_id, uint32_t mem_type, uint32_t flags, void *descriptor)
Export a handle to a surface for use with an external API.
VAStatus vaSetSubpictureImage(VADisplay dpy, VASubpictureID subpicture, VAImageID image)
int vaMaxNumProfiles(VADisplay dpy)
VAGenericID VAContextID
Definition: va.h:1593
VASurfaceAttribType
Surface attribute types.
Definition: va.h:1639
int vaMaxNumEntrypoints(VADisplay dpy)
VAStatus vaQueryConfigAttributes(VADisplay dpy, VAConfigID config_id, VAProfile *profile, VAEntrypoint *entrypoint, VAConfigAttrib *attrib_list, int *num_attribs)
VAStatus vaQuerySurfaceStatus(VADisplay dpy, VASurfaceID render_target, VASurfaceStatus *status)
VAEntrypoint
Definition: va.h:539
const char * vaQueryVendorString(VADisplay dpy)
VAStatus vaDestroyConfig(VADisplay dpy, VAConfigID config_id)
VAStatus vaQuerySurfaceAttributes(VADisplay dpy, VAConfigID config, VASurfaceAttrib *attrib_list, unsigned int *num_attribs)
Queries surface attributes for the supplied config.
VAStatus vaAssociateSubpicture(VADisplay dpy, VASubpictureID subpicture, VASurfaceID *target_surfaces, int num_surfaces, int16_t src_x, int16_t src_y, uint16_t src_width, uint16_t src_height, int16_t dest_x, int16_t dest_y, uint16_t dest_width, uint16_t dest_height, uint32_t flags)
VAStatus vaCreateSubpicture(VADisplay dpy, VAImageID image, VASubpictureID *subpicture)
VAMessageCallback vaSetErrorCallback(VADisplay dpy, VAMessageCallback callback, void *user_context)
VAStatus vaCreateContext(VADisplay dpy, VAConfigID config_id, int picture_width, int picture_height, int flag, VASurfaceID *render_targets, int num_render_targets, VAContextID *context)
VAStatus vaQueryConfigEntrypoints(VADisplay dpy, VAProfile profile, VAEntrypoint *entrypoint_list, int *num_entrypoints)
void * VANativeDisplay
Definition: va.h:443
VAStatus vaSetSubpictureGlobalAlpha(VADisplay dpy, VASubpictureID subpicture, float global_alpha)
VAStatus vaCreateImage(VADisplay dpy, VAImageFormat *format, int width, int height, VAImage *image)
VAEncPackedHeaderType
Packed header type.
Definition: va.h:2315
VAStatus vaSyncSurface2(VADisplay dpy, VASurfaceID surface, uint64_t timeout_ns)
Synchronizes pending operations associated with the supplied surface.
VAStatus vaCreateConfig(VADisplay dpy, VAProfile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs, VAConfigID *config_id)
VAStatus vaSyncSurface(VADisplay dpy, VASurfaceID render_target)
VAStatus vaDestroyBuffer(VADisplay dpy, VABufferID buffer_id)
VAProfile
Definition: va.h:494
VAStatus vaQuerySubpictureFormats(VADisplay dpy, VAImageFormat *format_list, unsigned int *flags, unsigned int *num_formats)
VAStatus vaDestroySubpicture(VADisplay dpy, VASubpictureID subpicture)
#define VA_PADDING_LOW
Definition: va.h:359
VAStatus vaDeriveImage(VADisplay dpy, VASurfaceID surface, VAImage *image)
VAStatus vaMFAddContext(VADisplay dpy, VAMFContextID mf_context, VAContextID context)
unsigned int VAGenericID
Definition: va.h:1530
VAStatus vaCreateBuffer(VADisplay dpy, VAContextID context, VABufferType type, unsigned int size, unsigned int num_elements, void *data, VABufferID *buf_id)
VAStatus vaDeassociateSubpicture(VADisplay dpy, VASubpictureID subpicture, VASurfaceID *target_surfaces, int num_surfaces)
VAStatus vaDestroyImage(VADisplay dpy, VAImageID image)
VAStatus vaPutImage(VADisplay dpy, VASurfaceID surface, VAImageID image, int src_x, int src_y, unsigned int src_width, unsigned int src_height, int dest_x, int dest_y, unsigned int dest_width, unsigned int dest_height)
VAStatus vaCreateSurfaces(VADisplay dpy, unsigned int format, unsigned int width, unsigned int height, VASurfaceID *surfaces, unsigned int num_surfaces, VASurfaceAttrib *attrib_list, unsigned int num_attribs)
Creates an array of surfaces.
VAStatus vaSyncBuffer(VADisplay dpy, VABufferID buf_id, uint64_t timeout_ns)
Synchronizes pending operations associated with the supplied buffer.
VAStatus vaQueryImageFormats(VADisplay dpy, VAImageFormat *format_list, int *num_formats)
VAPrivFunc vaGetLibFunc(VADisplay dpy, const char *func)
VAStatus vaBeginPicture(VADisplay dpy, VAContextID context, VASurfaceID render_target)
VAStatus vaBufferSetNumElements(VADisplay dpy, VABufferID buf_id, unsigned int num_elements)
VAGenericID VABufferID
Definition: va.h:1969
int vaMaxNumImageFormats(VADisplay dpy)
VAStatus vaCreateMFContext(VADisplay dpy, VAMFContextID *mf_context)
void * VADisplay
Definition: va.h:259
VAStatus vaCreateBuffer2(VADisplay dpy, VAContextID context, VABufferType type, unsigned int width, unsigned int height, unsigned int *unit_size, unsigned int *pitch, VABufferID *buf_id)
VAStatus vaReleaseBufferHandle(VADisplay dpy, VABufferID buf_id)
Releases buffer after usage from external API.
VAStatus vaMFSubmit(VADisplay dpy, VAMFContextID mf_context, VAContextID *contexts, int num_contexts)
VAStatus vaQueryProcessingRate(VADisplay dpy, VAConfigID config, VAProcessingRateParameter *proc_buf, unsigned int *processing_rate)
Queries processing rate for the supplied config.
VAStatus vaGetConfigAttributes(VADisplay dpy, VAProfile profile, VAEntrypoint entrypoint, VAConfigAttrib *attrib_list, int num_attribs)
VAStatus vaUnmapBuffer(VADisplay dpy, VABufferID buf_id)
VAMessageCallback vaSetInfoCallback(VADisplay dpy, VAMessageCallback callback, void *user_context)
VAStatus vaMapBuffer(VADisplay dpy, VABufferID buf_id, void **pbuf)
int vaMaxNumSubpictureFormats(VADisplay dpy)
VAStatus vaEndPicture(VADisplay dpy, VAContextID context)
@ VAEncMiscParameterTypeExtensionData
encode extension buffer, ect. MPEG2 Sequence extenstion data
Definition: va.h:2311
@ VAEncMiscParameterTypeParallelBRC
Buffer type used for parallel BRC parameters.
Definition: va.h:2301
@ VAEncMiscParameterTypeRIR
Buffer type used for Rolling intra refresh.
Definition: va.h:2286
@ VAEncMiscParameterTypeCustomRoundingControl
Buffer type used for encoder rounding offset parameters.
Definition: va.h:2307
@ VAEncMiscParameterTypeHRD
Buffer type used for HRD parameters.
Definition: va.h:2283
@ VAEncMiscParameterTypeROI
Buffer type used for region-of-interest (ROI) parameters.
Definition: va.h:2293
@ VAEncMiscParameterTypeSubMbPartPel
Set MB partion mode mask and Half-pel/Quant-pel motion search.
Definition: va.h:2303
@ VAEncMiscParameterTypeEncQuality
set encode quality tuning
Definition: va.h:2305
@ VAEncMiscParameterTypeDirtyRect
Buffer type used for dirty region-of-interest (ROI) parameters.
Definition: va.h:2299
@ VAEncMiscParameterTypeQuantization
Buffer type used for quantization parameters, it's per-sequence parameter.
Definition: va.h:2288
@ VAEncMiscParameterTypeTemporalLayerStructure
Buffer type used for temporal layer structure.
Definition: va.h:2297
@ VAEncMiscParameterTypeMaxFrameSize
Buffer type used to express a maximum frame size (in bits).
Definition: va.h:2281
@ VAEncMiscParameterTypeMultiPassFrameSize
Buffer type used to express a maximum frame size (in bytes) settings for multiple pass.
Definition: va.h:2295
@ VAEncMiscParameterTypeSkipFrame
Buffer type used for sending skip frame parameters to the encoder's rate control, when the user has e...
Definition: va.h:2291
@ VAEncMiscParameterTypeFEIFrameControl
Buffer type used for FEI input frame level parameters.
Definition: va.h:2309
@ VAGenericValueTypeInteger
Definition: va.h:1602
@ VAGenericValueTypeFloat
Definition: va.h:1603
@ VAGenericValueTypePointer
Definition: va.h:1604
@ VAGenericValueTypeFunc
Definition: va.h:1605
@ VAProcPipelineParameterBufferType
Video processing pipeline parameter buffer.
Definition: va.h:2013
@ VASubsetsParameterBufferType
HEVC Decoding Subset Parameter buffer type.
Definition: va.h:2073
@ VAContextParameterUpdateBufferType
adjust context parameters dynamically
Definition: va.h:2079
@ VAEncQPBufferType
Encoding QP buffer.
Definition: va.h:2005
@ VAEncMacroblockDisableSkipMapBufferType
Definition: va.h:2048
@ VAProtectedSessionExecuteBufferType
Protected session execution buffer type.
Definition: va.h:2086
@ VAEncFEICTBCmdBufferType
HEVC FEI CTB level cmd buffer it is CTB level information for future usage.
Definition: va.h:2053
@ VAProcFilterParameterBufferType
Video filter parameter buffer.
Definition: va.h:2026
@ VAStatsStatisticsBufferType
Statistics output for VAEntrypointStats progressive and top field of interlaced case.
Definition: va.h:2037
@ VAStatsStatisticsBottomFieldBufferType
Statistics output for VAEntrypointStats bottom field of interlaced case.
Definition: va.h:2039
@ VAEncFEICURecordBufferType
HEVC FEI CU level data buffer it's CTB level information for future usage.
Definition: va.h:2058
@ VAEncryptionParameterBufferType
Encryption parameters buffer for protected content session.
Definition: va.h:2092
@ VADecodeStreamoutBufferType
Definition: va.h:2061
@ VAEncDeltaQpPerBlockBufferType
Encoding delta QP per block buffer.
Definition: va.h:2103
@ VAEncFEIMVBufferType
FEI specific buffer types.
Definition: va.h:2030
@ VAConfigAttribProcessingRate
Processing rate reporting attribute. Read-only.
Definition: va.h:821
@ VAConfigAttribMaxPictureHeight
Maximum picture height. Read-only.
Definition: va.h:751
@ VAConfigAttribProtectedContentCipherMode
Cipher mode of the protected content session.
Definition: va.h:964
@ VAConfigAttribEncMacroblockInfo
Macroblock information. Read-only.
Definition: va.h:737
@ VAConfigAttribFrameSizeToleranceSupport
frame size tolerance support it indicates the tolerance of frame size
Definition: va.h:861
@ VAConfigAttribContextPriority
priority setting for the context. Read-Write attribute value is VAConfigAttribValContextPriority this...
Definition: va.h:932
@ VAConfigAttribProtectedContentUsage
Special usage attribute of the protected session.
Definition: va.h:978
@ VAConfigAttribEncQuantization
Encoding quantization attribute. Read-only.
Definition: va.h:775
@ VAConfigAttribProtectedContentCipherSampleType
Decryption sample type of the protected content session.
Definition: va.h:971
@ VAConfigAttribEncPerBlockControl
Settings per block attribute for Encoding. Read-only.
Definition: va.h:1030
@ VAConfigAttribTEETypeClient
TEE type client is a specific module supporting specific functions in TEE. Read-only.
Definition: va.h:943
@ VAConfigAttribMaxFrameSize
encode max frame size attribute. Read-only attribute value VAConfigAttribValMaxFrameSize represent ma...
Definition: va.h:911
@ VAConfigAttribDecJPEG
JPEG decoding attribute. Read-only.
Definition: va.h:635
@ VAConfigAttribEncMaxSlices
Maximum number of slices per frame. Read-only.
Definition: va.h:708
@ VAConfigAttribDecSliceMode
Slice Decoding mode. Read/write.
Definition: va.h:627
@ VAConfigAttribCustomRoundingControl
whether accept rouding setting from application. Read-only. This attribute is for encode quality,...
Definition: va.h:900
@ VAConfigAttribEncSkipFrame
Encoding skip frame attribute. Read-only.
Definition: va.h:791
@ VAConfigAttribEncHEVCFeatures
HEVC/H.265 encoding features. Read-only.
Definition: va.h:989
@ VAConfigAttribEncAV1Ext2
AV1 encoding attribute extend2. Read-only.
Definition: va.h:1023
@ VAConfigAttribEncQualityRange
Encoding quality range attribute. Read-only.
Definition: va.h:768
@ VAConfigAttribEncDynamicScaling
Dynamic Scaling Attribute. Read-only.
Definition: va.h:856
@ VAConfigAttribEncTileSupport
Tile Support Attribute. Read-only.
Definition: va.h:894
@ VAConfigAttribEncROI
Encoding region-of-interest (ROI) attribute. Read-only.
Definition: va.h:802
@ VAConfigAttribFEIMVPredictors
Maximum number of FEI MV predictors. Read-only.
Definition: va.h:878
@ VAConfigAttribEncAV1
AV1 encoding attribute. Read-only.
Definition: va.h:1007
@ VAConfigAttribEncSliceStructure
Slice structure. Read-only.
Definition: va.h:725
@ VAConfigAttribStats
Statistics attribute. Read-only.
Definition: va.h:886
@ VAConfigAttribEncMaxRefFrames
Maximum number of reference frames. Read-only.
Definition: va.h:701
@ VAConfigAttribQPBlockSize
Encoding QP info block size attribute. Read-only. This attribute conveys the block sizes that underly...
Definition: va.h:906
@ VAConfigAttribEncRateControlExt
Encoding extended rate control attribute. Read-only.
Definition: va.h:810
@ VAConfigAttribEncHEVCBlockSizes
HEVC/H.265 encoding block sizes. Read-only.
Definition: va.h:999
@ VAConfigAttribMaxPictureWidth
Maximum picture width. Read-only.
Definition: va.h:744
@ VAConfigAttribEncIntraRefresh
Encoding intra refresh attribute. Read-only.
Definition: va.h:783
@ VAConfigAttribDecProcessing
Decode processing support. Read/write.
Definition: va.h:668
@ VAConfigAttribPredictionDirection
inter frame prediction directrion attribute. Read-only. this attribute conveys the prediction directi...
Definition: va.h:923
@ VAConfigAttribTEEType
TEE could be any HW secure device. Read-only.
Definition: va.h:941
@ VAConfigAttribFEIFunctionType
Encode function type for FEI.
Definition: va.h:870
@ VAConfigAttribDecAV1Features
AV1 decoding features. Read-only.
Definition: va.h:939
@ VAConfigAttribEncParallelRateControl
Parallel Rate Control (hierachical B) attribute. Read-only.
Definition: va.h:847
@ VAConfigAttribEncJPEG
JPEG encoding attribute. Read-only.
Definition: va.h:759
@ VAConfigAttribEncInterlaced
Interlaced mode. Read/write.
Definition: va.h:690
@ VAConfigAttribProtectedContentCipherBlockSize
Cipher block size of the protected content session.
Definition: va.h:957
@ VAConfigAttribMultipleFrame
combined submission of multiple frames from different streams, it is optimization for different HW im...
Definition: va.h:927
@ VAConfigAttribEncAV1Ext1
AV1 encoding attribute extend1. Read-only.
Definition: va.h:1015
@ VAConfigAttribEncPackedHeaders
Packed headers mode. Read/write.
Definition: va.h:681
@ VAConfigAttribEncDirtyRect
Encoding dirty rectangle. Read-only.
Definition: va.h:835
@ VAConfigAttribProtectedContentCipherAlgorithm
Cipher algorithm of the protected content session.
Definition: va.h:950
@ VASurfaceAttribMaxWidth
Maximal width in pixels (int, read-only).
Definition: va.h:1654
@ VASurfaceAttribUsageHint
Surface usage hint, gives the driver a hint of intended usage to optimize allocation (e....
Definition: va.h:1670
@ VASurfaceAttribMemoryType
Surface memory type expressed in bit fields (int, read/write).
Definition: va.h:1660
@ VASurfaceAttribMaxHeight
Maximal height in pixels (int, read-only).
Definition: va.h:1658
@ VASurfaceAttribDRMFormatModifiers
List of possible DRM format modifiers (pointer, write).
Definition: va.h:1677
@ VASurfaceAttribMinWidth
Minimal width in pixels (int, read-only).
Definition: va.h:1652
@ VASurfaceAttribExternalBufferDescriptor
External buffer descriptor (pointer, write).
Definition: va.h:1667
@ VASurfaceAttribPixelFormat
Pixel format as a FOURCC (int, read/write).
Definition: va.h:1650
@ VASurfaceAttribCount
Number of surface attributes.
Definition: va.h:1679
@ VASurfaceAttribMinHeight
Minimal height in pixels (int, read-only).
Definition: va.h:1656
@ VAEntrypointFEI
VAEntrypointFEI.
Definition: va.h:573
@ VAEntrypointProtectedTEEComm
VAEntrypointProtectedTEEComm.
Definition: va.h:596
@ VAEntrypointVideoProc
Definition: va.h:556
@ VAEntrypointStats
VAEntrypointStats.
Definition: va.h:590
@ VAEntrypointProtectedContent
VAEntrypointProtectedContent.
Definition: va.h:602
@ VAEncPackedHeaderPicture
Packed picture header.
Definition: va.h:2319
@ VAEncPackedHeaderRawData
Packed raw header.
Definition: va.h:2330
@ VAEncPackedHeaderSequence
Packed sequence header.
Definition: va.h:2317
@ VAEncPackedHeaderSlice
Packed slice header.
Definition: va.h:2321
@ VAProfileProtected
Profile ID used for protected video playback.
Definition: va.h:533
@ VAProfileNone
Profile ID used for video processing.
Definition: va.h:496
VA buffer information.
Definition: va.h:3898
uint32_t mem_type
Buffer memory type (See VASurfaceAttribMemoryType).
Definition: va.h:3911
uint32_t type
Buffer type (See VABufferType).
Definition: va.h:3902
size_t mem_size
Size of the underlying buffer.
Definition: va.h:3913
uintptr_t handle
Buffer handle.
Definition: va.h:3900
Coded buffer segment.
Definition: va.h:3836
uint32_t bit_offset
Bit offset into the data buffer where the video data starts.
Definition: va.h:3842
uint32_t status
Status set by the driver. See VA_CODED_BUF_STATUS_*.
Definition: va.h:3844
void * next
Pointer to the next VACodedBufferSegment element, or NULL if there is none.
Definition: va.h:3853
uint32_t size
Size of the data buffer in this segment (in bytes).
Definition: va.h:3840
void * buf
Pointer to the start of the data buffer.
Definition: va.h:3848
uint32_t reserved
Reserved for future use.
Definition: va.h:3846
update the context parameter this structure is used to update context parameters, such as priority of...
Definition: va.h:2113
uint32_t context_priority_update
indicate whether context priority changed
Definition: va.h:2117
VAConfigAttribValContextPriority context_priority
task/context priority
Definition: va.h:2124
uint32_t reserved
Reserved bits for future use, must be zero.
Definition: va.h:2119
Defines a maximum frame size (in bits).
Definition: va.h:2649
uint32_t max_frame_size
Maximum size of a frame (in bits).
Definition: va.h:2654
Maximum frame size (in bytes) settings for multiple pass.
Definition: va.h:2669
uint8_t * delta_qp
delta QP list for every pass
Definition: va.h:2680
uint32_t reserved
Reserved bytes for future use, must be zero.
Definition: va.h:2676
uint8_t num_passes
number of passes, every pass has different QP, currently AVC encoder can support up to 4 passes
Definition: va.h:2678
uint32_t max_frame_size
Maximum size of a frame (in byte)
Definition: va.h:2674
Encoding quality level.
Definition: va.h:2697
uint32_t quality_level
Encoding quality level setting. When set to 0, default quality level is used.
Definition: va.h:2701
Custom Encoder Rounding Offset Control. Application may use this structure to set customized rounding...
Definition: va.h:2936
uint32_t enable_custom_rouding_intra
Enable customized rounding offset for intra blocks. If 0, default value would be taken by driver for ...
Definition: va.h:2943
uint32_t rounding_offset_intra
Intra rounding offset Ignored if enable_custom_rouding_intra equals 0.
Definition: va.h:2948
uint32_t enable_custom_rounding_inter
Enable customized rounding offset for inter blocks. If 0, default value would be taken by driver for ...
Definition: va.h:2954
uint32_t rounding_offset_inter
Inter rounding offset Ignored if enable_custom_rouding_inter equals 0.
Definition: va.h:2959
uint32_t PanicModeDisable
Definition: va.h:2910
uint32_t UltraHMEDisable
Definition: va.h:2906
uint32_t HMEDisable
Definition: va.h:2902
uint32_t FTQSkipThresholdLUTInput
Definition: va.h:2879
uint32_t HMEMVCostScalingFactor
Definition: va.h:2900
uint32_t SuperHMEDisable
Definition: va.h:2904
uint32_t FTQOverride
Definition: va.h:2874
uint32_t ForceRepartitionCheck
Definition: va.h:2915
uint32_t directBiasAdjustmentEnable
Definition: va.h:2886
uint32_t NonFTQSkipThresholdLUTInput
Definition: va.h:2882
uint32_t useRawPicForRef
Definition: va.h:2868
uint32_t FTQEnable
Definition: va.h:2876
uint32_t skipCheckDisable
Definition: va.h:2871
uint32_t globalMotionBiasAdjustmentEnable
Definition: va.h:2893
uint32_t reserved
Definition: va.h:2539
uint32_t temporal_id
Definition: va.h:2537
uint32_t framerate
Definition: va.h:2533
uint32_t buffer_size
Definition: va.h:2634
uint32_t initial_buffer_fullness
Definition: va.h:2628
Attribute value for VAConfigAttribEncParallelRateControl.
Definition: va.h:2850
uint32_t num_layers
Definition: va.h:2852
uint32_t * num_b_in_gop
Definition: va.h:2857
Quantization settings for encoding.
Definition: va.h:2713
Rate control parameters.
Definition: va.h:2396
uint32_t bits_per_second
Definition: va.h:2398
uint32_t basic_unit_size
Definition: va.h:2426
uint32_t reserved
Definition: va.h:2473
uint32_t frame_tolerance_mode
Definition: va.h:2471
uint32_t mb_rate_control
Definition: va.h:2446
uint32_t temporal_id
Definition: va.h:2448
uint32_t disable_bit_stuffing
Definition: va.h:2438
uint32_t cfs_I_frames
Definition: va.h:2450
uint32_t ICQ_quality_factor
Definition: va.h:2482
uint32_t max_qp
Definition: va.h:2488
uint32_t window_size
Definition: va.h:2410
uint32_t enable_parallel_brc
Definition: va.h:2455
uint32_t disable_frame_skip
Definition: va.h:2436
uint32_t reset
Definition: va.h:2434
uint32_t target_frame_size
Definition: va.h:2502
uint32_t initial_qp
Definition: va.h:2415
uint32_t min_qp
Definition: va.h:2421
uint32_t target_percentage
Definition: va.h:2404
uint32_t quality_factor
Definition: va.h:2493
Encoding skip frame.
Definition: va.h:2741
uint32_t size_skip_frames
When skip_frame_flag = 1, the size of the skipped frames in bits. When skip_frame_flag = 2,...
Definition: va.h:2753
uint8_t skip_frame_flag
Indicates skip frames as below. 0: Encode as normal, no skip. 1: One or more frames were skipped prio...
Definition: va.h:2748
uint8_t num_skip_frames
The number of frames skipped prior to the current frame. Valid when skip_frame_flag = 1.
Definition: va.h:2750
Temporal layer Structure.
Definition: va.h:2377
uint32_t periodicity
The length of the array defining frame layer membership. Should be 1-32.
Definition: va.h:2381
uint32_t number_of_layers
The number of temporal layers.
Definition: va.h:2379
Encoding region-of-interest (ROI).
Definition: va.h:2768
int8_t roi_value
ROI value.
Definition: va.h:2791
VARectangle roi_rectangle
Defines the ROI boundary in pixels, the driver will map it to appropriate codec coding units....
Definition: va.h:2772
Encode Slice Parameter Buffer.
Definition: va.h:3630
Encryption parameters buffer for VAEncryptionParameterBufferType.
Definition: va.h:2167
uint32_t key_blob_size
key blob size It could be VA_PC_BLOCK_SIZE_128, VA_PC_BLOCK_SIZE_192, or VA_PC_BLOCK_SIZE_256
Definition: va.h:2192
uint32_t blocks_stripe_clear
Indicates the number of 16-byte BLOCKS that are clear in any given encrypted region of segments,...
Definition: va.h:2208
uint32_t num_segments
The number of sengments.
Definition: va.h:2173
uint32_t size_of_length
CENC counter length.
Definition: va.h:2181
VAEncryptionSegmentInfo * segment_info
Pointer of segments.
Definition: va.h:2175
uint32_t status_report_index
The status report index reserved for CENC fullsample workload. The related structures and definitions...
Definition: va.h:2179
uint32_t blocks_stripe_encrypted
Indicates the number of 16-byte BLOCKS that are encrypted in any given encrypted region of segments....
Definition: va.h:2201
uint32_t encryption_type
Encryption type, refer to VA_ENCRYPTION_TYPE_FULLSAMPLE_CTR, VA_ENCRYPTION_TYPE_FULLSAMPLE_CBC,...
Definition: va.h:2171
structure for encrypted segment info.
Definition: va.h:2147
uint32_t segment_length
The length of the segments in bytes.
Definition: va.h:2152
uint32_t partial_aes_block_size
The length in bytes of the remainder of an incomplete block from a previous segment.
Definition: va.h:2155
uint32_t init_byte_length
The length in bytes of the initial clear data.
Definition: va.h:2157
uint32_t segment_start_offset
The offset relative to the start of the bitstream input in bytes of the start of the segment.
Definition: va.h:2150
Generic value.
Definition: va.h:1612
float f
32-bit float.
Definition: va.h:1620
VAGenericFunc fn
Pointer to function.
Definition: va.h:1624
int32_t i
32-bit signed integer.
Definition: va.h:1618
void * p
Generic pointer.
Definition: va.h:1622
VAGenericValueType type
Value type. See VAGenericValueType.
Definition: va.h:1614
Huffman table for JPEG decoding.
Definition: va.h:3003
int32_t load_intra_quantiser_matrix
Same as the MPEG-2 bitstream syntax element.
Definition: va.h:3073
int32_t load_chroma_intra_quantiser_matrix
Same as the MPEG-2 bitstream syntax element.
Definition: va.h:3077
int32_t load_chroma_non_intra_quantiser_matrix
Same as the MPEG-2 bitstream syntax element.
Definition: va.h:3079
int32_t load_non_intra_quantiser_matrix
Same as the MPEG-2 bitstream syntax element.
Definition: va.h:3075
int32_t load_intra_quant_mat
Definition: va.h:3225
int32_t load_non_intra_quant_mat
Definition: va.h:3227
Generic motion vector data structure.
Definition: va.h:412
Description of picture properties of those in DPB surfaces.
Definition: va.h:5149
int32_t pic_order_cnt
picture order count. in HEVC, POCs for top and bottom fields of same picture should take different va...
Definition: va.h:5158
VASurfaceID picture_id
reconstructed picture buffer surface index invalid when taking value VA_INVALID_SURFACE.
Definition: va.h:5153
uint8_t level_idc
Profile level.
Definition: va.h:2235
uint32_t intra_period
Period between I frames.
Definition: va.h:2225
uint8_t level_idc
Profile level.
Definition: va.h:2218
uint32_t ip_period
Period between I/P frames.
Definition: va.h:2227
uint32_t quality_level
quality level. When set to 0, default quality level is used.
Definition: va.h:2223
uint8_t num_ref_idx_l0_active_minus1
Definition: va.h:3580
uint8_t num_ref_idx_l1_active_minus1
Definition: va.h:3587
uint32_t slice_data_offset
Byte offset to the NAL Header Unit for this slice.
Definition: va.h:3558
uint16_t slice_data_bit_offset
Bit offset from NAL Header Unit to the begining of slice_data().
Definition: va.h:3570
VASurfaceAttribExternalBuffers structure for the VASurfaceAttribExternalBufferDescriptor attribute.
Definition: va.h:1711
uint32_t num_planes
number of planes for planar layout
Definition: va.h:1721
uint32_t data_size
total size of the buffer in bytes.
Definition: va.h:1719
uint32_t height
height in pixels.
Definition: va.h:1717
uint32_t width
width in pixels.
Definition: va.h:1715
uint32_t pixel_format
pixel format in fourcc.
Definition: va.h:1713
uint32_t flags
flags. See "Surface external buffer descriptor flags".
Definition: va.h:1731
uint32_t num_buffers
number of elements in the "buffers" array
Definition: va.h:1729
uintptr_t * buffers
buffer handles or user pointers
Definition: va.h:1727
void * private_data
reserved for passing private data
Definition: va.h:1733
Surface attribute.
Definition: va.h:1683
VAGenericValue value
Value. See "Surface attribute types" for the expected types.
Definition: va.h:1689
VASurfaceAttribType type
Type.
Definition: va.h:1685
uint32_t flags
Flags. See "Surface attribute flags".
Definition: va.h:1687
uint32_t reserved
reserved bits for future, must be zero
Definition: va.h:1406
uint32_t priority
the priority , for the Query operation (read) it represents highest priority for the set operation (w...
Definition: va.h:1404
Attribute value for VAConfigAttribEncJPEG.
Definition: va.h:1247
uint32_t non_interleaved_mode
set to 1 for non-interleaved.
Definition: va.h:1254
uint32_t differential_mode
set to 1 for differential.
Definition: va.h:1256
uint32_t progressive_dct_mode
set to 1 for progressive dct.
Definition: va.h:1252
uint32_t arithmatic_coding_mode
set to 1 for arithmatic coding.
Definition: va.h:1250
uint32_t reserved
reserved bit for future, must be zero
Definition: va.h:1421
uint32_t delta_qp_size_in_bytes
size of delta qp per block in bytes
Definition: va.h:1419
uint32_t log2_delta_qp_block_size
supported size of delta qp block
Definition: va.h:1417
uint32_t delta_qp_support
whether to support dela qp per block
Definition: va.h:1415
Attribute value for VAConfigAttribEncROI.
Definition: va.h:1310
uint32_t roi_rc_priority_support
A flag indicates whether ROI priority is supported.
Definition: va.h:1325
uint32_t roi_rc_qp_delta_support
A flag indicates whether ROI delta QP is supported.
Definition: va.h:1337
uint32_t num_roi_regions
The number of ROI regions supported, 0 if ROI is not supported.
Definition: va.h:1313
Attribute value for VAConfigAttribEncRateControlExt.
Definition: va.h:1344
uint32_t temporal_layer_bitrate_control_flag
Definition: va.h:1378
uint32_t max_num_temporal_layers_minus1
The maximum number of temporal layers minus 1.
Definition: va.h:1353
Attribute value for VAConfigAttribMaxFrameSize.
Definition: va.h:1230
uint32_t max_frame_size
support max frame size if max_frame_size == 1, VAEncMiscParameterTypeMaxFrameSize/VAEncMiscParameterB...
Definition: va.h:1237
uint32_t reserved
reserved bits for future, must be zero
Definition: va.h:1241
uint32_t multiple_pass
multiple_pass support
Definition: va.h:1239
Attribute value for VAConfigAttribMultipleFrame.
Definition: va.h:1385
uint32_t reserved
reserved bit for future, must be zero
Definition: va.h:1394
uint32_t max_num_concurrent_frames
max num of concurrent frames from different stream
Definition: va.h:1388
uint32_t mixed_quality_level
indicate whether all stream must support same quality level if mixed_quality_level == 0,...
Definition: va.h:1392
sub device info Sub-device is the concept basing on the "device" behind "vaDisplay"....
Definition: va.h:4963
uint32_t sub_device_count
sub devices count, read - only
Definition: va.h:4968
uint32_t reserved
reserved bits for future, must be zero
Definition: va.h:4970
uint32_t sub_device_mask
bit mask to indicate which sub_device is available, read only
Definition: va.h:4986
uint32_t current_sub_device
current sub device index, read - write
Definition: va.h:4966
VAStatus vaGetDisplayAttributes(VADisplay dpy, VADisplayAttribute *attr_list, int num_attributes)
VADisplayAttribType
Definition: va.h:4992
VAStatus vaCopy(VADisplay dpy, VACopyObject *dst, VACopyObject *src, VACopyOption option)
Copies an object.
VAStatus vaSetDisplayAttributes(VADisplay dpy, VADisplayAttribute *attr_list, int num_attributes)
VAStatus vaQueryDisplayAttributes(VADisplay dpy, VADisplayAttribute *attr_list, int *num_attributes)
#define va_deprecated_enum
Misc packed header. See codec-specific definitions.
Definition: va.h:98
int vaMaxNumDisplayAttributes(VADisplay dpy)
The FEI encoding common API.
The FEI encoding H264 special API.
The FEI encoding HEVC special API.
The video processing API.