RAII wrapper for BPP format conversion operations. More...
#include <bpp_format_manager.h>

Public Member Functions | |
| BppConversionScope (BppFormat from_format, BppFormat to_format, int width, int height) | |
| ~BppConversionScope () | |
| std::vector< uint8_t > | Convert (const std::vector< uint8_t > &data) |
Private Attributes | |
| BppFormat | from_format_ |
| BppFormat | to_format_ |
| int | width_ |
| int | height_ |
| std::string | operation_name_ |
| ScopedTimer | timer_ |
RAII wrapper for BPP format conversion operations.
Definition at line 245 of file bpp_format_manager.h.
| yaze::gfx::BppConversionScope::BppConversionScope | ( | BppFormat | from_format, |
| BppFormat | to_format, | ||
| int | width, | ||
| int | height ) |
Definition at line 452 of file bpp_format_manager.cc.
References operation_name_.
| yaze::gfx::BppConversionScope::~BppConversionScope | ( | ) |
Definition at line 466 of file bpp_format_manager.cc.
| std::vector< uint8_t > yaze::gfx::BppConversionScope::Convert | ( | const std::vector< uint8_t > & | data | ) |
Definition at line 470 of file bpp_format_manager.cc.
References yaze::gfx::BppFormatManager::ConvertFormat(), from_format_, yaze::gfx::BppFormatManager::Get(), height_, to_format_, and width_.

|
private |
Definition at line 254 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 255 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 256 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 257 of file bpp_format_manager.h.
Referenced by Convert().
|
private |
Definition at line 258 of file bpp_format_manager.h.
Referenced by BppConversionScope().
|
private |
Definition at line 259 of file bpp_format_manager.h.