Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_intern.h
| Show All 22 Lines | |||||
| struct StripElem; | struct StripElem; | ||||
| struct View2D; | struct View2D; | ||||
| struct bContext; | struct bContext; | ||||
| struct rctf; | struct rctf; | ||||
| struct wmOperator; | struct wmOperator; | ||||
| struct ScrArea; | struct ScrArea; | ||||
| struct Editing; | struct Editing; | ||||
| struct ListBase; | struct ListBase; | ||||
| struct VideoEdit; | |||||
| #define DEFAULT_IMG_STRIP_LENGTH 25 /* XXX arbitrary but ok for now. */ | #define DEFAULT_IMG_STRIP_LENGTH 25 /* XXX arbitrary but ok for now. */ | ||||
| #define OVERLAP_ALPHA 180 | #define OVERLAP_ALPHA 180 | ||||
| typedef struct SeqChannelDrawContext { | typedef struct SeqChannelDrawContext { | ||||
| const struct bContext *C; | const struct bContext *C; | ||||
| struct ScrArea *area; | struct ScrArea *area; | ||||
| struct ARegion *region; | struct ARegion *region; | ||||
| struct ARegion *timeline_region; | struct ARegion *timeline_region; | ||||
| struct View2D *v2d; | struct View2D *v2d; | ||||
| struct View2D *timeline_region_v2d; | struct View2D *timeline_region_v2d; | ||||
| struct Scene *scene; | struct VideoEdit *video_edit; | ||||
| struct Editing *ed; | |||||
| struct ListBase *seqbase; /* Displayed seqbase. */ | struct ListBase *seqbase; /* Displayed seqbase. */ | ||||
| struct ListBase *channels; /* Displayed channels. */ | struct ListBase *channels; /* Displayed channels. */ | ||||
| float draw_offset; | float draw_offset; | ||||
| float channel_height; | float channel_height; | ||||
| float frame_width; | float frame_width; | ||||
| float scale; | float scale; | ||||
| } SeqChannelDrawContext; | } SeqChannelDrawContext; | ||||
| /* sequencer_draw.c */ | /* sequencer_draw.c */ | ||||
| void draw_timeline_seq(const struct bContext *C, struct ARegion *region); | void draw_timeline_seq(const struct bContext *C, struct ARegion *region); | ||||
| void draw_timeline_seq_display(const struct bContext *C, struct ARegion *region); | void draw_timeline_seq_display(const struct bContext *C, struct ARegion *region); | ||||
| void sequencer_draw_preview(const struct bContext *C, | void sequencer_draw_preview(const struct bContext *C, | ||||
| struct Scene *scene, | struct VideoEdit *video_edit, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| struct SpaceSeq *sseq, | struct SpaceSeq *sseq, | ||||
| int timeline_frame, | int timeline_frame, | ||||
| int offset, | int offset, | ||||
| bool draw_overlay, | bool draw_overlay, | ||||
| bool draw_backdrop); | bool draw_backdrop); | ||||
| void color3ubv_from_seq(const struct Scene *curscene, | void color3ubv_from_seq(const struct VideoEdit *video_edit, | ||||
| const struct Sequence *seq, | const struct Sequence *seq, | ||||
| bool show_strip_color_tag, | bool show_strip_color_tag, | ||||
| uchar r_col[3]); | uchar r_col[3]); | ||||
| void sequencer_special_update_set(Sequence *seq); | void sequencer_special_update_set(Sequence *seq); | ||||
| /* Get handle width in 2d-View space. */ | /* Get handle width in 2d-View space. */ | ||||
| float sequence_handle_size_get_clamped(const struct Scene *scene, | float sequence_handle_size_get_clamped(const struct VideoEdit *video_edit, | ||||
| struct Sequence *seq, | struct Sequence *seq, | ||||
| float pixelx); | float pixelx); | ||||
| /* UNUSED */ | /* UNUSED */ | ||||
| /* void seq_reset_imageofs(struct SpaceSeq *sseq); */ | /* void seq_reset_imageofs(struct SpaceSeq *sseq); */ | ||||
| /** | /** | ||||
| * Rendering using opengl will change the current viewport/context. | * Rendering using opengl will change the current viewport/context. | ||||
| * This is why we need the \a region, to set back the render area. | * This is why we need the \a region, to set back the render area. | ||||
| * | * | ||||
| * TODO: do not rely on such hack and just update the \a ibuf outside of | * TODO: do not rely on such hack and just update the \a ibuf outside of | ||||
| * the UI drawing code. | * the UI drawing code. | ||||
| */ | */ | ||||
| struct ImBuf *sequencer_ibuf_get(struct Main *bmain, | struct ImBuf *sequencer_ibuf_get(struct Main *bmain, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| struct Depsgraph *depsgraph, | struct Depsgraph *depsgraph, | ||||
| struct Scene *scene, | struct VideoEdit *video_edit, | ||||
| struct SpaceSeq *sseq, | struct SpaceSeq *sseq, | ||||
| int timeline_frame, | int timeline_frame, | ||||
| int frame_ofs, | int frame_ofs, | ||||
| const char *viewname); | const char *viewname); | ||||
| /* sequencer_thumbnails.c */ | /* sequencer_thumbnails.c */ | ||||
| void last_displayed_thumbnails_list_free(void *val); | void last_displayed_thumbnails_list_free(void *val); | ||||
| void draw_seq_strip_thumbnail(struct View2D *v2d, | void draw_seq_strip_thumbnail(struct View2D *v2d, | ||||
| const struct bContext *C, | const struct bContext *C, | ||||
| struct Scene *scene, | struct VideoEdit *video_edit, | ||||
| struct Sequence *seq, | struct Sequence *seq, | ||||
| float y1, | float y1, | ||||
| float y2, | float y2, | ||||
| float pixelx, | float pixelx, | ||||
| float pixely); | float pixely); | ||||
| /* sequencer_draw_channels.c */ | /* sequencer_draw_channels.c */ | ||||
| void draw_channels(const struct bContext *C, struct ARegion *region); | void draw_channels(const struct bContext *C, struct ARegion *region); | ||||
| void channel_draw_context_init(const struct bContext *C, | void channel_draw_context_init(const struct bContext *C, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| struct SeqChannelDrawContext *r_context); | struct SeqChannelDrawContext *r_context); | ||||
| /* sequencer_edit.c */ | /* sequencer_edit.c */ | ||||
| struct View2D; | struct View2D; | ||||
| void seq_rectf(const struct Scene *scene, struct Sequence *seq, struct rctf *rectf); | void seq_rectf(const struct VideoEdit *video_edit, struct Sequence *seq, struct rctf *rectf); | ||||
| struct Sequence *find_nearest_seq(struct Scene *scene, | struct Sequence *find_nearest_seq(struct VideoEdit *video_edit, | ||||
| struct View2D *v2d, | struct View2D *v2d, | ||||
| int *hand, | int *hand, | ||||
| const int mval[2]); | const int mval[2]); | ||||
| struct Sequence *find_neighboring_sequence(struct Scene *scene, | struct Sequence *find_neighboring_sequence(struct VideoEdit *video_edit, | ||||
| struct Sequence *test, | struct Sequence *test, | ||||
| int lr, | int lr, | ||||
| int sel); | int sel); | ||||
| void recurs_sel_seq(struct Sequence *seq_meta); | void recurs_sel_seq(struct Sequence *seq_meta); | ||||
| int seq_effect_find_selected(struct Scene *scene, | int seq_effect_find_selected(struct VideoEdit *video_edit, | ||||
| struct Sequence *activeseq, | struct Sequence *activeseq, | ||||
| int type, | int type, | ||||
| struct Sequence **r_selseq1, | struct Sequence **r_selseq1, | ||||
| struct Sequence **r_selseq2, | struct Sequence **r_selseq2, | ||||
| struct Sequence **r_selseq3, | struct Sequence **r_selseq3, | ||||
| const char **r_error_str); | const char **r_error_str); | ||||
| /* Operator helpers. */ | /* Operator helpers. */ | ||||
| ▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines | |||||