littleutils
1.2.5
About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).
![]() ![]() |
#include <config.h>
#include <limits.h>
Go to the source code of this file.
Macros | |
#define | OPTEND EOF |
#define | PATH_MAX 256 |
#define | M_SOF 0xc0 |
#define | M_SOI 0xd8 |
#define | M_EOI 0xd9 |
#define | M_SOS 0xda |
#define | M_DQT 0xdb |
#define | NOT_OK 0 |
#define | OK 1 |
Functions | |
static void | help (FILE *where) |
static int | failure (char *reason) |
static int | get (FILE *f, unsigned char *chP) |
static int | mustbe (FILE *f, unsigned char ch) |
static int | gif (FILE *f, int *widthP, int *heightP, int *depth) |
static int | bmp (FILE *f, int *widthP, int *heightP, int *depth) |
static int | jpeg (FILE *f, int *widthP, int *heightP, double *qual, int *depth, int *typenum, char *sampling) |
static int | xbm (FILE *f, int *widthP, int *heightP) |
static int | xpm (FILE *f, int *widthP, int *heightP, int *depth) |
static int | ppm (FILE *f, int *widthP, int *heightP) |
static int | png (FILE *f, int *widthP, int *heightP, int *bpp, int *typenum) |
static int | tiff_be (FILE *f, int *widthP, int *heightP, int *depth) |
static int | tiff_le (FILE *f, int *widthP, int *heightP, int *depth) |
static int | image_size (FILE *f, int *widthP, int *heightP, double *qual, int *depth, char *type, char *sample) |
static int | print_size (char *filename, int format, int verbose) |
int | main (int argc, char **argv) |
Variables | |
char * | fmt0 |
char * | fmt1 |
char * | fmt2 = "<img src=\"%s\" alt=\"%s\" width=\"%d\" height=\"%d\">\n" |
char * | fmt0a |
char * | fmt1a |
char * | fmt2a = "<img src=\"%s\" alt=\"%s\" width=\"0\" height=\"0\">\n" |
static int | std_luminance_quant_tbl [64] |
static int | std_chrominance_quant_tbl [64] |
static int * | deftabs [2] |
static char | errstr [200] |
#define M_DQT 0xdb |
Definition at line 91 of file imagsize.c.
#define M_EOI 0xd9 |
Definition at line 89 of file imagsize.c.
#define M_SOF 0xc0 |
Definition at line 87 of file imagsize.c.
#define M_SOI 0xd8 |
Definition at line 88 of file imagsize.c.
#define M_SOS 0xda |
Definition at line 90 of file imagsize.c.
#define NOT_OK 0 |
Definition at line 95 of file imagsize.c.
#define OK 1 |
Definition at line 96 of file imagsize.c.
#define OPTEND EOF |
Definition at line 65 of file imagsize.c.
#define PATH_MAX 256 |
Definition at line 82 of file imagsize.c.
|
static |
Definition at line 243 of file imagsize.c.
References get(), NOT_OK, and OK.
Referenced by image_size().
|
static |
|
static |
|
static |
Definition at line 215 of file imagsize.c.
References failure(), get(), mustbe(), NOT_OK, and OK.
Referenced by image_size().
|
static |
Definition at line 168 of file imagsize.c.
Referenced by main().
|
static |
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 968 of file imagsize.c.
References help(), infile, OPTEND, PATH_MAX, print_size(), and verbose.
|
static |
|
static |
Definition at line 716 of file imagsize.c.
References failure(), get(), mustbe(), NOT_OK, and OK.
Referenced by image_size().
|
static |
Definition at line 507 of file imagsize.c.
Referenced by image_size().
|
static |
|
static |
Definition at line 530 of file imagsize.c.
References get(), mustbe(), NOT_OK, OK, and type.
Referenced by image_size().
|
static |
Definition at line 623 of file imagsize.c.
References get(), mustbe(), NOT_OK, OK, and type.
Referenced by image_size().
|
static |
Definition at line 446 of file imagsize.c.
Referenced by image_size().
|
static |
Definition at line 465 of file imagsize.c.
References failure(), mustbe(), NOT_OK, and OK.
Referenced by image_size().
|
static |
|
static |
Definition at line 144 of file imagsize.c.
Referenced by failure(), and print_size().
char* fmt0 |
Definition at line 98 of file imagsize.c.
Referenced by print_size().
char* fmt0a |
Definition at line 105 of file imagsize.c.
Referenced by print_size().
char* fmt1 |
Definition at line 101 of file imagsize.c.
Referenced by print_size().
char* fmt1a |
Definition at line 108 of file imagsize.c.
Referenced by print_size().
char* fmt2 = "<img src=\"%s\" alt=\"%s\" width=\"%d\" height=\"%d\">\n" |
Definition at line 104 of file imagsize.c.
Referenced by print_size().
char* fmt2a = "<img src=\"%s\" alt=\"%s\" width=\"0\" height=\"0\">\n" |
Definition at line 111 of file imagsize.c.
Referenced by print_size().
|
static |
Definition at line 128 of file imagsize.c.
|
static |
Definition at line 117 of file imagsize.c.