apps/ccam/imageaccess.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pixel_buffers

Defines

#define MAP_OPTIONS   MAP_PRIVATE
#define MAX_IMAGE_WIDTH   1288
#define MAX_IMAGE_HEIGHT   1032
#define MD(x)

Functions

int initPixelBuffers (struct pixel_buffers *pbp, const char *dmaFileName, int width, int height, int contrast, int colorMode, int bayer, int pixelDepth, const char *pseudo)
void closePixelBuffers (struct pixel_buffers *pbp)
unsigned char * getPixelRow (struct pixel_buffers *pbp, int row)
unsigned char * getMonoRow (struct pixel_buffers *pbp, int row, int bufn)
unsigned long * getPalette (struct pixel_buffers *pbp)


Define Documentation

#define MAP_OPTIONS   MAP_PRIVATE

Definition at line 6 of file imageaccess.h.

#define MAX_IMAGE_HEIGHT   1032

Definition at line 13 of file imageaccess.h.

Referenced by calculateBeamParams(), initPixelBuffers(), and initVertexArray().

#define MAX_IMAGE_WIDTH   1288

Definition at line 12 of file imageaccess.h.

Referenced by calculateBeamParams(), convert16to8(), initPixelBuffers(), and initVertexArray().

#define MD ( x   ) 

Definition at line 17 of file imageaccess.h.

Referenced by calculateBeamParams(), ccam_DMA_ioctl(), cmoscam_open(), cmoscam_release(), convert8to8(), dma2jpeg(), export_vrml(), initPixelBuffers(), initVertexArray(), setCamSeqState(), and writeSensorRegFF().


Function Documentation

void closePixelBuffers ( struct pixel_buffers pbp  ) 

Definition at line 172 of file imageaccess.c.

References pixel_buffers::data_fd.

Referenced by dma2bmp(), and dma2jpeg().

unsigned char* getMonoRow ( struct pixel_buffers pbp,
int  row,
int  bufn 
)

Definition at line 301 of file imageaccess.c.

References pixel_buffers::BayerRows, convert16to8(), convert8to8(), pixel_buffers::data_fd, pixel_buffers::depth, pixel_buffers::imageHeight, pixel_buffers::imageWidth, and pixel_buffers::shft.

Referenced by dma2bmp(), and getPixelRow().

unsigned long* getPalette ( struct pixel_buffers pbp  ) 

Definition at line 121 of file imageaccess.c.

References pixel_buffers::color, and pixel_buffers::palette.

Referenced by dma2bmp(), and dma2jpeg().

unsigned char* getPixelRow ( struct pixel_buffers pbp,
int  row 
)

Definition at line 199 of file imageaccess.c.

References pixel_buffers::BayerRows, pixel_buffers::bufferedRows, pixel_buffers::color, pixel_buffers::data_fd, getMonoRow(), pixel_buffers::imageHeight, pr(), pixel_buffers::prev, and pixel_buffers::this.

Referenced by dma2jpeg().

int initPixelBuffers ( struct pixel_buffers pbp,
const char *  dmaFileName,
int  width,
int  height,
int  contrast,
int  colorMode,
int  bayer,
int  pixelDepth,
const char *  pseudo 
)

Definition at line 129 of file imageaccess.c.

References pixel_buffers::BayerOrient, pixel_buffers::bufferedRows, pixel_buffers::color, pixel_buffers::data_fd, pixel_buffers::depth, pixel_buffers::imageHeight, pixel_buffers::imageWidth, initPalette(), MAX_IMAGE_HEIGHT, MAX_IMAGE_WIDTH, MD, pixel_buffers::shft, and stderr.

Referenced by dma2bmp(), and dma2jpeg().


Generated on Thu Aug 7 16:19:39 2008 for elphel by  doxygen 1.5.1