diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libvo/spuenc.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) |
Remove trailing whitespace from most files
Diffstat (limited to 'libvo/spuenc.c')
-rw-r--r-- | libvo/spuenc.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libvo/spuenc.c b/libvo/spuenc.c index f03c0d9be9..bc35a06d18 100644 --- a/libvo/spuenc.c +++ b/libvo/spuenc.c @@ -4,7 +4,7 @@ * Copyright (C) 2000 Alejandro J. Cura <alecu@protocultura.net> * * (modified a bit to work with the dxr3 driver...4/2/2002 cg) - * + * * Based on the hard work of: * * Samuel Hocevar <sam@via.ecp.fr> and Michel Lespinasse <walken@via.ecp.fr> @@ -48,13 +48,13 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) { /* the format of this is well described by a page: * http://members.aol.com/mpucoder/DVD/spu.html - * - * note I changed the layout of commands to turn off the subpic as the - * first command, and then turn on the new subpic...this is so we can - * leave the subpic on for an arbitrary ammount of time as controlled by + * + * note I changed the layout of commands to turn off the subpic as the + * first command, and then turn on the new subpic...this is so we can + * leave the subpic on for an arbitrary ammount of time as controlled by * mplayer (ie when we turn on the subpic we don't know how long it should * stay on when using mplayer). - * with this layout we turn off the last subpic as we are turning on the + * with this layout we turn off the last subpic as we are turning on the * new one. * The original hd it turn on the subpic, and delay the turn off command using * the durration/delay feature. @@ -65,7 +65,7 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) { // ed->data[i++]= 0x00; // ed->data[i++]= 0x00; //durration before turn off command occurs //in 90000/1024 units - + /* x1 */ // x1=i+4; // ed->data[i++]= x1 >> 8;//location of next command block @@ -73,8 +73,8 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) { /* finish it */ // ed->data[i++]= 0x02;//turn off command // ed->data[i++]= 0xff;//end of command block - x1= i; //marker for last command block address - + x1= i; //marker for last command block address + /* display duration... */ ed->data[i++]= 0x00; ed->data[i++]= 0x00; //durration before turn on command occurs @@ -92,9 +92,9 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) { ed->data[i++]= 0x08; ed->data[i++]= 0x7f; /* - * The palette is a coded index (one of 16) 0 is black, 0xf is white + * The palette is a coded index (one of 16) 0 is black, 0xf is white * (unless you screw with the default palette) - * for what I am doing I only use white. + * for what I am doing I only use white. * 7 is lt grey, and 8 is dk grey... * */ /* 0x04: transparency info (reversed) */ @@ -130,11 +130,11 @@ encode_do_control(int x,int y, encodedata* ed, pixbuf* pb) { /* x0 */ ed->data[2]= (controlstart) >> 8; ed->data[3]= (controlstart) & 0xff; - + /* packet size */ ed->data[0]= i >> 8; ed->data[1]= i & 0xff; - + ed->count= i; } @@ -179,7 +179,7 @@ encode_do_row( encodedata* ed, pixbuf* pb, int row ) { unsigned char* pix= pb->pixels + row * pb->x; int color= *pix; int n= 0; /* the number of pixels of this color */ - + while( i++ < pb->x ) { /* FIXME: watch this space for EOL */ if( *pix != color || n == 255 ) { |