jpeg_resolution.cc File Reference

#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.

Detailed Description

Definition in file jpeg_resolution.cc.


Define Documentation

#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 Documentation

typedef unsigned char uchar

Definition at line 44 of file jpeg_resolution.cc.


Function Documentation

static int Get16m ( const void *  Short  )  [static]

Definition at line 78 of file jpeg_resolution.cc.

Referenced by get_jpeg_resolution().

String get_jpeg_resolution ( Ref< IOHandler ioh  ) 

Extracts resolution from a JPEG image.

Definition at line 174 of file jpeg_resolution.cc.

References get_jpeg_resolution().

static void get_jpeg_resolution ( Ref< IOHandler ioh,
int *  w,
int *  h 
) [static]
static int ioh_fgetc ( Ref< IOHandler ioh  )  [static]

Definition at line 83 of file jpeg_resolution.cc.

Referenced by get_jpeg_resolution().


Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1