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. |