Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/image.h
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public: | ||||
| void tag_reload_image(const string& filename, | void tag_reload_image(const string& filename, | ||||
| void *builtin_data, | void *builtin_data, | ||||
| InterpolationType interpolation, | InterpolationType interpolation, | ||||
| ExtensionType extension, | ExtensionType extension, | ||||
| bool use_alpha); | bool use_alpha); | ||||
| bool get_image_metadata(const string& filename, | bool get_image_metadata(const string& filename, | ||||
| void *builtin_data, | void *builtin_data, | ||||
| ImageMetaData& metadata); | ImageMetaData& metadata); | ||||
| bool get_image_metadata(int flat_slot, | |||||
| ImageMetaData& metadata); | |||||
| void device_update(Device *device, | void device_update(Device *device, | ||||
| Scene *scene, | Scene *scene, | ||||
| Progress& progress); | Progress& progress); | ||||
| void device_update_slot(Device *device, | void device_update_slot(Device *device, | ||||
| Scene *scene, | Scene *scene, | ||||
| int flat_slot, | int flat_slot, | ||||
| Progress *progress); | Progress *progress); | ||||
| Show All 23 Lines | function<bool(const string &filename, | ||||
| void *data, | void *data, | ||||
| float *pixels, | float *pixels, | ||||
| const size_t pixels_size, | const size_t pixels_size, | ||||
| const bool free_cache)> builtin_image_float_pixels_cb; | const bool free_cache)> builtin_image_float_pixels_cb; | ||||
| struct Image { | struct Image { | ||||
| string filename; | string filename; | ||||
| void *builtin_data; | void *builtin_data; | ||||
| bool builtin_free_cache; | ImageMetaData metadata; | ||||
| bool use_alpha; | bool use_alpha; | ||||
| bool need_load; | bool need_load; | ||||
| bool animated; | bool animated; | ||||
| float frame; | float frame; | ||||
| InterpolationType interpolation; | InterpolationType interpolation; | ||||
| ExtensionType extension; | ExtensionType extension; | ||||
| Show All 10 Lines | private: | ||||
| thread_mutex device_mutex; | thread_mutex device_mutex; | ||||
| int animation_frame; | int animation_frame; | ||||
| vector<Image*> images[IMAGE_DATA_NUM_TYPES]; | vector<Image*> images[IMAGE_DATA_NUM_TYPES]; | ||||
| void *osl_texture_system; | void *osl_texture_system; | ||||
| bool file_load_image_generic(Image *img, | bool file_load_image_generic(Image *img, | ||||
| ImageInput **in, | ImageInput **in); | ||||
| int &width, | |||||
| int &height, | |||||
| int &depth, | |||||
| int &components); | |||||
| template<TypeDesc::BASETYPE FileFormat, | template<TypeDesc::BASETYPE FileFormat, | ||||
| typename StorageType, | typename StorageType, | ||||
| typename DeviceType> | typename DeviceType> | ||||
| bool file_load_image(Image *img, | bool file_load_image(Image *img, | ||||
| ImageDataType type, | ImageDataType type, | ||||
| int texture_limit, | int texture_limit, | ||||
| device_vector<DeviceType>& tex_img); | device_vector<DeviceType>& tex_img); | ||||
| Show All 20 Lines | |||||