diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:10:32 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2014-04-11 20:10:32 +0000 |
commit | c1ddde0315005e55ef361720b8b758fa163b1731 (patch) | |
tree | ef0d7fdd0ebcc010cd1c50e697eb01ddb86f2421 /libgphoto2 | |
parent | 9e777504d448e26ace9a56f509a13a1f8fbbcf55 (diff) | |
download | libgphoto2-c1ddde0315005e55ef361720b8b758fa163b1731.tar.gz |
From: "Daniel P. Berrange" <berrange@redhat.com>
A great many functions have variables which are set to some
value, but never read thereafter. All these variables can be
removed with no functional impact.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14896 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2')
-rw-r--r-- | libgphoto2/bayer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgphoto2/bayer.c b/libgphoto2/bayer.c index 09fa497ab..8653327ff 100644 --- a/libgphoto2/bayer.c +++ b/libgphoto2/bayer.c @@ -145,26 +145,26 @@ int gp_bayer_interpolate (unsigned char *image, int w, int h, BayerTile tile) { int x, y, bayer; - int p0, p1, p2, p3; + int p0, p1, p2; int value, div ; switch (tile) { default: case BAYER_TILE_RGGB: case BAYER_TILE_RGGB_INTERLACED: - p0 = 0; p1 = 1; p2 = 2; p3 = 3; + p0 = 0; p1 = 1; p2 = 2; break; case BAYER_TILE_GRBG: case BAYER_TILE_GRBG_INTERLACED: - p0 = 1; p1 = 0; p2 = 3; p3 = 2; + p0 = 1; p1 = 0; p2 = 3; break; case BAYER_TILE_BGGR: case BAYER_TILE_BGGR_INTERLACED: - p0 = 3; p1 = 2; p2 = 1; p3 = 0; + p0 = 3; p1 = 2; p2 = 1; break; case BAYER_TILE_GBRG: case BAYER_TILE_GBRG_INTERLACED: - p0 = 2; p1 = 3; p2 = 0; p3 = 1; + p0 = 2; p1 = 3; p2 = 0; break; } |