Changes between Version 57 and Version 58 of rfc24_progressive_data_support


Ignore:
Timestamp:
Sep 4, 2008, 9:20:40 AM (16 years ago)
Author:
normanb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc24_progressive_data_support

    v57 v58  
    7676* Purpose: Implementation of Dataset and RasterBand classes for JPIP and other
    7777*          progressive rendering protocols / formats
     78* Author: Norman Barker, nbarker@ittvis.com
    7879*******************************************************************************
    7980*/
     
    116117
    117118
     119        CPLErr DeleteRasterIOContext(GDALRasterIOContext *);
     120
    118121        /*
    119122        *  GDALAsyncDatasetOpen called with Access.GA_ReadOnly
     
    124127
    125128};
    126 
    127129
    128130/*********************************************************************/
     
    134136        GDALAsyncRasterBand(GDALAsyncDataset *parent_dataset, int band, double scale);
    135137        virtual GDALRasterIOContext *CreateRasterIOContext(GDALRWFlag eRWFlag,
    136                                                 int nDSXOff, int nDSYOff,
    137                                                 int nDSXSize, int nDSYSize,
    138                                                 int nBXSize, int nBYSize,
    139                                                 GDALDataType eBDataType,
    140                                                 int nPixelSpace, int nLineSpace);
     138                                        int nDSXOff, int nDSYOff,
     139                                        int nDSXSize, int nDSYSize,
     140                                        int nBXSize, int nBYSize,
     141                                        GDALDataType eBDataType,
     142                                        int nPixelSpace, int nLineSpace);
     143        CPLErr DeleteRasterIOContext(GDALRasterIOContext *);
    141144        virtual ~GDALAsyncRasterBand(){};
    142145};
     
    155158        AsyncStatus GetStatus(){return status;}
    156159
    157         virtual CPLErr SetView(int xOff, int yOff, int xSize, int ySize, int nFXSize, int nFYSize);
    158         virtual CPLErr RasterIO(void *pData, int nTimeoutMilliseconds = -1, char **papszOptions);
     160        virtual CPLErr SetView(int xOff, int yOff, int xSize, int ySize, int fxSize, int fySize);
     161        virtual CPLErr RasterIO(void *pData, char **papszOptions, int nTimeoutMilliseconds = -1);
    159162        virtual void CancelIO();
    160163};
    161 
    162164
    163165}}}
     
    204206*/
    205207GDALRasterIOContext *GDALAsyncDataset::CreateRasterIOContext(GDALRWFlag eRWFlag,
    206                                                         int nDSXOff, int nDSYOff,
    207                                                         int nDSXSize, int nDSYSize,
    208                                                         int nBXSize, int nBYSize,
    209                                                         GDALDataType eBDataType,
    210                                                         int nBandCount, int* panBandMap,
    211                                                         int nPixelSpace, int nLineSpace, int nBandSpace)
     208                                        int nDSXOff, int nDSYOff,
     209                                        int nDSXSize, int nDSYSize,
     210                                        int nBXSize, int nBYSize,
     211                                        GDALDataType eBDataType,
     212                                        int nBandCount, int* panBandMap,
     213                                        int nPixelSpace, int nLineSpace, int nBandSpace)
    212214{
    213215        return 0;
     216}
     217
     218/************************************************************************/
     219/*                            DeleteRasterIOContext()                       */
     220/************************************************************************/
     221
     222/**
     223*  Clean up operations for child GDALRasterIOContext
     224*/
     225CPLErr GDALAsyncDataset::DeleteRasterIOContext(GDALRasterIOContext *)
     226{
     227        // return a warning, this method should be overridden
     228        return CE_Warning;
    214229}
    215230
     
    248263*/
    249264GDALRasterIOContext *GDALAsyncRasterBand::CreateRasterIOContext(GDALRWFlag eRWFlag,
    250                                                                 int nDSXOff, int nDSYOff,
    251                                                                 int nDSXSize, int nDSYSize,
    252                                                                 int nBXSize, int nBYSize,
    253                                                                 GDALDataType eBDataType,
    254                                                                 int nPixelSpace, int nLineSpace)
     265                                        int nDSXOff, int nDSYOff,
     266                                        int nDSXSize, int nDSYSize,
     267                                        int nBXSize, int nBYSize,
     268                                        GDALDataType eBDataType,
     269                                        int nPixelSpace, int nLineSpace)
    255270{
    256271        return 0;
     272}
     273
     274/************************************************************************/
     275/*                            DeleteRasterIOContext()                       */
     276/************************************************************************/
     277
     278/**
     279*  Clean up operations for child GDALRasterIOContext
     280*/
     281CPLErr GDALAsyncRasterBand::DeleteRasterIOContext(GDALRasterIOContext *)
     282{
     283    // return a warning, this method should be overridden
     284        return CE_Warning;
    257285}
    258286
     
    277305* @param xSize request width of the server image at resolution 1:1
    278306* @param ySize request height of the server image at resolution 1:1
    279 * @param nFXSize Requested frame width, JPIP will select the resolution level that best fits nBXSize, nBYSize
    280 * @param nFYSize Requested frame height, JPIP will select the resolution level that best fits nBXSize, nBYSize
    281 */
    282 CPLErr GDALRasterIOContext::SetView(int xOff, int yOff, int xSize, int ySize)
     307* @param fxSize Requested frame width, JPIP will select the resolution level that best fits nBXSize, nBYSize
     308* @param fySize Requested frame height, JPIP will select the resolution level that best fits nBXSize, nBYSize
     309*/
     310CPLErr GDALRasterIOContext::SetView(int xOff, int yOff, int xSize, int ySize, int fxSize, int fySize)
    283311{
    284312        // return a warning, this method should be overridden
     
    312340* @papszOptions options for the driver implementation e.g. Quality="Xxx" to specify maximum jpip quality
    313341*/
    314 CPLErr RasterIO(void *pData, int nTimeoutMilliseconds = -1, char **papszOptions)
     342CPLErr RasterIO(void *pData, char **papszOptions, int nTimeoutMilliseconds = -1)
    315343{
    316344        // return a warning, this method should be overridden
    317345        return CE_Warning;
    318346}
     347
    319348}}}