2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2008-12-14 14:43:08 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2008-12-14 14:43:08 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2008 Blender Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*
|
2009-01-26 09:13:15 +00:00
|
|
|
* Contributor(s): Blender Foundation, Campbell Barton
|
2008-12-14 14:43:08 +00:00
|
|
|
*
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
*/
|
2011-02-27 20:29:51 +00:00
|
|
|
|
|
|
|
/** \file blender/editors/space_sequencer/sequencer_intern.h
|
|
|
|
* \ingroup spseq
|
|
|
|
*/
|
|
|
|
|
2008-12-14 14:43:08 +00:00
|
|
|
#ifndef ED_SEQUENCER_INTERN_H
|
|
|
|
#define ED_SEQUENCER_INTERN_H
|
|
|
|
|
2009-01-26 09:13:15 +00:00
|
|
|
#include "RNA_access.h"
|
|
|
|
#include "DNA_sequence_types.h"
|
|
|
|
|
2008-12-14 14:43:08 +00:00
|
|
|
/* internal exports only */
|
|
|
|
|
2009-01-12 19:02:08 +00:00
|
|
|
struct Sequence;
|
|
|
|
struct bContext;
|
|
|
|
struct rctf;
|
|
|
|
struct SpaceSeq;
|
2009-06-08 10:38:28 +00:00
|
|
|
struct ScrArea;
|
2009-01-12 19:02:08 +00:00
|
|
|
struct ARegion;
|
2009-06-08 10:38:28 +00:00
|
|
|
struct ARegionType;
|
2009-01-12 19:02:08 +00:00
|
|
|
struct Scene;
|
|
|
|
|
2009-06-08 10:38:28 +00:00
|
|
|
/* space_sequencer.c */
|
|
|
|
struct ARegion *sequencer_has_buttons_region(struct ScrArea *sa);
|
|
|
|
|
2009-01-12 19:02:08 +00:00
|
|
|
|
|
|
|
/* sequencer_draw.c */
|
2009-11-26 12:22:43 +00:00
|
|
|
void draw_timeline_seq(const struct bContext *C, struct ARegion *ar);
|
2010-07-08 10:03:29 +00:00
|
|
|
void draw_image_seq(const struct bContext* C, struct Scene *scene,struct ARegion *ar, struct SpaceSeq *sseq, int cfra, int offset);
|
2009-11-26 12:22:43 +00:00
|
|
|
|
2009-01-25 14:53:41 +00:00
|
|
|
void seq_reset_imageofs(struct SpaceSeq *sseq);
|
2009-01-12 19:02:08 +00:00
|
|
|
|
|
|
|
/* sequencer_edit.c */
|
2009-01-20 14:19:39 +00:00
|
|
|
struct View2D;
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void seq_rectf(struct Sequence *seq, struct rctf *rectf);
|
2009-01-12 19:02:08 +00:00
|
|
|
void boundbox_seq(struct Scene *scene, struct rctf *rect);
|
2011-05-12 16:47:36 +00:00
|
|
|
struct Sequence *find_nearest_seq(struct Scene *scene, struct View2D *v2d, int *hand, const int mval[2]);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
struct Sequence *find_neighboring_sequence(struct Scene *scene, struct Sequence *test, int lr, int sel);
|
|
|
|
void deselect_all_seq(struct Scene *scene);
|
|
|
|
void recurs_sel_seq(struct Sequence *seqm);
|
2009-01-20 14:19:39 +00:00
|
|
|
int event_to_efftype(int event);
|
2010-12-03 17:05:21 +00:00
|
|
|
int seq_effect_find_selected(struct Scene *scene, struct Sequence *activeseq, int type, struct Sequence **selseq1, struct Sequence **selseq2, struct Sequence **selseq3, const char **error_str);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
|
2010-05-06 07:19:55 +00:00
|
|
|
/* operator helpers */
|
|
|
|
int sequencer_edit_poll(struct bContext *C);
|
2011-08-12 06:08:22 +00:00
|
|
|
int sequencer_strip_poll(struct bContext *C);
|
|
|
|
int sequencer_strip_has_path_poll(struct bContext *C);
|
2010-07-08 10:03:29 +00:00
|
|
|
int sequencer_view_poll(struct bContext *C);
|
2010-05-06 07:19:55 +00:00
|
|
|
|
2009-01-26 09:13:15 +00:00
|
|
|
/* externs */
|
|
|
|
extern EnumPropertyItem sequencer_prop_effect_types[];
|
2009-01-31 09:58:38 +00:00
|
|
|
extern EnumPropertyItem prop_side_types[];
|
2009-01-26 09:13:15 +00:00
|
|
|
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
/* operators */
|
|
|
|
struct wmOperatorType;
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
struct wmKeyConfig;
|
|
|
|
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void SEQUENCER_OT_cut(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_mute(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_unmute(struct wmOperatorType *ot);
|
2009-01-25 14:53:41 +00:00
|
|
|
void SEQUENCER_OT_lock(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_unlock(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_reload(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_refresh_all(struct wmOperatorType *ot);
|
2010-07-03 22:25:22 +00:00
|
|
|
void SEQUENCER_OT_reassign_inputs(struct wmOperatorType *ot);
|
2010-10-30 12:04:00 +00:00
|
|
|
void SEQUENCER_OT_swap_inputs(struct wmOperatorType *ot);
|
2009-07-08 21:41:35 +00:00
|
|
|
void SEQUENCER_OT_duplicate(struct wmOperatorType *ot);
|
2009-01-21 18:47:09 +00:00
|
|
|
void SEQUENCER_OT_delete(struct wmOperatorType *ot);
|
2011-08-14 03:59:22 +00:00
|
|
|
void SEQUENCER_OT_offset_clear(struct wmOperatorType *ot);
|
2009-04-12 20:32:42 +00:00
|
|
|
void SEQUENCER_OT_images_separate(struct wmOperatorType *ot);
|
2009-01-23 23:14:02 +00:00
|
|
|
void SEQUENCER_OT_meta_toggle(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_meta_make(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_meta_separate(struct wmOperatorType *ot);
|
2009-06-09 21:29:59 +00:00
|
|
|
void SEQUENCER_OT_snap(struct wmOperatorType *ot);
|
2009-10-28 19:53:25 +00:00
|
|
|
void SEQUENCER_OT_previous_edit(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_next_edit(struct wmOperatorType *ot);
|
2009-12-15 10:04:54 +00:00
|
|
|
void SEQUENCER_OT_swap(struct wmOperatorType *ot);
|
2010-06-21 17:37:50 +00:00
|
|
|
void SEQUENCER_OT_swap_data(struct wmOperatorType *ot);
|
2009-11-08 15:03:10 +00:00
|
|
|
void SEQUENCER_OT_rendersize(struct wmOperatorType *ot);
|
2009-01-21 18:47:09 +00:00
|
|
|
|
2009-12-14 21:42:25 +00:00
|
|
|
void SEQUENCER_OT_view_toggle(struct wmOperatorType *ot);
|
2009-01-25 14:53:41 +00:00
|
|
|
void SEQUENCER_OT_view_all(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_view_selected(struct wmOperatorType *ot);
|
2010-06-17 14:22:54 +00:00
|
|
|
void SEQUENCER_OT_view_zoom_ratio(struct wmOperatorType *ot);
|
2010-07-08 10:03:29 +00:00
|
|
|
void SEQUENCER_OT_view_ghost_border(struct wmOperatorType *ot);
|
2009-01-20 14:19:39 +00:00
|
|
|
|
2011-08-12 06:08:22 +00:00
|
|
|
void SEQUENCER_OT_change_effect_input(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_change_effect_type(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_change_path(struct wmOperatorType *ot);
|
|
|
|
|
2009-12-17 14:45:47 +00:00
|
|
|
void SEQUENCER_OT_copy(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_paste(struct wmOperatorType *ot);
|
|
|
|
|
== Sequencer ==
This patch adds:
* support for proxy building again (missing feature from Blender 2.49)
additionally to the way, Blender 2.49 worked, you can select several
strips at once and make Blender build proxies in the background (using
the job system)
Also a new thing: movie proxies are now build into AVI files, and
the proxy system is moved into ImBuf-library, so that other parts
of blender can also benefit from it.
* Timecode support: to fix seeking issues with files, that have
a) varying frame rates
b) very large GOP lengths
c) are broken inbetween
d) use different time code tracks
the proxy builder can now also build timecode indices, which are
used (optionally) for seeking.
For the first time, it is possible, to do frame exact seeking on
all file types.
* Support for different video-streams in one video file (can be
selected in sequencer, other parts of blender can also use it,
but UI has to be added accordingly)
* IMPORTANT: this patch *requires* ffmpeg 0.7 or newer, since
older versions don't support the pkt_pts field, that is essential
for building timecode indices.
Windows and Mac libs are already updated, Linux-users have to build
their own ffmpeg verions until distros keep up.
2011-08-28 14:46:03 +00:00
|
|
|
void SEQUENCER_OT_rebuild_proxy(struct wmOperatorType *ot);
|
|
|
|
|
2009-12-14 21:42:25 +00:00
|
|
|
/* preview specific operators */
|
|
|
|
void SEQUENCER_OT_view_all_preview(struct wmOperatorType *ot);
|
|
|
|
|
2009-01-20 14:19:39 +00:00
|
|
|
/* sequencer_select.c */
|
2012-01-14 07:23:57 +00:00
|
|
|
void SEQUENCER_OT_select_all(struct wmOperatorType *ot);
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
void SEQUENCER_OT_select(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_select_more(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_select_less(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_select_linked(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void SEQUENCER_OT_select_linked_pick(struct wmOperatorType *ot);
|
2009-01-31 09:58:38 +00:00
|
|
|
void SEQUENCER_OT_select_handles(struct wmOperatorType *ot);
|
2009-02-13 14:16:56 +00:00
|
|
|
void SEQUENCER_OT_select_active_side(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void SEQUENCER_OT_select_border(struct wmOperatorType *ot);
|
2009-07-08 21:31:28 +00:00
|
|
|
void SEQUENCER_OT_select_inverse(struct wmOperatorType *ot);
|
2011-09-28 14:12:27 +00:00
|
|
|
void SEQUENCER_OT_select_grouped(struct wmOperatorType *ot);
|
2009-01-20 14:19:39 +00:00
|
|
|
|
|
|
|
/* sequencer_select.c */
|
2009-04-12 20:32:42 +00:00
|
|
|
void SEQUENCER_OT_scene_strip_add(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_movie_strip_add(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_sound_strip_add(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_image_strip_add(struct wmOperatorType *ot);
|
|
|
|
void SEQUENCER_OT_effect_strip_add(struct wmOperatorType *ot);
|
2009-01-20 14:19:39 +00:00
|
|
|
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
/* RNA enums, just to be more readable */
|
|
|
|
enum {
|
2009-02-15 17:24:09 +00:00
|
|
|
SEQ_SIDE_NONE=0,
|
2010-03-22 09:30:00 +00:00
|
|
|
SEQ_SIDE_LEFT,
|
|
|
|
SEQ_SIDE_RIGHT,
|
2009-01-31 09:58:38 +00:00
|
|
|
SEQ_SIDE_BOTH,
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
};
|
|
|
|
enum {
|
2010-03-22 09:30:00 +00:00
|
|
|
SEQ_CUT_SOFT,
|
|
|
|
SEQ_CUT_HARD,
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
};
|
|
|
|
enum {
|
2010-03-22 09:30:00 +00:00
|
|
|
SEQ_SELECTED,
|
|
|
|
SEQ_UNSELECTED,
|
Added back some functionality to the sequencer
- removed static vars _last_seq, last_imagename and last_sounddir, replacing them with with vars in the "Editing" struct. didnt manage to get the active sequence to load so currently thats lost when loading.
- removed flag SEQ_ACTIVE
- Added operators cut, mute, unmute, deselect_all, select_invert, select, select_more, select_less, select_pick_linked, select_linked and borderselect.
2009-01-19 21:42:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* defines used internally */
|
|
|
|
#define SCE_MARKERS 0 // XXX - dummy
|
|
|
|
|
|
|
|
/* sequencer_ops.c */
|
|
|
|
void sequencer_operatortypes(void);
|
Key Configuration
Keymaps are now saveable and configurable from the user preferences, note
that editing one item in a keymap means the whole keymap is now defined by
the user and will not be updated by Blender, an option for syncing might be
added later. The outliner interface is still there, but I will probably
remove it.
There's actually 3 levels now:
* Default builtin key configuration.
* Key configuration loaded from .py file, for configs like Blender 2.4x
or other 3D applications.
* Keymaps edited by the user and saved in .B.blend. These can be saved
to .py files as well to make creating distributable configurations
easier.
Also, user preferences sections were reorganized a bit, now there is:
Interface, Editing, Input, Files and System.
Implementation notes:
* wmKeyConfig was added which represents a key configuration containing
keymaps.
* wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap.
* Modal maps are not wrapped yet.
* User preferences DNA file reading did not support newdataadr() yet,
added this now for reading keymaps.
* Key configuration related settings are now RNA wrapped.
* is_property_set and is_property_hidden python methods were added.
2009-10-08 18:40:03 +00:00
|
|
|
void sequencer_keymap(struct wmKeyConfig *keyconf);
|
2008-12-14 14:43:08 +00:00
|
|
|
|
2009-01-12 19:02:08 +00:00
|
|
|
/* sequencer_scope.c */
|
|
|
|
struct ImBuf *make_waveform_view_from_ibuf(struct ImBuf * ibuf);
|
|
|
|
struct ImBuf *make_sep_waveform_view_from_ibuf(struct ImBuf * ibuf);
|
|
|
|
struct ImBuf *make_vectorscope_view_from_ibuf(struct ImBuf * ibuf);
|
|
|
|
struct ImBuf *make_zebra_view_from_ibuf(struct ImBuf * ibuf, float perc);
|
|
|
|
struct ImBuf *make_histogram_view_from_ibuf(struct ImBuf * ibuf);
|
2008-12-14 14:43:08 +00:00
|
|
|
|
2009-06-08 10:38:28 +00:00
|
|
|
/* sequencer_buttons.c */
|
|
|
|
|
|
|
|
void SEQUENCER_OT_properties(struct wmOperatorType *ot);
|
|
|
|
void sequencer_buttons_register(struct ARegionType *art);
|
|
|
|
|
2008-12-14 14:43:08 +00:00
|
|
|
#endif /* ED_SEQUENCER_INTERN_H */
|
|
|
|
|