summaryrefslogtreecommitdiff
path: root/media/libjxl/src/tools/flicker_test/main.cc
blob: 67985a96381c739dc1768b196dbfcffcf578c9a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) the JPEG XL Project Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#include <QApplication>

#include "tools/flicker_test/setup.h"
#include "tools/flicker_test/test_window.h"

int main(int argc, char** argv) {
  QApplication application(argc, argv);

  jxl::FlickerTestWizard wizard;
  if (wizard.exec()) {
    jxl::FlickerTestWindow test_window(wizard.parameters());
    if (test_window.proceedWithTest()) {
      test_window.showMaximized();
      return application.exec();
    }
  }
}