OpenCV  4.5.0
Open Source Computer Vision
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cv::v_reg< _Tp, n > Struct Template Reference

#include <opencv2/core/hal/intrin_rvv.hpp>

Public Types

enum  { nlanes = n }
 
typedef _Tp lane_type
 

Public Member Functions

 v_reg (const _Tp *ptr)
 
 v_reg (_Tp s0, _Tp s1)
 
 v_reg (_Tp s0, _Tp s1, _Tp s2, _Tp s3)
 
 v_reg (_Tp s0, _Tp s1, _Tp s2, _Tp s3, _Tp s4, _Tp s5, _Tp s6, _Tp s7)
 
 v_reg (_Tp s0, _Tp s1, _Tp s2, _Tp s3, _Tp s4, _Tp s5, _Tp s6, _Tp s7, _Tp s8, _Tp s9, _Tp s10, _Tp s11, _Tp s12, _Tp s13, _Tp s14, _Tp s15)
 
 v_reg ()
 
 v_reg (const v_reg< _Tp, n > &r)
 
 v_reg (const _Tp *ptr)
 Constructor. More...
 
 v_reg (_Tp s0, _Tp s1)
 Constructor. More...
 
 v_reg (_Tp s0, _Tp s1, _Tp s2, _Tp s3)
 Constructor. More...
 
 v_reg (_Tp s0, _Tp s1, _Tp s2, _Tp s3, _Tp s4, _Tp s5, _Tp s6, _Tp s7)
 Constructor. More...
 
 v_reg (_Tp s0, _Tp s1, _Tp s2, _Tp s3, _Tp s4, _Tp s5, _Tp s6, _Tp s7, _Tp s8, _Tp s9, _Tp s10, _Tp s11, _Tp s12, _Tp s13, _Tp s14, _Tp s15)
 Constructor. More...
 
 v_reg ()
 Default constructor. More...
 
 v_reg (const v_reg< _Tp, n > &r)
 Copy constructor. More...
 
_Tp get (const int i) const
 
_Tp get0 () const
 
_Tp get0 () const
 Access first value. More...
 
v_reg< _Tp, n > high () const
 
v_regoperator= (const v_reg< _Tp, n > &r)
 
template<typename _Tp2 , int n2>
v_reg< _Tp2, n2 > reinterpret_as () const
 

Static Public Member Functions

static v_reg< _Tp, n > all (_Tp s)
 
static v_reg< _Tp, n > zero ()
 

Public Attributes

_Tp s [n]
 

Member Typedef Documentation

◆ lane_type

template<typename _Tp, int n>
typedef _Tp cv::v_reg< _Tp, n >::lane_type

Member Enumeration Documentation

◆ anonymous enum

template<typename _Tp, int n>
anonymous enum
Enumerator
nlanes 

Constructor & Destructor Documentation

◆ v_reg() [1/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( const _Tp *  ptr)
inlineexplicit

Constructor.

Initializes register with data from memory

Parameters
ptrpointer to memory block with data for register

◆ v_reg() [2/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1 
)
inline

Constructor.

Initializes register with two 64-bit values

◆ v_reg() [3/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1,
_Tp  s2,
_Tp  s3 
)
inline

Constructor.

Initializes register with four 32-bit values

◆ v_reg() [4/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1,
_Tp  s2,
_Tp  s3,
_Tp  s4,
_Tp  s5,
_Tp  s6,
_Tp  s7 
)
inline

Constructor.

Initializes register with eight 16-bit values

◆ v_reg() [5/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1,
_Tp  s2,
_Tp  s3,
_Tp  s4,
_Tp  s5,
_Tp  s6,
_Tp  s7,
_Tp  s8,
_Tp  s9,
_Tp  s10,
_Tp  s11,
_Tp  s12,
_Tp  s13,
_Tp  s14,
_Tp  s15 
)
inline

Constructor.

Initializes register with sixteen 8-bit values

◆ v_reg() [6/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( )
inline

Default constructor.

Does not initialize anything

◆ v_reg() [7/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( const v_reg< _Tp, n > &  r)
inline

Copy constructor.

◆ v_reg() [8/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( const _Tp *  ptr)
inlineexplicit

◆ v_reg() [9/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1 
)
inline

◆ v_reg() [10/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1,
_Tp  s2,
_Tp  s3 
)
inline

◆ v_reg() [11/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1,
_Tp  s2,
_Tp  s3,
_Tp  s4,
_Tp  s5,
_Tp  s6,
_Tp  s7 
)
inline

◆ v_reg() [12/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( _Tp  s0,
_Tp  s1,
_Tp  s2,
_Tp  s3,
_Tp  s4,
_Tp  s5,
_Tp  s6,
_Tp  s7,
_Tp  s8,
_Tp  s9,
_Tp  s10,
_Tp  s11,
_Tp  s12,
_Tp  s13,
_Tp  s14,
_Tp  s15 
)
inline

◆ v_reg() [13/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( )
inline

◆ v_reg() [14/14]

template<typename _Tp, int n>
cv::v_reg< _Tp, n >::v_reg ( const v_reg< _Tp, n > &  r)
inline

Member Function Documentation

◆ all()

template<typename _Tp, int n>
static v_reg<_Tp, n> cv::v_reg< _Tp, n >::all ( _Tp  s)
inlinestatic

◆ get()

template<typename _Tp, int n>
_Tp cv::v_reg< _Tp, n >::get ( const int  i) const
inline

◆ get0() [1/2]

template<typename _Tp, int n>
_Tp cv::v_reg< _Tp, n >::get0 ( ) const
inline

◆ get0() [2/2]

template<typename _Tp, int n>
_Tp cv::v_reg< _Tp, n >::get0 ( ) const
inline

Access first value.

Returns value of the first lane according to register type, for example:

v_int32x4 r(1, 2, 3, 4);
int v = r.get0(); // returns 1
v_uint64x2 r(1, 2);
uint64_t v = r.get0(); // returns 1

◆ high()

template<typename _Tp, int n>
v_reg<_Tp, n> cv::v_reg< _Tp, n >::high ( ) const
inline

◆ operator=()

template<typename _Tp, int n>
v_reg& cv::v_reg< _Tp, n >::operator= ( const v_reg< _Tp, n > &  r)
inline

◆ reinterpret_as()

template<typename _Tp, int n>
template<typename _Tp2 , int n2>
v_reg<_Tp2, n2> cv::v_reg< _Tp, n >::reinterpret_as ( ) const
inline

◆ zero()

template<typename _Tp, int n>
static v_reg<_Tp, n> cv::v_reg< _Tp, n >::zero ( )
inlinestatic

Member Data Documentation

◆ s

template<typename _Tp, int n>
_Tp cv::v_reg< _Tp, n >::s[n]

The documentation for this struct was generated from the following files: