diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-12 10:48:55 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-12 10:48:55 +0200 |
| commit | e6495ba9b7a5efa6eebc9cb9d3cbad68bcdfa2ce (patch) | |
| tree | 77f7840dd09106b0c301073985a06fd7c422e823 /src/lib/video_content.h | |
| parent | cfef71ab34201b482495cc3cbfa153a1e2807ac5 (diff) | |
White space: video_content.{cc,h}
Diffstat (limited to 'src/lib/video_content.h')
| -rw-r--r-- | src/lib/video_content.h | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/src/lib/video_content.h b/src/lib/video_content.h index eb106cc75..c6fce70d5 100644 --- a/src/lib/video_content.h +++ b/src/lib/video_content.h @@ -62,22 +62,22 @@ public: class VideoContent : public ContentPart, public std::enable_shared_from_this<VideoContent> { public: - explicit VideoContent (Content* parent); - VideoContent (Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint); - VideoContent (Content* parent, std::vector<std::shared_ptr<Content>>); + explicit VideoContent(Content* parent); + VideoContent(Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint); + VideoContent(Content* parent, std::vector<std::shared_ptr<Content>>); void as_xml(xmlpp::Element*) const; - std::string technical_summary () const; - std::string identifier () const; - void take_settings_from (std::shared_ptr<const VideoContent> c); + std::string technical_summary() const; + std::string identifier() const; + void take_settings_from(std::shared_ptr<const VideoContent> c); - Frame length () const { - boost::mutex::scoped_lock lm (_mutex); + Frame length() const { + boost::mutex::scoped_lock lm(_mutex); return _length; } - Frame length_after_3d_combine () const { - boost::mutex::scoped_lock lm (_mutex); + Frame length_after_3d_combine() const { + boost::mutex::scoped_lock lm(_mutex); if (_frame_type == VideoFrameType::THREE_D_ALTERNATE) { return _length / 2; } @@ -85,120 +85,120 @@ public: return _length; } - boost::optional<dcp::Size> size () const { - boost::mutex::scoped_lock lm (_mutex); + boost::optional<dcp::Size> size() const { + boost::mutex::scoped_lock lm(_mutex); return _size; } - void set_frame_type (VideoFrameType); + void set_frame_type(VideoFrameType); - void set_crop (Crop crop); - void set_left_crop (int); - void set_right_crop (int); - void set_top_crop (int); - void set_bottom_crop (int); + void set_crop(Crop crop); + void set_left_crop(int); + void set_right_crop(int); + void set_top_crop(int); + void set_bottom_crop(int); - void set_custom_ratio (boost::optional<float> ratio); - void set_custom_size (boost::optional<dcp::Size> size); + void set_custom_ratio(boost::optional<float> ratio); + void set_custom_size(boost::optional<dcp::Size> size); - void unset_colour_conversion (); - void set_colour_conversion (ColourConversion); + void unset_colour_conversion(); + void set_colour_conversion(ColourConversion); - void set_fade_in (Frame); - void set_fade_out (Frame); + void set_fade_in(Frame); + void set_fade_out(Frame); - void set_range (VideoRange); - void set_use (bool); + void set_range(VideoRange); + void set_use(bool); - void set_burnt_subtitle_language (boost::optional<dcp::LanguageTag> language); + void set_burnt_subtitle_language(boost::optional<dcp::LanguageTag> language); - VideoFrameType frame_type () const { - boost::mutex::scoped_lock lm (_mutex); + VideoFrameType frame_type() const { + boost::mutex::scoped_lock lm(_mutex); return _frame_type; } - Crop actual_crop () const; + Crop actual_crop() const; - Crop requested_crop () const { - boost::mutex::scoped_lock lm (_mutex); + Crop requested_crop() const { + boost::mutex::scoped_lock lm(_mutex); return _crop; } - int requested_left_crop () const { - boost::mutex::scoped_lock lm (_mutex); + int requested_left_crop() const { + boost::mutex::scoped_lock lm(_mutex); return _crop.left; } - int requested_right_crop () const { - boost::mutex::scoped_lock lm (_mutex); + int requested_right_crop() const { + boost::mutex::scoped_lock lm(_mutex); return _crop.right; } - int requested_top_crop () const { - boost::mutex::scoped_lock lm (_mutex); + int requested_top_crop() const { + boost::mutex::scoped_lock lm(_mutex); return _crop.top; } - int requested_bottom_crop () const { - boost::mutex::scoped_lock lm (_mutex); + int requested_bottom_crop() const { + boost::mutex::scoped_lock lm(_mutex); return _crop.bottom; } - boost::optional<float> custom_ratio () const { - boost::mutex::scoped_lock lm (_mutex); + boost::optional<float> custom_ratio() const { + boost::mutex::scoped_lock lm(_mutex); return _custom_ratio; } - boost::optional<dcp::Size> custom_size () const { - boost::mutex::scoped_lock lm (_mutex); + boost::optional<dcp::Size> custom_size() const { + boost::mutex::scoped_lock lm(_mutex); return _custom_size; } - boost::optional<ColourConversion> colour_conversion () const { - boost::mutex::scoped_lock lm (_mutex); + boost::optional<ColourConversion> colour_conversion() const { + boost::mutex::scoped_lock lm(_mutex); return _colour_conversion; } - boost::optional<double> sample_aspect_ratio () const { - boost::mutex::scoped_lock lm (_mutex); + boost::optional<double> sample_aspect_ratio() const { + boost::mutex::scoped_lock lm(_mutex); return _sample_aspect_ratio; } - bool yuv () const { - boost::mutex::scoped_lock lm (_mutex); + bool yuv() const { + boost::mutex::scoped_lock lm(_mutex); return _yuv; } - Frame fade_in () const { - boost::mutex::scoped_lock lm (_mutex); + Frame fade_in() const { + boost::mutex::scoped_lock lm(_mutex); return _fade_in; } - Frame fade_out () const { - boost::mutex::scoped_lock lm (_mutex); + Frame fade_out() const { + boost::mutex::scoped_lock lm(_mutex); return _fade_out; } - VideoRange range () const { - boost::mutex::scoped_lock lm (_mutex); + VideoRange range() const { + boost::mutex::scoped_lock lm(_mutex); return _range; } - PixelQuanta pixel_quanta () const { - boost::mutex::scoped_lock lm (_mutex); + PixelQuanta pixel_quanta() const { + boost::mutex::scoped_lock lm(_mutex); return _pixel_quanta; } - bool use () const { - boost::mutex::scoped_lock lm (_mutex); + bool use() const { + boost::mutex::scoped_lock lm(_mutex); return _use; } - boost::optional<dcp::LanguageTag> burnt_subtitle_language () const { - boost::mutex::scoped_lock lm (_mutex); + boost::optional<dcp::LanguageTag> burnt_subtitle_language() const { + boost::mutex::scoped_lock lm(_mutex); return _burnt_subtitle_language; } @@ -210,19 +210,19 @@ public: boost::optional<double> fade(std::shared_ptr<const Film> film, dcpomatic::ContentTime time) const; - std::string processing_description (std::shared_ptr<const Film> film); + std::string processing_description(std::shared_ptr<const Film> film); - void set_length (Frame); + void set_length(Frame); void take_from_examiner(std::shared_ptr<const Film> film, std::shared_ptr<VideoExaminer>); - void add_properties (std::list<UserProperty> &) const; + void add_properties(std::list<UserProperty> &) const; - void modify_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const; - void modify_trim_start (dcpomatic::ContentTime& pos) const; + void modify_position(std::shared_ptr<const Film> film, dcpomatic::DCPTime& pos) const; + void modify_trim_start(dcpomatic::ContentTime& pos) const; void rotate_size(); - static std::shared_ptr<VideoContent> from_xml (Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint); + static std::shared_ptr<VideoContent> from_xml(Content* parent, cxml::ConstNodePtr node, int version, VideoRange video_range_hint); private: @@ -234,7 +234,7 @@ private: friend struct scaled_size_test2; friend struct scaled_size_legacy_test; - void setup_default_colour_conversion (); + void setup_default_colour_conversion(); bool _use; Frame _length; |
