Lines Matching refs:extbuf

696     VASurfaceAttribExternalBuffers extbuf;  in CreateSurfaceFromExternalBuf()  local
702 extbuf.pixel_format = VA_FOURCC_NV12; in CreateSurfaceFromExternalBuf()
703 extbuf.width = vinfo.width; in CreateSurfaceFromExternalBuf()
704 extbuf.height = vinfo.height; in CreateSurfaceFromExternalBuf()
705 extbuf.data_size = vinfo.size; in CreateSurfaceFromExternalBuf()
706 if (extbuf.data_size == 0) in CreateSurfaceFromExternalBuf()
707 extbuf.data_size = vinfo.lumaStride * vinfo.height * 1.5; in CreateSurfaceFromExternalBuf()
708 extbuf.num_buffers = 1; in CreateSurfaceFromExternalBuf()
709 extbuf.num_planes = 3; in CreateSurfaceFromExternalBuf()
710 extbuf.pitches[0] = vinfo.lumaStride; in CreateSurfaceFromExternalBuf()
711 extbuf.pitches[1] = vinfo.lumaStride; in CreateSurfaceFromExternalBuf()
712 extbuf.pitches[2] = vinfo.lumaStride; in CreateSurfaceFromExternalBuf()
713 extbuf.pitches[3] = 0; in CreateSurfaceFromExternalBuf()
714 extbuf.offsets[0] = 0; in CreateSurfaceFromExternalBuf()
715 extbuf.offsets[1] = vinfo.lumaStride * vinfo.height; in CreateSurfaceFromExternalBuf()
716 extbuf.offsets[2] = extbuf.offsets[1]; in CreateSurfaceFromExternalBuf()
717 extbuf.offsets[3] = 0; in CreateSurfaceFromExternalBuf()
718 extbuf.buffers = &data; in CreateSurfaceFromExternalBuf()
719 extbuf.flags = 0; in CreateSurfaceFromExternalBuf()
720 extbuf.private_data = NULL; in CreateSurfaceFromExternalBuf()
734 extbuf.flags |= VA_SURFACE_EXTBUF_DESC_UNCACHED; in CreateSurfaceFromExternalBuf()
757 attribs[1].value.value.p = (void *)&extbuf; in CreateSurfaceFromExternalBuf()
773 VASurfaceAttribExternalBuffers extbuf; in CreateNewVASurface() local
776 extbuf.pixel_format = VA_FOURCC_NV12; in CreateNewVASurface()
777 extbuf.width = width; in CreateNewVASurface()
778 extbuf.height = height; in CreateNewVASurface()
779 extbuf.data_size = width * height * 3 / 2; in CreateNewVASurface()
780 extbuf.num_buffers = 1; in CreateNewVASurface()
781 extbuf.num_planes = 3; in CreateNewVASurface()
782 extbuf.pitches[0] = width; in CreateNewVASurface()
783 extbuf.pitches[1] = width; in CreateNewVASurface()
784 extbuf.pitches[2] = width; in CreateNewVASurface()
785 extbuf.pitches[3] = 0; in CreateNewVASurface()
786 extbuf.offsets[0] = 0; in CreateNewVASurface()
787 extbuf.offsets[1] = width * height; in CreateNewVASurface()
788 extbuf.offsets[2] = extbuf.offsets[1]; in CreateNewVASurface()
789 extbuf.offsets[3] = 0; in CreateNewVASurface()
790 extbuf.buffers = &data; in CreateNewVASurface()
791 extbuf.flags = 0; in CreateNewVASurface()
792 extbuf.private_data = NULL; in CreateNewVASurface()
802 attribs[1].value.value.p = (void *)&extbuf; in CreateNewVASurface()