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 /spudec.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'spudec.c')
-rw-r--r-- | spudec.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -196,7 +196,7 @@ static inline void spudec_cut_image(spudec_handle_t *this) this->image_size = 0; return; } - + // printf("new h %d new start %d (sz %d st %d)---\n\n", this->height, this->start_row, this->image_size, this->stride); image = malloc(2 * this->stride * this->height); @@ -593,7 +593,7 @@ void spudec_reset(void *this) // called after seek } void spudec_heartbeat(void *this, unsigned int pts100) -{ +{ spudec_handle_t *spu = (spudec_handle_t*) this; spu->now_pts = pts100; @@ -762,7 +762,7 @@ static void sws_spu_image(unsigned char *d1, unsigned char *d2, int dw, int dh, firsttime = 0; oldvar = spu_gaussvar; } - + ctx=sws_getContext(sw, sh, PIX_FMT_GRAY8, dw, dh, PIX_FMT_GRAY8, SWS_GAUSS, &filter, NULL, NULL); sws_scale(ctx,&s1,&ss,0,sh,&d1,&ds); for (i=ss*sh-1; i>=0; i--) if (!s2[i]) s2[i] = 255; //else s2[i] = 1; @@ -779,8 +779,8 @@ void spudec_draw_scaled(void *me, unsigned int dxs, unsigned int dys, void (*dra if (spu->start_pts <= spu->now_pts && spu->now_pts < spu->end_pts) { - // check if only forced subtitles are requested - if( (spu->forced_subs_only) && !(spu->is_forced_sub) ){ + // check if only forced subtitles are requested + if( (spu->forced_subs_only) && !(spu->is_forced_sub) ){ return; } @@ -904,7 +904,7 @@ void spudec_draw_scaled(void *me, unsigned int dxs, unsigned int dys, void (*dra The original rectangular region that the scaled pixel represents is cut in 9 rectangular areas like this: - + +---+-----------------+---+ | 1 | 2 | 3 | +---+-----------------+---+ @@ -1013,7 +1013,7 @@ void spudec_draw_scaled(void *me, unsigned int dxs, unsigned int dys, void (*dra alpha += tmp; color += tmp * spu->image[base + walkx]; } - } + } } /* 6: center right part */ if (right > 0.0 && height > 0) { |