bzotto / rgba_bitmap Goto Github PK
View Code? Open in Web Editor NEW"RGBA" : Specification (and C routines) for the dumbest, most useful bitmap image file format!
"RGBA" : Specification (and C routines) for the dumbest, most useful bitmap image file format!
One problem is that there aren't any easy ways to produce RGBA images. Someone may have generated a logo in Gimp and now they need to load it as an OpenGL texture to use it in ImGui... this would be such an an easy matter if the image was in RGBA format. However, Gimp cannot save RGBA images. Gimp cannot save any image format that is easy to read in order to convert it to RGBA, or to an OpenGL texture. We need something.
For myself I made a small program, png2rgba.cpp. It seems to work pretty well with most forms of PNG (I tried it on the PngSuite set). Take it, convert it to pure C or do whatever. I think RGBA would gain more traction if there was some way to produce RGBA:
https://gist.github.com/roaral/c6cc2eae2b65c1fdb27dcdb86725cfab
:)
I propose after before RGBA
signature (for differs between version) add length value, and after image data add CRC32 checksum. And will align of 16 byte in header, and will one huge PNG chunk ever.
I'm working on steganography (not stenography) with 24-bit RGB and 32-bit RGBA images in the BMP format, with all my code in C. BMP files have an annoying number of bytes in the header that play no role for me, and an RGBA file with the simple format you suggest is really excellent. I have drafted out some possible enhancements for such files, which can have the extension .rgby or .rgbz to hold 24-bit RGB and 32-bit RGBA data.
My suggestions are as folllows:
I've only drafted out some preliminary idea, and have not yet written any code. Let me know what you think.
I can be contacted at [email protected]
Christopher Sharp
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.