Lines Matching refs:ptr

161     T* dest = static_cast<T*>(surface->ptr) + (x + y * surface->stride);  in putpixel()
174 const T* src = static_cast<const T*>(surface->ptr) + (x + y * surface->stride); in copyrect()
175 T* dest = static_cast<T*>(surface->ptr) + (x2 + y2 * surface->stride); in copyrect()
209 T* dest = static_cast<T*>(surface->ptr) + (x + y * surface->stride); in fillrect()
342 const uint16_t* src = static_cast<const uint16_t*>(source->ptr); in gfx_surface_blend()
343 uint16_t* dest = static_cast<uint16_t*>(target->ptr) + (destx + desty * target->stride); in gfx_surface_blend()
361 const uint32_t* src = static_cast<const uint32_t*>(source->ptr); in gfx_surface_blend()
362 uint32_t* dest = static_cast<uint32_t*>(target->ptr) + (destx + desty * target->stride); in gfx_surface_blend()
381 const uint32_t* src = static_cast<const uint32_t*>(source->ptr); in gfx_surface_blend()
382 uint32_t* dest = static_cast<uint32_t*>(target->ptr) + (destx + desty * target->stride); in gfx_surface_blend()
400 const uint8_t* src = static_cast<const uint8_t*>(source->ptr); in gfx_surface_blend()
401 uint8_t* dest = static_cast<uint8_t*>(target->ptr) + (destx + desty * target->stride); in gfx_surface_blend()
425 T* dest = static_cast<T*>(surface->ptr) + (x + y * surface->stride); in putchar()
462 arch_clean_cache_range((addr_t)surface->ptr, surface->len); in gfx_flush()
485 arch_clean_cache_range((addr_t)surface->ptr + start * runlen, (end - start + 1) * runlen); in gfx_flush_rows()
495 gfx_surface* gfx_create_surface(void* ptr, uint width, uint height, uint stride, gfx_format format,… in gfx_create_surface() argument
499 if (gfx_init_surface(surface, ptr, width, height, stride, format, flags)) { in gfx_create_surface()
506 int gfx_init_surface(gfx_surface* surface, void* ptr, uint width, uint height, uint stride, gfx_for… in gfx_init_surface() argument
571 if (ptr == NULL) { in gfx_init_surface()
573 ptr = malloc(surface->len); in gfx_init_surface()
574 if (ptr == NULL) { in gfx_init_surface()
577 DEBUG_ASSERT(ptr); in gfx_init_surface()
580 surface->ptr = ptr; in gfx_init_surface()
629 free(surface->ptr); in gfx_surface_destroy()