1 #ifndef _library__framebuffer_pixfmt_rgb16__hpp__included__
2 #define _library__framebuffer_pixfmt_rgb16__hpp__included__
4 #include "framebuffer-pixfmt.hpp"
9 * Pixel format RGB16 (5:6:5).
12 class _pixfmt_rgb16
: public pixfmt
15 ~_pixfmt_rgb16() throw();
16 void decode(uint32_t* target
, const uint8_t* src
, size_t width
)
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
;