summaryrefslogtreecommitdiff
path: root/libgphoto2/ahd_bayer.c
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2008-10-18 10:31:13 +0000
committerMarcus Meissner <marcus@jet.franken.de>2008-10-18 10:31:13 +0000
commit9dca871fba03e9d3c22bc1f7dac6c6166c9d0f9a (patch)
tree09f1c99af7b5eacac64f01761989aced9557d16b /libgphoto2/ahd_bayer.c
parent48c1597dbe1cca2c1d5aa7aab05beba2cf0a3132 (diff)
downloadlibgphoto2-9dca871fba03e9d3c22bc1f7dac6c6166c9d0f9a.tar.gz
made local functions static
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11429 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/ahd_bayer.c')
-rw-r--r--libgphoto2/ahd_bayer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgphoto2/ahd_bayer.c b/libgphoto2/ahd_bayer.c
index 4f7d2d857..3888f290c 100644
--- a/libgphoto2/ahd_bayer.c
+++ b/libgphoto2/ahd_bayer.c
@@ -59,11 +59,15 @@
#define GREEN 1
#define BLUE 2
+static
int dRGB(int i1, int i2, unsigned char *RGB);
+static
int do_rb_ctr_row(unsigned char *image_h, unsigned char *image_v, int w,
int h, int y, int *pos_code);
+static
int do_green_ctr_row(unsigned char *image, unsigned char *image_h,
unsigned char *image_v, int w, int h, int y, int *pos_code);
+static
int get_diffs_row2(unsigned char * hom_buffer_h, unsigned char *hom_buffer_v,
unsigned char * buffer_h, unsigned char *buffer_v, int w);
@@ -74,6 +78,7 @@ int get_diffs_row2(unsigned char * hom_buffer_h, unsigned char *hom_buffer_v,
* \param i2 location of another pixel
* \param RGB some RGB data.
*/
+static
int dRGB(int i1, int i2, unsigned char *RGB) {
int dR,dG,dB;
dR=RGB[i1+RED]-RGB[i2+RED];
@@ -90,6 +95,7 @@ int dRGB(int i1, int i2, unsigned char *RGB) {
* \param y row number from image which is under construction
* \param pos_code position code related to Bayer tiling in use
*/
+static
int do_rb_ctr_row(unsigned char *image_h, unsigned char *image_v, int w,
int h, int y, int *pos_code)
{
@@ -225,6 +231,7 @@ int do_rb_ctr_row(unsigned char *image_h, unsigned char *image_v, int w,
* \param pos_code position code related to Bayer tiling in use
*/
+static
int do_green_ctr_row(unsigned char *image, unsigned char *image_h,
unsigned char *image_v, int w, int h, int y, int *pos_code)
{
@@ -318,6 +325,7 @@ int do_green_ctr_row(unsigned char *image, unsigned char *image_h,
* \param w pixel width of image and buffers
*/
+static
int get_diffs_row2(unsigned char * hom_buffer_h, unsigned char *hom_buffer_v,
unsigned char * buffer_h, unsigned char *buffer_v, int w)
{