pike.git / src / modules / Image / encodings / wbf.c

version» Context lines:

pike.git/src/modules/Image/encodings/wbf.c:26:         #define sp Pike_sp      extern struct program *image_program;      /*! @module Image    */      /*! @module WBMP -  *! WAP bitmap format - WBMP. +  *! Wireless Application Protocol Bitmap Format - WAP bitmap format - WBMP. +  *! +  *! Wireless Application Protocol Bitmap Format (shortened to Wireless +  *! Bitmap and with file extension .wbmp) is a monochrome graphics +  *! file format that was optimized for the extremely low-end mobile +  *! computing devices that were common in the early days of the mobile web.    */      struct buffer   {    size_t len;    unsigned char *str;   };      struct ext_header   {
pike.git/src/modules/Image/encodings/wbf.c:286:    break;       default:    free_string( s );    free_wbf_header_contents( &wh );       Pike_error("Unsupported wbf image type.\n");    }   }    - /*! @decl object decode(string image) + /*! @decl Image.Image decode(string image)    *! -  *! @fixme -  *! Document this function. +  *! Decode the given image    */      static void image_f_wbf_decode( int args )   {    low_image_f_wbf_decode( args, 2 );   }      /*! @decl mapping _decode(string image)    *! -  *! @fixme -  *! Document this function. +  *! Decode the given image +  *! @returns +  *! @mapping +  *! @member Image.Image "img" +  *! @member string "format" +  *! The MIME type and encoding for the image, e.g. "image/x-wap.wbmp; type=0". +  *! @member int "xsize" +  *! @member int "ysize" +  *! @member int "fix_header_field" +  *! @member int "ext_header_field" +  *! @endmapping    */      static void image_f_wbf__decode( int args )   {    low_image_f_wbf_decode( args, 1 );   }      /*! @decl mapping decode_header(string image)    *!    *! @returns
pike.git/src/modules/Image/encodings/wbf.c:372:    is++;    }    }    push_string( make_shared_binary_string( (char *)data,    i->ysize * (i->xsize+7)/8 ) );   }      /*! @decl string encode(object image, void|mapping args)    *! @decl string _encode(object image, void|mapping args)    *! -  *! @fixme -  *! Document this function. +  *! Encode the given image as a WBMP image. All pixels that are not +  *! black will be encoded as white.    */      static void image_f_wbf_encode( int args )   {    struct object *o;    struct image *i;    struct mapping *options = NULL;    int num_strings = 0;       if( !args )