|
Blender V4.5
|
Load the ImageTile and ImBuf associated with the partial change. More...
#include <BKE_image_partial_update.hh>
Inherits blender::bke::image::partial_update::AbstractTileData.
Public Member Functions | |
| ImageTileData (Image *image, ImageUser *image_user) | |
| void | init_data (TileNumber new_tile_number) override |
| Load the data for the given tile_number. | |
| void | free_data () override |
| Unload the data that has been loaded. | |
Public Attributes | |
| Image * | image |
| Not owned Image that is being iterated over. | |
| ImageUser | image_user = {nullptr} |
| Local copy of the image user. | |
| ImageTile * | tile = nullptr |
| ImageTile associated with the loaded tile. Data is not owned by this instance but by the image. | |
| ImBuf * | tile_buffer = nullptr |
| ImBuf of the loaded tile. | |
| void * | tile_buffer_lock = nullptr |
Load the ImageTile and ImBuf associated with the partial change.
Definition at line 132 of file BKE_image_partial_update.hh.
|
inline |
Definition at line 161 of file BKE_image_partial_update.hh.
References ImageUser::framenr, image, and image_user.
|
inlineoverridevirtual |
Unload the data that has been loaded.
Invoked when changes are on a different tile compared to the previous tile or when finished iterating over the changes.
Implements blender::bke::image::partial_update::AbstractTileData.
Definition at line 180 of file BKE_image_partial_update.hh.
References BKE_image_release_ibuf(), image, tile, tile_buffer, and tile_buffer_lock.
|
inlineoverridevirtual |
Load the data for the given tile_number.
Invoked when changes are on a different tile compared to the previous tile..
Implements blender::bke::image::partial_update::AbstractTileData.
Definition at line 173 of file BKE_image_partial_update.hh.
References BKE_image_acquire_ibuf(), BKE_image_get_tile, image, image_user, tile, tile_buffer, and tile_buffer_lock.
| Image* blender::bke::image::partial_update::ImageTileData::image |
Not owned Image that is being iterated over.
Definition at line 137 of file BKE_image_partial_update.hh.
Referenced by free_data(), ImageTileData(), and init_data().
Local copy of the image user.
The local copy is required so we don't change the image user of the caller. We need to change it in order to request data for a specific tile.
Definition at line 145 of file BKE_image_partial_update.hh.
Referenced by ImageTileData(), and init_data().
ImageTile associated with the loaded tile. Data is not owned by this instance but by the image.
Definition at line 151 of file BKE_image_partial_update.hh.
Referenced by free_data(), and init_data().
ImBuf of the loaded tile.
Can be nullptr when the file doesn't exist or when the tile hasn't been initialized.
Definition at line 158 of file BKE_image_partial_update.hh.
Referenced by free_data(), and init_data().
| void* blender::bke::image::partial_update::ImageTileData::tile_buffer_lock = nullptr |
Definition at line 159 of file BKE_image_partial_update.hh.
Referenced by free_data(), and init_data().