Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/image.h
| Show All 33 Lines | |||||
| class ImageHandle; | class ImageHandle; | ||||
| class ImageKey; | class ImageKey; | ||||
| class ImageMetaData; | class ImageMetaData; | ||||
| class ImageManager; | class ImageManager; | ||||
| class Progress; | class Progress; | ||||
| class RenderStats; | class RenderStats; | ||||
| class Scene; | class Scene; | ||||
| class ColorSpaceProcessor; | class ColorSpaceProcessor; | ||||
| class VDBImageLoader; | |||||
| /* Image Parameters */ | /* Image Parameters */ | ||||
| class ImageParams { | class ImageParams { | ||||
| public: | public: | ||||
| bool animated; | bool animated; | ||||
| InterpolationType interpolation; | InterpolationType interpolation; | ||||
| ExtensionType extension; | ExtensionType extension; | ||||
| ImageAlphaType alpha_type; | ImageAlphaType alpha_type; | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | public: | ||||
| /* Free any memory used for loading metadata and pixels. */ | /* Free any memory used for loading metadata and pixels. */ | ||||
| virtual void cleanup(){}; | virtual void cleanup(){}; | ||||
| /* Compare avoid loading the same image multiple times. */ | /* Compare avoid loading the same image multiple times. */ | ||||
| virtual bool equals(const ImageLoader &other) const = 0; | virtual bool equals(const ImageLoader &other) const = 0; | ||||
| static bool equals(const ImageLoader *a, const ImageLoader *b); | static bool equals(const ImageLoader *a, const ImageLoader *b); | ||||
| virtual bool is_vdb_loader() const; | |||||
| /* Work around for no RTTI. */ | /* Work around for no RTTI. */ | ||||
| }; | }; | ||||
| /* Image Handle | /* Image Handle | ||||
| * | * | ||||
| * Access handle for image in the image manager. Multiple shader nodes may | * Access handle for image in the image manager. Multiple shader nodes may | ||||
| * share the same image, and this class handles reference counting for that. */ | * share the same image, and this class handles reference counting for that. */ | ||||
| class ImageHandle { | class ImageHandle { | ||||
| Show All 9 Lines | public: | ||||
| bool empty(); | bool empty(); | ||||
| int num_tiles(); | int num_tiles(); | ||||
| ImageMetaData metadata(); | ImageMetaData metadata(); | ||||
| int svm_slot(const int tile_index = 0) const; | int svm_slot(const int tile_index = 0) const; | ||||
| device_texture *image_memory(const int tile_index = 0) const; | device_texture *image_memory(const int tile_index = 0) const; | ||||
| VDBImageLoader *vdb_loader(const int tile_index = 0) const; | |||||
| protected: | protected: | ||||
| vector<int> tile_slots; | vector<int> tile_slots; | ||||
| ImageManager *manager; | ImageManager *manager; | ||||
| friend class ImageManager; | friend class ImageManager; | ||||
| }; | }; | ||||
| /* Image Manager | /* Image Manager | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||