www.pudn.com > scaling.rar > img_proc.h


#ifndef _IMG_PROC 
#define _IMG_PROC 1 
typedef struct image 
{ 
    unsigned char *img_data; 
    int            img_cols; 
    int            img_rows; 
}IMAGE; 
 
typedef struct 
{   
    char          *ext_data; 
    int            ext_size; 
    char          *int_data; 
    int            int_size; 
}SCRATCH_PAD; 
 
typedef struct 
{ 
    short         *qmf_ext; 
    short         *mqmf_ext; 
    int           scale; 
}WAVE_PARAMS; 
 
typedef struct 
{ 
    unsigned char  *mask; 
    short          shift; 
}LPF_PARAMS; 
 
typedef struct 
{ 
    unsigned char threshold; 
}THRESH_PARAMS; 
        
typedef enum img_type 
{ 
    FLDS, 
    PROG 
} img_type; 
     
void img_proc( IMAGE *in_image,   
               IMAGE *out_img,    
               SCRATCH_PAD *scratch_pad, 
               img_type img_type_val, 
               LPF_PARAMS  *lpf_params, 
               THRESH_PARAMS *thresh_params);  
#endif