roehrdor / opencl-jpeg-encoder Goto Github PK
View Code? Open in Web Editor NEWOpenCL accelerated JPEG encoding
License: MIT License
OpenCL accelerated JPEG encoding
License: MIT License
Hi,
Is it a large amount of work to add 12-bit JPEG support?
Thanks
Russell
g++ -O3 -Wall -Werror -pedantic -c src/main.cpp
src/main.cpp: In function ‘int readPPMImage(const char*, size_t*, size_t*, rgb_t**)’:
src/main.cpp:60:4: error: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Werror=unused-result]
(void)fgets(line, 0x80, fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.cpp:76:2: error: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Werror=unused-result]
(void)fread(*buffer, sizeof(rgb_t), *width * *height, fp);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
Makefile:5: recipe for target 'main.o' failed
make: *** [main.o] Error 1
Linux 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
cuda 10.2 - 2070 Super
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Hi I tried to run this code on a Qualcomm processor with OpenCL on its GPU. The code compiled and ran without any problem. But the encoded jpeg was not correct, just noise.
Is this related to endian of ARM is different with Intel? It there any fix?
Thanks,
Dong
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.