|
Grok 20.3.2
|
Namespaces | |
| namespace | local |
Classes | |
| struct | coded_lists |
| struct | lifting_buf |
| class | line_buf |
| class | mem_elastic_allocator |
| class | mem_fixed_allocator |
| This is the base class from which all messaging levels are derived. More... | |
| Derived from message_base to handle error messages. More... | |
| Derived from message_base to handle info messages. More... | |
| Derived from message_base to handle warning messages. More... | |
| class | NarrowRoiScaleOJPHFilter16 |
| class | NarrowRoiShiftOJPHFilter |
| class | NarrowScaleOJPHFilter16 |
| class | NarrowShiftOJPHFilter |
| class | RoiScaleOJPHFilter |
| class | RoiShiftOJPHFilter |
| class | ScaleOJPHFilter |
| class | ShiftOJPHFilter |
| class | T1OJPH |
Typedefs | |
| 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 | : 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 { OJPH_MSG_ALL_MSG = 0 , OJPH_MSG_INFO = 1 , OJPH_MSG_WARN = 2 , OJPH_MSG_ERROR = 3 , OJPH_MSG_NO_MSG = 4 } |
| This enum is use to specify the level of severity of message while processing markers. More... | |
Functions | |
| 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) |
| void * | ojph_aligned_malloc (size_t alignment, size_t size) |
| void | ojph_aligned_free (void *pointer) |
| 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_info * | get_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_warning * | get_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_error * | get_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 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 |
| FILE * | info_stream = stdout |
| message_info | info |
| message_info * | local_info = &info |
| OJPH_MSG_LEVEL | message_level = OJPH_MSG_ALL_MSG |
| FILE * | warning_stream = stdout |
| message_warning | warn |
| message_warning * | local_warn = &warn |
| FILE * | error_stream = stderr |
| message_error | error |
| message_error * | local_error = &error |
| typedef int16_t grk::t1::ojph::si16 |
| typedef int32_t grk::t1::ojph::si32 |
| typedef int64_t grk::t1::ojph::si64 |
| typedef int8_t grk::t1::ojph::si8 |
| typedef uint16_t grk::t1::ojph::ui16 |
| typedef uint32_t grk::t1::ojph::ui32 |
| typedef uint64_t grk::t1::ojph::ui64 |
| typedef uint8_t grk::t1::ojph::ui8 |
| anonymous enum : int |
| anonymous enum : int |
| enum grk::t1::ojph::OJPH_MSG_LEVEL : int |
|
inline |
References count_leading_zeros().
Referenced by grk::t1::ojph::mem_fixed_allocator::post_alloc_local().
| size_t grk::t1::ojph::calc_aligned_size | ( | size_t | size | ) |
References count_leading_zeros().
Referenced by grk::t1::ojph::mem_fixed_allocator::post_alloc_local(), and grk::t1::ojph::mem_fixed_allocator::pre_alloc_local().
| void grk::t1::ojph::configure_error | ( | message_error * | error | ) |
This overrides the default behaviour of handling error messages.
| error | An object derived from message_error to implement the desired behaviour. Remember, remember to throw an exception at the end. |
References error, and local_error.
| void grk::t1::ojph::configure_info | ( | message_info * | info | ) |
This overrides the default behaviour of handling info messages.
| info | An object derived from message_info to implement the desired behaviour. |
References info, and local_info.
| void grk::t1::ojph::configure_warning | ( | message_warning * | warn | ) |
This overrides the default behaviour of handling warning messages.
| warn | An object derived from message_warning to implement the desired behaviour. |
References local_warn, and warn.
References population_count().
Referenced by align_ptr(), calc_aligned_size(), grk::t1::ojph::local::frwd_read(), grk::t1::ojph::local::ojph_decode_codeblock32(), grk::t1::ojph::local::ojph_decode_codeblock64(), grk::t1::ojph::local::ojph_encode_codeblock32(), and grk::t1::ojph::local::ojph_encode_codeblock64().
References population_count().
| int grk::t1::ojph::get_cpu_ext_level | ( | ) |
References init_cpu_ext_level().
Referenced by dispatch_decoder(), and dispatch_encoder().
| message_error * grk::t1::ojph::get_error | ( | ) |
Get the error message object, whose operator() member class is called for error messages – See the macros below.
References local_error.
| message_info * grk::t1::ojph::get_info | ( | ) |
Get the info message object, whose operator() member class is called for info messages – See the macros below.
References local_info.
| message_warning * grk::t1::ojph::get_warning | ( | ) |
Get the warning message object, whose operator() member class is called for warning messages – See the macros below.
References local_warn.
| bool grk::t1::ojph::init_cpu_ext_level | ( | int & | level | ) |
Referenced by get_cpu_ext_level().
| void grk::t1::ojph::ojph_aligned_free | ( | void * | pointer | ) |
| void * grk::t1::ojph::ojph_aligned_malloc | ( | size_t | alignment, |
| size_t | size ) |
|
inlinestatic |
|
inlinestatic |
| void grk::t1::ojph::set_error_stream | ( | FILE * | s | ) |
Replaces the error output file from the default stderr to user defined output file.
| s | A pointer to the desired output file; it can be stdout, stderr, a log file, or NULL if no error messages are desired. |
References error_stream.
| void grk::t1::ojph::set_info_stream | ( | FILE * | s | ) |
Replaces the info output file from the default stdout to user defined output file.
| s | A pointer to the desired output file; it can be stdout, stderr, a log file, or NULL if no info messages are desired. |
References info_stream.
| void grk::t1::ojph::set_message_level | ( | OJPH_MSG_LEVEL | level | ) |
Sets the minimum severity of the message to be reported.
| level | is the level of the message severity; values are defined in OJPH_MSG_LEVEL. |
References message_level, OJPH_MSG_ALL_MSG, and OJPH_MSG_NO_MSG.
| void grk::t1::ojph::set_warning_stream | ( | FILE * | s | ) |
Replaces the warning output file from the default stdout to user defined output file.
| s | A pointer to the desired output file; it can be stdout, stderr, a log file, or NULL if no warning messages are desired. |
References warning_stream.
| const ui32 grk::t1::ojph::byte_alignment = 64 |
| message_error grk::t1::ojph::error |
Referenced by configure_error().
| FILE* grk::t1::ojph::error_stream = stderr |
Referenced by grk::t1::ojph::message_error::operator()(), and set_error_stream().
| message_info grk::t1::ojph::info |
Referenced by configure_info().
| FILE* grk::t1::ojph::info_stream = stdout |
Referenced by grk::t1::ojph::message_info::operator()(), and set_info_stream().
| message_error* grk::t1::ojph::local_error = &error |
Referenced by configure_error(), and get_error().
| message_info* grk::t1::ojph::local_info = &info |
Referenced by configure_info(), and get_info().
| message_warning* grk::t1::ojph::local_warn = &warn |
Referenced by configure_warning(), and get_warning().
| const ui32 grk::t1::ojph::log_byte_alignment = 31 - count_leading_zeros(byte_alignment) |
| OJPH_MSG_LEVEL grk::t1::ojph::message_level = OJPH_MSG_ALL_MSG |
| const int grk::t1::ojph::NUM_FRAC_BITS = 13 |
| const ui32 grk::t1::ojph::object_alignment = 8 |
| message_warning grk::t1::ojph::warn |
Referenced by configure_warning().
| FILE* grk::t1::ojph::warning_stream = stdout |
Referenced by grk::t1::ojph::message_warning::operator()(), and set_warning_stream().