Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Blurhash | 13,295 | 29 | 61 | 6 days ago | 9 | September 12, 2022 | 46 | mit | C | |
A very compact representation of a placeholder for an image. | ||||||||||
Nmt | 6,085 | 5 months ago | 275 | apache-2.0 | Python | |||||
TensorFlow Neural Machine Translation Tutorial | ||||||||||
Seq2seq | 5,300 | 2 years ago | 194 | apache-2.0 | Python | |||||
A general-purpose encoder-decoder framework for Tensorflow | ||||||||||
Pytorch Seq2seq | 4,356 | a day ago | 52 | mit | Jupyter Notebook | |||||
Tutorials on implementing a few sequence-to-sequence (seq2seq) models with PyTorch and TorchText. | ||||||||||
Ultrajson | 4,004 | 3,278 | 920 | 2 days ago | 33 | July 02, 2022 | 22 | other | C | |
Ultra fast JSON decoder and encoder written in C with Python bindings | ||||||||||
Flif | 3,682 | a year ago | 1 | March 20, 2019 | 137 | other | C++ | |||
Free Lossless Image Format | ||||||||||
Seq2seq | 3,118 | 7 months ago | 105 | gpl-2.0 | Python | |||||
Sequence to Sequence Learning with Keras | ||||||||||
He | 2,719 | 373,316 | 1,144 | 2 years ago | 27 | September 23, 2018 | 17 | mit | JavaScript | |
A robust HTML entity encoder/decoder written in JavaScript. | ||||||||||
Ffjson | 2,620 | 242 | 356 | 3 years ago | 2 | February 06, 2015 | 57 | apache-2.0 | Go | |
faster JSON serialization for Go | ||||||||||
Semantic Segmentation Suite | 2,311 | 2 years ago | 83 | Python | ||||||
Semantic Segmentation Suite in TensorFlow. Implement, train, and test new Semantic Segmentation models easily! |
PNG encoder and decoder in C and C++, without dependencies
Home page: http://lodev.org/lodepng/
Detailed documentation is included in a large comment in the second half of the
header file lodepng.h
.
Source code examples using LodePNG can be found in the examples directory.
An FAQ can be found on http://lodev.org/lodepng/
Only two files are needed to encode and decode PNGs:
lodepng.cpp
(or renamed to lodepng.c
)lodepng.h
All other files are just source code examples, tests, misc utilities, etc..., which are normally not needed in projects using this.
You can include the files directly in your project's source tree and its makefile, IDE project file, or other build system. No library is necessary.
In addition to C++, LodePNG also supports ANSI C (C89), with all the same functionality: C++ only adds extra convenience API.
For C, rename lodepng.cpp
to lodepng.c
.
Consider using git submodules to include LodePNG in your project.
If you have a hypothetical your_program.cpp
that #includes and uses lodepng.h
,
you can build as follows:
g++ your_program.cpp lodepng.cpp -Wall -Wextra -pedantic -ansi -O3
or:
clang++ your_program.cpp lodepng.cpp -Wall -Wextra -pedantic -ansi -O3
This shows compiler flags it was designed for, but normally one would use the compiler or build system of their project instead of those commands, and other C++ compilers are supported.
Rename lodepng.cpp
to lodepng.c
for this.
If you have a hypothetical your_program.c that #includes and uses lodepng.h, you can build as follows:
gcc your_program.c lodepng.c -ansi -pedantic -Wall -Wextra -O3
or
clang your_program.c lodepng.c -ansi -pedantic -Wall -Wextra -O3
This shows compiler flags it was designed for, but normally one would use the compiler or build system of their project instead of those commands, and other C compilers are supported.
There is a Makefile, but this is not intended for using LodePNG itself since the way to use that one is to include its source files in your program. The Makefile only builds development and testing utilities. It can be used as follows:
make -j