|
NXWidgets
1.19
|
#include <crlepalettebitmap.hxx>

Public Member Functions | |
| CRlePaletteBitmap (const struct SRlePaletteBitmap *bitmap) | |
| ~CRlePaletteBitmap (void) | |
| const uint8_t | getColorFormat (void) const |
| const uint8_t | getBitsPerPixel (void) const |
| const nxgl_coord_t | getWidth (void) const |
| const nxgl_coord_t | getHeight (void) const |
| const size_t | getStride (void) const |
| void | setSelected (bool selected) |
| bool | getRun (nxgl_coord_t x, nxgl_coord_t y, nxgl_coord_t width, FAR void *data) |
Public Member Functions inherited from NXWidgets::IBitmap | |
| virtual | ~IBitmap (void) |
Protected Member Functions | |
| void | startOfImage (void) |
| bool | advancePosition (nxgl_coord_t npixels) |
| bool | skipPixels (nxgl_coord_t npixels) |
| bool | nextRow (void) |
| bool | seekRow (nxgl_coord_t row) |
| void | copyColor (nxgl_coord_t npixels, FAR void *data) |
| bool | copyPixels (nxgl_coord_t npixels, FAR void *data) |
Protected Attributes | |
| FAR const struct SRlePaletteBitmap * | m_bitmap |
| nxgl_coord_t | m_row |
| nxgl_coord_t | m_col |
| uint8_t | m_remaining |
| FAR const void * | m_lut |
| FAR const struct SRlePaletteBitmapEntry * | m_rle |
Class providing bitmap accessor for a bitmap represented by SRlePaletteBitmap.
Definition at line 100 of file crlepalettebitmap.hxx.
| CRlePaletteBitmap::CRlePaletteBitmap | ( | const struct SRlePaletteBitmap * | bitmap | ) |
Constructor.
| bitmap | The bitmap structure being wrapped. |
Definition at line 101 of file crlepalettebitmap.cxx.
|
inline |
Destructor.
Definition at line 198 of file crlepalettebitmap.hxx.
|
protected |
Advance position data ahead. Called after npixels have have been consume.
| npixels | The number of pixels to advance |
Definition at line 243 of file crlepalettebitmap.cxx.
|
protected |
Copy the pixels from the current RLE entry the specified number of times.
| npixels | The number of pixels to copy. Must be less than or equal to m_remaining. |
| data | The memory location provided by the caller in which to return the data. This should be at least (getWidth()*getBitsPerPixl() + 7)/8 bytes in length and properly aligned for the pixel color format. |
Copy the pixels from the current RLE entry the specified number of times.
| npixels | The number of pixels to copy. Must be less than or equal to m_remaining (not checked here, must be handled by higher level code). |
| data | The memory location provided by the caller in which to return the data. This should be at least (getWidth()*getBitsPerPixl() + 7)/8 bytes in length and properly aligned for the pixel color format. |
Definition at line 359 of file crlepalettebitmap.cxx.
|
protected |
Copy pixels from the current position
| npixels | The number of pixels to copy |
| data | The memory location provided by the caller in which to return the data. This should be at least (getWidth()*getBitsPerPixl() + 7)/8 bytes in length and properly aligned for the pixel color format. |
Definition at line 389 of file crlepalettebitmap.cxx.
|
virtual |
Get the bitmap's color format.
Implements NXWidgets::IBitmap.
Definition at line 125 of file crlepalettebitmap.cxx.
|
virtual |
Get the bitmap's color format.
Implements NXWidgets::IBitmap.
Definition at line 114 of file crlepalettebitmap.cxx.
|
virtual |
Get the bitmap's height (in rows).
Implements NXWidgets::IBitmap.
Definition at line 147 of file crlepalettebitmap.cxx.
|
virtual |
Get one row from the bit map image using the selected colors.
| x | The offset into the row to get |
| y | The row number to get |
| width | The number of pixels to get from the row |
| data | The memory location provided by the caller in which to return the data. This should be at least (getWidth()*getBitsPerPixl() + 7)/8 bytes in length and properly aligned for the pixel color format. |
| True | if the run was returned successfully. |
Get one row from the bit map image using the selected LUT.
| x | The offset into the row to get |
| y | The row number to get |
| width | The number of pixels to get from the row |
| data | The memory location provided by the caller in which to return the data. This should be at least (getWidth()*getBitsPerPixl() + 7)/8 bytes in length and properly aligned for the pixel color format. |
| True | if the run was returned successfully. |
Implements NXWidgets::IBitmap.
Definition at line 190 of file crlepalettebitmap.cxx.
|
virtual |
Get the bitmap's width (in bytes).
Implements NXWidgets::IBitmap.
Definition at line 158 of file crlepalettebitmap.cxx.
|
virtual |
Get the bitmap's width (in pixels/columns).
Implements NXWidgets::IBitmap.
Definition at line 136 of file crlepalettebitmap.cxx.
|
protected |
Seek to the beginning of the next row
Definition at line 313 of file crlepalettebitmap.cxx.
|
protected |
Seek to the beignning specific row
| row | The row number to seek to |
Definition at line 324 of file crlepalettebitmap.cxx.
|
virtual |
Use the colors associated with a selected image.
| selected. | true: Use colors for a selected widget, false: Use normal (default) colors. |
Implements NXWidgets::IBitmap.
Definition at line 172 of file crlepalettebitmap.cxx.
|
protected |
Seek ahead the specific number of pixels – discarding and advancing.
| npixels | The number of pixels to skip |
Seek ahead the specific number of pixels – discarding and advancing.
| npixels | The number of pixels to skip |
Definition at line 277 of file crlepalettebitmap.cxx.
|
protected |
Reset to the beginning of the image
Definition at line 227 of file crlepalettebitmap.cxx.
|
protected |
The bitmap that is being managedThe bitmap that is being managed
Definition at line 107 of file crlepalettebitmap.hxx.
|
protected |
Logical column number
Definition at line 114 of file crlepalettebitmap.hxx.
|
protected |
The selected LUT
Definition at line 116 of file crlepalettebitmap.hxx.
|
protected |
Number of bytes remaining in current entry
Definition at line 115 of file crlepalettebitmap.hxx.
|
protected |
RLE entry being processed
Definition at line 117 of file crlepalettebitmap.hxx.
|
protected |
Accessor state dataLogical row number
Definition at line 113 of file crlepalettebitmap.hxx.
1.8.13