1 #ifndef _library__pixfmt_lrgb__hpp__included__
2 #define _library__pixfmt_lrgb__hpp__included__
4 #include "framebuffer.hpp"
7 * Pixel format LRGB (bsnes).
9 class pixel_format_lrgb
: public pixel_format
12 ~pixel_format_lrgb() throw();
13 void decode(uint32_t* target
, const uint8_t* src
, size_t width
)
15 void decode(uint32_t* target
, const uint8_t* src
, size_t width
,
16 const pixel_format_aux_palette
<false>& auxp
) throw();
17 void decode(uint64_t* target
, const uint8_t* src
, size_t width
,
18 const pixel_format_aux_palette
<true>& auxp
) throw();
19 void set_palette(pixel_format_aux_palette
<false>& auxp
, uint8_t rshift
, uint8_t gshift
,
20 uint8_t bshift
) throw(std::bad_alloc
);
21 void set_palette(pixel_format_aux_palette
<true>& auxp
, uint8_t rshift
, uint8_t gshift
,
22 uint8_t bshift
) throw(std::bad_alloc
);
23 uint8_t get_bpp() throw();
24 uint8_t get_ss_bpp() throw();
25 uint32_t get_magic() throw();
28 extern pixel_format_lrgb _pixel_format_lrgb
;