libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

split_image_view.h (1012B)


      1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2 //
      3 // Use of this source code is governed by a BSD-style
      4 // license that can be found in the LICENSE file.
      5 
      6 #ifndef TOOLS_COMPARISON_VIEWER_SPLIT_IMAGE_VIEW_H_
      7 #define TOOLS_COMPARISON_VIEWER_SPLIT_IMAGE_VIEW_H_
      8 
      9 #include <QWidget>
     10 
     11 #include "tools/comparison_viewer/settings.h"
     12 #include "tools/comparison_viewer/ui_split_image_view.h"
     13 
     14 namespace jpegxl {
     15 namespace tools {
     16 
     17 class SplitImageView : public QWidget {
     18   Q_OBJECT
     19 
     20  public:
     21   explicit SplitImageView(QWidget* parent = nullptr);
     22   ~SplitImageView() override = default;
     23 
     24   void setLeftImage(QImage image);
     25   void setRightImage(QImage image);
     26   void setMiddleImage(QImage image);
     27 
     28  signals:
     29   void renderingModeChanged(SplitImageRenderer::RenderingMode newMode);
     30 
     31  private slots:
     32   void on_settingsButton_clicked();
     33 
     34  private:
     35   Ui::SplitImageView ui_;
     36   SettingsDialog settings_;
     37 };
     38 
     39 }  // namespace tools
     40 }  // namespace jpegxl
     41 
     42 #endif  // TOOLS_COMPARISON_VIEWER_SPLIT_IMAGE_VIEW_H_