|
| | TFrame () |
| | Constructs an empty frame.
|
| |
| | TFrame (uint32 wPx, uint32 hPx) |
| | Constructs a frame with specified dimensions. All pixels are initialized to 0.
|
| |
| | TFrame (const TFrame &other) |
| |
| | TFrame (TFrame &&other) noexcept |
| |
| | ~TFrame ()=default |
| |
| void | fill (T value) |
| |
| void | fill (T value, const math::TAABB2D< uint32 > ®ion) |
| |
| void | flipHorizontally () |
| |
| void | flipVertically () |
| |
| void | setSize (uint32 wPx, uint32 hPx) |
| |
| void | setSize (const math::TVector2< uint32 > &sizePx) |
| |
| void | sample (TFrame &sampled, const math::TMathFunction2D< float64 > &kernel, uint32 kernelRadiusPx) const |
| |
| void | setPixel (const math::TVector2< uint32 > &coordPx, const PixelType &pixel) |
| |
| void | setPixel (uint32 x, uint32 y, const PixelType &pixel) |
| |
| PixelType | getPixel (const math::TVector2< uint32 > &coordPx) const |
| |
| void | getPixel (uint32 x, uint32 y, PixelType *out_pixel) const |
| |
| void | copyPixelData (const math::TAABB2D< uint32 > ®ion, TSpan< T > out_data) const |
| | Copy a region of pixel data into a buffer.
|
| |
| math::TVector2< uint32 > | getSizePx () const |
| |
| TFrame & | operator= (const TFrame &rhs) |
| |
| TFrame & | operator= (TFrame &&rhs) noexcept |
| |
| uint32 | widthPx () const |
| |
| uint32 | heightPx () const |
| |
| bool | isEmpty () const |
| |
| constexpr std::size_t | numPixelComponents () const noexcept |
| |
| template<typename U > |
| TFrame< T, N >::template TPixelType< U > | makeMonochromaticPixel (const U value) |
| |
|
| template<typename PerPixelOperation > |
| void | forEachPixel (PerPixelOperation op) |
| | Iterate over all pixels in the frame in row-major order.
|
| |
| template<typename PerPixelOperation > |
| void | forEachPixel (PerPixelOperation op) const |
| |
|
| template<typename PerPixelOperation > |
| void | forEachPixel (const math::TAABB2D< uint32 > ®ion, PerPixelOperation op) |
| | Iterate over all pixels in the frame in row-major order.
|
| |
| template<typename PerPixelOperation > |
| void | forEachPixel (const math::TAABB2D< uint32 > ®ion, PerPixelOperation op) const |
| |
|
| TSpan< T > | getPixelData () |
| | Get pixel data for the full frame.
|
| |
| TSpanView< T > | getPixelData () const |
| |