Lines Matching refs:format

409     DEBUG_ASSERT(target->format == source->format);  in gfx_surface_blend()
427 if (source->format == GFX_FORMAT_RGB_565 && target->format == GFX_FORMAT_RGB_565) { in gfx_surface_blend()
446 } else if (source->format == GFX_FORMAT_ARGB_8888 && target->format == GFX_FORMAT_ARGB_8888) { in gfx_surface_blend()
466 } else if (source->format == GFX_FORMAT_RGB_x888 && target->format == GFX_FORMAT_RGB_x888) { in gfx_surface_blend()
485 } else if (source->format == GFX_FORMAT_MONO && target->format == GFX_FORMAT_MONO) { in gfx_surface_blend()
505 …nd: unimplemented colorspace combination (source %d target %d)\n", source->format, target->format); in gfx_surface_blend()
545 gfx_surface *gfx_create_surface(void *ptr, uint width, uint height, uint stride, gfx_format format)… in gfx_create_surface() argument
549 DEBUG_ASSERT(format < GFX_FORMAT_MAX); in gfx_create_surface()
554 surface->format = format; in gfx_create_surface()
561 switch (format) { in gfx_create_surface()
627 gfx_format format; in gfx_create_surface_from_display() local
628 switch (fb->image.format) { in gfx_create_surface_from_display()
630 format = GFX_FORMAT_RGB_565; in gfx_create_surface_from_display()
633 format = GFX_FORMAT_RGB_332; in gfx_create_surface_from_display()
636 format = GFX_FORMAT_RGB_2220; in gfx_create_surface_from_display()
639 format = GFX_FORMAT_ARGB_8888; in gfx_create_surface_from_display()
642 format = GFX_FORMAT_RGB_x888; in gfx_create_surface_from_display()
645 format = GFX_FORMAT_MONO; in gfx_create_surface_from_display()
653 … gfx_create_surface(fb->image.pixels, fb->image.width, fb->image.height, fb->image.stride, format); in gfx_create_surface_from_display()
823 printf("\tformat %u\n", fb.image.format); in cmd_gfx()