Grok 20.3.2
grk::t1::ojph::line_buf Class Reference

#include <ojph_mem.h>

Public Types

enum  : ui32 {
  LFT_UNDEFINED = 0x00 , LFT_BYTE = 0x01 , LFT_16BIT = 0x02 , LFT_32BIT = 0x04 ,
  LFT_64BIT = 0x08 , LFT_INTEGER = 0x10 , LFT_SIZE_MASK = 0x0F
}

Public Member Functions

 line_buf ()
template<typename T>
void wrap (T *buffer, size_t num_ele, ui32 pre_size)
template<>
void wrap (si32 *buffer, size_t num_ele, ui32 pre_size)
template<>
void wrap (float *buffer, size_t num_ele, ui32 pre_size)
template<>
void wrap (si64 *buffer, size_t num_ele, ui32 pre_size)

Public Attributes

size_t size
ui32 pre_size
ui32 flags
union { 
   si32 *   i32 
   si64 *   i64 
   float *   f32 
   void *   p 
}; 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : ui32
Enumerator
LFT_UNDEFINED 
LFT_BYTE 
LFT_16BIT 
LFT_32BIT 
LFT_64BIT 
LFT_INTEGER 
LFT_SIZE_MASK 

Constructor & Destructor Documentation

◆ line_buf()

grk::t1::ojph::line_buf::line_buf ( )
inline

References flags, i32, LFT_UNDEFINED, pre_size, and size.

Member Function Documentation

◆ wrap() [1/4]

template<>
void grk::t1::ojph::line_buf::wrap ( float * buffer,
size_t num_ele,
ui32 pre_size )

References f32, flags, LFT_32BIT, pre_size, and size.

◆ wrap() [2/4]

template<>
void grk::t1::ojph::line_buf::wrap ( si32 * buffer,
size_t num_ele,
ui32 pre_size )

References flags, i32, LFT_32BIT, LFT_INTEGER, pre_size, and size.

◆ wrap() [3/4]

template<>
void grk::t1::ojph::line_buf::wrap ( si64 * buffer,
size_t num_ele,
ui32 pre_size )

References flags, i64, LFT_64BIT, LFT_INTEGER, pre_size, and size.

◆ wrap() [4/4]

template<typename T>
void grk::t1::ojph::line_buf::wrap ( T * buffer,
size_t num_ele,
ui32 pre_size )

References pre_size.

Member Data Documentation

◆ [union]

union { ... } grk::t1::ojph::line_buf

◆ f32

float* grk::t1::ojph::line_buf::f32

Referenced by wrap().

◆ flags

ui32 grk::t1::ojph::line_buf::flags

Referenced by line_buf(), wrap(), wrap(), and wrap().

◆ i32

si32* grk::t1::ojph::line_buf::i32

Referenced by line_buf(), and wrap().

◆ i64

si64* grk::t1::ojph::line_buf::i64

Referenced by wrap().

◆ p

void* grk::t1::ojph::line_buf::p

◆ pre_size

ui32 grk::t1::ojph::line_buf::pre_size

Referenced by line_buf(), wrap(), wrap(), wrap(), and wrap().

◆ size

size_t grk::t1::ojph::line_buf::size

Referenced by line_buf(), wrap(), wrap(), and wrap().


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