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 177 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 180 of file ojph_mem.h.

Constructor & Destructor Documentation

◆ line_buf()

ojph::line_buf::line_buf ( )
inline

Definition at line 193 of file ojph_mem.h.

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

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, pre_size, and 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, pre_size, and 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, pre_size, and size.

◆ wrap() [4/4]

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

References pre_size.

Referenced by load_ppm(), and load_yuv().

Member Data Documentation

◆ [union]

union { ... } ojph::line_buf

◆ f32

◆ flags

◆ i32

◆ i64

◆ p

void* ojph::line_buf::p

◆ pre_size

ui32 ojph::line_buf::pre_size

Definition at line 199 of file ojph_mem.h.

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

◆ size

size_t ojph::line_buf::size

The documentation for this class was generated from the following files:
  • /build/openjph/src/OpenJPH-0.24.3/src/core/common/ojph_mem.h
  • /build/openjph/src/OpenJPH-0.24.3/src/core/others/ojph_mem.cpp