diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-01-22 11:28:05 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:09 +0200 |
commit | a10d8fec7fdf860addbe2287cd345ad09b344478 (patch) | |
tree | 57167955c71ec45180009e8161f5597c7872375b /common/rfb/PixelFormat.h | |
parent | 8432ec16a1764ff57587e24ad9f6479484d350ec (diff) | |
download | tigervnc-a10d8fec7fdf860addbe2287cd345ad09b344478.tar.gz tigervnc-a10d8fec7fdf860addbe2287cd345ad09b344478.zip |
Consistent use of stride vs pitch
Consistently use the term stride rather than pitch. Also
consistently represent the stride in number of pixels rather
than number of bytes. There is so much code that assumes
proper alignment already that we do not need the extra resolution.
Diffstat (limited to 'common/rfb/PixelFormat.h')
-rw-r--r-- | common/rfb/PixelFormat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/PixelFormat.h b/common/rfb/PixelFormat.h index fdb829c9..a8408ddd 100644 --- a/common/rfb/PixelFormat.h +++ b/common/rfb/PixelFormat.h @@ -63,7 +63,7 @@ namespace rfb { inline Pixel pixelFromRGB(rdr::U8 red, rdr::U8 green, rdr::U8 blue, ColourMap* cm=0) const; void bufferFromRGB(rdr::U8 *dst, const rdr::U8* src, int pixels, ColourMap* cm=0) const; - void bufferFromRGB(rdr::U8 *dst, const rdr::U8* src, int w, int pitch, + void bufferFromRGB(rdr::U8 *dst, const rdr::U8* src, int w, int stride, int h, ColourMap* cm=0) const; void rgbFromPixel(Pixel pix, ColourMap* cm, Colour* rgb) const; @@ -71,7 +71,7 @@ namespace rfb { inline void rgbFromPixel(Pixel pix, ColourMap* cm, rdr::U8 *r, rdr::U8 *g, rdr::U8 *b) const; void rgbFromBuffer(rdr::U8* dst, const rdr::U8* src, int pixels, ColourMap* cm=0) const; - void rgbFromBuffer(rdr::U8* dst, const rdr::U8* src, int w, int pitch, + void rgbFromBuffer(rdr::U8* dst, const rdr::U8* src, int w, int stride, int h, ColourMap* cm=0) const; void print(char* str, int len) const; |