libgphoto2 photo camera library (libgphoto2) Internals
2.5.23
|
#include <gphoto2/gphoto2-file.h>
Go to the source code of this file.
Data Structures | |
struct | chunk |
struct | jpeg |
Typedefs | |
typedef struct chunk | chunk |
typedef char | jpeg_quantization_table[64] |
typedef struct jpeg | jpeg |
Enumerations | |
enum | jpegmarker { JPEG_START =0xD8, JPEG_COMMENT =0xFE, JPEG_APPO =0xE0, JPEG_QUANTIZATION =0xDB, JPEG_HUFFMAN =0xC4, JPEG_SOFC0 =0xC0, JPEG_SSSEAHAL =0xDA, JPEG_EOI =0xD9 } |
Functions | |
chunk * | gpi_jpeg_chunk_new (int length) |
chunk * | gpi_jpeg_chunk_new_filled (int length, char *data) |
void | gpi_jpeg_chunk_destroy (chunk *mychunk) |
void | gpi_jpeg_chunk_print (chunk *mychunk) |
char | gpi_jpeg_findff (int *location, chunk *picture) |
char | gpi_jpeg_findactivemarker (char *id, int *location, chunk *picture) |
char * | gpi_jpeg_markername (unsigned int c) |
jpeg * | gpi_jpeg_new (void) |
void | gpi_jpeg_destroy (jpeg *myjpeg) |
void | gpi_jpeg_add_marker (jpeg *myjpeg, chunk *picture, int start, int end) |
void | gpi_jpeg_add_chunk (jpeg *myjpeg, chunk *source) |
void | gpi_jpeg_parse (jpeg *myjpeg, chunk *picture) |
void | gpi_jpeg_print (jpeg *myjpeg) |
chunk * | gpi_jpeg_make_start (void) |
chunk * | gpi_jpeg_make_SOFC (int width, int height, char vh1, char vh2, char vh3, char q1, char q2, char q3) |
chunk * | gpi_jpeg_makeSsSeAhAl (int huffset1, int huffset2, int huffset3) |
void | gpi_jpeg_print_quantization_table (jpeg_quantization_table *table) |
chunk * | gpi_jpeg_make_quantization (const jpeg_quantization_table *table, char number) |
jpeg_quantization_table * | gpi_jpeg_quantization2table (chunk *qmarker) |
jpeg * | gpi_jpeg_header (int width, int height, char vh1, char vh2, char vh3, char q1, char q2, char q3, const jpeg_quantization_table *quant1, const jpeg_quantization_table *quant2, char huffset1, char huffset2, char huffset3, chunk *huff1, chunk *huff2, chunk *huff3, chunk *huff4) |
char | gpi_jpeg_write (CameraFile *file, const char *name, jpeg *myjpeg) |
Definition in file jpeg.h.
enum jpegmarker |
Definition at line 178 of file jpeg.c.
References jpeg::count, jpeg::marker, and nullpointerabortvoid.
Referenced by gpi_jpeg_header().
Definition at line 163 of file jpeg.c.
References jpeg::count, chunk::data, gpi_jpeg_chunk_new(), gpi_jpeg_chunk_print(), jpeg::marker, and nullpointerabortvoid.
Referenced by gpi_jpeg_parse().
void gpi_jpeg_chunk_destroy | ( | chunk * | mychunk | ) |
Definition at line 82 of file jpeg.c.
References chunk::data, nullpointerabortvoid, and chunk::size.
Referenced by gpi_jpeg_destroy().
chunk* gpi_jpeg_chunk_new | ( | int | length | ) |
Definition at line 55 of file jpeg.c.
References chunk::data, and chunk::size.
Referenced by gpi_jpeg_add_marker(), gpi_jpeg_chunk_new_filled(), gpi_jpeg_make_quantization(), and gpi_jpeg_make_SOFC().
chunk* gpi_jpeg_chunk_new_filled | ( | int | length, |
char * | data | ||
) |
Definition at line 70 of file jpeg.c.
References chunk::data, and gpi_jpeg_chunk_new().
Referenced by gpi_jpeg_make_start(), and gpi_jpeg_makeSsSeAhAl().
void gpi_jpeg_chunk_print | ( | chunk * | mychunk | ) |
Definition at line 91 of file jpeg.c.
References chunk::data, nullpointerabortvoid, and chunk::size.
Referenced by gpi_jpeg_add_marker(), and gpi_jpeg_print().
void gpi_jpeg_destroy | ( | jpeg * | myjpeg | ) |
Definition at line 154 of file jpeg.c.
References jpeg::count, gpi_jpeg_chunk_destroy(), and jpeg::marker.
char gpi_jpeg_findactivemarker | ( | char * | id, |
int * | location, | ||
chunk * | picture | ||
) |
Definition at line 119 of file jpeg.c.
References chunk::data, gpi_jpeg_findff(), nullpointerabort, and chunk::size.
Referenced by gpi_jpeg_parse().
char gpi_jpeg_findff | ( | int * | location, |
chunk * | picture | ||
) |
Definition at line 101 of file jpeg.c.
References chunk::data, and nullpointerabort.
Referenced by gpi_jpeg_findactivemarker().
jpeg* gpi_jpeg_header | ( | int | width, |
int | height, | ||
char | vh1, | ||
char | vh2, | ||
char | vh3, | ||
char | q1, | ||
char | q2, | ||
char | q3, | ||
const jpeg_quantization_table * | quant1, | ||
const jpeg_quantization_table * | quant2, | ||
char | huffset1, | ||
char | huffset2, | ||
char | huffset3, | ||
chunk * | huff1, | ||
chunk * | huff2, | ||
chunk * | huff3, | ||
chunk * | huff4 | ||
) |
Definition at line 340 of file jpeg.c.
References gpi_jpeg_add_chunk(), gpi_jpeg_make_quantization(), gpi_jpeg_make_SOFC(), gpi_jpeg_make_start(), gpi_jpeg_makeSsSeAhAl(), and gpi_jpeg_new().
chunk* gpi_jpeg_make_quantization | ( | const jpeg_quantization_table * | table, |
char | number | ||
) |
Definition at line 294 of file jpeg.c.
References chunk::data, gpi_jpeg_chunk_new(), and number.
Referenced by gpi_jpeg_header().
chunk* gpi_jpeg_make_SOFC | ( | int | width, |
int | height, | ||
char | vh1, | ||
char | vh2, | ||
char | vh3, | ||
char | q1, | ||
char | q2, | ||
char | q3 | ||
) |
Definition at line 241 of file jpeg.c.
References chunk::data, and gpi_jpeg_chunk_new().
Referenced by gpi_jpeg_header().
chunk* gpi_jpeg_make_start | ( | void | ) |
Definition at line 231 of file jpeg.c.
References gpi_jpeg_chunk_new_filled().
Referenced by gpi_jpeg_header().
chunk* gpi_jpeg_makeSsSeAhAl | ( | int | huffset1, |
int | huffset2, | ||
int | huffset3 | ||
) |
Definition at line 265 of file jpeg.c.
References chunk::data, and gpi_jpeg_chunk_new_filled().
Referenced by gpi_jpeg_header().
char* gpi_jpeg_markername | ( | unsigned int | c | ) |
Definition at line 131 of file jpeg.c.
References countof, JPEG_MARKERNAMES, and JPEG_MARKERS.
Referenced by gpi_jpeg_print().
jpeg* gpi_jpeg_new | ( | void | ) |
Definition at line 186 of file jpeg.c.
References chunk::data, gpi_jpeg_add_marker(), gpi_jpeg_findactivemarker(), nullpointerabortvoid, and chunk::size.
void gpi_jpeg_print | ( | jpeg * | myjpeg | ) |
Definition at line 220 of file jpeg.c.
References jpeg::count, chunk::data, gpi_jpeg_chunk_print(), gpi_jpeg_markername(), and jpeg::marker.
void gpi_jpeg_print_quantization_table | ( | jpeg_quantization_table * | table | ) |
Definition at line 278 of file jpeg.c.
References nullpointerabortvoid.
jpeg_quantization_table* gpi_jpeg_quantization2table | ( | chunk * | qmarker | ) |
Definition at line 318 of file jpeg.c.
References chunk::data.
char gpi_jpeg_write | ( | CameraFile * | file, |
const char * | name, | ||
jpeg * | myjpeg | ||
) |
Definition at line 365 of file jpeg.c.
References CHECK_RESULT, jpeg::count, chunk::data, gp_file_append(), gp_file_set_mime_type(), gp_file_set_name(), GP_MIME_JPEG, jpeg::marker, and chunk::size.