Lines Matching refs:memory_attribute
573 VASurfaceAttribExternalBuffers *memory_attribute, in surface_from_external_memory() argument
588 if (!memory_attribute || !memory_attribute->buffers || in surface_from_external_memory()
589 index > memory_attribute->num_buffers) in surface_from_external_memory()
592 if (surface->templat.width != memory_attribute->width || in surface_from_external_memory()
593 surface->templat.height != memory_attribute->height || in surface_from_external_memory()
594 memory_attribute->num_planes < 1) in surface_from_external_memory()
597 if (memory_attribute->num_planes > VL_NUM_COMPONENTS) in surface_from_external_memory()
612 whandle.handle = memory_attribute->buffers[index]; in surface_from_external_memory()
618 for (i = 0; i < memory_attribute->num_planes; i++) { in surface_from_external_memory()
632 memory_attribute->width); in surface_from_external_memory()
634 memory_attribute->height); in surface_from_external_memory()
636 whandle.stride = memory_attribute->pitches[i]; in surface_from_external_memory()
637 whandle.offset = memory_attribute->offsets[i]; in surface_from_external_memory()
828 VASurfaceAttribExternalBuffers *memory_attribute; in vlVaCreateSurfaces2() local
861 memory_attribute = NULL; in vlVaCreateSurfaces2()
898 memory_attribute = (VASurfaceAttribExternalBuffers *)attrib_list[i].value.value.p; in vlVaCreateSurfaces2()
933 if (!memory_attribute) in vlVaCreateSurfaces2()
938 expected_fourcc = memory_attribute->pixel_format; in vlVaCreateSurfaces2()
970 if (expected_format != templat.buffer_format || memory_attribute) in vlVaCreateSurfaces2()
999 if (memory_attribute && in vlVaCreateSurfaces2()
1000 !(memory_attribute->flags & VA_SURFACE_EXTBUF_DESC_ENABLE_TILING)) in vlVaCreateSurfaces2()
1010 vaStatus = surface_from_external_memory(ctx, surf, memory_attribute, i, &templat); in vlVaCreateSurfaces2()