2008-08-30 Colin D Bennett VBE performance optimization. Added optimized rendering functions for BGR/BGRA render targets. * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Renamed from this... (grub_video_i386_vbeblit_RGBA8888_RGBA8888): ...to this. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Renamed from this... (grub_video_i386_vbeblit_RGB888_RGBA8888): ...to this. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Renamed from this... (grub_video_i386_vbeblit_RGB888_RGBX8888): ...to this. (grub_video_i386_vbeblit_index_R8G8B8A8): Renamed from this... (grub_video_i386_vbeblit_index_RGBA8888): ...to this. (grub_video_i386_vbeblit_index_R8G8B8X8): Renamed from this... (grub_video_i386_vbeblit_index_RGBX8888): ...to this. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Renamed from this... (grub_video_i386_vbeblit_RGBA8888_RGB888): ...to this. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Renamed from this... (grub_video_i386_vbeblit_RGB888_RGB888): ...to this. (grub_video_i386_vbeblit_index_R8G8B8): Renamed from this... (grub_video_i386_vbeblit_index_RGB888): ...to this. (grub_video_i386_vbeblit_BGRX8888_RGBX8888): New prototype. (grub_video_i386_vbeblit_BGRA8888_RGB888): New prototype. (grub_video_i386_vbeblit_BGR888_RGB888): New prototype. (grub_video_i386_vbeblit_BGRA8888_RGBA8888): New prototype. (grub_video_i386_vbeblit_BGR888_RGBA8888): New prototype. (grub_video_i386_vbeblit_BGR888_RGBX8888): New prototype. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Renamed from this... (grub_video_i386_vbeblit_direct32_copy): ...to this. * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Renamed from this... (grub_video_i386_vbeblit_RGBA8888_RGBA8888): ...to this. (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Renamed from this... (grub_video_i386_vbeblit_RGB888_RGBA8888): ...to this. (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Renamed from this... (grub_video_i386_vbeblit_RGB888_RGBX8888): ...to this. (grub_video_i386_vbeblit_index_R8G8B8A8): Renamed from this... (grub_video_i386_vbeblit_index_RGBA8888): ...to this. (grub_video_i386_vbeblit_index_R8G8B8X8): Renamed from this... (grub_video_i386_vbeblit_index_RGBX8888): ...to this. (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Renamed from this... (grub_video_i386_vbeblit_RGBA8888_RGB888): ...to this. (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Renamed from this... (grub_video_i386_vbeblit_RGB888_RGB888): ...to this. (grub_video_i386_vbeblit_index_R8G8B8): Renamed from this... (grub_video_i386_vbeblit_index_RGB888): ...to this. (grub_video_i386_vbeblit_BGRX8888_RGBX8888): New function. (grub_video_i386_vbeblit_BGRA8888_RGB888): New function. (grub_video_i386_vbeblit_BGR888_RGB888): New function. (grub_video_i386_vbeblit_BGRA8888_RGBA8888): New function. (grub_video_i386_vbeblit_BGR888_RGBA8888): New function. (grub_video_i386_vbeblit_BGR888_RGBX8888): New function. (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Renamed from this... (grub_video_i386_vbeblit_direct32_copy): ...to this. * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8): Renamed from this.. (grub_video_i386_vbefill_direct32): ...to this. (grub_video_i386_vbefill_R8G8B8): Renamed from this... (grub_video_i386_vbefill_direct24): ...to this. * include/grub/video.h (grub_video_blit_format): Added BGR/BGRA modes and renamed R8G8B8A->RGBA_8888. * video/bitmap.c (grub_video_bitmap_create): Use new blit format names. * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Use optimized BGR/BGRA fill routines; use new RGB/RGBA blit format names. (common_blitter): Use optimized BGR/BGRA blit routines; use new RGB/RGBA blit format names. * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Renamed from this... (grub_video_i386_vbefill_direct32): ...to this; don't re-calculate the video pointer position every row. (grub_video_i386_vbefill_R8G8B8): Renamed from this... (grub_video_i386_vbefill_direct24): ...to this; don't re-calculate the video pointer position every row. (grub_video_i386_vbefill_index): Don't re-calculate the video pointer position every row. * video/readers/jpeg.c (grub_jpeg_decode_sos): Use new blit format name. * video/readers/png.c (grub_png_decode_image_header): Likewise. * video/readers/tga.c (grub_video_reader_tga): Likewise. * video/video.c (grub_video_get_blit_format): Detect BGR/BGRA blit formats, and also detect a wider range of RGB/RGBA formats.