Lines Matching defs:attribs

422    VASurfaceAttrib *attribs;
459 attribs = CALLOC(VL_VA_MAX_IMAGE_FORMATS + VASurfaceAttribCount,
462 if (!attribs)
472 attribs[i].type = VASurfaceAttribPixelFormat;
473 attribs[i].value.type = VAGenericValueTypeInteger;
474 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE;
475 attribs[i].value.value.i = PipeFormatToVaFourcc(vpp_surface_formats[j]);
481 attribs[i].type = VASurfaceAttribPixelFormat;
482 attribs[i].value.type = VAGenericValueTypeInteger;
483 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE;
484 attribs[i].value.value.i = VA_FOURCC_NV12;
490 attribs[i].type = VASurfaceAttribPixelFormat;
491 attribs[i].value.type = VAGenericValueTypeInteger;
492 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE;
493 attribs[i].value.value.i = VA_FOURCC_P010;
495 attribs[i].type = VASurfaceAttribPixelFormat;
496 attribs[i].value.type = VAGenericValueTypeInteger;
497 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE;
498 attribs[i].value.value.i = VA_FOURCC_P016;
502 attribs[i].type = VASurfaceAttribMemoryType;
503 attribs[i].value.type = VAGenericValueTypeInteger;
504 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE | VA_SURFACE_ATTRIB_SETTABLE;
505 attribs[i].value.value.i = VA_SURFACE_ATTRIB_MEM_TYPE_VA |
510 attribs[i].type = VASurfaceAttribExternalBufferDescriptor;
511 attribs[i].value.type = VAGenericValueTypePointer;
512 attribs[i].flags = VA_SURFACE_ATTRIB_SETTABLE;
513 attribs[i].value.value.p = NULL; /* ignore */
518 attribs[i].type = VASurfaceAttribDRMFormatModifiers;
519 attribs[i].value.type = VAGenericValueTypePointer;
520 attribs[i].flags = VA_SURFACE_ATTRIB_SETTABLE;
521 attribs[i].value.value.p = NULL; /* ignore */
532 attribs[i].type = VASurfaceAttribMaxWidth;
533 attribs[i].value.type = VAGenericValueTypeInteger;
534 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE;
535 attribs[i].value.value.i =
541 attribs[i].type = VASurfaceAttribMaxHeight;
542 attribs[i].value.type = VAGenericValueTypeInteger;
543 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE;
544 attribs[i].value.value.i =
550 attribs[i].type = VASurfaceAttribMaxWidth;
551 attribs[i].value.type = VAGenericValueTypeInteger;
552 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE;
553 attribs[i].value.value.i = vl_video_buffer_max_size(pscreen);
556 attribs[i].type = VASurfaceAttribMaxHeight;
557 attribs[i].value.type = VAGenericValueTypeInteger;
558 attribs[i].flags = VA_SURFACE_ATTRIB_GETTABLE;
559 attribs[i].value.value.i = vl_video_buffer_max_size(pscreen);
565 FREE(attribs);
570 memcpy(attrib_list, attribs, i * sizeof(VASurfaceAttrib));
571 FREE(attribs);