?? jfif.h
字號:
#ifndef __JFIF_H
#define __JFIF_H
//
// Title: JPEG Definitions and Utility Functions
//
// Author: John M. Miano miano@colosseumbuilders.com
//
//
// JFIF Definitions
//
// Author: John M. Miano miano@colosseumbuilders.com
//
// These definitions match version 1.02 of the
// "JPEG File Interchange Format Specification" by Eric Hamilton
//
#include "jpeg.h"
struct JfifHeader
{
UBYTE2 length ;
UBYTE1 identifier [5] ;
UBYTE1 version [2] ;
UBYTE1 units ;
UBYTE2 xdensity ;
UBYTE2 ydensity ;
UBYTE1 xthumbnail ;
UBYTE1 ythumbnail ;
// 3 * xthumbnail * ythumbnail bytes of thumbnail data follow.
} ;
struct JfifExtension
{
UBYTE2 length ;
UBYTE1 identifier [5] ;
UBYTE1 extension_code ;
enum { JpegThumbnail = 0x10,
OneByteThumbnail = 0x11,
ThreeByteThumbnail = 0x13, } ;
// Extension Data follows
} ;
// To implement 12-bit data the return values would have to be
// at least 12 bits wide.
// Functions for YCbCr/RGB colorspace conversion
JPEGSAMPLE YCbCrToR (int yy, int cb, int cr) ;
JPEGSAMPLE YCbCrToG (int yy, int cb, int cr) ;
JPEGSAMPLE YCbCrToB (int yy, int cb, int cr) ;
JPEGSAMPLE RGBToY (JPEGSAMPLE red, JPEGSAMPLE green, JPEGSAMPLE blue) ;
JPEGSAMPLE RGBToCb (JPEGSAMPLE red, JPEGSAMPLE green, JPEGSAMPLE blue) ;
JPEGSAMPLE RGBToCr (JPEGSAMPLE red, JPEGSAMPLE green, JPEGSAMPLE blue) ;
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -