Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/film.h
| Show All 32 Lines | |||||
| typedef enum FilterType { | typedef enum FilterType { | ||||
| FILTER_BOX, | FILTER_BOX, | ||||
| FILTER_GAUSSIAN, | FILTER_GAUSSIAN, | ||||
| FILTER_BLACKMAN_HARRIS, | FILTER_BLACKMAN_HARRIS, | ||||
| FILTER_NUM_TYPES, | FILTER_NUM_TYPES, | ||||
| } FilterType; | } FilterType; | ||||
| class Pass { | class Pass : public Node { | ||||
| public: | public: | ||||
| NODE_DECLARE | |||||
| Pass(); | |||||
| PassType type; | PassType type; | ||||
| int components; | int components; | ||||
| bool filter; | bool filter; | ||||
| bool exposure; | bool exposure; | ||||
| PassType divide_type; | PassType divide_type; | ||||
| string name; | ustring name; | ||||
| static void add(PassType type, vector<Pass> &passes, const char *name = NULL); | static void add(PassType type, vector<Pass> &passes, const char *name = NULL); | ||||
| static bool equals(const vector<Pass> &A, const vector<Pass> &B); | static bool equals(const vector<Pass> &A, const vector<Pass> &B); | ||||
| static bool contains(const vector<Pass> &passes, PassType); | static bool contains(const vector<Pass> &passes, PassType); | ||||
| }; | }; | ||||
| class Film : public Node { | class Film : public Node { | ||||
| public: | public: | ||||
| NODE_DECLARE | NODE_DECLARE | ||||
| float exposure; | float exposure; | ||||
| vector<Pass> passes; | |||||
| bool denoising_data_pass; | bool denoising_data_pass; | ||||
| bool denoising_clean_pass; | bool denoising_clean_pass; | ||||
| bool denoising_prefiltered_pass; | bool denoising_prefiltered_pass; | ||||
| int denoising_flags; | int denoising_flags; | ||||
| float pass_alpha_threshold; | float pass_alpha_threshold; | ||||
| PassType display_pass; | PassType display_pass; | ||||
| int pass_stride; | int pass_stride; | ||||
| Show All 18 Lines | public: | ||||
| Film(); | Film(); | ||||
| ~Film(); | ~Film(); | ||||
| void device_update(Device *device, DeviceScene *dscene, Scene *scene); | void device_update(Device *device, DeviceScene *dscene, Scene *scene); | ||||
| void device_free(Device *device, DeviceScene *dscene, Scene *scene); | void device_free(Device *device, DeviceScene *dscene, Scene *scene); | ||||
| bool modified(const Film &film); | bool modified(const Film &film); | ||||
| void tag_passes_update(Scene *scene, const vector<Pass> &passes_, bool update_passes = true); | |||||
| void tag_update(Scene *scene); | void tag_update(Scene *scene); | ||||
| int get_aov_offset(string name, bool &is_color); | |||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif /* __FILM_H__ */ | #endif /* __FILM_H__ */ | ||||