Allegro 5 api
#include <allegro5/allegro.h> int al_get_bitmap_format(ALLEGRO_BITMAP *bitmap)
Returns the pixel format of a bitmap.
ALLEGRO_PIXEL_FORMAT(3alleg5), al_set_new_bitmap_flags(3alleg5)