• Home
  • Raw
  • Download

Lines Matching refs:surf

200    vlVaSurface *surf;  in vlVaDeriveImage()  local
239 surf = handle_table_get(drv->htab, surface); in vlVaDeriveImage()
241 if (!surf || !surf->buffer) in vlVaDeriveImage()
244 if (surf->buffer->interlaced) { in vlVaDeriveImage()
256 surfaces = surf->buffer->get_surfaces(surf->buffer); in vlVaDeriveImage()
264 img->format.fourcc = PipeFormatToVaFourcc(surf->buffer->buffer_format); in vlVaDeriveImage()
267 img->width = surf->templat.width; in vlVaDeriveImage()
268 img->height = surf->templat.height; in vlVaDeriveImage()
272 w = align(surf->buffer->width, 2); in vlVaDeriveImage()
273 h = align(surf->buffer->height, 2); in vlVaDeriveImage()
313 if (surf->buffer->interlaced) { in vlVaDeriveImage()
317 new_template = surf->templat; in vlVaDeriveImage()
329 src_rect.x1 = dst_rect.x1 = surf->templat.width; in vlVaDeriveImage()
331 src_rect.y1 = dst_rect.y1 = surf->templat.height; in vlVaDeriveImage()
334 surf->buffer, new_buffer, in vlVaDeriveImage()
339 surfaces = surf->buffer->get_surfaces(new_buffer); in vlVaDeriveImage()
432 vlVaSurface *surf; in vlVaGetImage() local
447 surf = handle_table_get(drv->htab, surface); in vlVaGetImage()
448 if (!surf || !surf->buffer) { in vlVaGetImage()
464 if (x + width > surf->templat.width || in vlVaGetImage()
465 y + height > surf->templat.height) { in vlVaGetImage()
489 if (format != surf->buffer->buffer_format) { in vlVaGetImage()
492 surf->buffer->buffer_format == PIPE_FORMAT_NV12) || in vlVaGetImage()
494 surf->buffer->buffer_format == PIPE_FORMAT_NV12)) in vlVaGetImage()
497 (surf->buffer->buffer_format == PIPE_FORMAT_P010 || in vlVaGetImage()
498 surf->buffer->buffer_format == PIPE_FORMAT_P016)) { in vlVaGetImage()
508 views = surf->buffer->get_sampler_view_planes(surf->buffer); in vlVaGetImage()
536 pipe_format_to_chroma_format(surf->templat.buffer_format), in vlVaGetImage()
537 surf->templat.interlaced); in vlVaGetImage()
539 pipe_format_to_chroma_format(surf->templat.buffer_format), in vlVaGetImage()
540 surf->templat.interlaced); in vlVaGetImage()
576 vlVaSurface *surf; in vlVaPutImage() local
590 surf = handle_table_get(drv->htab, surface); in vlVaPutImage()
591 if (!surf || !surf->buffer) { in vlVaPutImage()
621 if ((format != surf->buffer->buffer_format) && in vlVaPutImage()
622 ((format != PIPE_FORMAT_YV12) || (surf->buffer->buffer_format != PIPE_FORMAT_NV12)) && in vlVaPutImage()
623 ((format != PIPE_FORMAT_IYUV) || (surf->buffer->buffer_format != PIPE_FORMAT_NV12))) { in vlVaPutImage()
626 surf->templat.buffer_format = format; in vlVaPutImage()
630 surf->templat.interlaced = false; in vlVaPutImage()
631 tmp_buf = drv->pipe->create_video_buffer(drv->pipe, &surf->templat); in vlVaPutImage()
638 surf->buffer->destroy(surf->buffer); in vlVaPutImage()
639 surf->buffer = tmp_buf; in vlVaPutImage()
642 views = surf->buffer->get_sampler_view_planes(surf->buffer); in vlVaPutImage()
670 vlVaVideoSurfaceSize(surf, i, &width, &height); in vlVaPutImage()
675 && (surf->buffer->buffer_format == PIPE_FORMAT_NV12) in vlVaPutImage()