Blender V4.3
SEQ_time.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2004 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
11struct ListBase;
12struct Scene;
13struct Sequence;
14struct rctf;
15
22void SEQ_timeline_init_boundbox(const Scene *scene, rctf *r_rect);
29void SEQ_timeline_expand_boundbox(const Scene *scene, const ListBase *seqbase, rctf *rect);
37void SEQ_timeline_boundbox(const Scene *scene, const ListBase *seqbase, rctf *r_rect);
42float SEQ_time_sequence_get_fps(Scene *scene, Sequence *seq);
52 int timeline_frame,
53 short side,
54 bool do_skip_mute,
55 bool do_center,
56 bool do_unselected);
66bool SEQ_time_strip_intersects_frame(const Scene *scene, const Sequence *seq, int timeline_frame);
67/* Convert timeline frame so strip frame index. */
68float SEQ_give_frame_index(const Scene *scene, const Sequence *seq, float timeline_frame);
72bool SEQ_time_has_still_frames(const Scene *scene, const Sequence *seq);
76bool SEQ_time_has_left_still_frames(const Scene *scene, const Sequence *seq);
80bool SEQ_time_has_right_still_frames(const Scene *scene, const Sequence *seq);
84int SEQ_time_left_handle_frame_get(const Scene *scene, const Sequence *seq);
88int SEQ_time_right_handle_frame_get(const Scene *scene, const Sequence *seq);
92void SEQ_time_left_handle_frame_set(const Scene *scene, Sequence *seq, int timeline_frame);
97void SEQ_time_right_handle_frame_set(const Scene *scene, Sequence *seq, int timeline_frame);
102int SEQ_time_strip_length_get(const Scene *scene, const Sequence *seq);
106float SEQ_time_start_frame_get(const Sequence *seq);
110float SEQ_time_content_end_frame_get(const Scene *scene, const Sequence *seq);
115void SEQ_time_start_frame_set(const Scene *scene, Sequence *seq, int timeline_frame);
122void SEQ_time_update_meta_strip_range(const Scene *scene, Sequence *seq_meta);
126void SEQ_time_slip_strip(const Scene *scene, Sequence *seq, int delta, float subframe_delta);
130float SEQ_time_media_playback_rate_factor_get(const Scene *scene, const Sequence *seq);
136int SEQ_time_get_rounded_sound_offset(const Scene *scene, const Sequence *seq);
float SEQ_give_frame_index(const Scene *scene, const Sequence *seq, float timeline_frame)
Definition strip_time.cc:60
bool SEQ_time_strip_intersects_frame(const Scene *scene, const Sequence *seq, int timeline_frame)
void SEQ_time_start_frame_set(const Scene *scene, Sequence *seq, int timeline_frame)
int SEQ_time_strip_length_get(const Scene *scene, const Sequence *seq)
bool SEQ_time_has_right_still_frames(const Scene *scene, const Sequence *seq)
bool SEQ_time_has_left_still_frames(const Scene *scene, const Sequence *seq)
bool SEQ_time_has_still_frames(const Scene *scene, const Sequence *seq)
void SEQ_time_right_handle_frame_set(const Scene *scene, Sequence *seq, int timeline_frame)
void SEQ_time_update_meta_strip_range(const Scene *scene, Sequence *seq_meta)
void SEQ_time_left_handle_frame_set(const Scene *scene, Sequence *seq, int timeline_frame)
int SEQ_time_get_rounded_sound_offset(const Scene *scene, const Sequence *seq)
int SEQ_time_find_next_prev_edit(Scene *scene, int timeline_frame, short side, bool do_skip_mute, bool do_center, bool do_unselected)
void SEQ_timeline_expand_boundbox(const Scene *scene, const ListBase *seqbase, rctf *rect)
float SEQ_time_content_end_frame_get(const Scene *scene, const Sequence *seq)
void SEQ_time_slip_strip(const Scene *scene, Sequence *seq, int delta, float subframe_delta)
float SEQ_time_sequence_get_fps(Scene *scene, Sequence *seq)
void SEQ_timeline_init_boundbox(const Scene *scene, rctf *r_rect)
int SEQ_time_left_handle_frame_get(const Scene *scene, const Sequence *seq)
void SEQ_timeline_boundbox(const Scene *scene, const ListBase *seqbase, rctf *r_rect)
float SEQ_time_start_frame_get(const Sequence *seq)
float SEQ_time_media_playback_rate_factor_get(const Scene *scene, const Sequence *seq)
Definition strip_time.cc:38
int SEQ_time_right_handle_frame_get(const Scene *scene, const Sequence *seq)