mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 00:20:55 +02:00
Add turbojpeg to megatest.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <physfs.h>
|
||||
#include <png.h>
|
||||
#include <jpeglib.h>
|
||||
#include <turbojpeg.h>
|
||||
#include <ogg/ogg.h>
|
||||
#include <vorbis/codec.h>
|
||||
#include <vorbis/vorbisfile.h>
|
||||
@@ -94,6 +95,15 @@ int main(int argc, char **argv)
|
||||
return "jpeg";
|
||||
};
|
||||
|
||||
vfunc turbojpeg = [](strs &c, strs &l)
|
||||
{
|
||||
auto handle = tjInitCompress();
|
||||
tjDestroy(handle);
|
||||
c << "N/A";
|
||||
l << "N/A";
|
||||
return "libjpeg-turbo";
|
||||
};
|
||||
|
||||
vfunc ogg = [](strs &c, strs &l)
|
||||
{
|
||||
c << "N/A";
|
||||
@@ -194,6 +204,7 @@ int main(int argc, char **argv)
|
||||
funcs.push_back(lua);
|
||||
funcs.push_back(png);
|
||||
funcs.push_back(jpeg);
|
||||
funcs.push_back(turbojpeg);
|
||||
funcs.push_back(ogg);
|
||||
funcs.push_back(vorbis);
|
||||
funcs.push_back(vorbisfile);
|
||||
|
||||
Reference in New Issue
Block a user