Lines Matching refs:surf
75 vlVaSurface *surf = handle_table_get(drv->htab, surface_list[i]); in vlVaDestroySurfaces() local
76 if (!surf) { in vlVaDestroySurfaces()
80 if (surf->buffer) in vlVaDestroySurfaces()
81 surf->buffer->destroy(surf->buffer); in vlVaDestroySurfaces()
82 util_dynarray_fini(&surf->subpics); in vlVaDestroySurfaces()
83 FREE(surf); in vlVaDestroySurfaces()
96 vlVaSurface *surf; in vlVaSyncSurface() local
106 surf = handle_table_get(drv->htab, render_target); in vlVaSyncSurface()
108 if (!surf || !surf->buffer) { in vlVaSyncSurface()
113 if (!surf->feedback) { in vlVaSyncSurface()
119 context = handle_table_get(drv->htab, surf->ctx); in vlVaSyncSurface()
128 if (context->desc.h264enc.frame_num_cnt >= surf->frame_num_cnt) in vlVaSyncSurface()
129 frame_diff = context->desc.h264enc.frame_num_cnt - surf->frame_num_cnt; in vlVaSyncSurface()
131 frame_diff = 0xFFFFFFFF - surf->frame_num_cnt + 1 + context->desc.h264enc.frame_num_cnt; in vlVaSyncSurface()
133 (surf->force_flushed == false) && in vlVaSyncSurface()
139 … context->decoder->get_feedback(context->decoder, surf->feedback, &(surf->coded_buf->coded_size)); in vlVaSyncSurface()
140 surf->feedback = NULL; in vlVaSyncSurface()
150 vlVaSurface *surf; in vlVaQuerySurfaceStatus() local
162 surf = handle_table_get(drv->htab, render_target); in vlVaQuerySurfaceStatus()
163 if (!surf || !surf->buffer) { in vlVaQuerySurfaceStatus()
168 context = handle_table_get(drv->htab, surf->ctx); in vlVaQuerySurfaceStatus()
175 if(surf->feedback == NULL) in vlVaQuerySurfaceStatus()
216 vlVaPutSubpictures(vlVaSurface *surf, vlVaDriver *drv, in vlVaPutSubpictures() argument
223 if (!(surf->subpics.data || surf->subpics.size)) in vlVaPutSubpictures()
226 for (i = 0; i < surf->subpics.size/sizeof(vlVaSubpicture *); i++) { in vlVaPutSubpictures()
234 sub = ((vlVaSubpicture **)surf->subpics.data)[i]; in vlVaPutSubpictures()
311 vlVaSurface *surf; in vlVaPutSurface() local
326 surf = handle_table_get(drv->htab, surface_id); in vlVaPutSurface()
327 if (!surf) { in vlVaPutSurface()
357 format = surf->buffer->buffer_format; in vlVaPutSurface()
365 views = surf->buffer->get_sampler_view_planes(surf->buffer); in vlVaPutSurface()
368 …vl_compositor_set_buffer_layer(&drv->cstate, &drv->compositor, 0, surf->buffer, &src_rect, NULL, V… in vlVaPutSurface()
373 status = vlVaPutSubpictures(surf, drv, surf_draw, dirty_area, &src_rect, &dst_rect); in vlVaPutSurface()
682 vlVaSurface *surf; in vlVaCreateSurfaces2() local
795 surf = CALLOC(1, sizeof(vlVaSurface)); in vlVaCreateSurfaces2()
796 if (!surf) { in vlVaCreateSurfaces2()
801 surf->templat = templat; in vlVaCreateSurfaces2()
813 vaStatus = vlVaHandleSurfaceAllocate(drv, surf, &templat); in vlVaCreateSurfaces2()
819 vaStatus = surface_from_external_memory(ctx, surf, memory_attribute, i, &templat); in vlVaCreateSurfaces2()
828 util_dynarray_init(&surf->subpics, NULL); in vlVaCreateSurfaces2()
829 surfaces[i] = handle_table_add(drv->htab, surf); in vlVaCreateSurfaces2()
840 surf->buffer->destroy(surf->buffer); in vlVaCreateSurfaces2()
843 FREE(surf); in vlVaCreateSurfaces2()
985 vlVaSurface *surf; in vlVaExportSurfaceHandle() local
1003 surf = handle_table_get(drv->htab, surface_id); in vlVaExportSurfaceHandle()
1004 if (!surf || !surf->buffer) { in vlVaExportSurfaceHandle()
1009 if (surf->buffer->interlaced) { in vlVaExportSurfaceHandle()
1010 struct pipe_video_buffer *interlaced = surf->buffer; in vlVaExportSurfaceHandle()
1013 surf->templat.interlaced = false; in vlVaExportSurfaceHandle()
1015 ret = vlVaHandleSurfaceAllocate(drv, surf, &surf->templat); in vlVaExportSurfaceHandle()
1023 src_rect.x1 = dst_rect.x1 = surf->templat.width; in vlVaExportSurfaceHandle()
1024 src_rect.y1 = dst_rect.y1 = surf->templat.height; in vlVaExportSurfaceHandle()
1027 interlaced, surf->buffer, in vlVaExportSurfaceHandle()
1034 surfaces = surf->buffer->get_surfaces(surf->buffer); in vlVaExportSurfaceHandle()
1040 desc->fourcc = PipeFormatToVaFourcc(surf->buffer->buffer_format); in vlVaExportSurfaceHandle()
1041 desc->width = surf->buffer->width; in vlVaExportSurfaceHandle()
1042 desc->height = surf->buffer->height; in vlVaExportSurfaceHandle()