Blender  V2.93
strip_time.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2004 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 struct ListBase;
31 struct Scene;
32 struct Sequence;
33 
34 float seq_give_frame_index(struct Sequence *seq, float timeline_frame);
35 void seq_update_sound_bounds_recursive(struct Scene *scene, struct Sequence *metaseq);
36 
37 /* Describes gap between strips in timeline. */
38 typedef struct GapInfo {
39  int gap_start_frame; /* Start frame of the gap. */
40  int gap_length; /* Length of the gap. */
41  bool gap_exists; /* False if there are no gaps. */
43 void seq_time_gap_info_get(const struct Scene *scene,
44  struct ListBase *seqbase,
45  const int initial_frame,
46  struct GapInfo *r_gap_info);
47 
48 #ifdef __cplusplus
49 }
50 #endif
Scene scene
struct GapInfo GapInfo
void seq_update_sound_bounds_recursive(struct Scene *scene, struct Sequence *metaseq)
Definition: strip_time.c:144
float seq_give_frame_index(struct Sequence *seq, float timeline_frame)
Definition: strip_time.c:48
void seq_time_gap_info_get(const struct Scene *scene, struct ListBase *seqbase, const int initial_frame, struct GapInfo *r_gap_info)
int gap_length
Definition: strip_time.h:40
int gap_start_frame
Definition: strip_time.h:39
bool gap_exists
Definition: strip_time.h:41