OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
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 
 
};  
 

Detailed Description

Definition at line 135 of file ojph_mem.h.

Member Enumeration Documentation

◆ anonymous enum

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

Definition at line 138 of file ojph_mem.h.

Constructor & Destructor Documentation

◆ line_buf()

ojph::line_buf::line_buf ( )
inline

Definition at line 151 of file ojph_mem.h.

Member Function Documentation

◆ wrap() [1/4]

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

Definition at line 64 of file ojph_mem.cpp.

References f32, flags, LFT_32BIT, and pre_size.

◆ wrap() [2/4]

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

Definition at line 54 of file ojph_mem.cpp.

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

◆ wrap() [3/4]

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

Definition at line 74 of file ojph_mem.cpp.

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

◆ wrap() [4/4]

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

Member Data Documentation

◆ [union]

union { ... } ojph::line_buf

◆ f32

◆ flags

◆ i32

◆ i64

◆ p

◆ pre_size

ui32 ojph::line_buf::pre_size

Definition at line 157 of file ojph_mem.h.

Referenced by ojph::local::subband::exchange_buf(), wrap(), wrap(), and wrap().

◆ size

size_t ojph::line_buf::size

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