Grok  7.6.2
Public Member Functions | Public Attributes | List of all members
grk::grk_buffer_2d< T > Struct Template Reference

#include <util.h>

Inheritance diagram for grk::grk_buffer_2d< T >:
grk::grk_rectangle< uint32_t >

Public Member Functions

 grk_buffer_2d (T *buffer, bool ownsData, uint32_t w, uint32_t strd, uint32_t h)
 
 grk_buffer_2d (uint32_t w, uint32_t strd, uint32_t h)
 
 grk_buffer_2d (uint32_t w, uint32_t h)
 
 grk_buffer_2d (grk_rect_u32 b)
 
 grk_buffer_2d (void)
 
grk_buffer_2doperator= (const grk_buffer_2d &rhs)
 
grk_buffer_2doperator= (const grk_buffer_2d *rhs)
 
virtual ~grk_buffer_2d ()
 
void copy_rect (grk_rect_u32 b)
 
bool alloc (bool clear)
 
void attach (T *buffer, uint32_t strd)
 
void acquire (T *buffer, uint32_t strd)
 
void transfer (T **buffer, bool *owns, uint32_t *strd)
 
template<typename F >
void copy (grk_buffer_2d &rhs, F filter)
 
- Public Member Functions inherited from grk::grk_rectangle< uint32_t >
 grk_rectangle (uint32_t x0, uint32_t y0, uint32_t x1, uint32_t y1)
 
 grk_rectangle (const grk_rectangle &rhs)
 
 grk_rectangle (void)
 
void print (void) const
 
bool is_valid (void) const
 
bool non_empty (void) const
 
bool contains (grk_point< uint32_t > pt)
 
grk_rectangle< uint32_t > & operator= (const grk_rectangle< uint32_t > &rhs)
 
bool operator== (const grk_rectangle< uint32_t > &rhs)
 
void set_rect (grk_rectangle< uint32_t > *rhs)
 
void set_rect (grk_rectangle< uint32_t > rhs)
 
grk_rectangle< uint32_t > rectceildivpow2 (uint32_t power) const
 
grk_rectangle< uint32_t > ceildiv (uint32_t den) const
 
grk_rectangle< uint32_t > intersection (const grk_rectangle< uint32_t > rhs) const
 
grk_rectangle< uint32_t > intersection (const grk_rectangle< uint32_t > *rhs) const
 
bool isContainedIn (const grk_rectangle< uint32_t > rhs) const
 
grk_rectangle< uint32_t > rect_union (const grk_rectangle< uint32_t > *rhs) const
 
grk_rectangle< uint32_t > rect_union (const grk_rectangle< uint32_t > &rhs) const
 
uint64_t area (void) const
 
uint32_t width () const
 
uint32_t height () const
 
grk_rectangle< uint32_t > pan (int64_t x, int64_t y) const
 
grk_rectangle< uint32_t > & grow (uint32_t boundary)
 
grk_rectangle< uint32_t > & grow (uint32_t boundaryx, uint32_t boundaryy)
 
grk_rectangle< uint32_t > & grow (uint32_t boundary, uint32_t maxX, uint32_t maxY)
 
grk_rectangle< uint32_t > & grow (uint32_t boundaryx, uint32_t boundaryy, uint32_t maxX, uint32_t maxY)
 

Public Attributes

T * data
 
bool owns_data
 
uint32_t stride
 
- Public Attributes inherited from grk::grk_rectangle< uint32_t >
uint32_t x0
 
uint32_t y0
 
uint32_t x1
 
uint32_t y1
 

Constructor & Destructor Documentation

◆ grk_buffer_2d() [1/5]

template<typename T >
grk::grk_buffer_2d< T >::grk_buffer_2d ( T *  buffer,
bool  ownsData,
uint32_t  w,
uint32_t  strd,
uint32_t  h 
)
inline

◆ grk_buffer_2d() [2/5]

template<typename T >
grk::grk_buffer_2d< T >::grk_buffer_2d ( uint32_t  w,
uint32_t  strd,
uint32_t  h 
)
inline

◆ grk_buffer_2d() [3/5]

template<typename T >
grk::grk_buffer_2d< T >::grk_buffer_2d ( uint32_t  w,
uint32_t  h 
)
inline

◆ grk_buffer_2d() [4/5]

template<typename T >
grk::grk_buffer_2d< T >::grk_buffer_2d ( grk_rect_u32  b)
inlineexplicit

◆ grk_buffer_2d() [5/5]

template<typename T >
grk::grk_buffer_2d< T >::grk_buffer_2d ( void  )
inline

◆ ~grk_buffer_2d()

template<typename T >
virtual grk::grk_buffer_2d< T >::~grk_buffer_2d ( )
inlinevirtual

Member Function Documentation

◆ acquire()

template<typename T >
void grk::grk_buffer_2d< T >::acquire ( T *  buffer,
uint32_t  strd 
)
inline

◆ alloc()

template<typename T >
bool grk::grk_buffer_2d< T >::alloc ( bool  clear)
inline

◆ attach()

template<typename T >
void grk::grk_buffer_2d< T >::attach ( T *  buffer,
uint32_t  strd 
)
inline

◆ copy()

template<typename T >
template<typename F >
void grk::grk_buffer_2d< T >::copy ( grk_buffer_2d< T > &  rhs,
filter 
)
inline

◆ copy_rect()

template<typename T >
void grk::grk_buffer_2d< T >::copy_rect ( grk_rect_u32  b)
inline

◆ operator=() [1/2]

template<typename T >
grk_buffer_2d& grk::grk_buffer_2d< T >::operator= ( const grk_buffer_2d< T > &  rhs)
inline

◆ operator=() [2/2]

template<typename T >
grk_buffer_2d& grk::grk_buffer_2d< T >::operator= ( const grk_buffer_2d< T > *  rhs)
inline

◆ transfer()

template<typename T >
void grk::grk_buffer_2d< T >::transfer ( T **  buffer,
bool *  owns,
uint32_t *  strd 
)
inline

Member Data Documentation

◆ data

template<typename T >
T* grk::grk_buffer_2d< T >::data

◆ owns_data

template<typename T >
bool grk::grk_buffer_2d< T >::owns_data

◆ stride

template<typename T >
uint32_t grk::grk_buffer_2d< T >::stride

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