Blender
V3.3
|
#include <stdio.h>
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLI_timecode.h"
#include "DNA_userdef_types.h"
#include "BLI_strict_flags.h"
Go to the source code of this file.
Functions | |
size_t | BLI_timecode_string_from_time (char *str, const size_t maxncpy, const int brevity_level, const float time_seconds, const double fps, const short timecode_style) |
size_t | BLI_timecode_string_from_time_simple (char *str, const size_t maxncpy, const double time_seconds) |
size_t | BLI_timecode_string_from_time_seconds (char *str, const size_t maxncpy, const int brevity_level, const float time_seconds) |
Time-Code string formatting
Definition in file timecode.c.
size_t BLI_timecode_string_from_time | ( | char * | str, |
size_t | maxncpy, | ||
int | brevity_level, | ||
float | time_seconds, | ||
double | fps, | ||
short | timecode_style | ||
) |
Generate time-code/frame number string and store in str
str | destination string |
maxncpy | maximum number of characters to copy sizeof(str) |
brevity_level | special setting for View2D grid drawing, used to specify how detailed we need to be |
time_seconds | time total time in seconds |
fps | frames per second, typically from the FPS macro |
timecode_style | enum from eTimecodeStyles |
Definition at line 22 of file timecode.c.
References BLI_snprintf_rlen(), fmodf, round_fl_to_int(), str, time, USER_TIMECODE_MILLISECONDS, USER_TIMECODE_MINIMAL, USER_TIMECODE_SECONDS_ONLY, USER_TIMECODE_SMPTE_FULL, USER_TIMECODE_SMPTE_MSF, and USER_TIMECODE_SUBRIP.
Referenced by get_current_time_str(), sequencer_export_subtitles_exec(), stampdata(), and view_to_string__time().
size_t BLI_timecode_string_from_time_seconds | ( | char * | str, |
size_t | maxncpy, | ||
int | brevity_level, | ||
float | time_seconds | ||
) |
Generate time string and store in str
str | destination string |
maxncpy | maximum number of characters to copy sizeof(str) |
brevity_level | special setting for View2D grid drawing, used to specify how detailed we need to be |
time_seconds | time total time in seconds |
Definition at line 191 of file timecode.c.
References BLI_snprintf_rlen(), round_fl_to_int(), and str.
size_t BLI_timecode_string_from_time_simple | ( | char * | str, |
size_t | maxncpy, | ||
double | time_seconds | ||
) |
Generate time string and store in str
str | destination string |
maxncpy | maximum number of characters to copy sizeof(str) |
time_seconds | time total time in seconds |
Definition at line 169 of file timecode.c.
References BLI_snprintf_rlen(), min, and str.
Referenced by do_write_image_or_movie(), make_renderinfo_string(), progress_tooltip_func(), stampdata(), and stats_background().