IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29442


Ignore:
Timestamp:
Oct 16, 2010, 10:46:52 AM (16 years ago)
Author:
eugene
Message:

add bDrawBuffer to psImageJpeg options, allowing for future overlays (requires kapa.h to deal with BYTE_SWAP issues)

Location:
branches/eam_branches/ipp-20100823/psLib/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.c

    r29355 r29442  
    208208
    209209// XXX need to update bDraw APIs to pass in/out structure and avoid the local static
    210 bool psImageJpeg(const psImageJpegOptions *options, const psImage *image, void *bdbuf, const char *filename)
     210bool psImageJpeg(const psImageJpegOptions *options, const psImage *image, bDrawBuffer *bdbuf, const char *filename)
    211211{
    212212  PS_ASSERT_PTR_NON_NULL(options, false);
     
    351351  if (bdbuf) {
    352352    offset = (options->showScale == PS_JPEG_SHOWSCALE_TOP) ? PS_JPEG_COLORPAD + PS_JPEG_LABELPAD : 0;
    353     psImageJpegOverlayDraw(jpegImage, (bDrawBuffer *) bdbuf, 0, offset);
     353    psImageJpegOverlayDraw(jpegImage, bdbuf, 0, offset);
    354354  }
    355355
  • branches/eam_branches/ipp-20100823/psLib/src/jpeg/psImageJpeg.h

    r29355 r29442  
    5353bool psImageJpeg(const psImageJpegOptions *options, // Color map
    5454                 const psImage *image,  // Image to write
    55                  void *bdbuf,
     55                 bDrawBuffer *bdbuf,
    5656                 const char *filename  // Filename of JPEG
    5757                 );
    5858
    59 // bDrawBuffer *psImageJpegOverlayInit (const psImage *image);
     59bDrawBuffer *psImageJpegOverlayInit (const psImage *image);
    6060
    6161/// @}
  • branches/eam_branches/ipp-20100823/psLib/src/pslib.h

    r29355 r29442  
    1717#define PS_LIB_H
    1818
     19#include <kapa.h>
    1920#include "pslib_strict.h"
    2021
Note: See TracChangeset for help on using the changeset viewer.