summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-02-28 08:39:09 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-28 09:08:21 +0100
commitbb04b67f593c1da37b76af9507f3e28e9ab15f74 (patch)
treed4ecb9c643565b950aa0549db09eb870b33f4f7c /src
parent3d4797abcddec57793544c2ee2185bef9545a323 (diff)
White space: image_examiner.{cc,h}
Diffstat (limited to 'src')
-rw-r--r--src/lib/image_examiner.cc10
-rw-r--r--src/lib/image_examiner.h12
2 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/image_examiner.cc b/src/lib/image_examiner.cc
index 0953100f4..092ab68ee 100644
--- a/src/lib/image_examiner.cc
+++ b/src/lib/image_examiner.cc
@@ -48,11 +48,11 @@ ImageExaminer::ImageExaminer(shared_ptr<const ImageContent> content, shared_ptr<
: _image_content (content)
{
auto path = content->path(0);
- if (valid_j2k_file (path)) {
+ if (valid_j2k_file(path)) {
auto size = dcp::filesystem::file_size(path);
dcp::File f(path, "rb");
if (!f) {
- throw FileError ("Could not open file for reading", path);
+ throw FileError("Could not open file for reading", path);
}
std::vector<uint8_t> buffer(size);
f.checked_read(buffer.data(), size);
@@ -74,14 +74,14 @@ ImageExaminer::ImageExaminer(shared_ptr<const ImageContent> content, shared_ptr<
optional<dcp::Size>
-ImageExaminer::video_size () const
+ImageExaminer::video_size() const
{
return _video_size;
}
optional<double>
-ImageExaminer::video_frame_rate () const
+ImageExaminer::video_frame_rate() const
{
if (_image_content->video_frame_rate()) {
/* The content already knows what frame rate it should be */
@@ -94,7 +94,7 @@ ImageExaminer::video_frame_rate () const
bool
-ImageExaminer::yuv () const
+ImageExaminer::yuv() const
{
/* We never convert ImageSource from YUV to RGB (though maybe sometimes we should)
so it makes sense to just say they are never YUV so the option of a conversion
diff --git a/src/lib/image_examiner.h b/src/lib/image_examiner.h
index 7471d9cc9..88a900d01 100644
--- a/src/lib/image_examiner.h
+++ b/src/lib/image_examiner.h
@@ -27,19 +27,19 @@ class ImageExaminer : public VideoExaminer
public:
ImageExaminer(std::shared_ptr<const ImageContent>, std::shared_ptr<Job>);
- bool has_video () const override {
+ bool has_video() const override {
return true;
}
- boost::optional<double> video_frame_rate () const override;
+ boost::optional<double> video_frame_rate() const override;
boost::optional<dcp::Size> video_size() const override;
- Frame video_length () const override {
+ Frame video_length() const override {
return _video_length;
}
- bool yuv () const override;
- VideoRange range () const override {
+ bool yuv() const override;
+ VideoRange range() const override {
return VideoRange::FULL;
}
- PixelQuanta pixel_quanta () const override {
+ PixelQuanta pixel_quanta() const override {
/* See ::yuv - we're assuming the image is not YUV and so not subsampled */
return {};
}