1 #ifndef _library__framebuffer_pixfmt_rgb15__hpp__included__
2 #define _library__framebuffer_pixfmt_rgb15__hpp__included__
4 #include "framebuffer-pixfmt.hpp"
9 * Pixel format RGB15 (5:5:5).
12 class _pixfmt_rgb15
: public pixfmt
15 ~_pixfmt_rgb15() 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_rgb15
<false> pixfmt_rgb15
;
32 extern _pixfmt_rgb15
<true> pixfmt_bgr15
;