Re: [gdal-dev] Incorrect image bytes from VSIGetMemFileBuffer in GDAL < 2.1.0

2016-09-27 Thread Sean Gillies
On Tue, Sep 27, 2016 at 2:59 PM, Even Rouault wrote: > Le mardi 27 septembre 2016 14:09:30, Sean Gillies a écrit : > > Hi all, > > > > I've got code in Rasterio that calls VSIGetMemFileBuffer to get PNG or > JPEG > > image bytes. With GDAL 1.11, I found that I had to

Re: [gdal-dev] Incorrect image bytes from VSIGetMemFileBuffer in GDAL < 2.1.0

2016-09-27 Thread Even Rouault
Le mardi 27 septembre 2016 14:09:30, Sean Gillies a écrit : > Hi all, > > I've got code in Rasterio that calls VSIGetMemFileBuffer to get PNG or JPEG > image bytes. With GDAL 1.11, I found that I had to fix the resulting byte > array by moving the last byte to the head of the array. With GDAL

[gdal-dev] Incorrect image bytes from VSIGetMemFileBuffer in GDAL < 2.1.0

2016-09-27 Thread Sean Gillies
Hi all, I've got code in Rasterio that calls VSIGetMemFileBuffer to get PNG or JPEG image bytes. With GDAL 1.11, I found that I had to fix the resulting byte array by moving the last byte to the head of the array. With GDAL 2.1.0 and 2.1.1 this is no longer needed and we can return an unshifted