corona  1.0.2
Classes | Namespaces | Defines | Functions
OpenBMP.cpp File Reference
#include <string.h>
#include "corona.h"
#include "SimpleImage.h"
#include "Utility.h"
Include dependency graph for OpenBMP.cpp:

Go to the source code of this file.

Classes

struct  corona::Header

Namespaces

namespace  corona

Defines

#define C16(C)   (byte)( ((clr & h.bf_##C##_mask) >> h.bf_##C##_shift) << h.bf_##C##_rshift);

Functions

bool corona::ReadHeader (File *file, Header &h)
bool corona::ReadInfoHeader (File *file, Header &h)
bool corona::ReadPalette (File *file, Header &h)
Image * corona::DecodeBitmap (File *file, const Header &h)
Image * corona::OpenBMP (File *file)
int corona::count_right_zeroes (u32 n)
int corona::count_ones (u32 n)
bool corona::advance (int &x, int &y, const Header &h)
Image * corona::ReadBitmap1 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmap4 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmapRLE4 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmap8 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmapRLE8 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmap16 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmap24 (const byte *raster_data, const Header &h)
Image * corona::ReadBitmap32 (const byte *raster_data, const Header &h)

Define Documentation

#define C16 (   C)    (byte)( ((clr & h.bf_##C##_mask) >> h.bf_##C##_shift) << h.bf_##C##_rshift);