|
Blender V5.3
|
Public Member Functions | |
| void | clear () |
| bool | update_resolution (const ImBuf *image_buffer) |
| void | mark_region (const rcti &updated_region) |
| void | mark_chunks_modified (int start_x_chunk, int start_y_chunk, int end_x_chunk, int end_y_chunk) |
| bool | has_modified_chunks () const |
| void | init_chunks (int chunk_x_len_, int chunk_y_len_) |
| void | merge (const Changeset &other) |
| bool | is_modified (int chunk_x, int chunk_y) const |
| BitVector | extract_modified_flags () |
Public Attributes | |
| ChangesetID | changeset_id = 0 |
| int | buffer_width = 0 |
| int | buffer_height = 0 |
| int | chunk_x_len = 0 |
| int | chunk_y_len = 0 |
Dirty chunks of a buffer at a given resolution.
Definition at line 52 of file partial_update.cc.
|
inline |
Definition at line 71 of file partial_update.cc.
References chunk_x_len, chunk_y_len, and init_chunks().
Referenced by blender::imbuf::partial_update::Tracker::mark_full_update().
|
inline |
Definition at line 175 of file partial_update.cc.
|
inline |
Definition at line 131 of file partial_update.cc.
Referenced by blender::imbuf::partial_update::Tracker::ensure_empty_changeset(), and init_chunks().
|
inline |
Definition at line 136 of file partial_update.cc.
References chunk_x_len, chunk_y_len, has_modified_chunks(), and blender::min_ii().
Referenced by clear(), and update_resolution().
|
inline |
Has the given chunk changed inside this changeset.
Definition at line 169 of file partial_update.cc.
References chunk_x_len.
|
inline |
Definition at line 120 of file partial_update.cc.
References chunk_x_len.
Referenced by mark_region().
|
inline |
Definition at line 97 of file partial_update.cc.
References blender::imbuf::partial_update::chunk_number_for_pixel(), chunk_x_len, chunk_y_len, mark_chunks_modified(), blender::max_ii(), blender::min_ii(), blender::rcti::xmax, blender::rcti::xmin, blender::rcti::ymax, and blender::rcti::ymin.
Referenced by blender::imbuf::partial_update::Tracker::mark_region().
|
inline |
Merge the given changeset into the receiver.
Definition at line 155 of file partial_update.cc.
References blender::BLI_assert(), chunk_x_len, and chunk_y_len.
|
inline |
Update the chunk grid to match the buffer resolution.
Definition at line 82 of file partial_update.cc.
References buffer_height, buffer_width, blender::imbuf::partial_update::CHUNK_SIZE, blender::divide_ceil_u(), init_chunks(), blender::ImBuf::x, and blender::ImBuf::y.
Referenced by blender::imbuf::partial_update::Tracker::update_resolution().
| int blender::imbuf::partial_update::Changeset::buffer_height = 0 |
Height of the buffer in pixels.
Definition at line 65 of file partial_update.cc.
Referenced by update_resolution().
| int blender::imbuf::partial_update::Changeset::buffer_width = 0 |
Width of the buffer in pixels.
Definition at line 63 of file partial_update.cc.
Referenced by update_resolution().
| ChangesetID blender::imbuf::partial_update::Changeset::changeset_id = 0 |
Global changeset ID for these changes.
Definition at line 61 of file partial_update.cc.
Referenced by blender::imbuf::partial_update::Tracker::commit_current_changeset().
| int blender::imbuf::partial_update::Changeset::chunk_x_len = 0 |
Number of chunks along the x-axis.
Definition at line 67 of file partial_update.cc.
Referenced by clear(), init_chunks(), is_modified(), mark_chunks_modified(), mark_region(), and merge().
| int blender::imbuf::partial_update::Changeset::chunk_y_len = 0 |
Number of chunks along the y-axis.
Definition at line 69 of file partial_update.cc.
Referenced by clear(), init_chunks(), mark_region(), and merge().