libjxl

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

main.cc (561B)


      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 #include <QApplication>
      7 
      8 #include "tools/viewer/viewer_window.h"
      9 
     10 int main(int argc, char** argv) {
     11   QApplication application(argc, argv);
     12   QStringList arguments = application.arguments();
     13   arguments.removeFirst();
     14 
     15   jpegxl::tools::ViewerWindow window;
     16   window.show();
     17 
     18   if (!arguments.empty()) {
     19     window.loadFilesAndDirectories(arguments);
     20   }
     21 
     22   return application.exec();
     23 }