Home
last modified time | relevance | path

Searched refs:attrib_list (Results 1 – 25 of 45) sorted by relevance

12

/hardware/intel/common/libva/test/basic/
Dtest_vaSurfaceAttrib.c55 VASurfaceAttrib attrib_list[2]; in test() local
93 attrib_list[1].type = (VASurfaceAttribType)VASurfaceAttribExternalBufferDescriptor; in test()
94 attrib_list[0].type = (VASurfaceAttribType)VASurfaceAttribMemoryType; in test()
95 va_status = vaGetSurfaceAttributes(va_dpy, config_id, attrib_list, 2); in test()
98 if (attrib_list[0].flags != VA_SURFACE_ATTRIB_NOT_SUPPORTED) { in test()
100 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_VA) in test()
102 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_V4L2) in test()
104 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_USER_PTR) in test()
106 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_GRALLOC) in test()
108 if (attrib_list[0].value.value.i & VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_ION) in test()
[all …]
Dtest_04.c55 VAConfigAttrib *attrib_list = (VAConfigAttrib *) malloc(sizeof(attributes)); in test() local
56 ASSERT(attrib_list); in test()
65 memcpy(attrib_list, attributes, sizeof(attributes)); in test()
67 … va_status = vaGetConfigAttributes(va_dpy, profiles[i], entrypoints[j], attrib_list, num_attribs); in test()
71 status(" %d -> %08x\n", attrib_list[k].type, attrib_list[k].value); in test()
72 ASSERT(attrib_list[k].value != DEADVALUE); in test()
77 free(attrib_list); in test()
Dtest_06.c76 VAConfigAttrib *attrib_list = malloc(max_attribs * sizeof(VAConfigAttrib)); in test() local
92 memset(attrib_list, 0xff, max_attribs * sizeof(VAConfigAttrib)); in test()
94 …yConfigAttributes(va_dpy, configs[config_count], &profile, &entrypoint, attrib_list, &num_attribs); in test()
102 status(" %d -> %08x\n", attrib_list[k].type, attrib_list[k].value); in test()
103 ASSERT(attrib_list[k].value != VA_ATTRIB_NOT_SUPPORTED); in test()
108 free(attrib_list); in test()
/hardware/intel/img/psb_video/src/mrst/
Dlnc_MPEG4ES.c56 VAConfigAttrib *attrib_list, in lnc_MPEG4ES_QueryConfigAttributes() argument
65 switch (attrib_list[i].type) { in lnc_MPEG4ES_QueryConfigAttributes()
70 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR; in lnc_MPEG4ES_QueryConfigAttributes()
74 attrib_list[i].value = 0; in lnc_MPEG4ES_QueryConfigAttributes()
78 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in lnc_MPEG4ES_QueryConfigAttributes()
93 switch (obj_config->attrib_list[i].type) { in lnc_MPEG4ES_ValidateConfig()
131 if (obj_config->attrib_list[i].type == VAConfigAttribEncMaxSliceSize) in lnc_MPEG4ES_CreateContext()
132 ctx->max_slice_size = obj_config->attrib_list[i].value; in lnc_MPEG4ES_CreateContext()
133 else if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) in lnc_MPEG4ES_CreateContext()
134 eRCmode = obj_config->attrib_list[i].value; in lnc_MPEG4ES_CreateContext()
[all …]
Dlnc_H263ES.c55 VAConfigAttrib *attrib_list, in lnc_H263ES_QueryConfigAttributes() argument
63 switch (attrib_list[i].type) { in lnc_H263ES_QueryConfigAttributes()
68 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR; in lnc_H263ES_QueryConfigAttributes()
72 attrib_list[i].value = 0; in lnc_H263ES_QueryConfigAttributes()
76 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in lnc_H263ES_QueryConfigAttributes()
90 switch (obj_config->attrib_list[i].type) { in lnc_H263ES_ValidateConfig()
128 if (obj_config->attrib_list[i].type == VAConfigAttribEncMaxSliceSize) in lnc_H263ES_CreateContext()
129 ctx->max_slice_size = obj_config->attrib_list[i].value; in lnc_H263ES_CreateContext()
130 else if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) in lnc_H263ES_CreateContext()
131 eRCmode = obj_config->attrib_list[i].value; in lnc_H263ES_CreateContext()
[all …]
Dlnc_H264ES.c60 VAConfigAttrib *attrib_list, in lnc_H264ES_QueryConfigAttributes() argument
69 switch (attrib_list[i].type) { in lnc_H264ES_QueryConfigAttributes()
74 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR | VA_RC_VCM; in lnc_H264ES_QueryConfigAttributes()
78 attrib_list[i].value = 0; in lnc_H264ES_QueryConfigAttributes()
82 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in lnc_H264ES_QueryConfigAttributes()
95 switch (obj_config->attrib_list[i].type) { in lnc_H264ES_ValidateConfig()
133 if (obj_config->attrib_list[i].type == VAConfigAttribEncMaxSliceSize) in lnc_H264ES_CreateContext()
134 ctx->max_slice_size = obj_config->attrib_list[i].value; in lnc_H264ES_CreateContext()
135 else if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) in lnc_H264ES_CreateContext()
136 eRCmode = obj_config->attrib_list[i].value; in lnc_H264ES_CreateContext()
[all …]
/hardware/intel/common/libva/va/
Dva_backend.h75 VAConfigAttrib *attrib_list, /* in/out */
83 VAConfigAttrib *attrib_list,
98 VAConfigAttrib *attrib_list, /* out */
399 VASurfaceAttrib *attrib_list,
411 VASurfaceAttrib *attrib_list,
419 VASurfaceAttrib *attrib_list,
Dva_trace.h72 VAConfigAttrib *attrib_list,
84 VASurfaceAttrib *attrib_list,
154 VASurfaceAttrib *attrib_list,
Dva.c601 VAConfigAttrib *attrib_list, /* in/out */ in vaGetConfigAttributes() argument
609 return ctx->vtable->vaGetConfigAttributes ( ctx, profile, entrypoint, attrib_list, num_attribs ); in vaGetConfigAttributes()
629 VAConfigAttrib *attrib_list, in vaCreateConfig() argument
640 …vaStatus = ctx->vtable->vaCreateConfig ( ctx, profile, entrypoint, attrib_list, num_attribs, confi… in vaCreateConfig()
643 VA_TRACE_ALL(va_TraceCreateConfig, dpy, profile, entrypoint, attrib_list, num_attribs, config_id); in vaCreateConfig()
644 VA_FOOL_FUNC(va_FoolCreateConfig, dpy, profile, entrypoint, attrib_list, num_attribs, config_id); in vaCreateConfig()
666 VAConfigAttrib *attrib_list,/* out */ in vaQueryConfigAttributes() argument
674 …return ctx->vtable->vaQueryConfigAttributes( ctx, config_id, profile, entrypoint, attrib_list, num… in vaQueryConfigAttributes()
817 VASurfaceAttrib *attrib_list, in vaQuerySurfaceAttributes() argument
831 attrib_list, num_attribs); in vaQuerySurfaceAttributes()
[all …]
Dva_fool.h55 VAConfigAttrib *attrib_list,
Dva.h903 VAConfigAttrib *attrib_list, /* in/out */
921 VAConfigAttrib *attrib_list,
947 VAConfigAttrib *attrib_list,/* out */
1162 VASurfaceAttrib *attrib_list,
1192 VASurfaceAttrib *attrib_list,
/hardware/intel/img/psb_video/src/
Dpsb_drv_video.c273 VAConfigAttrib *attrib_list, /* in/out */ in psb_GetConfigAttributes() argument
293 CHECK_INVALID_PARAM(attrib_list == NULL); in psb_GetConfigAttributes()
298 switch (attrib_list[i].type) { in psb_GetConfigAttributes()
300 attrib_list[i].value = VA_RT_FORMAT_YUV420; in psb_GetConfigAttributes()
302 attrib_list[i].value |= VA_RT_FORMAT_YUV422; in psb_GetConfigAttributes()
304 attrib_list[i].value |= VA_RT_FORMAT_YUV444; in psb_GetConfigAttributes()
308 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in psb_GetConfigAttributes()
313 format_vtable->queryConfigAttributes(profile, entrypoint, attrib_list, num_attribs); in psb_GetConfigAttributes()
323 if (obj_config->attrib_list[i].type == attrib->type) { in psb__update_attribute()
325 obj_config->attrib_list[i].value = attrib->value; in psb__update_attribute()
[all …]
Dtng_MPEG4ES.c62 VAConfigAttrib *attrib_list, in tng_MPEG4ES_QueryConfigAttributes() argument
71 switch (attrib_list[i].type) { in tng_MPEG4ES_QueryConfigAttributes()
76 attrib_list[i].value = 1; in tng_MPEG4ES_QueryConfigAttributes()
80 attrib_list[i].value = 2; in tng_MPEG4ES_QueryConfigAttributes()
84 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR; in tng_MPEG4ES_QueryConfigAttributes()
88 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in tng_MPEG4ES_QueryConfigAttributes()
102 switch (obj_config->attrib_list[i].type) { in tng_MPEG4ES_ValidateConfig()
Dpnw_MPEG4ES.c55 VAConfigAttrib * attrib_list, in pnw_MPEG4ES_QueryConfigAttributes() argument
64 switch (attrib_list[i].type) { in pnw_MPEG4ES_QueryConfigAttributes()
69 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR; in pnw_MPEG4ES_QueryConfigAttributes()
73 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_MPEG4ES_QueryConfigAttributes()
88 switch (obj_config->attrib_list[i].type) { in pnw_MPEG4ES_ValidateConfig()
121 if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) in pnw_MPEG4ES_CreateContext()
128 eRCmode = obj_config->attrib_list[i].value; in pnw_MPEG4ES_CreateContext()
Dpnw_H263ES.c54 VAConfigAttrib *attrib_list, in pnw_H263ES_QueryConfigAttributes() argument
62 switch (attrib_list[i].type) { in pnw_H263ES_QueryConfigAttributes()
67 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR; in pnw_H263ES_QueryConfigAttributes()
71 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_H263ES_QueryConfigAttributes()
85 switch (obj_config->attrib_list[i].type) { in pnw_H263ES_ValidateConfig()
119 if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) in pnw_H263ES_CreateContext()
126 eRCmode = obj_config->attrib_list[i].value; in pnw_H263ES_CreateContext()
Dpnw_jpeg.c63 VAConfigAttrib *attrib_list, in pnw_jpeg_QueryConfigAttributes() argument
72 switch (attrib_list[i].type) { in pnw_jpeg_QueryConfigAttributes()
79 VAConfigAttribValEncJPEG* ptr = (VAConfigAttribValEncJPEG *)&(attrib_list[i].value); in pnw_jpeg_QueryConfigAttributes()
95 attrib_list[i].value = 0; /* No pure limitation */ in pnw_jpeg_QueryConfigAttributes()
98 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_jpeg_QueryConfigAttributes()
113 switch (obj_config->attrib_list[i].type) { in pnw_jpeg_ValidateConfig()
149 if (VAConfigAttribRTFormat == obj_config->attrib_list[i].type) { in pnw_jpeg_CreateContext()
150 switch (obj_config->attrib_list[i].value) { in pnw_jpeg_CreateContext()
Dtng_H263ES.c62 VAConfigAttrib *attrib_list, in tng_H263ES_QueryConfigAttributes() argument
71 switch (attrib_list[i].type) { in tng_H263ES_QueryConfigAttributes()
76 attrib_list[i].value = 1; in tng_H263ES_QueryConfigAttributes()
80 attrib_list[i].value = 2; in tng_H263ES_QueryConfigAttributes()
84 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR; in tng_H263ES_QueryConfigAttributes()
88 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in tng_H263ES_QueryConfigAttributes()
102 switch (obj_config->attrib_list[i].type) { in tng_H263ES_ValidateConfig()
Dvsp_vp8.c107 VAConfigAttrib *attrib_list, in vsp_VP8_QueryConfigAttributes() argument
114 switch (attrib_list[i].type) { in vsp_VP8_QueryConfigAttributes()
118 attrib_list[i].value = VA_RC_CBR | VA_RC_VCM | VA_RC_VBR; in vsp_VP8_QueryConfigAttributes()
121 attrib_list[i].value = 1; in vsp_VP8_QueryConfigAttributes()
124 attrib_list[i].value = 4; in vsp_VP8_QueryConfigAttributes()
127 attrib_list[i].value = 3; in vsp_VP8_QueryConfigAttributes()
131 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in vsp_VP8_QueryConfigAttributes()
145 switch (obj_config->attrib_list[i].type) { in vsp_VP8_ValidateConfig()
218 if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) { in vsp_VP8_CreateContext()
219 if (obj_config->attrib_list[i].value == VA_RC_VCM) in vsp_VP8_CreateContext()
Dpnw_MPEG2.c537 VAConfigAttrib __maybe_unused * attrib_list, in pnw_MPEG2_QueryConfigAttributes() argument
544 switch (attrib_list[i].type) { in pnw_MPEG2_QueryConfigAttributes()
548 attrib_list[i].value = HW_SUPPORTED_MAX_PICTURE_WIDTH_MPEG2_SP; in pnw_MPEG2_QueryConfigAttributes()
550 attrib_list[i].value = HW_SUPPORTED_MAX_PICTURE_WIDTH_MPEG2_MP; in pnw_MPEG2_QueryConfigAttributes()
552 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_MPEG2_QueryConfigAttributes()
555 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_MPEG2_QueryConfigAttributes()
560 attrib_list[i].value = HW_SUPPORTED_MAX_PICTURE_HEIGHT_MPEG2_SP; in pnw_MPEG2_QueryConfigAttributes()
562 attrib_list[i].value = HW_SUPPORTED_MAX_PICTURE_HEIGHT_MPEG2_MP; in pnw_MPEG2_QueryConfigAttributes()
565 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_MPEG2_QueryConfigAttributes()
580 switch (obj_config->attrib_list[i].type) { in pnw_MPEG2_ValidateConfig()
Dpnw_H264ES.c54 VAConfigAttrib *attrib_list, in pnw_H264ES_QueryConfigAttributes() argument
63 switch (attrib_list[i].type) { in pnw_H264ES_QueryConfigAttributes()
68 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR | VA_RC_VCM; in pnw_H264ES_QueryConfigAttributes()
72 attrib_list[i].value = 1; in pnw_H264ES_QueryConfigAttributes()
76 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in pnw_H264ES_QueryConfigAttributes()
89 switch (obj_config->attrib_list[i].type) { in pnw_H264ES_ValidateConfig()
123 if (obj_config->attrib_list[i].type == VAConfigAttribRateControl) in pnw_H264ES_CreateContext()
130 eRCmode = obj_config->attrib_list[i].value; in pnw_H264ES_CreateContext()
Dtng_jpegES.c967 VAConfigAttrib *attrib_list, in tng_jpeg_QueryConfigAttributes() argument
976 switch (attrib_list[i].type) { in tng_jpeg_QueryConfigAttributes()
983 VAConfigAttribValEncJPEG* ptr = (VAConfigAttribValEncJPEG *)&(attrib_list[i].value); in tng_jpeg_QueryConfigAttributes()
999 attrib_list[i].value = 0; /* No pure limitation */ in tng_jpeg_QueryConfigAttributes()
1002 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in tng_jpeg_QueryConfigAttributes()
1018 switch (obj_config->attrib_list[i].type) { in tng_jpeg_ValidateConfig()
1054 if (VAConfigAttribRTFormat == obj_config->attrib_list[i].type) { in tng_jpeg_CreateContext()
1055 switch (obj_config->attrib_list[i].value) { in tng_jpeg_CreateContext()
Dtng_H264ES.c1153 VAConfigAttrib *attrib_list, in tng_H264ES_QueryConfigAttributes() argument
1160 switch (attrib_list[i].type) { in tng_H264ES_QueryConfigAttributes()
1165 attrib_list[i].value = VA_RC_NONE | VA_RC_CBR | VA_RC_VBR | VA_RC_VCM; in tng_H264ES_QueryConfigAttributes()
1169 attrib_list[i].value = 1; in tng_H264ES_QueryConfigAttributes()
1173 attrib_list[i].value = 4; in tng_H264ES_QueryConfigAttributes()
1177 attrib_list[i].value = VA_ATTRIB_NOT_SUPPORTED; in tng_H264ES_QueryConfigAttributes()
1190 switch (obj_config->attrib_list[i].type) { in tng_H264ES_ValidateConfig()
/hardware/intel/img/hwcomposer/merrifield/common/devices/
DVirtualDevice.cpp181 VASurfaceAttrib attrib_list[3]; in VAMappedHandle() local
182 attrib_list[0].type = (VASurfaceAttribType)VASurfaceAttribMemoryType; in VAMappedHandle()
183 attrib_list[0].flags = VA_SURFACE_ATTRIB_SETTABLE; in VAMappedHandle()
184 attrib_list[0].value.type = VAGenericValueTypeInteger; in VAMappedHandle()
185 attrib_list[0].value.value.i = VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_GRALLOC; in VAMappedHandle()
186 attrib_list[1].type = (VASurfaceAttribType)VASurfaceAttribExternalBufferDescriptor; in VAMappedHandle()
187 attrib_list[1].flags = VA_SURFACE_ATTRIB_SETTABLE; in VAMappedHandle()
188 attrib_list[1].value.type = VAGenericValueTypePointer; in VAMappedHandle()
189 attrib_list[1].value.value.p = (void *)&buf; in VAMappedHandle()
190 attrib_list[2].type = (VASurfaceAttribType)VASurfaceAttribPixelFormat; in VAMappedHandle()
[all …]
/hardware/intel/common/libva/test/encode/
Dmpeg2enc.c821 VAConfigAttrib attrib_list[2]; in mpeg2enc_alloc_va_resources() local
852 attrib_list[0].type = VAConfigAttribRTFormat; in mpeg2enc_alloc_va_resources()
853 attrib_list[1].type = VAConfigAttribRateControl; in mpeg2enc_alloc_va_resources()
857 &attrib_list[0], in mpeg2enc_alloc_va_resources()
860 if ((attrib_list[0].value & VA_RT_FORMAT_YUV420) == 0) { in mpeg2enc_alloc_va_resources()
865 if ((attrib_list[1].value & ctx->rate_control_mode) == 0) { in mpeg2enc_alloc_va_resources()
871 attrib_list[0].value = VA_RT_FORMAT_YUV420; /* set to desired RT format */ in mpeg2enc_alloc_va_resources()
872 attrib_list[1].value = ctx->rate_control_mode; /* set to desired RC mode */ in mpeg2enc_alloc_va_resources()
877 attrib_list, in mpeg2enc_alloc_va_resources()
Dmpeg2vaenc.c821 VAConfigAttrib attrib_list[2]; in mpeg2enc_alloc_va_resources() local
852 attrib_list[0].type = VAConfigAttribRTFormat; in mpeg2enc_alloc_va_resources()
853 attrib_list[1].type = VAConfigAttribRateControl; in mpeg2enc_alloc_va_resources()
857 &attrib_list[0], in mpeg2enc_alloc_va_resources()
860 if ((attrib_list[0].value & VA_RT_FORMAT_YUV420) == 0) { in mpeg2enc_alloc_va_resources()
865 if ((attrib_list[1].value & ctx->rate_control_mode) == 0) { in mpeg2enc_alloc_va_resources()
871 attrib_list[0].value = VA_RT_FORMAT_YUV420; /* set to desired RT format */ in mpeg2enc_alloc_va_resources()
872 attrib_list[1].value = ctx->rate_control_mode; /* set to desired RC mode */ in mpeg2enc_alloc_va_resources()
877 attrib_list, in mpeg2enc_alloc_va_resources()

12