Lines Matching refs:source
321 void gfx_surface_blend(struct gfx_surface* target, struct gfx_surface* source, uint destx, uint des… in gfx_surface_blend() argument
322 DEBUG_ASSERT(target->format == source->format); in gfx_surface_blend()
324 LTRACEF("target %p, source %p, destx %u, desty %u\n", target, source, destx, desty); in gfx_surface_blend()
331 uint width = source->width; in gfx_surface_blend()
335 uint height = source->height; in gfx_surface_blend()
340 if (source->format == ZX_PIXEL_FORMAT_RGB_565 && target->format == ZX_PIXEL_FORMAT_RGB_565) { in gfx_surface_blend()
342 const uint16_t* src = static_cast<const uint16_t*>(source->ptr); in gfx_surface_blend()
345 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
359 …} else if (source->format == ZX_PIXEL_FORMAT_ARGB_8888 && target->format == ZX_PIXEL_FORMAT_ARGB_8… in gfx_surface_blend()
361 const uint32_t* src = static_cast<const uint32_t*>(source->ptr); in gfx_surface_blend()
364 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
379 …} else if (source->format == ZX_PIXEL_FORMAT_RGB_x888 && target->format == ZX_PIXEL_FORMAT_RGB_x88… in gfx_surface_blend()
381 const uint32_t* src = static_cast<const uint32_t*>(source->ptr); in gfx_surface_blend()
384 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
398 … } else if (source->format == ZX_PIXEL_FORMAT_MONO_8 && target->format == ZX_PIXEL_FORMAT_MONO_8) { in gfx_surface_blend()
400 const uint8_t* src = static_cast<const uint8_t*>(source->ptr); in gfx_surface_blend()
403 uint source_stride_diff = source->stride - width; in gfx_surface_blend()
418 …ce_blend: unimplemented colorspace combination (source %u target %u)\n", source->format, target->f… in gfx_surface_blend()