diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2005-12-06 19:55:58 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2005-12-06 19:55:58 +0000 |
commit | bdb814f6ef56edca67e1241eb16df22fdd8ab17c (patch) | |
tree | 7b43c9dfbf67b852503d263a322064f0101bf591 /gst/colorspace/yuv2rgb.c | |
parent | 04ad447fcfa1502907339a6a68e975bb6d35536a (diff) | |
download | gst-plugins-bad-bdb814f6ef56edca67e1241eb16df22fdd8ab17c.tar.gz gst-plugins-bad-bdb814f6ef56edca67e1241eb16df22fdd8ab17c.tar.bz2 gst-plugins-bad-bdb814f6ef56edca67e1241eb16df22fdd8ab17c.zip |
expand tabs
Original commit message from CVS:
expand tabs
Diffstat (limited to 'gst/colorspace/yuv2rgb.c')
-rw-r--r-- | gst/colorspace/yuv2rgb.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gst/colorspace/yuv2rgb.c b/gst/colorspace/yuv2rgb.c index 290f07bc..d9232513 100644 --- a/gst/colorspace/yuv2rgb.c +++ b/gst/colorspace/yuv2rgb.c @@ -46,17 +46,17 @@ static int U_b_tab[256]; #define GAMMA_CORRECTION(x) ((int)(pow((x) / 255.0, 1.0 / gammaCorrect) * 255.0)) #define CHROMA_CORRECTION256(x) ((x) >= 128 \ - ? 128 + Min(127, (int)(((x) - 128.0) * chromaCorrect)) \ - : 128 - Min(128, (int)((128.0 - (x)) * chromaCorrect))) + ? 128 + Min(127, (int)(((x) - 128.0) * chromaCorrect)) \ + : 128 - Min(128, (int)((128.0 - (x)) * chromaCorrect))) #define CHROMA_CORRECTION128(x) ((x) >= 0 \ - ? Min(127, (int)(((x) * chromaCorrect))) \ - : Max(-128, (int)(((x) * chromaCorrect)))) + ? Min(127, (int)(((x) * chromaCorrect))) \ + : Max(-128, (int)(((x) * chromaCorrect)))) #define CHROMA_CORRECTION256D(x) ((x) >= 128 \ - ? 128.0 + Min(127.0, (((x) - 128.0) * chromaCorrect)) \ - : 128.0 - Min(128.0, (((128.0 - (x)) * chromaCorrect)))) + ? 128.0 + Min(127.0, (((x) - 128.0) * chromaCorrect)) \ + : 128.0 - Min(128.0, (((128.0 - (x)) * chromaCorrect)))) #define CHROMA_CORRECTION128D(x) ((x) >= 0 \ - ? Min(127.0, ((x) * chromaCorrect)) \ - : Max(-128.0, ((x) * chromaCorrect))) + ? Min(127.0, ((x) * chromaCorrect)) \ + : Max(-128.0, ((x) * chromaCorrect))) void gst_colorspace_I420_to_rgb16 (GstColorspace * space, unsigned char *src, @@ -345,14 +345,14 @@ free_bits_at_bottom (a) * * InitColor16Dither -- * - * To get rid of the multiply and other conversions in color - * dither, we use a lookup table. + * To get rid of the multiply and other conversions in color + * dither, we use a lookup table. * * Results: - * None. + * None. * * Side effects: - * The lookup tables are initialized. + * The lookup tables are initialized. * *-------------------------------------------------------------- */ |