diff options
author | Diego Biurrun <diego@biurrun.de> | 2005-12-17 18:14:38 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2005-12-17 18:14:38 +0000 |
commit | 115329f16062074e11ccf3b89ead6176606c9696 (patch) | |
tree | e98aa993905a702688bf821737ab9a443969fc28 /tests/videogen.c | |
parent | d76319b1ab716320f6e6a4d690b85fe4504ebd5b (diff) | |
download | ffmpeg-115329f16062074e11ccf3b89ead6176606c9696.tar.gz |
COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/videogen.c')
-rw-r--r-- | tests/videogen.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/videogen.c b/tests/videogen.c index 626dd0672c..edf196fdd6 100644 --- a/tests/videogen.c +++ b/tests/videogen.c @@ -28,7 +28,7 @@ static void rgb24_to_yuv420p(uint8_t *lum, uint8_t *cb, uint8_t *cr, r1 = r; g1 = g; b1 = b; - lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + + lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; r = p[3]; g = p[4]; @@ -36,7 +36,7 @@ static void rgb24_to_yuv420p(uint8_t *lum, uint8_t *cb, uint8_t *cr, r1 += r; g1 += g; b1 += b; - lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + + lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; p += wrap3; lum += wrap; @@ -47,7 +47,7 @@ static void rgb24_to_yuv420p(uint8_t *lum, uint8_t *cb, uint8_t *cr, r1 += r; g1 += g; b1 += b; - lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + + lum[0] = (FIX(0.29900) * r + FIX(0.58700) * g + FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; r = p[3]; g = p[4]; @@ -55,12 +55,12 @@ static void rgb24_to_yuv420p(uint8_t *lum, uint8_t *cb, uint8_t *cr, r1 += r; g1 += g; b1 += b; - lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + + lum[1] = (FIX(0.29900) * r + FIX(0.58700) * g + FIX(0.11400) * b + ONE_HALF) >> SCALEBITS; - - cb[0] = ((- FIX(0.16874) * r1 - FIX(0.33126) * g1 + + + cb[0] = ((- FIX(0.16874) * r1 - FIX(0.33126) * g1 + FIX(0.50000) * b1 + 4 * ONE_HALF - 1) >> (SCALEBITS + 2)) + 128; - cr[0] = ((FIX(0.50000) * r1 - FIX(0.41869) * g1 - + cr[0] = ((FIX(0.50000) * r1 - FIX(0.41869) * g1 - FIX(0.08131) * b1 + 4 * ONE_HALF - 1) >> (SCALEBITS + 2)) + 128; cb++; @@ -221,7 +221,7 @@ void gen_image(int num, int w, int h) put_pixel(x + NOISE_X, y + NOISE_Y, r, g, b); } } - + /* then moving objects */ for(i=0;i<NB_OBJS;i++) { VObj *p = &objs[i]; @@ -272,7 +272,7 @@ int main(int argc, char **argv) gen_image(i, w, h); pgmyuv_save(buf, w, h, rgb_tab); } - + free(rgb_tab); return 0; } |