ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

wrjpgcom.c File Reference
#include "jinclude.h"
#include <ctype.h>

Go to the source code of this file.

Defines

#define JPEG_CJPEG_DJPEG   /* to get the command-line config symbols */
#define READ_BINARY   "rb"
#define WRITE_BINARY   "wb"
#define EXIT_FAILURE   1
#define EXIT_SUCCESS   0
#define MAX_COM_LENGTH   65000L /* must be <= 65533 in any case */
#define NEXTBYTE()   getc(infile)
#define PUTBYTE(x)   putc((x), outfile)
#define ERREXIT(msg)   (fprintf(stderr, "%s\n", msg), exit(EXIT_FAILURE))
#define M_SOF0   0xC0 /* Start Of Frame N */
#define M_SOF1   0xC1 /* N indicates which compression process */
#define M_SOF2   0xC2 /* Only SOF0-SOF2 are now in common use */
#define M_SOF3   0xC3
#define M_SOF5   0xC5 /* NB: codes C4 and CC are NOT SOF markers */
#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 /* Start Of Image (beginning of datastream) */
#define M_EOI   0xD9 /* End Of Image (end of datastream) */
#define M_SOS   0xDA /* Start Of Scan (begins compressed data) */
#define M_COM   0xFE /* COMment */

Functions

voidmalloc ()
static int read_1_byte (void)
static unsigned int read_2_bytes (void)
static void write_1_byte (int c)
static void write_2_bytes (unsigned int val)
static void write_marker (int marker)
static void copy_rest_of_file (void)
static int next_marker (void)
static int first_marker (void)
static void copy_variable (void)
static void skip_variable (void)
static int scan_JPEG_header (int keep_COM)
static void usage (void)
static int keymatch (char *arg, const char *keyword, int minchars)
int main (int argc, char **argv)

Variables

static FILEinfile
static FILEoutfile
static const charprogname

Generated on Sun May 27 2012 04:49:20 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.