Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
PixelUtil.hpp File Reference
#include <climits>
#include <cstdint>
#include <limits>
#include <jau/basic_types.hpp>
#include <jau/int_math.hpp>
#include <jau/int_types.hpp>
#include <jau/math/recti.hpp>
#include <jau/math/vec2i.hpp>
#include <jau/string_util.hpp>
#include <jau/enum_util.hpp>
#include <gamp/GampTypes.hpp>
#include <gamp/render/RenderTypes.hpp>
Include dependency graph for PixelUtil.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gamp::render::pixel::ComponentMap
 

Namespaces

namespace  gamp
 Gamp: Graphics, Audio, Multimedia and Processing Framework (Native C++, WebAssembly, ...)
 
namespace  gamp::render
 
namespace  gamp::render::pixel
 

Typedefs

typedef std::array< CType, 4 > gamp::render::pixel::comparray4_t
 
typedef std::array< uint32_t, 4 > gamp::render::pixel::u32array4_t
 

Enumerations

enum class  gamp::render::pixel::CType : uint8_t {
  gamp::render::pixel::CType::none = 0 , gamp::render::pixel::CType::R = 1 , gamp::render::pixel::CType::G = 2 , gamp::render::pixel::CType::B = 3 ,
  gamp::render::pixel::CType::A = 4 , gamp::render::pixel::CType::Y = 10 , gamp::render::pixel::CType::U = 11 , gamp::render::pixel::CType::V = 12
}
 Component types. More...
 

Functions

uint32_t gamp::render::pixel::find (CType s, jau::nsize_t poolCount, const comparray4_t &pool, bool mapRGB2Y) noexcept
 Returns first index of given CType within pool , npos if not exists.
 
uint32_t gamp::render::pixel::getShifted32 (uint32_t bytesPerPixel, const uint8_t *data)
 Returns shifted bytes from the given data at given offset of maximal 4 bytesPerPixel.
 
uint64_t gamp::render::pixel::getShifted64 (uint32_t bytesPerPixel, const uint8_t *data)
 Returns shifted bytes from the given data at given offset of maximal 8 bytesPerPixel.
 
 gamp::render::pixel::JAU_MAKE_ENUM_STRING (CType, R, G, B, A, Y, U, V)
 

Variables

constexpr uint32_t gamp::render::pixel::npos = std::numeric_limits<uint32_t>::max()
 maximum index, denoting no position or not found.