mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 19:41:15 +00:00
add jpeg-turbo test
This commit is contained in:
parent
c428906675
commit
729b39894b
1 changed files with 22 additions and 0 deletions
22
test/libjpeg.cpp
Normal file
22
test/libjpeg.cpp
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <jpeglib.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in a new issue