www.pudn.com > JPEGMotion.rar > IJPEGENC.C
/* * ======== ijpegenc.c ======== * This file defines the default parameter structure for ijpegenc.h */ #include#include "ijpegenc.h" /* * ======== JPEGENC_PARAMS ======== * This constant structure defines the default parameters for JPEGENC objects */ /*------------------------------------------------------------------*/ /* If one wants to grab a 320x240 window out of a 720x480 image, */ /* then: */ /* */ /* #define HC 720 */ /* #define VC 480 */ /* */ /* #define H 320 */ /* #define V 240 */ /* */ /* Remember H the horizontal number of samples needs to be a */ /* multiple of 16. */ /*------------------------------------------------------------------*/ #define HC 720 #define VC 576 // cdy #define H 720 #define V 576 // cdy IJPEGENC_Params IJPEGENC_PARAMS = { sizeof(IJPEGENC_Params), 8, /* unsigned int sample_prec; */ 3, /* unsigned int num_comps; */ 2, /* unsigned int num_qtables; */ 0, /* unsigned int interleaved; */ 0x01120112, /* unsigned int formatflag for 4:2:0; */ 100, /* unsigned int quality; */ V, (V/2), (V/2), /* unsigned int num_lines 4:2:0; */ H, (H/2), (H/2), /* unsigned int num_samples; */ HC,(HC/2),(HC/2) /*unsigned int pitch;*/ }; /*------------------------------------------------------------------*/ /* Texas Instruments Incorporated 1997-2003. */ /*==================================================================*/ /* */ /*------------------------------------------------------------------*/