OpenJPH
Open-source implementation of JPEG2000 Part-15
Loading...
Searching...
No Matches
ojph Namespace Reference

Namespaces

namespace  local
 
namespace  net
 
namespace  stex
 
namespace  thds
 

Classes

class  argument
 
class  cli_interpreter
 
struct  coded_lists
 
class  codestream
 The object represent a codestream. More...
 
class  comment_exchange
 
class  dpx_in
 
class  image_in_base
 
class  image_out_base
 
class  infile_base
 
class  j2c_infile
 
class  j2c_outfile
 
struct  lifting_buf
 
class  line_buf
 
class  mem_elastic_allocator
 
class  mem_fixed_allocator
 
class  mem_infile
 
class  mem_outfile
 mem_outfile stores encoded j2k codestreams in memory More...
 
class  message_base
 This is the base class from which all messaging levels are derived. More...
 
class  message_error
 Derived from message_base to handle error messages. More...
 
class  message_info
 Derived from message_base to handle info messages. More...
 
class  message_warning
 Derived from message_base to handle warning messages. More...
 
class  outfile_base
 
class  param_coc
 
class  param_cod
 
class  param_nlt
 non-linearity point transformation object (implements NLT marker segment) More...
 
class  param_qcd
 Quantization parameters object. More...
 
class  param_siz
 
class  pfm_in
 
class  pfm_out
 
struct  point
 
class  ppm_in
 
class  ppm_out
 
class  raw_in
 
class  raw_out
 
struct  rect
 
struct  size
 
class  yuv_in
 
class  yuv_out
 

Typedefs

typedef void(* conversion_fun) (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
typedef uint8_t ui8
 
typedef int8_t si8
 
typedef uint16_t ui16
 
typedef int16_t si16
 
typedef uint32_t ui32
 
typedef int32_t si32
 
typedef uint64_t ui64
 
typedef int64_t si64
 

Enumerations

enum  PROGRESSION_ORDER : si32 {
  OJPH_PO_LRCP = 0 , OJPH_PO_RLCP = 1 , OJPH_PO_RPCL = 2 , OJPH_PO_PCRL = 3 ,
  OJPH_PO_CPRL = 4
}
 
enum  OJPH_PROFILE_NUM : si32 {
  OJPH_PN_UNDEFINED = 0 , OJPH_PN_PROFILE0 = 1 , OJPH_PN_PROFILE1 = 2 , OJPH_PN_CINEMA2K = 3 ,
  OJPH_PN_CINEMA4K = 4 , OJPH_PN_CINEMAS2K = 5 , OJPH_PN_CINEMAS4K = 6 , OJPH_PN_BROADCAST = 7 ,
  OJPH_PN_IMF = 8
}
 
enum  OJPH_TILEPART_DIVISIONS : ui32 {
  OJPH_TILEPART_NO_DIVISIONS = 0x0 , OJPH_TILEPART_RESOLUTIONS = 0x1 , OJPH_TILEPART_COMPONENTS = 0x2 , OJPH_TILEPART_LAYERS = 0x4 ,
  OJPH_TILEPART_MASK = 0x3
}
 
enum  : int {
  X86_CPU_EXT_LEVEL_GENERIC = 0 , X86_CPU_EXT_LEVEL_MMX = 1 , X86_CPU_EXT_LEVEL_SSE = 2 , X86_CPU_EXT_LEVEL_SSE2 = 3 ,
  X86_CPU_EXT_LEVEL_SSE3 = 4 , X86_CPU_EXT_LEVEL_SSSE3 = 5 , X86_CPU_EXT_LEVEL_SSE41 = 6 , X86_CPU_EXT_LEVEL_SSE42 = 7 ,
  X86_CPU_EXT_LEVEL_AVX = 8 , X86_CPU_EXT_LEVEL_AVX2 = 9 , X86_CPU_EXT_LEVEL_AVX2FMA = 10 , X86_CPU_EXT_LEVEL_AVX512 = 11
}
 
enum  : int {
  ARM_CPU_EXT_LEVEL_GENERIC = 0 , ARM_CPU_EXT_LEVEL_NEON = 1 , ARM_CPU_EXT_LEVEL_ASIMD = 1 , ARM_CPU_EXT_LEVEL_SVE = 2 ,
  ARM_CPU_EXT_LEVEL_SVE2 = 3
}
 
enum  OJPH_MSG_LEVEL : int {
  ALL_MSG = 0 , INFO = 1 , WARN = 2 , ERROR = 3 ,
  NO_MSG = 4
}
 This enum is use to specify the level of severity of message while processing markers. More...
 

Functions

void gen_cvrt_32b1c_to_8ub1c (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void gen_cvrt_32b3c_to_8ub3c (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void gen_cvrt_32b1c_to_16ub1c_le (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void gen_cvrt_32b3c_to_16ub3c_le (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void gen_cvrt_32b1c_to_16ub1c_be (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void gen_cvrt_32b3c_to_16ub3c_be (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void sse41_cvrt_32b1c_to_8ub1c (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void sse41_cvrt_32b3c_to_8ub3c (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void sse41_cvrt_32b1c_to_16ub1c_le (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void sse41_cvrt_32b3c_to_16ub3c_le (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void sse41_cvrt_32b1c_to_16ub1c_be (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void sse41_cvrt_32b3c_to_16ub3c_be (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void avx2_cvrt_32b1c_to_8ub1c (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void avx2_cvrt_32b3c_to_8ub3c (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void avx2_cvrt_32b1c_to_16ub1c_le (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
void avx2_cvrt_32b1c_to_16ub1c_be (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)
 
static ui16 be2le (const ui16 v)
 
static ui32 be2le (const ui32 t)
 
static void eat_white_spaces (FILE *fh)
 
static ui16 be2le (const ui16 v)
 
static ui16 be2le (const ui16 v)
 
OJPH_EXPORT int get_cpu_ext_level ()
 
static ui32 population_count (ui32 val)
 
static ui32 count_leading_zeros (ui32 val)
 
static ui32 count_leading_zeros (ui64 val)
 
static ui32 count_trailing_zeros (ui32 val)
 
static si32 ojph_round (float val)
 
static si32 ojph_trunc (float val)
 
template<typename T , ui32 N>
size_t calc_aligned_size (size_t size)
 
template<typename T , ui32 N>
T * align_ptr (T *ptr)
 
int ojph_fseek (FILE *stream, si64 offset, int origin)
 
si64 ojph_ftell (FILE *stream)
 
OJPH_EXPORT void set_info_stream (FILE *s)
 Replaces the info output file from the default stdout to user defined output file.
 
OJPH_EXPORT void configure_info (message_info *info)
 This overrides the default behaviour of handling info messages.
 
OJPH_EXPORT message_infoget_info ()
 Get the info message object, whose operator() member class is called for info messages – See the macros below.
 
OJPH_EXPORT void set_warning_stream (FILE *s)
 Replaces the warning output file from the default stdout to user defined output file.
 
OJPH_EXPORT void configure_warning (message_warning *warn)
 This overrides the default behaviour of handling warning messages.
 
OJPH_EXPORT message_warningget_warning ()
 Get the warning message object, whose operator() member class is called for warning messages – See the macros below.
 
OJPH_EXPORT void set_error_stream (FILE *s)
 Replaces the error output file from the default stderr to user defined output file.
 
OJPH_EXPORT void configure_error (message_error *error)
 This overrides the default behaviour of handling error messages.
 
OJPH_EXPORT message_errorget_error ()
 Get the error message object, whose operator() member class is called for error messages – See the macros below.
 
OJPH_EXPORT void set_message_level (OJPH_MSG_LEVEL level)
 Sets the minimum severity of the message to be reported.
 
bool init_cpu_ext_level (int &level)
 

Variables

const char OJPH_PO_STRING_LRCP [] = "LRCP"
 
const char OJPH_PO_STRING_RLCP [] = "RLCP"
 
const char OJPH_PO_STRING_RPCL [] = "RPCL"
 
const char OJPH_PO_STRING_PCRL [] = "PCRL"
 
const char OJPH_PO_STRING_CPRL [] = "CPRL"
 
const char OJPH_PN_STRING_PROFILE0 [] = "PROFILE0"
 
const char OJPH_PN_STRING_PROFILE1 [] = "PROFILE1"
 
const char OJPH_PN_STRING_CINEMA2K [] = "CINEMA2K"
 
const char OJPH_PN_STRING_CINEMA4K [] = "CINEMA4K"
 
const char OJPH_PN_STRING_CINEMAS2K [] = "CINEMAS2K"
 
const char OJPH_PN_STRING_CINEMAS4K [] = "CINEMAS4K"
 
const char OJPH_PN_STRING_BROADCAST [] = "BROADCAST"
 
const char OJPH_PN_STRING_IMF [] = "IMF"
 
const ui32 byte_alignment = 64
 
const ui32 log_byte_alignment = 31 - count_leading_zeros(byte_alignment)
 
const ui32 object_alignment = 8
 
const int NUM_FRAC_BITS = 13
 
static int cpu_level
 
static bool cpu_level_initialized = init_cpu_ext_level(cpu_level)
 
FILE * info_stream = stdout
 
message_info info
 
message_infolocal_info = &info
 
OJPH_MSG_LEVEL message_level = OJPH_MSG_LEVEL::ALL_MSG
 
FILE * warning_stream = stdout
 
message_warning warn
 
message_warninglocal_warn = &warn
 
FILE * error_stream = stderr
 
message_error error
 
message_errorlocal_error = &error
 

Typedef Documentation

◆ conversion_fun

typedef void(* ojph::conversion_fun) (const line_buf *ln0, const line_buf *ln1, const line_buf *ln2, void *dp, ui32 bit_depth, ui32 count)

Definition at line 513 of file ojph_img_io.h.

◆ si16

typedef int16_t ojph::si16

Definition at line 53 of file ojph_defs.h.

◆ si32

typedef int32_t ojph::si32

Definition at line 55 of file ojph_defs.h.

◆ si64

typedef int64_t ojph::si64

Definition at line 57 of file ojph_defs.h.

◆ si8

typedef int8_t ojph::si8

Definition at line 51 of file ojph_defs.h.

◆ ui16

typedef uint16_t ojph::ui16

Definition at line 52 of file ojph_defs.h.

◆ ui32

typedef uint32_t ojph::ui32

Definition at line 54 of file ojph_defs.h.

◆ ui64

typedef uint64_t ojph::ui64

Definition at line 56 of file ojph_defs.h.

◆ ui8

typedef uint8_t ojph::ui8

Definition at line 50 of file ojph_defs.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
X86_CPU_EXT_LEVEL_GENERIC 
X86_CPU_EXT_LEVEL_MMX 
X86_CPU_EXT_LEVEL_SSE 
X86_CPU_EXT_LEVEL_SSE2 
X86_CPU_EXT_LEVEL_SSE3 
X86_CPU_EXT_LEVEL_SSSE3 
X86_CPU_EXT_LEVEL_SSE41 
X86_CPU_EXT_LEVEL_SSE42 
X86_CPU_EXT_LEVEL_AVX 
X86_CPU_EXT_LEVEL_AVX2 
X86_CPU_EXT_LEVEL_AVX2FMA 
X86_CPU_EXT_LEVEL_AVX512 

Definition at line 128 of file ojph_arch.h.

◆ anonymous enum

anonymous enum : int
Enumerator
ARM_CPU_EXT_LEVEL_GENERIC 
ARM_CPU_EXT_LEVEL_NEON 
ARM_CPU_EXT_LEVEL_ASIMD 
ARM_CPU_EXT_LEVEL_SVE 
ARM_CPU_EXT_LEVEL_SVE2 

Definition at line 143 of file ojph_arch.h.

◆ OJPH_MSG_LEVEL

This enum is use to specify the level of severity of message while processing markers.

Enumerator
ALL_MSG 
INFO 
WARN 
ERROR 
NO_MSG 

Definition at line 52 of file ojph_message.h.

◆ OJPH_PROFILE_NUM

Enumerator
OJPH_PN_UNDEFINED 
OJPH_PN_PROFILE0 
OJPH_PN_PROFILE1 
OJPH_PN_CINEMA2K 
OJPH_PN_CINEMA4K 
OJPH_PN_CINEMAS2K 
OJPH_PN_CINEMAS4K 
OJPH_PN_BROADCAST 
OJPH_PN_IMF 

Definition at line 74 of file ojph_params_local.h.

◆ OJPH_TILEPART_DIVISIONS

Enumerator
OJPH_TILEPART_NO_DIVISIONS 
OJPH_TILEPART_RESOLUTIONS 
OJPH_TILEPART_COMPONENTS 
OJPH_TILEPART_LAYERS 
OJPH_TILEPART_MASK 

Definition at line 98 of file ojph_params_local.h.

◆ PROGRESSION_ORDER

Enumerator
OJPH_PO_LRCP 
OJPH_PO_RLCP 
OJPH_PO_RPCL 
OJPH_PO_PCRL 
OJPH_PO_CPRL 

Definition at line 57 of file ojph_params_local.h.

Function Documentation

◆ align_ptr()

template<typename T , ui32 N>
T * ojph::align_ptr ( T *  ptr)
inline

Definition at line 308 of file ojph_arch.h.

References count_leading_zeros().

◆ avx2_cvrt_32b1c_to_16ub1c_be()

void ojph::avx2_cvrt_32b1c_to_16ub1c_be ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 312 of file ojph_img_io_avx2.cpp.

References be2le(), ojph::line_buf::i32, and ojph_unused.

Referenced by ojph::ppm_out::configure().

◆ avx2_cvrt_32b1c_to_16ub1c_le()

void ojph::avx2_cvrt_32b1c_to_16ub1c_le ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 268 of file ojph_img_io_avx2.cpp.

References ojph::line_buf::i32, and ojph_unused.

◆ avx2_cvrt_32b1c_to_8ub1c()

void ojph::avx2_cvrt_32b1c_to_8ub1c ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 58 of file ojph_img_io_avx2.cpp.

References ojph::line_buf::i32, and ojph_unused.

Referenced by ojph::ppm_out::configure().

◆ avx2_cvrt_32b3c_to_8ub3c()

void ojph::avx2_cvrt_32b3c_to_8ub3c ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 116 of file ojph_img_io_avx2.cpp.

References ojph::line_buf::i32.

Referenced by ojph::ppm_out::configure().

◆ be2le() [1/4]

◆ be2le() [2/4]

static ui16 ojph::be2le ( const ui16  v)
static

Definition at line 52 of file ojph_img_io_avx2.cpp.

◆ be2le() [3/4]

static ui16 ojph::be2le ( const ui16  v)
static

Definition at line 52 of file ojph_img_io_sse41.cpp.

◆ be2le() [4/4]

static ui32 ojph::be2le ( const ui32  t)
inlinestatic

Definition at line 62 of file ojph_img_io.cpp.

References be2le().

◆ calc_aligned_size()

template<typename T , ui32 N>
size_t ojph::calc_aligned_size ( size_t  size)

Definition at line 298 of file ojph_arch.h.

References count_leading_zeros().

◆ configure_error()

void ojph::configure_error ( message_error error)

This overrides the default behaviour of handling error messages.

Parameters
errorAn object derived from message_error to implement the desired behaviour. Remember, remember to throw an exception at the end.

Definition at line 138 of file ojph_message.cpp.

References error, and local_error.

◆ configure_info()

void ojph::configure_info ( message_info info)

This overrides the default behaviour of handling info messages.

Parameters
infoAn object derived from message_info to implement the desired behaviour.

Definition at line 56 of file ojph_message.cpp.

References info, and local_info.

◆ configure_warning()

void ojph::configure_warning ( message_warning warn)

This overrides the default behaviour of handling warning messages.

Parameters
warnAn object derived from message_warning to implement the desired behaviour.

Definition at line 97 of file ojph_message.cpp.

References local_warn, and warn.

◆ count_leading_zeros() [1/2]

◆ count_leading_zeros() [2/2]

static ui32 ojph::count_leading_zeros ( ui64  val)
inlinestatic

Definition at line 201 of file ojph_arch.h.

◆ count_trailing_zeros()

static ui32 ojph::count_trailing_zeros ( ui32  val)
inlinestatic

Definition at line 236 of file ojph_arch.h.

References population_count().

◆ eat_white_spaces()

static void ojph::eat_white_spaces ( FILE *  fh)
static

Definition at line 72 of file ojph_img_io.cpp.

Referenced by ojph::ppm_in::open(), and ojph::pfm_in::open().

◆ gen_cvrt_32b1c_to_16ub1c_be()

void ojph::gen_cvrt_32b1c_to_16ub1c_be ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 190 of file ojph_img_io.cpp.

References be2le(), ojph::line_buf::i32, and ojph_unused.

Referenced by ojph::ppm_out::configure().

◆ gen_cvrt_32b1c_to_16ub1c_le()

void ojph::gen_cvrt_32b1c_to_16ub1c_le ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 145 of file ojph_img_io.cpp.

References ojph::line_buf::i32, and ojph_unused.

◆ gen_cvrt_32b1c_to_8ub1c()

void ojph::gen_cvrt_32b1c_to_8ub1c ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 99 of file ojph_img_io.cpp.

References ojph::line_buf::i32, and ojph_unused.

Referenced by ojph::ppm_out::configure().

◆ gen_cvrt_32b3c_to_16ub3c_be()

void ojph::gen_cvrt_32b3c_to_16ub3c_be ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 208 of file ojph_img_io.cpp.

References be2le(), and ojph::line_buf::i32.

Referenced by ojph::ppm_out::configure().

◆ gen_cvrt_32b3c_to_16ub3c_le()

void ojph::gen_cvrt_32b3c_to_16ub3c_le ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 163 of file ojph_img_io.cpp.

References ojph::line_buf::i32.

◆ gen_cvrt_32b3c_to_8ub3c()

void ojph::gen_cvrt_32b3c_to_8ub3c ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 118 of file ojph_img_io.cpp.

References ojph::line_buf::i32.

Referenced by ojph::ppm_out::configure().

◆ get_cpu_ext_level()

◆ get_error()

message_error * ojph::get_error ( )

Get the error message object, whose operator() member class is called for error messages – See the macros below.

Returns
message_error* returns the active message_error object, or an object of the message_error-derived class if one was set. This object handles error messages. This is mainly to be used with the macros below.

Definition at line 144 of file ojph_message.cpp.

References local_error.

◆ get_info()

message_info * ojph::get_info ( )

Get the info message object, whose operator() member class is called for info messages – See the macros below.

Returns
message_info* returns the active message_info object, or an object of the message_info-derived class if one was set. This object handles info messages. This is mainly to be used with the macros below.

Definition at line 62 of file ojph_message.cpp.

References local_info.

◆ get_warning()

message_warning * ojph::get_warning ( )

Get the warning message object, whose operator() member class is called for warning messages – See the macros below.

Returns
message_warning* returns the active message_warning object, or an object of the message_warning-derived class if one was set. This object handles warning messages. This is mainly to be used with the macros below.

Definition at line 103 of file ojph_message.cpp.

References local_warn.

◆ init_cpu_ext_level()

bool ojph::init_cpu_ext_level ( int &  level)

Definition at line 214 of file ojph_arch.cpp.

◆ ojph_fseek()

int ojph::ojph_fseek ( FILE *  stream,
si64  offset,
int  origin 
)
inline

◆ ojph_ftell()

si64 ojph::ojph_ftell ( FILE *  stream)
inline

◆ ojph_round()

static si32 ojph::ojph_round ( float  val)
inlinestatic

Definition at line 255 of file ojph_arch.h.

Referenced by ojph::local::local_gen_irv_convert_to_integer().

◆ ojph_trunc()

static si32 ojph::ojph_trunc ( float  val)
inlinestatic

Definition at line 267 of file ojph_arch.h.

Referenced by ojph::local::gen_irv_tx_to_cb32().

◆ population_count()

◆ set_error_stream()

void ojph::set_error_stream ( FILE *  s)

Replaces the error output file from the default stderr to user defined output file.

Parameters
sA pointer to the desired output file; it can be stdout, stderr, a log file, or NULL if no error messages are desired.

Definition at line 150 of file ojph_message.cpp.

References error_stream.

◆ set_info_stream()

void ojph::set_info_stream ( FILE *  s)

Replaces the info output file from the default stdout to user defined output file.

Parameters
sA pointer to the desired output file; it can be stdout, stderr, a log file, or NULL if no info messages are desired.

Definition at line 68 of file ojph_message.cpp.

References info_stream.

◆ set_message_level()

void ojph::set_message_level ( OJPH_MSG_LEVEL  level)

Sets the minimum severity of the message to be reported.

Parameters
levelis the level of the message severity; values are defined in OJPH_MSG_LEVEL.

Definition at line 174 of file ojph_message.cpp.

References ALL_MSG, message_level, and NO_MSG.

◆ set_warning_stream()

void ojph::set_warning_stream ( FILE *  s)

Replaces the warning output file from the default stdout to user defined output file.

Parameters
sA pointer to the desired output file; it can be stdout, stderr, a log file, or NULL if no warning messages are desired.

Definition at line 109 of file ojph_message.cpp.

References warning_stream.

◆ sse41_cvrt_32b1c_to_16ub1c_be()

void ojph::sse41_cvrt_32b1c_to_16ub1c_be ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 368 of file ojph_img_io_sse41.cpp.

References be2le(), ojph::line_buf::i32, and ojph_unused.

Referenced by ojph::ppm_out::configure().

◆ sse41_cvrt_32b1c_to_16ub1c_le()

void ojph::sse41_cvrt_32b1c_to_16ub1c_le ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 227 of file ojph_img_io_sse41.cpp.

References ojph::line_buf::i32, and ojph_unused.

◆ sse41_cvrt_32b1c_to_8ub1c()

void ojph::sse41_cvrt_32b1c_to_8ub1c ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 58 of file ojph_img_io_sse41.cpp.

References ojph::line_buf::i32, and ojph_unused.

Referenced by ojph::ppm_out::configure().

◆ sse41_cvrt_32b3c_to_16ub3c_be()

void ojph::sse41_cvrt_32b3c_to_16ub3c_be ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 410 of file ojph_img_io_sse41.cpp.

References be2le(), and ojph::line_buf::i32.

Referenced by ojph::ppm_out::configure().

◆ sse41_cvrt_32b3c_to_16ub3c_le()

void ojph::sse41_cvrt_32b3c_to_16ub3c_le ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 269 of file ojph_img_io_sse41.cpp.

References be2le(), and ojph::line_buf::i32.

◆ sse41_cvrt_32b3c_to_8ub3c()

void ojph::sse41_cvrt_32b3c_to_8ub3c ( const line_buf ln0,
const line_buf ln1,
const line_buf ln2,
void *  dp,
ui32  bit_depth,
ui32  count 
)

Definition at line 112 of file ojph_img_io_sse41.cpp.

References ojph::line_buf::i32.

Referenced by ojph::ppm_out::configure().

Variable Documentation

◆ byte_alignment

const ui32 ojph::byte_alignment = 64

◆ cpu_level

int ojph::cpu_level
static

Definition at line 240 of file ojph_arch.cpp.

Referenced by get_cpu_ext_level().

◆ cpu_level_initialized

bool ojph::cpu_level_initialized = init_cpu_ext_level(cpu_level)
static

Definition at line 241 of file ojph_arch.cpp.

Referenced by get_cpu_ext_level().

◆ error

message_error ojph::error

Definition at line 134 of file ojph_message.cpp.

Referenced by configure_error(), and ojph::local::tile::parse_tile_header().

◆ error_stream

FILE* ojph::error_stream = stderr

Definition at line 131 of file ojph_message.cpp.

Referenced by ojph::message_error::operator()(), and set_error_stream().

◆ info

message_info ojph::info

Definition at line 51 of file ojph_message.cpp.

Referenced by configure_info().

◆ info_stream

FILE* ojph::info_stream = stdout

Definition at line 48 of file ojph_message.cpp.

Referenced by ojph::message_info::operator()(), and set_info_stream().

◆ local_error

message_error* ojph::local_error = &error

Definition at line 135 of file ojph_message.cpp.

Referenced by configure_error(), and get_error().

◆ local_info

message_info* ojph::local_info = &info

Definition at line 52 of file ojph_message.cpp.

Referenced by configure_info(), and get_info().

◆ local_warn

message_warning* ojph::local_warn = &warn

Definition at line 94 of file ojph_message.cpp.

Referenced by configure_warning(), and get_warning().

◆ log_byte_alignment

const ui32 ojph::log_byte_alignment = 31 - count_leading_zeros(byte_alignment)

Definition at line 283 of file ojph_arch.h.

◆ message_level

◆ NUM_FRAC_BITS

const int ojph::NUM_FRAC_BITS = 13

Definition at line 67 of file ojph_defs.h.

◆ object_alignment

const ui32 ojph::object_alignment = 8

Definition at line 284 of file ojph_arch.h.

◆ OJPH_PN_STRING_BROADCAST

const char ojph::OJPH_PN_STRING_BROADCAST[] = "BROADCAST"

Definition at line 94 of file ojph_params_local.h.

Referenced by ojph::local::codestream::set_profile().

◆ OJPH_PN_STRING_CINEMA2K

const char ojph::OJPH_PN_STRING_CINEMA2K[] = "CINEMA2K"

Definition at line 90 of file ojph_params_local.h.

◆ OJPH_PN_STRING_CINEMA4K

const char ojph::OJPH_PN_STRING_CINEMA4K[] = "CINEMA4K"

Definition at line 91 of file ojph_params_local.h.

◆ OJPH_PN_STRING_CINEMAS2K

const char ojph::OJPH_PN_STRING_CINEMAS2K[] = "CINEMAS2K"

Definition at line 92 of file ojph_params_local.h.

◆ OJPH_PN_STRING_CINEMAS4K

const char ojph::OJPH_PN_STRING_CINEMAS4K[] = "CINEMAS4K"

Definition at line 93 of file ojph_params_local.h.

◆ OJPH_PN_STRING_IMF

const char ojph::OJPH_PN_STRING_IMF[] = "IMF"

Definition at line 95 of file ojph_params_local.h.

Referenced by ojph::local::codestream::set_profile().

◆ OJPH_PN_STRING_PROFILE0

const char ojph::OJPH_PN_STRING_PROFILE0[] = "PROFILE0"

Definition at line 88 of file ojph_params_local.h.

◆ OJPH_PN_STRING_PROFILE1

const char ojph::OJPH_PN_STRING_PROFILE1[] = "PROFILE1"

Definition at line 89 of file ojph_params_local.h.

◆ OJPH_PO_STRING_CPRL

const char ojph::OJPH_PO_STRING_CPRL[] = "CPRL"

◆ OJPH_PO_STRING_LRCP

const char ojph::OJPH_PO_STRING_LRCP[] = "LRCP"

◆ OJPH_PO_STRING_PCRL

const char ojph::OJPH_PO_STRING_PCRL[] = "PCRL"

◆ OJPH_PO_STRING_RLCP

const char ojph::OJPH_PO_STRING_RLCP[] = "RLCP"

◆ OJPH_PO_STRING_RPCL

const char ojph::OJPH_PO_STRING_RPCL[] = "RPCL"

◆ warn

message_warning ojph::warn

Definition at line 93 of file ojph_message.cpp.

Referenced by configure_warning().

◆ warning_stream

FILE* ojph::warning_stream = stdout

Definition at line 90 of file ojph_message.cpp.

Referenced by ojph::message_warning::operator()(), and set_warning_stream().