41 return (tile_number - 1001) % 10;
47 return (tile_number - 1001) / 10;
52 static_assert(std::is_same_v<T, int> || std::is_same_v<T, float4>);
60 if constexpr ((std::is_same_v<T, float4>)) {
61 int offset = (coordinate.y *
image_buffer.
x + coordinate.x) * Channels;
64 if constexpr ((std::is_same_v<T, int>)) {
77 if constexpr ((std::is_same_v<T, float>)) {
78 int offset = (coordinate.y *
image_buffer.
x + coordinate.x) * Channels;
81 if constexpr ((std::is_same_v<T, int>)) {
void rgba_uchar_to_float(float r_col[4], const unsigned char col_ub[4])
void rgba_float_to_uchar(unsigned char r_col[4], const float col_f[4])
MINLINE void copy_v4_v4(float r[4], const float a[4])
Contains defines and structs used throughout the imbuf module.
VecBase< float, 4 > float4
VecBase< int32_t, 2 > int2
ImBufFloatBuffer float_buffer
ImBufByteBuffer byte_buffer
void write_pixel(const int2 coordinate, float4 new_value)
ImageBufferAccessor(ImBuf &image_buffer)
float4 read_pixel(const int2 coordinate)
ImageTileWrapper(ImageTile *image_tile)
int get_tile_y_offset() const
int get_tile_x_offset() const
TileNumber get_tile_number() const
int2 get_tile_offset() const