ijpegenc.c
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:2k
源码类别:

DSP编程

开发平台:

C/C++

  1. /*
  2.  *  ======== ijpegenc.c ========
  3.  *  This file defines the default parameter structure for ijpegenc.h
  4.  */
  5. #include <std.h>
  6. #include "ijpegenc.h"
  7. /*
  8.  *  ======== JPEGENC_PARAMS ========
  9.  *  This constant structure defines the default parameters for JPEGENC objects
  10.  */
  11. /*------------------------------------------------------------------*/
  12. /* If one wants to grab a 320x240 window out of a 720x480 image,    */
  13. /* then:                                                            */
  14. /*                                                                  */
  15. /* #define  HC 720                                                  */
  16. /* #define  VC 480                                                  */
  17. /*                                                                  */
  18. /* #define  H  320                                                  */
  19. /* #define  V  240                                                  */
  20. /*                                                                  */
  21. /* Remember H the horizontal number of samples needs to be a        */
  22. /* multiple of 16.                                                  */
  23. /*------------------------------------------------------------------*/
  24. #define  HC 720
  25. #define  VC 480
  26. #define  H  720
  27. #define  V  480
  28. IJPEGENC_Params IJPEGENC_PARAMS =
  29. {
  30.     sizeof(IJPEGENC_Params),
  31.     8, /* unsigned int  sample_prec; */
  32.     3, /* unsigned int  num_comps; */
  33.     2, /* unsigned int  num_qtables; */
  34.     0, /* unsigned int  interleaved; */
  35.     0x01120112, /* unsigned int  formatflag for 4:2:0; */
  36.     100, /* unsigned int  quality; */
  37.     V, (V/2), (V/2), /* unsigned int  num_lines 4:2:0; */
  38.     H, (H/2), (H/2), /* unsigned int  num_samples; */
  39.     HC,(HC/2),(HC/2) /*unsigned int pitch;*/
  40. };
  41. /*------------------------------------------------------------------*/
  42. /* Texas Instruments Incorporated 1997-2003.                        */
  43. /*==================================================================*/
  44. /*                                                                  */
  45. /*------------------------------------------------------------------*/