- Main Page
- Data Structures
- Files
- Related Pages

# pgm.h

Go to the documentation of this file.

    00001
    00012 /* AUTORIGHTS */
    00013
    00014 #include "generic.h"
    00015 #include <stdio.h>
    00016
    00017 #ifndef VL_PGM
    00018 #define VL_PGM
    00019
    00022 #define VL_ERR_PGM_INV_HEAD  101
    00023 #define VL_ERR_PGM_INV_META  102
    00024 #define VL_ERR_PGM_INV_DATA  103
    00025 #define VL_ERR_PGM_IO        104
    00027
    00028
    00035 struct _VlPgmImage
    00036 {
    00037   int        width ;
    00038   int        height ;
    00039   int        max_value ;
    00040   vl_bool    is_raw ;
    00041 };
    00042
    00046 typedef struct  _VlPgmImage  VlPgmImage ;
    00047
    00048 int vl_pgm_extract_head  (FILE *f, VlPgmImage       *im) ;
    00049 int vl_pgm_extract_data  (FILE *f, VlPgmImage const *im, void *data) ;
    00050 int vl_pgm_insert        (FILE *f,
    00051                           VlPgmImage const *im,
    00052                           void *data ) ;
    00053 int vl_pgm_get_data_size (VlPgmImage const *im) ;
    00054 int vl_pgm_get_bpp       (VlPgmImage const *im) ;
    00055
    00056 /* VL_PGM */
    00057 #endif