1 #ifndef _library__framebuffer_pixfmt_lrgb__hpp__included__
2 #define _library__framebuffer_pixfmt_lrgb__hpp__included__
4 #include "framebuffer-pixfmt.hpp"
9 * Pixel format LRGB (bsnes).
11 class _pixfmt_lrgb
: public pixfmt
14 ~_pixfmt_lrgb() throw();
15 void decode(uint32_t* target
, const uint8_t* src
, size_t width
)
17 void decode(uint32_t* target
, const uint8_t* src
, size_t width
,
18 const auxpalette
<false>& auxp
) throw();
19 void decode(uint64_t* target
, const uint8_t* src
, size_t width
,
20 const auxpalette
<true>& auxp
) throw();
21 void set_palette(auxpalette
<false>& auxp
, uint8_t rshift
, uint8_t gshift
,
22 uint8_t bshift
) throw(std::bad_alloc
);
23 void set_palette(auxpalette
<true>& auxp
, uint8_t rshift
, uint8_t gshift
,
24 uint8_t bshift
) throw(std::bad_alloc
);
25 uint8_t get_bpp() throw();
26 uint8_t get_ss_bpp() throw();
27 uint32_t get_magic() throw();
30 extern _pixfmt_lrgb pixfmt_lrgb
;