libjxl

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

libjxl_test.c (548B)


      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 // Program to test that we can link against the public API of libjpegxl from C.
      7 // This links against the shared libjpegxl library which doesn't expose any of
      8 // the internals of the jxl namespace.
      9 
     10 #include <jxl/decode.h>
     11 
     12 int main(void) {
     13   if (!JxlDecoderVersion()) return 1;
     14   JxlDecoder* dec = JxlDecoderCreate(NULL);
     15   if (!dec) return 1;
     16   JxlDecoderDestroy(dec);
     17 }