Bitmap scale support.
PATCH 1/1 Bitmap scale support.
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
ChangeLog +17 -0
@@ -1,4 +1,21 @@ 2009-08-24 Colin D Bennett <[email protected]> + + Bitmap scaling support. + + * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod. + (bitmap_scale_mod_SOURCES): New variable. + (bitmap_scale_mod_CFLAGS): Likewise. + (bitmap_scale_mod_LDFLAGS): Likewise. + * include/grub/bitmap_scale.h: New file. + * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton. + (background_image_cmd_options): New variable. + (grub_gfxterm_background_image_cmd): Support bitmap stretching. + (cmd): Rename and change type to ... + (background_image_cmd_handle): ... this. All users updated. + (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command. + * video/bitmap_scale.c: New file. + +2009-08-24 Colin D Bennett <[email protected]> 2009-08-24 Vladimir Serbinenko <[email protected]> Double buffering support.
conf/common.rmk +6 -0
@@ -561,6 +561,12 @@ bitmap_mod_SOURCES = video/bitmap.c bitmap_mod_CFLAGS = $(COMMON_CFLAGS) bitmap_mod_LDFLAGS = $(COMMON_LDFLAGS) +# For bitmap_scale.mod +pkglib_MODULES += bitmap_scale.mod +bitmap_scale_mod_SOURCES = video/bitmap_scale.c +bitmap_scale_mod_CFLAGS = $(COMMON_CFLAGS) +bitmap_scale_mod_LDFLAGS = $(COMMON_LDFLAGS) + # For tga.mod tga_mod_SOURCES = video/readers/tga.c tga_mod_CFLAGS = $(COMMON_CFLAGS)
include/grub/bitmap_scale.h new file +48 -0
48 lines not on this page · raw message
term/gfxterm.c +47 -6
88 lines not on this page · raw message
video/bitmap_scale.c new file +308 -0
308 lines not on this page · raw message
video/bitmap_scale.c line 290
Quoted 13 lines · Vladimir 'phcoder' Serbinenko
video/bitmap_scale.c new file +12
-0+int dy; +for (dy =0 ; dy < dh; dy++) + { +int dx; +for (dx =0 ; dx < dw; dx++) + { +grub_uint8_t *dptr; +grub_uint8_t *sptr; +int sx; +int sy; +grub_uint8_t f0y = (256 - v) * f00 /256 + v * f01 /256 ; +grub_uint8_t f1y = (256 - v) * f10 /256 + v * f11 /256 ;
This kind of variable names make the code too cryptic. Please could you use more meaningful names?
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Quoted 15 lines · Robert Millan
Quoted 5 lines · Vladimir 'phcoder' Serbinenko
+ int dy;
+ for (dy = 0; dy < dh; dy++)
+ {
+ int dx;
+ for (dx = 0; dx < dw; dx++)Quoted 8 lines
+ {
+ grub_uint8_t *dptr;
+ grub_uint8_t *sptr;
+ int sx;
+ int sy;
[...]
+ grub_uint8_t f0y = (256 - v) * f00 / 256 + v * f01 / 256;
+ grub_uint8_t f1y = (256 - v) * f10 / 256 + v * f11 / 256;
Quoted 3 lines
This kind of variable names make the code too cryptic. Please could you use more meaningful names?
I will look what I can do. I have to understand this part of code a bit better first (it's Collin's work, I just rediffed it)
Quoted 13 lines
--
Robert MillanThe DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 4 lines
Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git