?? jpeg.h
字號(hào):
#ifndef _JPEG_H_
#define _JPEG_H_
/*
* First we include the configuration files that record how this
* installation of the JPEG library is set up. jconfig.h can be
* generated automatically for many systems. jmorecfg.h contains
* manual configuration options that most people need not worry about.
*/
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <assert.h>
#include "jpeglib.h"
typedef unsigned char BYTE;
typedef unsigned char * PBYTE;
typedef unsigned short WORD;
typedef unsigned short * PWORD;
#define SCALEBITS 16
#define IFIX(X) ((1L << SCALEBITS) / (X) + 1)
#define CENTERJSAMPLE 128
#define CENTERJSAMPLE2 0x00800080
/* Version ID for the JPEG library.
* Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
*/
#define JPEG_LIB_VERSION 62 // Version 6b
#define DCTSIZE 8 // The basic DCT block is 8x8 samples */
#define DCTSIZE2 64 // DCTSIZE squared; # of elements in a block
#define j_compress_ptr PJPEG_COMPRESS_PARAM
// Data destination object for compression
typedef struct
{
int cnt; // current bitcounter;
unsigned int byte_buf; // current buffer for last written BYTE;
unsigned char* ptr; // next byte to write in buffer
unsigned char* buffer; // start of buffer
int size; // buffer size
}Bitstream;
extern const int jpeg_natural_order[DCTSIZE2+16];
extern void write_file_trailer (Bitstream *bs);
extern int write_file_header (j_compress_ptr cinfo, Bitstream *bs, int width, int height);
extern void finish_pass_huff (Bitstream *bs);
extern void encode_mcu_huff (j_compress_ptr cinfo, Bitstream *bs, short MCU_data[6][64], int last_dc_val[3]);
extern void jpeg_fdct_islow(short * block);
extern void jpeg_fdct_islow_ti(short * block);
extern void StartTimer();
extern void StopTimer();
#endif // _JPEG_H_
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -