class ImageExaminer : public VideoExaminer
{
public:
- ImageExaminer (boost::shared_ptr<const Film>, boost::shared_ptr<const ImageContent>, boost::shared_ptr<Job>);
+ ImageExaminer (std::shared_ptr<const Film>, std::shared_ptr<const ImageContent>, std::shared_ptr<Job>);
- boost::optional<double> video_frame_rate () const;
- dcp::Size video_size () const;
- Frame video_length () const {
+ bool has_video () const override {
+ return true;
+ }
+ boost::optional<double> video_frame_rate () const override;
+ dcp::Size video_size () const override;
+ Frame video_length () const override {
return _video_length;
}
- bool yuv () const;
+ bool yuv () const override;
+ VideoRange range () const override {
+ return VideoRange::FULL;
+ }
+ PixelQuanta pixel_quanta () const override {
+ /* See ::yuv - we're assuming the image is not YUV and so not subsampled */
+ return {};
+ }
private:
- boost::weak_ptr<const Film> _film;
- boost::shared_ptr<const ImageContent> _image_content;
+ std::weak_ptr<const Film> _film;
+ std::shared_ptr<const ImageContent> _image_content;
boost::optional<dcp::Size> _video_size;
Frame _video_length;
};