diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-20 20:49:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-20 20:49:31 +0100 |
| commit | 99cd6603577129ea125d1fa11a4c0bf8f6ef816d (patch) | |
| tree | 17a7765cbfcdf568491e2157e796311dff121267 /src/lib/util.h | |
| parent | 15b6a860f4fcf50c699b54ef385a93dac2ac59ca (diff) | |
White space: util.{cc,h}
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index e70d6f90f..67c759b57 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -59,41 +59,41 @@ extern bool is_batch_converter; class AudioBuffers; class TextDecoder; -extern std::string seconds_to_hms (int); -extern std::string time_to_hmsf (dcpomatic::DCPTime time, Frame rate); -extern std::string seconds_to_approximate_hms (int); -extern double seconds (struct timeval); -extern void dcpomatic_setup (); -extern void dcpomatic_setup_path_encoding (); -extern void dcpomatic_setup_gettext_i18n (std::string); -extern std::string digest_head_tail (std::vector<boost::filesystem::path>, boost::uintmax_t size); -extern std::string simple_digest (std::vector<boost::filesystem::path> paths); -extern void ensure_ui_thread (); -extern std::string audio_channel_name (int); -extern std::string short_audio_channel_name (int); -extern bool valid_image_file (boost::filesystem::path); -extern bool valid_sound_file (boost::filesystem::path); -extern bool valid_j2k_file (boost::filesystem::path); +extern std::string seconds_to_hms(int); +extern std::string time_to_hmsf(dcpomatic::DCPTime time, Frame rate); +extern std::string seconds_to_approximate_hms(int); +extern double seconds(struct timeval); +extern void dcpomatic_setup(); +extern void dcpomatic_setup_path_encoding(); +extern void dcpomatic_setup_gettext_i18n(std::string); +extern std::string digest_head_tail(std::vector<boost::filesystem::path>, boost::uintmax_t size); +extern std::string simple_digest(std::vector<boost::filesystem::path> paths); +extern void ensure_ui_thread(); +extern std::string audio_channel_name(int); +extern std::string short_audio_channel_name(int); +extern bool valid_image_file(boost::filesystem::path); +extern bool valid_sound_file(boost::filesystem::path); +extern bool valid_j2k_file(boost::filesystem::path); #ifdef DCPOMATIC_WINDOWS -extern boost::filesystem::path mo_path (); +extern boost::filesystem::path mo_path(); #endif -extern std::string tidy_for_filename (std::string); -extern dcp::Size fit_ratio_within (float ratio, dcp::Size); -extern void set_backtrace_file (boost::filesystem::path); -extern std::string video_asset_filename (std::shared_ptr<dcp::PictureAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary); -extern std::string audio_asset_filename (std::shared_ptr<dcp::SoundAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary); -extern std::string subtitle_asset_filename (std::shared_ptr<dcp::TextAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary, std::string extension); -extern std::string atmos_asset_filename (std::shared_ptr<dcp::AtmosAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary); +extern std::string tidy_for_filename(std::string); +extern dcp::Size fit_ratio_within(float ratio, dcp::Size); +extern void set_backtrace_file(boost::filesystem::path); +extern std::string video_asset_filename(std::shared_ptr<dcp::PictureAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary); +extern std::string audio_asset_filename(std::shared_ptr<dcp::SoundAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary); +extern std::string subtitle_asset_filename(std::shared_ptr<dcp::TextAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary, std::string extension); +extern std::string atmos_asset_filename(std::shared_ptr<dcp::AtmosAsset> asset, int reel_index, int reel_count, boost::optional<std::string> content_summary); extern std::string careful_string_filter(std::string s, std::wstring allowed = L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.+"); -extern std::pair<int, int> audio_channel_types (std::list<int> mapped, int channels); -extern std::shared_ptr<AudioBuffers> remap (std::shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping map); -extern size_t utf8_strlen (std::string s); -extern void emit_subtitle_image (dcpomatic::ContentTimePeriod period, dcp::TextImage sub, dcp::Size size, std::shared_ptr<TextDecoder> decoder); -extern void copy_in_bits (boost::filesystem::path from, boost::filesystem::path to, std::function<void (float)>); -extern dcp::Size scale_for_display (dcp::Size s, dcp::Size display_container, dcp::Size film_container, PixelQuanta quanta); -extern dcp::DecryptedKDM decrypt_kdm_with_helpful_error (dcp::EncryptedKDM kdm); -extern boost::filesystem::path default_font_file (); -extern void start_of_thread (std::string name); +extern std::pair<int, int> audio_channel_types(std::list<int> mapped, int channels); +extern std::shared_ptr<AudioBuffers> remap(std::shared_ptr<const AudioBuffers> input, int output_channels, AudioMapping map); +extern size_t utf8_strlen(std::string s); +extern void emit_subtitle_image(dcpomatic::ContentTimePeriod period, dcp::TextImage sub, dcp::Size size, std::shared_ptr<TextDecoder> decoder); +extern void copy_in_bits(boost::filesystem::path from, boost::filesystem::path to, std::function<void (float)>); +extern dcp::Size scale_for_display(dcp::Size s, dcp::Size display_container, dcp::Size film_container, PixelQuanta quanta); +extern dcp::DecryptedKDM decrypt_kdm_with_helpful_error(dcp::EncryptedKDM kdm); +extern boost::filesystem::path default_font_file(); +extern void start_of_thread(std::string name); extern std::string error_details(boost::system::error_code ec); extern bool contains_assetmap(boost::filesystem::path dir); extern std::string word_wrap(std::string input, int columns); |
