Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sequencer.c
| Show First 20 Lines • Show All 1,118 Lines • ▼ Show 20 Lines | static void rna_SequenceEditor_overlay_frame_set(PointerRNA *ptr, int value) | ||||
| if (ed->over_flag & SEQ_EDIT_OVERLAY_ABS) { | if (ed->over_flag & SEQ_EDIT_OVERLAY_ABS) { | ||||
| ed->over_cfra = (scene->r.cfra + value); | ed->over_cfra = (scene->r.cfra + value); | ||||
| } | } | ||||
| else { | else { | ||||
| ed->over_ofs = value; | ed->over_ofs = value; | ||||
| } | } | ||||
| } | } | ||||
| static void rna_SequenceEditor_display_stack(ID *id, Editing *ed, Sequence *seqm) | |||||
| { | |||||
| Scene *scene = (Scene *)id; | |||||
ISS: Eh, what is "sentinel"?
Also add fullstop at the end of comments. | |||||
| if (seqm) { /* Meta sequence */ | |||||
| ed = SEQ_editing_get(scene, false); | |||||
| } | |||||
| SEQ_display_stack(ed, seqm); | |||||
| WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene); | |||||
| } | |||||
Done Inline ActionsYou can't just clear ListBase, you will have to free elements or you will cause memory leak. BLI_freelistN does free elements and removes them from list. ISS: You can't just clear `ListBase`, you will have to free elements or you will cause memory leak. | |||||
| static int modifier_seq_cmp_fn(Sequence *seq, void *arg_pt) | static int modifier_seq_cmp_fn(Sequence *seq, void *arg_pt) | ||||
| { | { | ||||
| SequenceSearchData *data = arg_pt; | SequenceSearchData *data = arg_pt; | ||||
| if (BLI_findindex(&seq->modifiers, data->data) != -1) { | if (BLI_findindex(&seq->modifiers, data->data) != -1) { | ||||
| data->seq = seq; | data->seq = seq; | ||||
| return -1; /* done so bail out */ | return -1; /* done so bail out */ | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 824 Lines • ▼ Show 20 Lines | static void rna_def_sequence(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text(prop, "Override Cache Settings", "Override global cache settings"); | RNA_def_property_ui_text(prop, "Override Cache Settings", "Override global cache settings"); | ||||
| RNA_api_sequence_strip(srna); | RNA_api_sequence_strip(srna); | ||||
| } | } | ||||
| static void rna_def_editor(BlenderRNA *brna) | static void rna_def_editor(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| FunctionRNA *func; | |||||
| PropertyRNA *parm; | |||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem editing_storage_items[] = { | static const EnumPropertyItem editing_storage_items[] = { | ||||
| {0, "PER_STRIP", 0, "Per Strip", "Store proxies using per strip settings"}, | {0, "PER_STRIP", 0, "Per Strip", "Store proxies using per strip settings"}, | ||||
| {SEQ_EDIT_PROXY_DIR_STORAGE, | {SEQ_EDIT_PROXY_DIR_STORAGE, | ||||
| "PROJECT", | "PROJECT", | ||||
| 0, | 0, | ||||
| "Project", | "Project", | ||||
| ▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | static void rna_def_editor(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_prefetch", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_prefetch", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "cache_flag", SEQ_CACHE_PREFETCH_ENABLE); | RNA_def_property_boolean_sdna(prop, NULL, "cache_flag", SEQ_CACHE_PREFETCH_ENABLE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Prefetch Frames", | "Prefetch Frames", | ||||
| "Render frames ahead of current frame in the background for faster playback"); | "Render frames ahead of current frame in the background for faster playback"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, NULL); | ||||
| /* functions */ | |||||
| func = RNA_def_function(srna, "display_stack", "rna_SequenceEditor_display_stack"); | |||||
| RNA_def_function_flag(func, FUNC_USE_SELF_ID); | |||||
| RNA_def_function_ui_description(func, "Display sequences stack"); | |||||
| parm = RNA_def_pointer(func, | |||||
| "meta_sequence", | |||||
| "Sequence", | |||||
| "Meta Sequence", | |||||
| "Meta to display its stack"); | |||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | |||||
| } | } | ||||
| static void rna_def_filter_video(StructRNA *srna) | static void rna_def_filter_video(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static const EnumPropertyItem alpha_mode_items[] = { | static const EnumPropertyItem alpha_mode_items[] = { | ||||
| {SEQ_ALPHA_STRAIGHT, | {SEQ_ALPHA_STRAIGHT, | ||||
| ▲ Show 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | static void rna_def_movie(BlenderRNA *brna) | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| srna = RNA_def_struct(brna, "MovieSequence", "Sequence"); | srna = RNA_def_struct(brna, "MovieSequence", "Sequence"); | ||||
| RNA_def_struct_ui_text(srna, "Movie Sequence", "Sequence strip to load a video"); | RNA_def_struct_ui_text(srna, "Movie Sequence", "Sequence strip to load a video"); | ||||
| RNA_def_struct_sdna(srna, "Sequence"); | RNA_def_struct_sdna(srna, "Sequence"); | ||||
| prop = RNA_def_property(srna, "mpeg_preseek", PROP_INT, PROP_NONE); | |||||
| RNA_def_property_int_sdna(prop, NULL, "anim_preseek"); | |||||
| RNA_def_property_range(prop, 0, 50); | |||||
| RNA_def_property_ui_text(prop, "MPEG Preseek", "For MPEG movies, preseek this many frames"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, NULL); | |||||
| prop = RNA_def_property(srna, "stream_index", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "stream_index", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "streamindex"); | RNA_def_property_int_sdna(prop, NULL, "streamindex"); | ||||
| RNA_def_property_range(prop, 0, 20); | RNA_def_property_range(prop, 0, 20); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Stream Index", | "Stream Index", | ||||
| "For files with several movie streams, use the stream with the given index"); | "For files with several movie streams, use the stream with the given index"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_reopen_files_update"); | RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_reopen_files_update"); | ||||
| ▲ Show 20 Lines • Show All 909 Lines • Show Last 20 Lines | |||||
Eh, what is "sentinel"?
Also add fullstop at the end of comments.