📄 ijpegenc.c
字号:
/*
* ======== ijpegenc.c ========
* This file defines the default parameter structure for ijpegenc.h
*/
#include <std.h>
#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 480
#define H 720
#define V 480
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. */
/*==================================================================*/
/* */
/*------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -