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

DSP编程

开发平台:

C/C++

  1. /*
  2.  *  ======== ijpegenc.h ========
  3.  *  IJPEGENC Interface Header
  4.  */
  5. #ifndef IJPEGENC_
  6. #define IJPEGENC_
  7. #include <std.h>
  8. #include <xdas.h>
  9. #include <ialg.h>
  10. #include <ijpeg.h>
  11. /*
  12.  *  ======== IJPEGENC_Handle ========
  13.  *  This handle is used to reference all JPEGENC instance objects
  14.  */
  15. typedef struct IJPEGENC_Obj *IJPEGENC_Handle;
  16. /*
  17.  *  ======== IJPEGENC_Obj ========
  18.  *  This structure must be the first field of all JPEGENC instance objects
  19.  */
  20. typedef struct IJPEGENC_Obj {
  21.     struct IJPEGENC_Fxns *fxns;
  22. } IJPEGENC_Obj;
  23. /*
  24.  *  ======== IJPEGENC_Params ========
  25.  *  This structure defines the creation parameters for all JPEGENC objects
  26.  */
  27. typedef struct IJPEGENC_Params {
  28.     Int size; /* must be first field of all params structures */
  29.     unsigned int  samplePrec;
  30.     unsigned int  numComps;
  31.     unsigned int  numQtables;
  32.     unsigned int  interleaved;
  33.     unsigned int  format;
  34.     unsigned int  quality;
  35.     unsigned int  numLines[3];
  36.     unsigned int  numSamples[3]; 
  37.     unsigned int  pitch[3];   
  38.     unsigned int  outputSize;
  39. } IJPEGENC_Params;
  40. typedef IJPEGENC_Params IJPEGENC_Status;
  41. /*
  42.  *  ======== IJPEGENC_PARAMS ========
  43.  *  Default parameter values for JPEGENC instance objects
  44.  */
  45. extern IJPEGENC_Params IJPEGENC_PARAMS;
  46. /*
  47.  *  ======== IJPEGENC_Fxns ========
  48.  *  This structure defines all of the operations on JPEGENC objects
  49.  */
  50. typedef struct IJPEGENC_Fxns {
  51.     IALG_Fxns ialg;    /* IJPEGENC extends IALG */
  52.     XDAS_Bool   (*control)(IJPEGENC_Handle handle, IJPEG_Cmd cmd, IJPEGENC_Status *status);
  53.     XDAS_Int32  (*encode)(IJPEGENC_Handle handle, XDAS_Int8** in, XDAS_Int8* out);
  54. } IJPEGENC_Fxns;
  55. #endif /* IJPEGENC_ */