summaryrefslogtreecommitdiff
path: root/libgphoto2/bayer.h
diff options
context:
space:
mode:
authorLutz Mueller <lutz@users.sourceforge.net>2001-10-07 12:49:55 +0000
committerLutz Mueller <lutz@users.sourceforge.net>2001-10-07 12:49:55 +0000
commit7442042e131920591a3334c17a9f78d18e361b43 (patch)
treec435d9627ac3612f65ac8242078b0b1cb103ed79 /libgphoto2/bayer.h
parentea1264b3f0e223395e1b044bf5ae0eec623095d3 (diff)
downloadlibgphoto2-7442042e131920591a3334c17a9f78d18e361b43.tar.gz
2001-10-07 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: -lm * libgphoto2/Makefile.am * libgphoto2/bayer.[c,h] * libgphoto2/gamma.[c,h]: New * camlibs/polaroid/pdc640.c: Use above git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2419 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/bayer.h')
-rw-r--r--libgphoto2/bayer.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/libgphoto2/bayer.h b/libgphoto2/bayer.h
new file mode 100644
index 000000000..9cad6e018
--- /dev/null
+++ b/libgphoto2/bayer.h
@@ -0,0 +1,34 @@
+/* bayer.h
+ *
+ * Copyright (C) 2001 Lutz Müller <urc8@rz.uni-karlsruhe.de>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __BAYER_H__
+#define __BAYER_H__
+
+typedef enum {
+ BAYER_TILE_RGGB = 0,
+ BAYER_TILE_GRBG = 1,
+ BAYER_TILE_BGGR = 2,
+ BAYER_TILE_GBRG = 3
+} BayerTile;
+
+int gp_bayer_decode (unsigned char *input, int w, int h, unsigned char *output,
+ BayerTile tile);
+
+#endif /* __BAYER_H__ */