Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub
Related Functions

Related functions for Simd::Frame structure. More...

Functions

template<template< class > class A, template< class > class B>
bool EqualSize (const Frame< A > &a, const Frame< B > &b)
 
template<template< class > class A, template< class > class B>
bool Compatible (const Frame< A > &a, const Frame< B > &b)
 
template<template< class > class A, template< class > class B>
void Copy (const Frame< A > &src, Frame< B > &dst)
 Copies one frame to another frame. More...
 
template<template< class > class A>
void Convert (const Frame< A > &src, Frame< A > &dst)
 Converts one frame to another frame. More...
 
template<template< class > class A>
SIMD_INLINE void Resize (const Frame< A > &src, Frame< A > &dst, ::SimdResizeMethodType method=::SimdResizeMethodBilinear)
 Performs resizing of frame. More...
 
template<template< class > class A>
SIMD_INLINE void Resize (const Frame< A > &src, Frame< A > &dst, const Point< ptrdiff_t > &size, ::SimdResizeMethodType method=::SimdResizeMethodBilinear)
 Performs resizing of frame. More...
 

Detailed Description

Related functions for Simd::Frame structure.

Function Documentation

◆ EqualSize()

template< template< class > class A, template< class > class B > bool EqualSize ( const Frame< A > &  a,
const Frame< B > &  b 
)

Checks two frames on the same size.

Parameters
[in]a- a first frame.
[in]b- a second frame.
Returns
- a result of checking.

◆ Compatible()

template< template< class > class A, template< class > class B > bool Compatible ( const Frame< A > &  a,
const Frame< B > &  b 
)

Checks two frames on compatibility (the frames must have the same size and pixel format).

Parameters
[in]a- a first frame.
[in]b- a second frame.
Returns
- a result of checking.

◆ Copy()

template< template< class > class A, template< class > class B > void Copy ( const Frame< A > &  src,
Frame< B > &  dst 
)

Copies one frame to another frame.

The frames must have the same width, height and format.

Parameters
[in]src- an input frame.
[out]dst- an output frame.

◆ Convert()

template< template< class > class A > void Convert ( const Frame< A > &  src,
Frame< A > &  dst 
)

Converts one frame to another frame.

The frames must have the same width and height.

Parameters
[in]src- an input frame.
[out]dst- an output frame.

◆ Resize() [1/2]

void Resize ( const Frame< A > &  src,
Frame< A > &  dst,
::SimdResizeMethodType  method = ::SimdResizeMethodBilinear 
)

Performs resizing of frame.

All frames must have the same format.

Parameters
[in]src- an original input frame.
[out]dst- a resized output frame.
[in]method- a resizing method. By default it is equal to SimdResizeMethodBilinear.

◆ Resize() [2/2]

void Resize ( const Frame< A > &  src,
Frame< A > &  dst,
const Point< ptrdiff_t > &  size,
::SimdResizeMethodType  method = ::SimdResizeMethodBilinear 
)

Performs resizing of frame.

Parameters
[in]src- an original input frame.
[out]dst- a resized output frame. The input frame can be the output.
[in]size- a size of output frame.
[in]method- a resizing method. By default it is equal to SimdResizeMethodBilinear.