Functions for image copying. More...
Functions | |
SIMD_API void | SimdCopy (const uint8_t *src, size_t srcStride, size_t width, size_t height, size_t pixelSize, uint8_t *dst, size_t dstStride) |
Copies pixels data of image from source to destination. More... | |
SIMD_API void | SimdCopyFrame (const uint8_t *src, size_t srcStride, size_t width, size_t height, size_t pixelSize, size_t frameLeft, size_t frameTop, size_t frameRight, size_t frameBottom, uint8_t *dst, size_t dstStride) |
Copies pixels data of image from source to destination except for the portion bounded frame. More... | |
template<template< class > class A, template< class > class B> | |
SIMD_INLINE void | Copy (const View< A > &src, View< B > &dst) |
Copies pixels data of image from source to destination. More... | |
template<template< class > class A> | |
SIMD_INLINE void | CopyFrame (const View< A > &src, const Rectangle< ptrdiff_t > &frame, View< A > &dst) |
Copies pixels data of image from source to destination except for the portion bounded frame. More... | |
Detailed Description
Functions for image copying.
Function Documentation
◆ SimdCopy()
void SimdCopy | ( | const uint8_t * | src, |
size_t | srcStride, | ||
size_t | width, | ||
size_t | height, | ||
size_t | pixelSize, | ||
uint8_t * | dst, | ||
size_t | dstStride | ||
) |
Copies pixels data of image from source to destination.
All images must have the same width, height and format.
- Note
- This function has a C++ wrapper Simd::Copy(const View<A> & src, View<B> & dst).
- Parameters
-
[in] src - a pointer to pixels data of source image. [in] srcStride - a row size of the src image. [in] width - an image width. [in] height - an image height. [in] pixelSize - a size of the image pixel. [out] dst - a pointer to pixels data of destination image. [in] dstStride - a row size of the dst image.
◆ SimdCopyFrame()
void SimdCopyFrame | ( | const uint8_t * | src, |
size_t | srcStride, | ||
size_t | width, | ||
size_t | height, | ||
size_t | pixelSize, | ||
size_t | frameLeft, | ||
size_t | frameTop, | ||
size_t | frameRight, | ||
size_t | frameBottom, | ||
uint8_t * | dst, | ||
size_t | dstStride | ||
) |
Copies pixels data of image from source to destination except for the portion bounded frame.
All images must have the same width, height and format.
- Note
- This function has a C++ wrapper Simd::CopyFrame(const View<A>& src, const Rectangle<ptrdiff_t> & frame, View<A>& dst).
- Parameters
-
[in] src - a pointer to pixels data of source image. [in] srcStride - a row size of the src image. [in] width - an image width. [in] height - an image height. [in] pixelSize - a size of the image pixel. [in] frameLeft - a frame left side. [in] frameTop - a frame top side. [in] frameRight - a frame right side. [in] frameBottom - a frame bottom side. [out] dst - a pointer to pixels data of destination image. [in] dstStride - a row size of the dst image.
◆ Copy()
Copies pixels data of image from source to destination.
All images must have the same width, height and format.
- Note
- This function is a C++ wrapper for function SimdCopy.
- Parameters
-
[in] src - a source image. [out] dst - a destination image.
◆ CopyFrame()
Copies pixels data of image from source to destination except for the portion bounded frame.
All images must have the same width, height and format.
- Note
- This function is a C++ wrapper for function SimdCopyFrame.
- Parameters
-
[in] src - a source image. [in] frame - a frame rectangle. [out] dst - a destination image.