Mercurial > mplayer.hg
diff drivers/mga_vid_test.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | 03f571138664 |
children | 0ad2da052b2e |
line wrap: on
line diff
--- a/drivers/mga_vid_test.c Tue May 12 19:25:35 2009 +0000 +++ b/drivers/mga_vid_test.c Wed May 13 02:58:57 2009 +0000 @@ -50,16 +50,16 @@ dest = mga_vid_base; bespitch = (config.src_width + 31) & ~31; - for(h=0; h < config.src_height; h++) + for(h=0; h < config.src_height; h++) { memcpy(dest, y, config.src_width); y += config.src_width; dest += bespitch; } - for(h=0; h < config.src_height/2; h++) + for(h=0; h < config.src_height/2; h++) { - for(w=0; w < config.src_width/2; w++) + for(w=0; w < config.src_width/2; w++) { *dest++ = *cb++; *dest++ = *cr++; @@ -77,21 +77,21 @@ dest = mga_vid_base; bespitch = (config.src_width + 31) & ~31; - for(h=0; h < config.src_height; h++) + for(h=0; h < config.src_height; h++) { memcpy(dest, y, config.src_width); y += config.src_width; dest += bespitch; } - for(h=0; h < config.src_height/2; h++) + for(h=0; h < config.src_height/2; h++) { memcpy(dest, cb, config.src_width/2); cb += config.src_width/2; dest += bespitch/2; } - for(h=0; h < config.src_height/2; h++) + for(h=0; h < config.src_height/2; h++) { memcpy(dest, cr, config.src_width/2); cr += config.src_width/2; @@ -120,15 +120,15 @@ } i = 0; - for (y=0; y<config.src_height/2; y++) - for (x=0; x<config.src_width/2; x++) + for (y=0; y<config.src_height/2; y++) + for (x=0; x<config.src_width/2; x++) { cr_image[i++] = x - 128; } i = 0; - for (y=0; y<config.src_height/2; y++) - for (x=0; x<config.src_width/2; x++) + for (y=0; y<config.src_height/2; y++) + for (x=0; x<config.src_width/2; x++) { cb_image[i++] = y - 128; } @@ -147,22 +147,22 @@ } i = 0; - for (y=0; y<config.src_height/2; y++) - for (x=0; x<config.src_width/2; x++) + for (y=0; y<config.src_height/2; y++) + for (x=0; x<config.src_width/2; x++) { cr_image[i++] = x - 128; } i = 0; - for (y=0; y<config.src_height/2; y++) - for (x=0; x<config.src_width/2; x++) + for (y=0; y<config.src_height/2; y++) + for (x=0; x<config.src_width/2; x++) { cb_image[i++] = y - 128; } } -int +int main(void) { int f; @@ -192,7 +192,7 @@ perror("Error in config ioctl"); } - if (config.card_type == MGA_G200) + if (config.card_type == MGA_G200) { printf("Testing MGA G200 Backend Scaler with %d MB of RAM\n", config.ram_size); is_g400 = 0; @@ -202,7 +202,7 @@ printf("Testing MGA G400 Backend Scaler with %d MB of RAM\n", config.ram_size); is_g400 = 1; } - + ioctl(f,MGA_VID_ON,0); mga_vid_base = (uint8_t*)mmap(0,256 * 4096,PROT_WRITE,MAP_SHARED,f,0); printf("mga_vid_base = %8p\n",mga_vid_base);