Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,574 Lines • ▼ Show 20 Lines | |||||
| #ifdef WITH_OPENJPEG | #ifdef WITH_OPENJPEG | ||||
| static EnumPropertyItem jp2_codec_items[] = { | static EnumPropertyItem jp2_codec_items[] = { | ||||
| {R_IMF_JP2_CODEC_JP2, "JP2", 0, "JP2", ""}, | {R_IMF_JP2_CODEC_JP2, "JP2", 0, "JP2", ""}, | ||||
| {R_IMF_JP2_CODEC_J2K, "J2K", 0, "J2K", ""}, | {R_IMF_JP2_CODEC_J2K, "J2K", 0, "J2K", ""}, | ||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| #ifdef WITH_TIFF | |||||
| static EnumPropertyItem tiff_compression_items[] = { | |||||
| {R_IMF_TIFF_FLAG_NONE, "NONE", 0, "None", ""}, | |||||
| {R_IMF_TIFF_FLAG_DEFLATE, "DEFLATE", 0, "Deflate", ""}, | |||||
| {R_IMF_TIFF_FLAG_LZW, "LZW", 0, "LZW", ""}, | |||||
| {R_IMF_TIFF_FLAG_PACKBITS, "PACKBITS", 0, "Pack Bits", ""}, | |||||
| {0, NULL, 0, NULL, NULL} | |||||
| }; | |||||
| #endif | |||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| rna_def_image_format_stereo3d_format(brna); | rna_def_image_format_stereo3d_format(brna); | ||||
| srna = RNA_def_struct(brna, "ImageFormatSettings", NULL); | srna = RNA_def_struct(brna, "ImageFormatSettings", NULL); | ||||
| RNA_def_struct_sdna(srna, "ImageFormatData"); | RNA_def_struct_sdna(srna, "ImageFormatData"); | ||||
| RNA_def_struct_nested(brna, srna, "Scene"); | RNA_def_struct_nested(brna, srna, "Scene"); | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | #ifdef WITH_OPENJPEG | ||||
| prop = RNA_def_property(srna, "jpeg2k_codec", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "jpeg2k_codec", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "jp2_codec"); | RNA_def_property_enum_sdna(prop, NULL, "jp2_codec"); | ||||
| RNA_def_property_enum_items(prop, jp2_codec_items); | RNA_def_property_enum_items(prop, jp2_codec_items); | ||||
| RNA_def_property_ui_text(prop, "Codec", "Codec settings for Jpek2000"); | RNA_def_property_ui_text(prop, "Codec", "Codec settings for Jpek2000"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | ||||
| #endif | #endif | ||||
| #ifdef WITH_TIFF | |||||
| /* TIFF */ | |||||
| prop = RNA_def_property(srna, "tiff_compression", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "tiff_flag"); | |||||
| RNA_def_property_enum_items(prop, tiff_compression_items); | |||||
| RNA_def_property_ui_text(prop, "Compression", "Compression mode for TIFF"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | |||||
| #endif | |||||
| /* Cineon and DPX */ | /* Cineon and DPX */ | ||||
| prop = RNA_def_property(srna, "use_cineon_log", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_cineon_log", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "cineon_flag", R_IMF_CINEON_FLAG_LOG); | RNA_def_property_boolean_sdna(prop, NULL, "cineon_flag", R_IMF_CINEON_FLAG_LOG); | ||||
| RNA_def_property_ui_text(prop, "Log", "Convert to logarithmic color space"); | RNA_def_property_ui_text(prop, "Log", "Convert to logarithmic color space"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL); | ||||
| prop = RNA_def_property(srna, "cineon_black", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "cineon_black", PROP_INT, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 1,943 Lines • Show Last 20 Lines | |||||