A class for representing bpc8 images as C++ object.
More...
#include <full_image.hpp>
A class for representing bpc8 images as C++ object.
Definition at line 166 of file full_image.hpp.
◆ pixel_format_t
using bnb::bpc8_image_t::pixel_format_t = bnb::interfaces::pixel_format |
◆ bpc8_image_t() [1/2]
bnb::bpc8_image_t::bpc8_image_t |
( |
| ) |
|
|
default |
enum value represents pixel format (
- See also
- pixel_format) Construct a new bpc8_image_t object with default values.
◆ bpc8_image_t() [2/2]
bnb::bpc8_image_t::bpc8_image_t |
( |
color_plane | data, |
|
|
pixel_format_t | type, |
|
|
const image_format & | format ) |
Construct a new bpc8_image_t object with user's values.
- Parameters
-
data | is a color plane data ( |
- See also
- color_plane).
- Parameters
-
type | is a pixel format as enum value ( |
- See also
- pixe_format_t).
- Parameters
-
format | is a image format ( |
- See also
- image_format).
◆ bytes_per_pixel()
static uint8_t bnb::bpc8_image_t::bytes_per_pixel |
( |
pixel_format_t | fmt | ) |
|
|
static |
- Returns
- Returns count of bytes per pixel for pixel format (
fmt
).
◆ get_data()
uint8_t * bnb::bpc8_image_t::get_data |
( |
| ) |
const |
|
noexcept |
- Returns
- Returns a raw pointer on data of image.
◆ get_pixel_format()
pixel_format_t bnb::bpc8_image_t::get_pixel_format |
( |
| ) |
const |
|
noexcept |
- Returns
- Returns the pixel format as enum value (
- See also
- pixe_format_t).
◆ rgb_offsets()
static std::tuple< int, int, int > bnb::bpc8_image_t::rgb_offsets |
( |
pixel_format_t | fmt | ) |
|
|
static |
- Returns
- Returns offsets for every component of rgb in bytes.
◆ rgb_pixel_at()
std::tuple< uint8_t, uint8_t, uint8_t > bnb::bpc8_image_t::rgb_pixel_at |
( |
uint32_t | x, |
|
|
uint32_t | y ) const |
|
noexcept |
- Returns
- Returns RGB pixel at position
The documentation for this class was generated from the following file:
- /Users/itumashyk/Workspace/banuba_sdk/libs/types/bnb/types/full_image.hpp