summaryrefslogtreecommitdiff
path: root/src/lib/player_video.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-22 00:18:32 +0200
committerCarl Hetherington <cth@carlh.net>2025-08-12 17:16:07 +0200
commit9b73c143ce568bd8694e3a50f2fefc1ee3a03515 (patch)
treeb6774c68129ccc687c34a8271fa5e1361b93d3d0 /src/lib/player_video.h
parent0114987c5d6040d8fe07a719d7f97b0a5e200458 (diff)
Replace AVPixelFormat parameter to PlayerVideo::image with a functor.
This was removed in df9b4676aba8b941f124b174393988cad21677e1 and surrounding commits, but it turns out we need it after all.
Diffstat (limited to 'src/lib/player_video.h')
-rw-r--r--src/lib/player_video.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/player_video.h b/src/lib/player_video.h
index df0ef6d15..48c927f85 100644
--- a/src/lib/player_video.h
+++ b/src/lib/player_video.h
@@ -76,7 +76,7 @@ public:
}
void prepare(AVPixelFormat pixel_format, VideoRange video_range, Image::Alignment alignment, bool fast, bool proxy_only);
- std::shared_ptr<Image> image(AVPixelFormat pixel_format, VideoRange video_range, bool fast) const;
+ std::shared_ptr<Image> image(std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool fast) const;
std::shared_ptr<const Image> raw_image() const;
void add_metadata(xmlpp::Element* element) const;
@@ -128,7 +128,7 @@ public:
}
private:
- void make_image(AVPixelFormat pixel_format, VideoRange video_range, bool fast) const;
+ void make_image(std::function<AVPixelFormat (AVPixelFormat)> pixel_format, VideoRange video_range, bool fast) const;
std::shared_ptr<const ImageProxy> _in;
Crop _crop;