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

util_types.h « util « pointcache « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0ee027c770090d357351102f166b55b8d7975aad (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
/*
 * Copyright 2013, Blender Foundation.
 *
 * 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.
 */

#ifndef PTC_UTIL_TYPES_H
#define PTC_UTIL_TYPES_H

#ifdef __cplusplus
extern "C" {
#endif

typedef enum PTCArchiveResolution {
	PTC_RESOLUTION_NONE             = 0,
	PTC_RESOLUTION_PREVIEW          = (1 << 0),
	PTC_RESOLUTION_RENDER           = (1 << 1),
} PTCArchiveResolution;

typedef enum PTCErrorLevel {
	PTC_ERROR_NONE      = 0,
	PTC_ERROR_INFO      = 1,
	PTC_ERROR_WARNING   = 2,
	PTC_ERROR_CRITICAL  = 3,
} PTCErrorLevel;

typedef void (*PTCErrorCallback)(void *userdata, PTCErrorLevel level, const char *message);

typedef enum PTCReadSampleResult {
	PTC_READ_SAMPLE_INVALID = 0,	/* no valid result can be retrieved */
	PTC_READ_SAMPLE_EARLY,			/* request time before first sample */
	PTC_READ_SAMPLE_LATE,			/* request time after last sample */
	PTC_READ_SAMPLE_EXACT,			/* found sample for requested frame */
	PTC_READ_SAMPLE_INTERPOLATED	/* no exact sample, but found enclosing samples for interpolation */
} PTCReadSampleResult;

#ifdef __cplusplus
}
#endif

#endif  /* PTC_UTIL_TYPES_H */