OpenJPH
Open-source implementation of JPEG2000 Part-15
ojph_colour.cpp File Reference
#include <cmath>
#include "ojph_defs.h"
#include "ojph_arch.h"
#include "ojph_colour.h"
#include "ojph_colour_local.h"

Go to the source code of this file.

Namespaces

namespace  ojph
 
namespace  ojph::local
 

Functions

void ojph::local::init_colour_transform_functions ()
 
void ojph::local::gen_cnvrt_si32_to_si32_shftd (const si32 *sp, si32 *dp, int shift, ui32 width)
 
void ojph::local::gen_cnvrt_si32_to_float_shftd (const si32 *sp, float *dp, float mul, ui32 width)
 
void ojph::local::gen_cnvrt_si32_to_float (const si32 *sp, float *dp, float mul, ui32 width)
 
void ojph::local::gen_cnvrt_float_to_si32_shftd (const float *sp, si32 *dp, float mul, ui32 width)
 
void ojph::local::gen_cnvrt_float_to_si32 (const float *sp, si32 *dp, float mul, ui32 width)
 
void ojph::local::gen_rct_forward (const si32 *r, const si32 *g, const si32 *b, si32 *y, si32 *cb, si32 *cr, ui32 repeat)
 
void ojph::local::gen_rct_backward (const si32 *y, const si32 *cb, const si32 *cr, si32 *r, si32 *g, si32 *b, ui32 repeat)
 
void ojph::local::gen_ict_forward (const float *r, const float *g, const float *b, float *y, float *cb, float *cr, ui32 repeat)
 
void ojph::local::gen_ict_backward (const float *y, const float *cb, const float *cr, float *r, float *g, float *b, ui32 repeat)
 

Variables

void(* ojph::local::cnvrt_si32_to_si32_shftd )(const si32 *sp, si32 *dp, int shift, ui32 width) = NULL
 
void(* ojph::local::cnvrt_si32_to_float_shftd )(const si32 *sp, float *dp, float mul, ui32 width) = NULL
 
void(* ojph::local::cnvrt_si32_to_float )(const si32 *sp, float *dp, float mul, ui32 width) = NULL
 
void(* ojph::local::cnvrt_float_to_si32_shftd )(const float *sp, si32 *dp, float mul, ui32 width) = NULL
 
void(* ojph::local::cnvrt_float_to_si32 )(const float *sp, si32 *dp, float mul, ui32 width) = NULL
 
void(* ojph::local::rct_forward )(const si32 *r, const si32 *g, const si32 *b, si32 *y, si32 *cb, si32 *cr, ui32 repeat) = NULL
 
void(* ojph::local::rct_backward )(const si32 *y, const si32 *cb, const si32 *cr, si32 *r, si32 *g, si32 *b, ui32 repeat) = NULL
 
void(* ojph::local::ict_forward )(const float *r, const float *g, const float *b, float *y, float *cb, float *cr, ui32 repeat) = NULL
 
void(* ojph::local::ict_backward )(const float *y, const float *cb, const float *cr, float *r, float *g, float *b, ui32 repeat) = NULL
 
static bool ojph::local::colour_transform_functions_initialized = false