taqu / cppimg

A library of loading/saveing some image formats for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cppimg

Build Status

Introduction

A library of loading/saveing some image formats in C++

Usage

To create an implementation, put CPPIMG_IMPLEMENTATION like below.

#define CPPIMG_IMPLEMENTATION
#include "cppimg.h"

Options

To disable using Half float convert (F16C instructions), put before "include cppimg.h"

#define CPPIMG_DISABLE_F16C

To disable using AVX/SSE instructions, put before "include cppimg.h"

#define CPPIMG_DISABLE_AVX

Supported Formats

Input Output Bits/Pixel Note
PPM no yes 8/24/32
BMP yes yes 24/32 Support only uncompressed. Not support alpha, color spaces.
TGA yes yes 24/32 Support both uncompressed and compressed.
PNG yes no 8/24/32
JPG yes no 8/24 Support only base line. Not support progressive.
OpenEXR yes yes 16/32 Support only gray, rgb, or rgba image.
DDS yes yes -

Supported properties in Open EXR

Property Input Output
No Compression yes no
RLE yes no
ZIPS yes no
ZIP yes yes
PIZ/PXR24/B44/B44A no no
Tiled image no no
Multi-part no no
Deep Data no no

License

This software is distributed under the MIT or public domain, choose whichever you like.

About

A library of loading/saveing some image formats for C++

License:Other


Languages

Language:C++ 99.8%Language:CMake 0.2%