Blender
V3.3
|
Dirty chunks of an ImageTile. More...
Public Member Functions | |
void | clear () |
bool | update_resolution (const ImBuf *image_buffer) |
Update the resolution of the tile. More... | |
void | mark_region (const rcti *updated_region) |
void | mark_chunks_dirty (int start_x_chunk, int start_y_chunk, int end_x_chunk, int end_y_chunk) |
bool | has_dirty_chunks () const |
void | init_chunks (int chunk_x_len_, int chunk_y_len_) |
void | merge (const TileChangeset &other) |
Merge the given changeset into the receiver. More... | |
bool | is_chunk_dirty (int chunk_x, int chunk_y) const |
has a chunk changed inside this changeset. More... | |
Public Attributes | |
int | tile_width |
Width of the tile in pixels. More... | |
int | tile_height |
Height of the tile in pixels. More... | |
int | chunk_x_len |
Number of chunks along the x-axis. More... | |
int | chunk_y_len |
Number of chunks along the y-axis. More... | |
TileNumber | tile_number |
Dirty chunks of an ImageTile.
Internally dirty tiles are grouped together in change sets to make sure that the correct answer can be built for different users reducing the amount of merges.
Definition at line 162 of file image_partial_update.cc.
|
inline |
Definition at line 181 of file image_partial_update.cc.
References chunk_x_len, chunk_y_len, and init_chunks().
|
inline |
Definition at line 248 of file image_partial_update.cc.
Referenced by init_chunks(), blender::bke::image::partial_update::PartialUpdateRegisterImpl::mark_region(), and blender::bke::image::partial_update::PartialUpdateRegisterImpl::update_resolution().
|
inline |
Definition at line 253 of file image_partial_update.cc.
References chunk_x_len, chunk_y_len, has_dirty_chunks(), and min_ii().
Referenced by clear(), and update_resolution().
|
inline |
has a chunk changed inside this changeset.
Definition at line 287 of file image_partial_update.cc.
References chunk_x_len.
|
inline |
Definition at line 237 of file image_partial_update.cc.
References chunk_x_len.
Referenced by mark_region().
|
inline |
Definition at line 207 of file image_partial_update.cc.
References blender::bke::image::partial_update::chunk_number_for_pixel(), chunk_x_len, chunk_y_len, mark_chunks_dirty(), max_ii(), min_ii(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by blender::bke::image::partial_update::PartialUpdateRegisterImpl::mark_region().
|
inline |
Merge the given changeset into the receiver.
Definition at line 273 of file image_partial_update.cc.
References BLI_assert, chunk_x_len, and chunk_y_len.
|
inline |
Update the resolution of the tile.
Definition at line 192 of file image_partial_update.cc.
References blender::bke::image::partial_update::CHUNK_SIZE, chunk_x_len, chunk_y_len, init_chunks(), tile_height, tile_width, ImBuf::x, and ImBuf::y.
Referenced by blender::bke::image::partial_update::PartialUpdateRegisterImpl::update_resolution().
int blender::bke::image::partial_update::TileChangeset::chunk_x_len |
Number of chunks along the x-axis.
Definition at line 175 of file image_partial_update.cc.
Referenced by blender::bke::image::partial_update::PartialUpdateRegisterImpl::changed_tile_chunks_since(), clear(), init_chunks(), is_chunk_dirty(), mark_chunks_dirty(), mark_region(), merge(), and update_resolution().
int blender::bke::image::partial_update::TileChangeset::chunk_y_len |
Number of chunks along the y-axis.
Definition at line 177 of file image_partial_update.cc.
Referenced by blender::bke::image::partial_update::PartialUpdateRegisterImpl::changed_tile_chunks_since(), clear(), init_chunks(), mark_region(), merge(), and update_resolution().
int blender::bke::image::partial_update::TileChangeset::tile_height |
Height of the tile in pixels.
Definition at line 173 of file image_partial_update.cc.
Referenced by update_resolution().
TileNumber blender::bke::image::partial_update::TileChangeset::tile_number |
Definition at line 179 of file image_partial_update.cc.
Referenced by blender::bke::image::partial_update::Changeset::operator[]().
int blender::bke::image::partial_update::TileChangeset::tile_width |
Width of the tile in pixels.
Definition at line 171 of file image_partial_update.cc.
Referenced by update_resolution().