Menu

#197 Pix Load

Incomplete
closed-accepted
None
5
2013-07-02
2013-06-21
zero_level
No

This contains the pix_load function

1 Attachments

Discussion

  • zero_level

    zero_level - 2013-06-21

    This has for bw format.

     

    Last edit: zero_level 2013-07-02
  • zero_level

    zero_level - 2013-06-21

    This has for png format.

     

    Last edit: zero_level 2013-07-02
  • Sean Morrison

    Sean Morrison - 2013-07-01

    There are three patch files in this patch submission. Are they all supposed to be applied or just the last one? Please review your other patches and if any have multiple files, you need to say whether we're expected to apply all or just the last one.

     
  • zero_level

    zero_level - 2013-07-02

    Sean,
    I have removed the other two patch files to avoid confusions.

    This patch file pixload.patch has a load functionality for pix format. This applies cleanly.

     

    Last edit: zero_level 2013-07-02
  • zero_level

    zero_level - 2013-07-02

    A brief discription about this patch.

    ICV library in its original implementation, has a function definition called icv_load. icv_load is currently unimplemented. This patch implements icv_load functionality for pix format.

    This patch was a part of patch which was submitted during GSOC application period by me.

     
  • Erik Greenwald

    Erik Greenwald - 2013-07-02

    This patch introduces trailing whitespace, please verify that the file satisfies HACKING.
    The load_pix function is placed in the public function section as denoted by comments, it should be in the private function section.
    The going naming format for that file is <format>_<operation> (like pix_save), new functiosn should follow existing convention (so pix_load)
    If you allocate the bif first, then you can bu_calloc() the bif->data instead of carrying a local 'data' variable, as well as just use the bif->fd without the fd local.
    Allocation of bif and data are not tested, this could cause a crash if bu_malloc() fails.</operation></format>

     
  • zero_level

    zero_level - 2013-07-02

    Hii Erik,
    Resurrected the new patch (see att. pixload_Rev2.patch)
    removed trailing spaces.
    changed function name
    removed extra variables.
    bu_malloc issue resolved on IRC.

     
  • Erik Greenwald

    Erik Greenwald - 2013-07-02
    • status: open --> closed-accepted
     
  • Erik Greenwald

    Erik Greenwald - 2013-07-02

    applied as r55930, with indentation fixes in 55931.

     

Log in to post a comment.