#ifndef _library__framebuffer_pixfmt_rgb32__hpp__included__ #define _library__framebuffer_pixfmt_rgb32__hpp__included__ #include "framebuffer.hpp" namespace framebuffer { /** * Pixel format RGB32. */ class _pixfmt_rgb32 : public pixfmt { public: ~_pixfmt_rgb32() throw(); void decode(uint32_t* target, const uint8_t* src, size_t width) throw(); void decode(uint32_t* target, const uint8_t* src, size_t width, const auxpalette& auxp) throw(); void decode(uint64_t* target, const uint8_t* src, size_t width, const auxpalette& auxp) throw(); void set_palette(auxpalette& auxp, uint8_t rshift, uint8_t gshift, uint8_t bshift) throw(std::bad_alloc); void set_palette(auxpalette& auxp, uint8_t rshift, uint8_t gshift, uint8_t bshift) throw(std::bad_alloc); uint8_t get_bpp() throw(); uint8_t get_ss_bpp() throw(); uint32_t get_magic() throw(); }; extern _pixfmt_rgb32 pixfmt_rgb32; } #endif