From 729b39894b944de6c9ddb21f37867edecf3bee87 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 19 Sep 2022 10:34:42 +0300 Subject: [PATCH] add jpeg-turbo test --- test/libjpeg.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/libjpeg.cpp diff --git a/test/libjpeg.cpp b/test/libjpeg.cpp new file mode 100644 index 00000000..a3737491 --- /dev/null +++ b/test/libjpeg.cpp @@ -0,0 +1,22 @@ +#include +#include + +int main() +{ + jpeg_compress_struct compress = {}; + jpeg_create_compress(&compress); + + compress.input_components = 3; + jpeg_set_defaults(&compress); + + compress.in_color_space = JCS_EXT_RGB; + jpeg_default_colorspace(&compress); + + jpeg_destroy_compress(&compress); + + jpeg_decompress_struct decompress = {}; + jpeg_create_decompress(&decompress); + jpeg_destroy_decompress(&decompress); + + return 0; +}