Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DNA_movieclip_defaults.h « makesdna « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 441c22310095fdf0a55deacee3378432e12dab52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
 * 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,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

/** \file
 * \ingroup DNA
 */

#pragma once

/* Struct members on own line. */
/* clang-format off */

/* -------------------------------------------------------------------- */
/** \name MovieClip Struct
 * \{ */

#define _DNA_DEFAULT_MovieClipProxy \
  { \
    .build_size_flag = IMB_PROXY_25, \
    .build_tc_flag = IMB_TC_RECORD_RUN | IMB_TC_FREE_RUN | \
                     IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN | IMB_TC_RECORD_RUN_NO_GAPS, \
    .quality = 50, \
  }


#define _DNA_DEFAULT_MovieClip \
  { \
    .aspx = 1.0f, \
    .aspy = 1.0f, \
    .proxy = _DNA_DEFAULT_MovieClipProxy, \
    .start_frame = 1, \
    .frame_offset = 0, \
  }

#define _DNA_DEFAULT_MovieClipUser \
  { \
    .framenr = 1, \
    .render_size = MCLIP_PROXY_RENDER_SIZE_FULL, \
    .render_flag = 0, \
  }

#define _DNA_DEFAULT_MovieClipScopes \
  { \
    .ok = 0, \
    .use_track_mask = 0, \
    .track_preview_height = 120, \
    .frame_width = 0, \
    .frame_height = 0, \
    .undist_marker = _DNA_DEFAULT_MovieTrackingMarker, \
    .track_pos = {0, 0}, \
    .track_disabled = 0, \
    .track_locked = 0, \
    .scene_framenr = 0, \
    .slide_scale = {0.0f, 0.0f}, \
  }

/* initialize as all zeros. */
#define _DNA_DEFAULT_MovieTrackingMarker \
  { \
    .pos = {0.0f, 0.0f}, \
  }

/** \} */

/* clang-format on */