Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

jpeg.c File Reference

Detailed Description

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.

Definition in file jpeg.c.

#include "config.h"
#include "jpeg.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gphoto2/gphoto2-file.h>

Go to the source code of this file.


#define CHECK_RESULT(result)   {int r = (result); if (r < 0) return (r);}
#define countof(array)   (sizeof(array) / sizeof((array)[0]))
#define nullpointerabort(pointer, name, val)   if (pointer==NULL) { printf(name " does not exist\n"); return val; }
#define nullpointerabortvoid(pointer, name)   if (pointer==NULL) { printf(name " does not exist\n"); return; }


void gpi_jpeg_add_chunk (jpeg *myjpeg, chunk *source)
void gpi_jpeg_add_marker (jpeg *myjpeg, chunk *picture, int start, int end)
void gpi_jpeg_chunk_destroy (chunk *mychunk)
chunk * gpi_jpeg_chunk_new (int length)
chunk * gpi_jpeg_chunk_new_filled (int length, char *data)
void gpi_jpeg_chunk_print (chunk *mychunk)
void gpi_jpeg_destroy (jpeg *myjpeg)
char gpi_jpeg_findactivemarker (char *id, int *location, chunk *picture)
char gpi_jpeg_findff (int *location, chunk *picture)
jpeg * gpi_jpeg_header (int width, int height, char vh1, char vh2, char vh3, char q1, char q2, char q3, jpeg_quantization_table *quant1, jpeg_quantization_table *quant2, char huffset1, char huffset2, char huffset3, chunk *huff1, chunk *huff2, chunk *huff3, chunk *huff4)
chunk * gpi_jpeg_make_quantization (jpeg_quantization_table *table, char number)
chunk * gpi_jpeg_make_SOFC (int width, int height, char vh1, char vh2, char vh3, char q1, char q2, char q3)
chunk * gpi_jpeg_make_start ()
chunk * gpi_jpeg_makeSsSeAhAl (int huffset1, int huffset2, int huffset3)
char * gpi_jpeg_markername (int c)
jpeg * gpi_jpeg_new ()
void gpi_jpeg_parse (jpeg *myjpeg, chunk *picture)
void gpi_jpeg_print (jpeg *myjpeg)
void gpi_jpeg_print_quantization_table (jpeg_quantization_table *table)
jpeg_quantization_table * gpi_jpeg_quantization2table (chunk *qmarker)
char gpi_jpeg_write (CameraFile *file, const char *filename, jpeg *myjpeg)


const char * JPEG_MARKERNAMES []
const jpegmarker JPEG_MARKERS []

Generated by  Doxygen 1.6.0   Back to index