diff options
Diffstat (limited to 'common/rfb/PixelFormat.h')
-rw-r--r-- | common/rfb/PixelFormat.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/common/rfb/PixelFormat.h b/common/rfb/PixelFormat.h index b18045f7..113b8eef 100644 --- a/common/rfb/PixelFormat.h +++ b/common/rfb/PixelFormat.h @@ -90,6 +90,29 @@ namespace rfb { void updateState(void); bool isSane(void); + private: + // Preprocessor generated, optimised methods + + void directBufferFromBufferFrom888(rdr::U8* dst, const PixelFormat &srcPF, + const rdr::U8* src, int w, int h, + int dstStride, int srcStride) const; + void directBufferFromBufferFrom888(rdr::U16* dst, const PixelFormat &srcPF, + const rdr::U8* src, int w, int h, + int dstStride, int srcStride) const; + void directBufferFromBufferFrom888(rdr::U32* dst, const PixelFormat &srcPF, + const rdr::U8* src, int w, int h, + int dstStride, int srcStride) const; + + void directBufferFromBufferTo888(rdr::U8* dst, const PixelFormat &srcPF, + const rdr::U8* src, int w, int h, + int dstStride, int srcStride) const; + void directBufferFromBufferTo888(rdr::U8* dst, const PixelFormat &srcPF, + const rdr::U16* src, int w, int h, + int dstStride, int srcStride) const; + void directBufferFromBufferTo888(rdr::U8* dst, const PixelFormat &srcPF, + const rdr::U32* src, int w, int h, + int dstStride, int srcStride) const; + public: int bpp; int depth; |