Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ImageIO.h File Reference

#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

unsigned char * cvt_rgb4u_rgb3u (const unsigned char *rgb4u, int xs, int ys)
 copy/convert a 32-bit RGBA color buffer to a 24-bit RGB color buffer. More...

unsigned char * cvt_rgb4f_rgb3u (const float *rgb4f, int xs, int ys)
 copy/convert a 128-bit RGBA float color buffer to a 24-bit RGB color buffer. More...

int write_image_file_rgb3u (const char *filename, const unsigned char *rgb3u, int xs, int ys)
 Write an unsigned RGB 24-bit color image, by filename extension. More...

int write_image_file_rgb4u (const char *filename, const unsigned char *rgb4u, int xs, int ys)
 Write an unsigned RGBA 32-bit color image, by filename extension. More...

int write_image_file_rgba4u (const char *filename, const unsigned char *rgba4u, int xs, int ys)
 Write an unsigned RGBA 32-bit color image, with alpha channel, by filename extension. More...

int write_image_file_rgb4f (const char *filename, const float *rgb4f, int xs, int ys)
 Write an float RGBA 128-bit color image, by filename extension. More...

int write_image_file_rgba4f (const char *filename, const float *rgb4f, int xs, int ys)
 Write an float RGBA 128-bit color image, with alpha channel, by filename extension. More...

void vmd_writergb (FILE *dfile, const unsigned char *img, int xs, int ys)
 Write 24-bit uncompressed SGI RGB image file. More...

void vmd_writebmp (FILE *dfile, const unsigned char *img, int xs, int ys)
 Write 24-bit uncompressed Windows Bitmap file. More...

void vmd_writeppm (FILE *dfile, const unsigned char *img, int xs, int ys)
 Write 24-bit uncompressed NetPBM Portable Pixmap file. More...

void vmd_writetga (FILE *dfile, const unsigned char *img, int xs, int ys)
 Write 24-bit uncompressed Truevision "Targa" file. More...


Function Documentation

unsigned char* cvt_rgb4f_rgb3u const float *    rgb4f,
int    xs,
int    ys
 

copy/convert a 128-bit RGBA float color buffer to a 24-bit RGB color buffer.

Definition at line 81 of file ImageIO.C.

Referenced by write_image_file_rgb4f.

unsigned char* cvt_rgb4u_rgb3u const unsigned char *    rgb4u,
int    xs,
int    ys
 

copy/convert a 32-bit RGBA color buffer to a 24-bit RGB color buffer.

Definition at line 61 of file ImageIO.C.

Referenced by write_image_file_rgb4u.

void vmd_writebmp FILE *    dfile,
const unsigned char *    img,
int    xs,
int    ys
 

Write 24-bit uncompressed Windows Bitmap file.

Definition at line 314 of file ImageIO.C.

Referenced by SnapshotDisplayDevice::close_file, and write_image_file_rgb3u.

void vmd_writeppm FILE *    dfile,
const unsigned char *    img,
int    xs,
int    ys
 

Write 24-bit uncompressed NetPBM Portable Pixmap file.

Definition at line 376 of file ImageIO.C.

Referenced by SnapshotDisplayDevice::close_file, and write_image_file_rgb3u.

void vmd_writergb FILE *    dfile,
const unsigned char *    img,
int    xs,
int    ys
 

Write 24-bit uncompressed SGI RGB image file.

Definition at line 269 of file ImageIO.C.

Referenced by SnapshotDisplayDevice::close_file, and write_image_file_rgb3u.

void vmd_writetga FILE *    dfile,
const unsigned char *    img,
int    xs,
int    ys
 

Write 24-bit uncompressed Truevision "Targa" file.

Definition at line 392 of file ImageIO.C.

Referenced by SnapshotDisplayDevice::close_file, and write_image_file_rgb3u.

int write_image_file_rgb3u const char *    filename,
const unsigned char *    rgb3u,
int    xs,
int    ys
 

Write an unsigned RGB 24-bit color image, by filename extension.

Definition at line 150 of file ImageIO.C.

Referenced by write_image_file_rgb4f, and write_image_file_rgb4u.

int write_image_file_rgb4f const char *    filename,
const float *    rgb4f,
int    xs,
int    ys
 

Write an float RGBA 128-bit color image, by filename extension.

Definition at line 205 of file ImageIO.C.

Referenced by OptiXWriteImage.

int write_image_file_rgb4u const char *    filename,
const unsigned char *    rgb4u,
int    xs,
int    ys
 

Write an unsigned RGBA 32-bit color image, by filename extension.

Definition at line 189 of file ImageIO.C.

Referenced by OptiXWriteImage, OSPRayRenderer::render_to_file, OSPRay2Renderer::render_to_file, and ANARIRender::render_to_file.

int write_image_file_rgba4f const char *    filename,
const float *    rgb4f,
int    xs,
int    ys
 

Write an float RGBA 128-bit color image, with alpha channel, by filename extension.

Definition at line 253 of file ImageIO.C.

Referenced by OptiXWriteImage.

int write_image_file_rgba4u const char *    filename,
const unsigned char *    rgba4u,
int    xs,
int    ys
 

Write an unsigned RGBA 32-bit color image, with alpha channel, by filename extension.

Definition at line 221 of file ImageIO.C.

Referenced by OptiXWriteImage, and write_image_file_rgba4f.


Generated on Thu Mar 28 02:44:38 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002