libsf3
|
#include "sf3_core.h"
Go to the source code of this file.
Data Structures | |
struct | sf3_image |
Macros | |
#define | SF3_FORMAT_ID_IMAGE 0x03 |
The format_id for an image file. | |
Enumerations | |
enum | sf3_pixel_format { SF3_PIXEL_INT8 = 0x01 , SF3_PIXEL_INT16 = 0x02 , SF3_PIXEL_INT32 = 0x04 , SF3_PIXEL_INT64 = 0x08 , SF3_PIXEL_UINT8 = 0x11 , SF3_PIXEL_UINT16 = 0x12 , SF3_PIXEL_UINT32 = 0x14 , SF3_PIXEL_UINT64 = 0x18 , SF3_PIXEL_FLOAT16 = 0x22 , SF3_PIXEL_FLOAT32 = 0x24 , SF3_PIXEL_FLOAT64 = 0x28 } |
The possible pixel channel formats. More... | |
enum | sf3_channel_layout { SF3_PIXEL_V = 0x01 , SF3_PIXEL_VA = 0x02 , SF3_PIXEL_RGB = 0x03 , SF3_PIXEL_RGBA = 0x04 , SF3_PIXEL_AV = 0x12 , SF3_PIXEL_BGR = 0x13 , SF3_PIXEL_ABGR = 0x14 , SF3_PIXEL_ARGB = 0x24 , SF3_PIXEL_BGRA = 0x34 , SF3_PIXEL_CMYK = 0x44 , SF3_PIXEL_KYMC = 0x54 } |
The possible pixel channel layouts. More... | |
Functions | |
SF3_INLINE int | sf3_image_channel_size (const struct sf3_image *image) |
Returns the number of bytes per channel. | |
SF3_INLINE int | sf3_image_channel_count (const struct sf3_image *image) |
Returns the number of channels per pixel. | |
SF3_INLINE int | sf3_image_pixel_stride (const struct sf3_image *image) |
Returns the number of bytes per pixel. | |
SF3_EXPORT char * | sf3_image_pixel_format (enum sf3_pixel_format format) |
Returns a human-readable string representation of the format. | |
SF3_INLINE char * | sf3_image_channel_layout (enum sf3_channel_layout format) |
Returns a human-readable string representation of the layout. | |
SF3_EXPORT size_t | sf3_image_size (const struct sf3_image *image) |
Computes the size of the image file in bytes. | |
#define SF3_FORMAT_ID_IMAGE 0x03 |
The format_id for an image file.
Definition at line 6 of file sf3_image.h.
enum sf3_channel_layout |
The possible pixel channel layouts.
Definition at line 38 of file sf3_image.h.
enum sf3_pixel_format |
The possible pixel channel formats.
Definition at line 9 of file sf3_image.h.
SF3_INLINE int sf3_image_channel_count | ( | const struct sf3_image * | image | ) |
Returns the number of channels per pixel.
Definition at line 94 of file sf3_image.h.
SF3_INLINE char * sf3_image_channel_layout | ( | enum sf3_channel_layout | format | ) |
Returns a human-readable string representation of the layout.
Definition at line 122 of file sf3_image.h.
SF3_INLINE int sf3_image_channel_size | ( | const struct sf3_image * | image | ) |
Returns the number of bytes per channel.
Definition at line 89 of file sf3_image.h.
SF3_EXPORT char * sf3_image_pixel_format | ( | enum sf3_pixel_format | format | ) |
Returns a human-readable string representation of the format.
Definition at line 104 of file sf3_image.h.
SF3_INLINE int sf3_image_pixel_stride | ( | const struct sf3_image * | image | ) |
Returns the number of bytes per pixel.
Definition at line 99 of file sf3_image.h.
SF3_EXPORT size_t sf3_image_size | ( | const struct sf3_image * | image | ) |
Computes the size of the image file in bytes.
Definition at line 140 of file sf3_image.h.