Lines Matching defs:obj_surface

141     object_surface_p obj_surface;
164 obj_surface = SURFACE(surfaceID);
165 CHECK_ALLOCATION(obj_surface);
167 MEMSET_OBJECT(obj_surface, struct object_surface_s);
179 obj_surface->surface_id = surfaceID;
181 obj_surface->context_id = -1;
182 obj_surface->width = width;
183 obj_surface->height = height;
184 obj_surface->subpictures = NULL;
185 obj_surface->subpic_count = 0;
186 obj_surface->derived_imgcnt = 0;
187 obj_surface->display_timestamp = 0;
191 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
192 obj_surface->surface_id = VA_INVALID_SURFACE;
231 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
232 obj_surface->surface_id = VA_INVALID_SURFACE;
242 obj_surface->psb_surface = psb_surface;
246 object_surface_p obj_surface = SURFACE(*surface);
247 psb__destroy_surface(driver_data, obj_surface);
331 object_surface_p obj_surface;
335 obj_surface = SURFACE(surfaceID);
336 if (NULL == obj_surface) {
341 MEMSET_OBJECT(obj_surface, struct object_surface_s);
343 obj_surface->surface_id = surfaceID;
345 obj_surface->context_id = -1;
346 obj_surface->width = width;
347 obj_surface->height = height;
348 obj_surface->width_r = width;
349 obj_surface->height_r = height;
350 obj_surface->height_origin = height_origin;
351 obj_surface->is_ref_surface = 0;
355 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
356 obj_surface->surface_id = VA_INVALID_SURFACE;
379 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
380 obj_surface->surface_id = VA_INVALID_SURFACE;
393 obj_surface->psb_surface = psb_surface;
400 object_surface_p obj_surface = SURFACE(surface_list[i]);
401 psb__destroy_surface(driver_data, obj_surface);
473 object_surface_p obj_surface;
477 obj_surface = SURFACE(surfaceID);
478 CHECK_ALLOCATION(obj_surface);
480 MEMSET_OBJECT(obj_surface, struct object_surface_s);
482 obj_surface->surface_id = surfaceID;
484 obj_surface->context_id = -1;
485 obj_surface->width = width;
486 obj_surface->height = height;
487 obj_surface->width_r = width;
488 obj_surface->height_r = height;
489 obj_surface->height_origin = height;
490 obj_surface->is_ref_surface = 0;
494 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
495 obj_surface->surface_id = VA_INVALID_SURFACE;
517 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
518 obj_surface->surface_id = VA_INVALID_SURFACE;
531 obj_surface->psb_surface = psb_surface;
535 object_surface_p obj_surface = SURFACE(surfaceID);
536 psb__destroy_surface(driver_data, obj_surface);
559 object_surface_p obj_surface;
576 obj_surface = SURFACE(surfaceID);
577 if (NULL == obj_surface) {
582 MEMSET_OBJECT(obj_surface, struct object_surface_s);
584 obj_surface->surface_id = surfaceID;
586 obj_surface->context_id = -1;
587 obj_surface->width = attribute_tpi->width;
588 obj_surface->height = attribute_tpi->height;
589 obj_surface->width_r = attribute_tpi->width;
590 obj_surface->height_r = attribute_tpi->height;
591 obj_surface->is_ref_surface = 0;
595 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
596 obj_surface->surface_id = VA_INVALID_SURFACE;
610 obj_surface->psb_surface = psb_surface;
614 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
615 obj_surface->surface_id = VA_INVALID_SURFACE;
623 obj_surface->psb_surface = psb_surface;
627 object_surface_p obj_surface = SURFACE(surfaceID);
628 psb__destroy_surface(driver_data, obj_surface);
651 object_surface_p obj_surface;
698 obj_surface = SURFACE(surfaceID);
699 if (NULL == obj_surface) {
705 MEMSET_OBJECT(obj_surface, struct object_surface_s);
707 obj_surface->surface_id = surfaceID;
709 obj_surface->context_id = -1;
710 obj_surface->width = attribute_tpi->width;
711 obj_surface->height = attribute_tpi->height;
712 obj_surface->width_r = attribute_tpi->width;
713 obj_surface->height_r = attribute_tpi->height;
714 obj_surface->is_ref_surface = 0;
718 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
719 obj_surface->surface_id = VA_INVALID_SURFACE;
728 obj_surface->psb_surface = psb_surface;
732 object_heap_free(&driver_data->surface_heap, (object_base_p) obj_surface);
733 obj_surface->surface_id = VA_INVALID_SURFACE;
742 obj_surface->psb_surface = psb_surface;
746 object_surface_p obj_surface = SURFACE(surfaceID);
747 psb__destroy_surface(driver_data, obj_surface);