Blender  V2.93
BLI_timecode.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) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
26 #include "BLI_compiler_attrs.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
33  const size_t maxncpy,
34  const int brevity_level,
35  const float time_seconds,
36  const double scene_fps,
37  const short timecode_style) ATTR_NONNULL();
38 
40  const size_t maxncpy,
41  const double time_seconds) ATTR_NONNULL();
42 
44  const size_t maxncpy,
45  const int brevity_level,
46  const float time_seconds) ATTR_NONNULL();
47 
48 #ifdef __cplusplus
49 }
50 #endif
#define ATTR_NONNULL(...)
size_t BLI_timecode_string_from_time(char *str, const size_t maxncpy, const int brevity_level, const float time_seconds, const double scene_fps, const short timecode_style) ATTR_NONNULL()
Definition: timecode.c:51
size_t BLI_timecode_string_from_time_simple(char *str, const size_t maxncpy, const double time_seconds) ATTR_NONNULL()
Definition: timecode.c:206
size_t BLI_timecode_string_from_time_seconds(char *str, const size_t maxncpy, const int brevity_level, const float time_seconds) ATTR_NONNULL()
Definition: timecode.c:240
#define str(s)