|
Blender V5.0
|
Dirty chunks of an ImageTile. More...
Public Member Functions | |
| void | clear () |
| bool | update_resolution (const ImBuf *image_buffer) |
| Update the resolution of the tile. | |
| 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. | |
| bool | is_chunk_dirty (int chunk_x, int chunk_y) const |
| has a chunk changed inside this changeset. | |
Public Attributes | |
| int | tile_width |
| Width of the tile in pixels. | |
| int | tile_height |
| Height of the tile in pixels. | |
| int | chunk_x_len |
| Number of chunks along the x-axis. | |
| int | chunk_y_len |
| Number of chunks along the y-axis. | |
| 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 163 of file image_partial_update.cc.
|
inline |
Definition at line 182 of file image_partial_update.cc.
References chunk_x_len, chunk_y_len, and init_chunks().
|
inline |
Definition at line 249 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 254 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 288 of file image_partial_update.cc.
References chunk_x_len.
|
inline |
Definition at line 238 of file image_partial_update.cc.
References chunk_x_len.
Referenced by mark_region().
|
inline |
Definition at line 208 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 274 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 193 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 176 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 178 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 174 of file image_partial_update.cc.
Referenced by update_resolution().
| TileNumber blender::bke::image::partial_update::TileChangeset::tile_number |
Definition at line 180 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 172 of file image_partial_update.cc.
Referenced by update_resolution().