Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

void phVECTOR_BLOCK_COPY uint32_t  nelems,
uint8_t  elemsize,
uint8_t  src_stride,
uint8_t  dst_stride,
uint8_t  block_size,
uint8_t  src_index,
uint8_t  dst_index,
uint8_t src,
uint8_t **  dst,
uint32_t pdstsize
 

Copies from one byte depth to another byte depth. This will take the data from 'src' and copy it into '*dst'. The 'src_stride' is the number of bytes each pixel of data is stored in. The 'dst_stride' is the number of bytes to copy the 'src' data into and block_size should be <= MIN(dst_stride,src_stride) OR if block_size is greater than this, data will be replicated, for instance in a greyscale to color space conversion.

Given src_stride:4 and dst_stride:3 w/index:1, The following occurs: [ A | B | C | D ] -> [ B | C | D ] [ 0 | 1 | 2 | 3 ] Given src_stride:4 and dst_stride:1 w/index:3, The following occurs: [ A | B | C | D ] -> [ D ] [ 0 | 1 | 2 | 3 ] Given src_stride:3 and dst_stride:4 w/index:1, The following occurs: [ A | B | C ] -> [ X | A | B | C ] [ 0 | 1 | 2 | 3 ] Given src_stride:1 and dst_stride:3 w/index:1, The following occurs: [ A ] -> [ X | A | X | X ] [ 0 | 1 | 2 | 3 ]

Parameters:
[in] nelems element count; elem == pixel
[in] elemsize pixel size
[in] src_stride This is the number of bytes to increment through the source buffer
[in] dst_stride This is the number of bytes to incremenr through the dest buffer
[in] block_size This is the number of bytes to copy
[in] src_index 
[in] dst_index 
[in] src This is a pointer to the source of the data to be copied
[out] dst 
[out] pdstsize This is where the size of the dst buffer is stored when the function returns.

Definition at line 803 of file ImageConversions.c.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:26 2007 for phission by  doxygen 1.4.4