Negative yStride

Brendan Bolles <[email protected]>
Newsgroups gmane.comp.video.openexr.devel
Message-ID <[email protected]>
I'm reading into an image buffer where the lines are ordered from bottom to top, so I'm using a negative yStride like so:

frameBuffer.insert(name,
                    Slice(Imf::FLOAT,
                            last_line_ptr,
                            xStride,
                            -rowbytes, // yStride
                            xSampling, ySampling, fill) );


But one thing I noticed is that Slice's yStride is a size_t, which is unsigned.  So instead of a modest negative number, the debugger shows it as a huge unsigned integer.

It seems to work fine, but I find it a little off-putting.  Should I be worried?


Brendan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.