Save bitmaps as PNG
[lsnes.git] / include / library / pixfmt-lrgb.hpp
blobfba9e02f9201f93288f4f144f70a7957bb75f697
1 #ifndef _library__pixfmt_lrgb__hpp__included__
2 #define _library__pixfmt_lrgb__hpp__included__
4 #include "framebuffer.hpp"
6 /**
7 * Pixel format LRGB (bsnes).
8 */
9 class pixel_format_lrgb : public pixel_format
11 public:
12 ~pixel_format_lrgb() throw();
13 void decode(uint32_t* target, const uint8_t* src, size_t width)
14 throw();
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;
30 #endif