#include "config.h"#include <string.h>#include "afterbase.h"#include "asimage.h"#include "imencdec.h"#include "bmp.h"Go to the source code of this file.
Functions | |
| void | dib_data_to_scanline (ASScanline *buf, BITMAPINFOHEADER *bmp_info, CARD8 *gamma_table, CARD8 *data, CARD8 *cmap, int cmap_entry_size) |
| BITMAPINFO * | ASImage2DIB (ASVisual *asv, ASImage *im, int offset_x, int offset_y, unsigned int to_width, unsigned int to_height, void **pBits, int mask) |
| BITMAPINFO * | ASImage2DBI (ASVisual *asv, ASImage *im, int offset_x, int offset_y, unsigned int to_width, unsigned int to_height, void **pBits, int mask) |
| ASImage * | DIB2ASImage (BITMAPINFO *bmp_info, int compression) |
| ASImage * | bitmap2asimage (unsigned char *xim, int width, int height, unsigned int compression, unsigned char *mask) |
| BITMAPINFO* ASImage2DBI | ( | ASVisual * | asv, | |
| ASImage * | im, | |||
| int | offset_x, | |||
| int | offset_y, | |||
| unsigned int | to_width, | |||
| unsigned int | to_height, | |||
| void ** | pBits, | |||
| int | mask | |||
| ) |
| 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().
1.5.1