summaryrefslogtreecommitdiff
path: root/libgphoto2/jpeg.h
diff options
context:
space:
mode:
authorNathan Stenzel <nathanstenzel@users.sourceforge.net>2001-09-13 13:42:15 +0000
committerNathan Stenzel <nathanstenzel@users.sourceforge.net>2001-09-13 13:42:15 +0000
commit1bad288574bffc933fba06ac4333e2e4d2a4d52a (patch)
tree6d3f24bc305dfd7d5cce7a699b534bd890c59845 /libgphoto2/jpeg.h
parent2dc34461a6154924b87a101280d311c498497aab (diff)
downloadlibgphoto2-1bad288574bffc933fba06ac4333e2e4d2a4d52a.tar.gz
Added GPL lines.
Some format fixes. Still need to use "typdef struct" instead of "struct". git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2244 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2/jpeg.h')
-rw-r--r--libgphoto2/jpeg.h43
1 files changed, 34 insertions, 9 deletions
diff --git a/libgphoto2/jpeg.h b/libgphoto2/jpeg.h
index 609260842..e70611123 100644
--- a/libgphoto2/jpeg.h
+++ b/libgphoto2/jpeg.h
@@ -1,14 +1,37 @@
-/* This code was written by Nathan Stenzel for gphoto */
-/* GPL */
-
-enum jpegmarker {start=0xD8, APPO=0xE0, quantization=0xDB, huffman=0xC4, SsSeAhAl=0xDA, SOFC0=0xC0};
+/* jpeg.h
+ * This code was written by Nathan Stenzel for gphoto
+ *
+ * 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 __GPHOTO2_JPEG_H__
+enum jpegmarker {
+ JPEG_START=0xD8, JPEG_APPO=0xE0, JPEG_QUANTIZATION=0xDB,
+ JPEG_HUFFMAN=0xC4, JPEG_SSSEAHAL=0xDA, JPEG_SOFC0=0xC0
+};
-const markers[] = {
- start, APPO, quantization, huffman, SsSeAhAl, SOFC0
+const JPEG_MARKERS[] = {
+ JPEG_START, JPEG_APPO, JPEG_QUANTIZATION,
+ JPEG_HUFFMAN, JPEG_SSSEAHAL, JPEG_SOFC0
};
-const char *markernames[] = {
- "Start", "APPO", "Quantization table", "Huffman table", "SsSeAhAl", "SOFC0" };
+const char *JPEG_MARKERNAMES[] = {
+ "Start", "APPO", "Quantization table",
+ "Huffman table", "SsSeAhAl", "SOFC0"
+};
struct chunk{
int size;
@@ -40,4 +63,6 @@ void jpeg_parse(struct jpeg *myjpeg, struct chunk *picture);
void jpeg_print(struct jpeg *myjpeg);
-char *jpeg_markername(int c); \ No newline at end of file
+char *jpeg_markername(int c);
+
+#endif