summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-09 23:02:43 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-09 23:02:43 +0200
commit0b10d978a83219558ba5b35ce831a5b187b5d7e9 (patch)
treefe50acf0f78b9e50d6114c70080f76e739f95824 /src/lib
parentdc684b6a6032e96a641a1a95ccfa313dbcd8158b (diff)
White space: image_decoder.{cc,h}
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/image_decoder.cc18
-rw-r--r--src/lib/image_decoder.h8
2 files changed, 13 insertions, 13 deletions
diff --git a/src/lib/image_decoder.cc b/src/lib/image_decoder.cc
index 527a98c7d..29e4a2f07 100644
--- a/src/lib/image_decoder.cc
+++ b/src/lib/image_decoder.cc
@@ -43,16 +43,16 @@ using dcp::Size;
using namespace dcpomatic;
-ImageDecoder::ImageDecoder (shared_ptr<const Film> film, shared_ptr<const ImageContent> c)
- : Decoder (film)
- , _image_content (c)
+ImageDecoder::ImageDecoder(shared_ptr<const Film> film, shared_ptr<const ImageContent> c)
+ : Decoder(film)
+ , _image_content(c)
{
video = make_shared<VideoDecoder>(this, c);
}
bool
-ImageDecoder::pass ()
+ImageDecoder::pass()
{
if (_frame_video_position >= _image_content->video->length()) {
return true;
@@ -60,8 +60,8 @@ ImageDecoder::pass ()
if (!_image_content->still() || !_image) {
/* Either we need an image or we are using moving images, so load one */
- auto path = _image_content->path (_image_content->still() ? 0 : _frame_video_position);
- if (valid_j2k_file (path)) {
+ auto path = _image_content->path(_image_content->still() ? 0 : _frame_video_position);
+ if (valid_j2k_file(path)) {
AVPixelFormat pf;
if (_image_content->video->colour_conversion()) {
/* We have a specified colour conversion: assume the image is RGB */
@@ -88,8 +88,8 @@ ImageDecoder::pass ()
void
-ImageDecoder::seek (ContentTime time, bool accurate)
+ImageDecoder::seek(ContentTime time, bool accurate)
{
- Decoder::seek (time, accurate);
- _frame_video_position = time.frames_round (_image_content->active_video_frame_rate(film()));
+ Decoder::seek(time, accurate);
+ _frame_video_position = time.frames_round(_image_content->active_video_frame_rate(film()));
}
diff --git a/src/lib/image_decoder.h b/src/lib/image_decoder.h
index 41924735c..2b07e6b28 100644
--- a/src/lib/image_decoder.h
+++ b/src/lib/image_decoder.h
@@ -31,14 +31,14 @@ class ImageProxy;
class ImageDecoder : public Decoder
{
public:
- ImageDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const ImageContent> c);
+ ImageDecoder(std::shared_ptr<const Film> film, std::shared_ptr<const ImageContent> c);
- std::shared_ptr<const ImageContent> content () {
+ std::shared_ptr<const ImageContent> content() {
return _image_content;
}
- bool pass () override;
- void seek (dcpomatic::ContentTime, bool) override;
+ bool pass() override;
+ void seek(dcpomatic::ContentTime, bool) override;
private: