bmp.h File Reference

#include "asimage.h"

Go to the source code of this file.

Classes

struct  tagRGBQUAD
struct  tagBITMAPFILEHEADER
struct  tagBITMAPINFOHEADER
struct  tagBITMAPINFO

Defines

#define BMP_SIGNATURE   0x4D42
#define BI_RGB   0L
#define ASImage2DBI   ASImage2DIB

Typedefs

typedef tagRGBQUAD RGBQUAD
typedef tagBITMAPFILEHEADER BITMAPFILEHEADER
typedef tagBITMAPINFOHEADER BITMAPINFOHEADER
typedef tagBITMAPINFO BITMAPINFO

Functions

void dib_data_to_scanline (ASScanline *buf, BITMAPINFOHEADER *bmp_info, CARD8 *gamma_table, CARD8 *data, CARD8 *cmap, int cmap_entry_size)
BITMAPINFOASImage2DIB (ASVisual *asv, ASImage *im, int offset_x, int offset_y, unsigned int to_width, unsigned int to_height, void **pBits, int mask)
ASImageDIB2ASImage (BITMAPINFO *bmp_info, int compression)
ASImagebitmap2asimage (unsigned char *xim, int width, int height, unsigned int compression, unsigned char *mask)


Define Documentation

#define ASImage2DBI   ASImage2DIB

Definition at line 67 of file bmp.h.

Referenced by ASImage2bmp(), and WinMain().

#define BI_RGB   0L

Definition at line 51 of file bmp.h.

Referenced by ASImage2DIB(), BitmapToRegion(), TGWin32GLManager::CreateDIB(), TGWin32::CreatePixmapFromData(), gdk_image_get(), gdk_image_new_bitmap(), gdk_image_new_with_depth(), gdk_pixmap_new(), gdk_visual_init(), and TGWin32::GetColorBits().

#define BMP_SIGNATURE   0x4D42

Definition at line 9 of file bmp.h.

Referenced by ASImage2bmp(), and bmp2ASImage().


Typedef Documentation

typedef struct tagBITMAPFILEHEADER BITMAPFILEHEADER

typedef struct tagBITMAPINFO BITMAPINFO

typedef struct tagBITMAPINFOHEADER BITMAPINFOHEADER

typedef struct tagRGBQUAD RGBQUAD


Function Documentation

BITMAPINFO* ASImage2DIB ( ASVisual asv,
ASImage im,
int  offset_x,
int  offset_y,
unsigned int  to_width,
unsigned int  to_height,
void **  pBits,
int  mask 
)

Definition at line 95 of file bmp.c.

References a, ASScanline::alpha, b, BI_RGB, tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biClrImportant, tagBITMAPINFOHEADER::biClrUsed, tagBITMAPINFOHEADER::biCompression, tagBITMAPINFOHEADER::biHeight, tagBITMAPINFOHEADER::biPlanes, tagBITMAPINFOHEADER::biSize, tagBITMAPINFOHEADER::biSizeImage, bits, tagBITMAPINFOHEADER::biWidth, ASScanline::blue, tagBITMAPINFO::bmiHeader, ASImageDecoder::buffer, ASImageDecoder::decode_image_scanline, g, ASScanline::green, ASImage::height, LOCAL_DEBUG_CALLER_OUT, LOCAL_DEBUG_OUT, NULL, ASScanline::red, safecalloc, safemalloc, SCL_DO_ALL, SCL_DO_ALPHA, SHOW_TIME, start_image_decoding(), START_TIME, stop_image_decoding(), x, and y.

Referenced by ASImage2DBI().

ASImage* bitmap2asimage ( unsigned char *  xim,
int  width,
int  height,
unsigned int  compression,
unsigned char *  mask 
)

Definition at line 267 of file bmp.c.

References ASScanline::alpha, asimage_add_line(), ASScanline::blue, create_asimage(), False, free_scanline(), ASScanline::green, i, IC_ALPHA, IC_BLUE, IC_GREEN, IC_RED, NULL, prepare_scanline(), raw2scanline(), ASScanline::red, True, and x.

Referenced by TASImage::FromGLBuffer(), TASImage::FromPad(), TASImage::FromWindow(), TASImage::ReadImage(), and TASImage::SetImage().

ASImage* DIB2ASImage ( BITMAPINFO bmp_info,
int  compression 
)

Definition at line 202 of file bmp.c.

References asimage_add_line(), tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biHeight, tagBITMAPINFOHEADER::biSize, tagBITMAPINFOHEADER::biWidth, tagBITMAPINFO::bmiColors, tagBITMAPINFO::bmiHeader, buf, create_asimage(), data, dib_data_to_scanline(), free_scanline(), height, IC_BLUE, IC_GREEN, IC_RED, NULL, prepare_scanline(), True, width, and y.

void dib_data_to_scanline ( ASScanline buf,
BITMAPINFOHEADER bmp_info,
CARD8 *  gamma_table,
CARD8 *  data,
CARD8 *  cmap,
int  cmap_entry_size 
)

Definition at line 41 of file bmp.c.

References tagBITMAPINFOHEADER::biBitCount, tagBITMAPINFOHEADER::biWidth, buf, entry, int, x, x01, and x07.

Referenced by DIB2ASImage(), and read_bmp_image().


Generated on Tue Jul 5 15:57:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1