o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.7k stars 2.19k forks source link

Consider STB as a replacement for libpng #4121

Open santorac opened 3 years ago

santorac commented 3 years ago

Consider stb's stb_image_write.h as a smaller replacement for libpng.

libpng was introduced as a replacement for OpenImageIO (at least in the runtime). stb was not considered at the time this decision was made, and was suggested during PR.

Originally posted by @nemerle in https://github.com/o3de/o3de/issues/4006#issuecomment-915940117

nick-l-o3de commented 3 years ago

Yes, assuiming the license for STB is good (looks like its PUBLIC DOMAIN OR MIT) we can grab pieces of it and use it.

It would NOT make a good tool-side library for image processing, but its intended purpose is a quick dump from runtime with no dependencies, which is great.

wintermute-motherbrain commented 2 years ago

sig/graphics-audio approved this RFC on 2021/10/20