#include "common.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include "tools.h"Go to the source code of this file.
Defines | |
| #define | M_SOF0 0xC0 |
| #define | M_SOF1 0xC1 |
| #define | M_SOF2 0xC2 |
| #define | M_SOF3 0xC3 |
| #define | M_SOF5 0xC5 |
| #define | M_SOF6 0xC6 |
| #define | M_SOF7 0xC7 |
| #define | M_SOF9 0xC9 |
| #define | M_SOF10 0xCA |
| #define | M_SOF11 0xCB |
| #define | M_SOF13 0xCD |
| #define | M_SOF14 0xCE |
| #define | M_SOF15 0xCF |
| #define | M_SOI 0xD8 |
| #define | M_EOI 0xD9 |
| #define | M_SOS 0xDA |
| #define | M_JFIF 0xE0 |
| #define | M_EXIF 0xE1 |
| #define | M_COM 0xFE |
| #define | M_DQT 0xDB |
| #define | M_DHT 0xC4 |
| #define | M_DRI 0xDD |
| #define | ITEM_BUF_SIZE 16 |
Typedefs | |
| typedef unsigned char | uchar |
Functions | |
| static int | Get16m (const void *Short) |
| static int | ioh_fgetc (Ref< IOHandler > ioh) |
| static void | get_jpeg_resolution (Ref< IOHandler > ioh, int *w, int *h) |
| String | get_jpeg_resolution (Ref< IOHandler > ioh) |
| Extracts resolution from a JPEG image. | |
Definition in file jpeg_resolution.cc.
| #define ITEM_BUF_SIZE 16 |
Definition at line 77 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_COM 0xFE |
Definition at line 69 of file jpeg_resolution.cc.
| #define M_DHT 0xC4 |
Definition at line 71 of file jpeg_resolution.cc.
| #define M_DQT 0xDB |
Definition at line 70 of file jpeg_resolution.cc.
| #define M_DRI 0xDD |
Definition at line 72 of file jpeg_resolution.cc.
| #define M_EOI 0xD9 |
Definition at line 65 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_EXIF 0xE1 |
Definition at line 68 of file jpeg_resolution.cc.
| #define M_JFIF 0xE0 |
Definition at line 67 of file jpeg_resolution.cc.
| #define M_SOF0 0xC0 |
Definition at line 51 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF1 0xC1 |
Definition at line 52 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF10 0xCA |
Definition at line 59 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF11 0xCB |
Definition at line 60 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF13 0xCD |
Definition at line 61 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF14 0xCE |
Definition at line 62 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF15 0xCF |
Definition at line 63 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF2 0xC2 |
Definition at line 53 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF3 0xC3 |
Definition at line 54 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF5 0xC5 |
Definition at line 55 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF6 0xC6 |
Definition at line 56 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF7 0xC7 |
Definition at line 57 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOF9 0xC9 |
Definition at line 58 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOI 0xD8 |
Definition at line 64 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
| #define M_SOS 0xDA |
Definition at line 66 of file jpeg_resolution.cc.
| typedef unsigned char uchar |
Definition at line 44 of file jpeg_resolution.cc.
| static int Get16m | ( | const void * | Short | ) | [static] |
Definition at line 78 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
Extracts resolution from a JPEG image.
Definition at line 174 of file jpeg_resolution.cc.
References get_jpeg_resolution().
Definition at line 92 of file jpeg_resolution.cc.
References _, _Exception, Get16m(), ioh_fgetc(), ITEM_BUF_SIZE, M_EOI, M_SOF0, M_SOF1, M_SOF10, M_SOF11, M_SOF13, M_SOF14, M_SOF15, M_SOF2, M_SOF3, M_SOF5, M_SOF6, M_SOF7, M_SOF9, and M_SOI.
Referenced by get_jpeg_resolution(), and set_jpeg_resolution_resource().
Definition at line 83 of file jpeg_resolution.cc.
Referenced by get_jpeg_resolution().
1.6.1