diff options
author | wm4 <wm4@nowhere> | 2014-04-13 18:00:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-13 18:03:01 +0200 |
commit | 78128bddda4bcea1f256fc13cc33fa2652ed277c (patch) | |
tree | 35bf6596cb8e2d7927618845833c3ee36534f890 /video/filter/vf_rotate.c | |
parent | 44f382cf98564c0fe08bdc78579c284362cd6f3c (diff) | |
download | mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.bz2 mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.xz |
Kill all tabs
I hate tabs.
This replaces all tabs in all source files with spaces. The only
exception is old-makefile. The replacement was made by running the
GNU coreutils "expand" command on every file. Since the replacement was
automatic, it's possible that some formatting was destroyed (but perhaps
only if it was assuming that the end of a tab does not correspond to
aligning the end to multiples of 8 spaces).
Diffstat (limited to 'video/filter/vf_rotate.c')
-rw-r--r-- | video/filter/vf_rotate.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/video/filter/vf_rotate.c b/video/filter/vf_rotate.c index b767d37c4b..f2d06830bd 100644 --- a/video/filter/vf_rotate.c +++ b/video/filter/vf_rotate.c @@ -36,33 +36,33 @@ struct vf_priv_s { static void rotate(unsigned char* dst,unsigned char* src,int dststride,int srcstride,int w,int h,int bpp,int dir){ int y; if(dir&1){ - src+=srcstride*(w-1); - srcstride*=-1; + src+=srcstride*(w-1); + srcstride*=-1; } if(dir&2){ - dst+=dststride*(h-1); - dststride*=-1; + dst+=dststride*(h-1); + dststride*=-1; } for(y=0;y<h;y++){ - int x; - switch(bpp){ - case 1: - for(x=0;x<w;x++) dst[x]=src[y+x*srcstride]; - break; - case 2: - for(x=0;x<w;x++) *((short*)(dst+x*2))=*((short*)(src+y*2+x*srcstride)); - break; - case 4: - for(x=0;x<w;x++) *((int*)(dst+x*4))=*((int*)(src+y*4+x*srcstride)); + int x; + switch(bpp){ + case 1: + for(x=0;x<w;x++) dst[x]=src[y+x*srcstride]; + break; + case 2: + for(x=0;x<w;x++) *((short*)(dst+x*2))=*((short*)(src+y*2+x*srcstride)); + break; + case 4: + for(x=0;x<w;x++) *((int*)(dst+x*4))=*((int*)(src+y*4+x*srcstride)); default: for(x=0;x<w;x++){ for (int b=0;b<bpp;b++) dst[x*bpp+b]=src[b+y*bpp+x*srcstride]; } break; - } - dst+=dststride; + } + dst+=dststride; } } |