~ubuntu-branches/ubuntu/saucy/openexr/saucy

« back to all changes in this revision

Viewing changes to IlmImf/ImfFrameBuffer.h

  • Committer: Bazaar Package Importer
  • Author(s): Adeodato Simó
  • Date: 2008-03-24 23:00:21 UTC
  • mfrom: (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080324230021-gnofz9mnvcj1xlv3
Tags: 1.6.1-3
Disable (hopefully temporarily) the test suite on arm and ia64.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    PixelType           type;
71
71
 
72
72
 
73
 
    //--------------------------------------------------------------
 
73
    //---------------------------------------------------------------------
74
74
    // Memory layout:  The address of pixel (x, y) is
75
75
    //
76
 
    //  base + (x / xSampling) * xStride + (y / ySampling) * yStride
77
 
    //
78
 
    //--------------------------------------------------------------
 
76
    //  base + (xp / xSampling) * xStride + (yp / ySampling) * yStride
 
77
    //
 
78
    // where xp and yp are computed as follows:
 
79
    //
 
80
    //  * If we are reading or writing a scanline-based file:
 
81
    //
 
82
    //      xp = x
 
83
    //      yp = y
 
84
    //
 
85
    //  * If we are reading a tile whose upper left coorner is at (xt, yt):
 
86
    //
 
87
    //      if xTileCoords is true then xp = x - xt, else xp = x
 
88
    //      if yTileCoords is true then yp = y - yt, else yp = y
 
89
    //
 
90
    //---------------------------------------------------------------------
79
91
 
80
92
    char *              base;
81
93
    size_t              xStride;
100
112
    //----------------------------------------------------------
101
113
 
102
114
    double              fillValue;
 
115
    
 
116
 
 
117
    //-------------------------------------------------------
 
118
    // For tiled files, the xTileCoords and yTileCoords flags
 
119
    // determine whether pixel addressing is performed using
 
120
    // absolute coordinates or coordinates relative to a
 
121
    // tile's upper left corner.  (See the comment on base,
 
122
    // xStride and yStride, above.)
 
123
    //
 
124
    // For scanline-based files these flags have no effect;
 
125
    // pixel addressing is always done using absolute
 
126
    // coordinates.
 
127
    //-------------------------------------------------------
 
128
 
 
129
    bool                xTileCoords;
 
130
    bool                yTileCoords;
103
131
 
104
132
 
105
133
    //------------
112
140
           size_t yStride = 0,
113
141
           int xSampling = 1,
114
142
           int ySampling = 1,
115
 
           double fillValue = 0.0);
 
143
           double fillValue = 0.0,
 
144
           bool xTileCoords = false,
 
145
           bool yTileCoords = false);
116
146
};
117
147
 
118
148