Lua: Fix type confusion between signed and unsigned
[lsnes.git] / include / library / framebuffer-pixfmt-rgb16.hpp
blob3b3e21ef1672ec4434470a5c25458347f4125387
1 #ifndef _library__framebuffer_pixfmt_rgb16__hpp__included__
2 #define _library__framebuffer_pixfmt_rgb16__hpp__included__
4 #include "framebuffer-pixfmt.hpp"
6 namespace framebuffer
8 /**
9 * Pixel format RGB16 (5:6:5).
11 template<bool uvswap>
12 class _pixfmt_rgb16 : public pixfmt
14 public:
15 ~_pixfmt_rgb16() throw();
16 void decode(uint32_t* target, const uint8_t* src, size_t width)
17 throw();
18 void decode(uint32_t* target, const uint8_t* src, size_t width,
19 const auxpalette<false>& auxp) throw();
20 void decode(uint64_t* target, const uint8_t* src, size_t width,
21 const auxpalette<true>& auxp) throw();
22 void set_palette(auxpalette<false>& auxp, uint8_t rshift, uint8_t gshift,
23 uint8_t bshift) throw(std::bad_alloc);
24 void set_palette(auxpalette<true>& auxp, uint8_t rshift, uint8_t gshift,
25 uint8_t bshift) throw(std::bad_alloc);
26 uint8_t get_bpp() throw();
27 uint8_t get_ss_bpp() throw();
28 uint32_t get_magic() throw();
31 extern _pixfmt_rgb16<false> pixfmt_rgb16;
32 extern _pixfmt_rgb16<true> pixfmt_bgr16;
35 #endif