"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xpdf/JPXStream.h" between
xpdf-4.01.01.tar.gz and xpdf-4.02.tar.gz

About: Xpdf is a PDF viewer for X.

JPXStream.h  (xpdf-4.01.01):JPXStream.h  (xpdf-4.02)
skipping to change at line 233 skipping to change at line 233
Guint progOrder; // progression order Guint progOrder; // progression order
Guint nLayers; // number of layers Guint nLayers; // number of layers
Guint multiComp; // multiple component transformation Guint multiComp; // multiple component transformation
//----- computed //----- computed
Guint x0, y0, x1, y1; // bounds of the tile, in ref coords Guint x0, y0, x1, y1; // bounds of the tile, in ref coords
Guint maxNDecompLevels; // max number of decomposition levels used Guint maxNDecompLevels; // max number of decomposition levels used
// in any component in this tile // in any component in this tile
//----- progression order loop counters //----- progression order loop counters
Guint comp; // component Guint comp; // component
Guint res; // resolution level Guint res; // resolution level
Guint precinct; // precinct Guint precinct; // precinct
Guint layer; // layer Guint layer; // layer
GBool done; // set when this tile is done
//----- tile part info //----- tile part info
Guint nextTilePart; // next expected tile-part Guint nextTilePart; // next expected tile-part
//----- children //----- children
JPXTileComp *tileComps; // the tile-components (len = JPXImage.nComps) JPXTileComp *tileComps; // the tile-components (len = JPXImage.nComps)
}; };
//------------------------------------------------------------------------ //------------------------------------------------------------------------
struct JPXImage { struct JPXImage {
//----- from the SIZ segment //----- from the SIZ segment
Guint xSize, ySize; // size of reference grid Guint xSize, ySize; // size of reference grid
Guint xOffset, yOffset; // image offset Guint xOffset, yOffset; // image offset
Guint xTileSize, yTileSize; // size of tiles Guint xTileSize, yTileSize; // size of tiles
Guint xTileOffset, // offset of first tile Guint xTileOffset, // offset of first tile
yTileOffset; yTileOffset;
Guint xSizeR, ySizeR; // size of reference grid >> reduction Guint xSizeR, ySizeR; // size of reference grid >> reduction
Guint xOffsetR, yOffsetR; // image offset >> reduction Guint xOffsetR, yOffsetR; // image offset >> reduction
Guint xTileSizeR, yTileSizeR; // size of tiles >> reduction
Guint xTileOffsetR, // offset of first tile >> reduction
yTileOffsetR;
Guint nComps; // number of components Guint nComps; // number of components
//----- computed //----- computed
Guint nXTiles; // number of tiles in x direction Guint nXTiles; // number of tiles in x direction
Guint nYTiles; // number of tiles in y direction Guint nYTiles; // number of tiles in y direction
//----- children //----- children
JPXTile *tiles; // the tiles (len = nXTiles * nYTiles) JPXTile *tiles; // the tiles (len = nXTiles * nYTiles)
}; };
skipping to change at line 290 skipping to change at line 288
public: public:
JPXStream(Stream *strA); JPXStream(Stream *strA);
virtual ~JPXStream(); virtual ~JPXStream();
virtual Stream *copy(); virtual Stream *copy();
virtual StreamKind getKind() { return strJPX; } virtual StreamKind getKind() { return strJPX; }
virtual void reset(); virtual void reset();
virtual void close(); virtual void close();
virtual int getChar(); virtual int getChar();
virtual int lookChar(); virtual int lookChar();
virtual GString *getPSFilter(int psLevel, const char *indent); virtual GString *getPSFilter(int psLevel, const char *indent,
GBool okToReadStream);
virtual GBool isBinary(GBool last = gTrue); virtual GBool isBinary(GBool last = gTrue);
virtual void getImageParams(int *bitsPerComponent, virtual void getImageParams(int *bitsPerComponent,
StreamColorSpaceMode *csMode); StreamColorSpaceMode *csMode);
void reduceResolution(int reductionA) { reduction = reductionA; } void reduceResolution(int reductionA) { reduction = reductionA; }
private: private:
void fillReadBuf(); void fillReadBuf();
void getImageParams2(int *bitsPerComponent, StreamColorSpaceMode *csMode); void getImageParams2(int *bitsPerComponent, StreamColorSpaceMode *csMode);
JPXDecodeResult readBoxes(); JPXDecodeResult readBoxes();
 End of changes. 3 change blocks. 
8 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)