Oyranos Colour Management System API
Modules | Defines | Functions
Miscellaneous
Alpha API's
Collaboration diagram for Miscellaneous:

Modules

 Basic colour calculations
 Generic Objects
 Values Handling
 Rectangle Handling

Defines

#define PT_ANY   0

Functions

void oyI18NSet (int active, int reserved)
 switch internationalisation of strings on or off
oyChar * oyDumpColourToCGATS (const double *channels, size_t n, oyProfile_s *prof, oyAlloc_f allocateFunc, const oyChar *DESCRIPTOR)
 create CGATS text from double value array and a profile
void oyCopyColour (const double *from, double *to, int n, oyProfile_s *ref, int channels_n)
 copy pure colours
int oySizeofDatatype (oyDATATYPE_e t)
 oyDATATYPE_e to byte mapping
const char * oyDatatypeToText (oyDATATYPE_e t)
 oyDATATYPE_e to string mapping
const char * oyLanguage (void)
 get language code
const char * oyCountry (void)
 get country code
const char * oyLang (void)
 get LANG code/variable
void oyI18Nreset (void)
 reset i18n language and country variables
int oyVersion (int type)
 give the compiled in library version
char * oyVersionString (int type, oyAlloc_f allocateFunc)
 give the configure options for Oyranos
icUInt16Number oyValueUInt16 (icUInt16Number val)
 MSB<->LSB.

Detailed Description

Miscellaneous stuff.


Define Documentation

#define PT_ANY   0

Referenced by oyDumpColourToCGATS().


Function Documentation

void oyCopyColour ( const double *  from,
double *  to,
int  n,
oyProfile_s ref,
int  channels_n 
)

copy pure colours

Handle colour only. With a empty from variable set -1 as default in to.

Since:
Oyranos: version 0.1.8
Date:
september 2007 (API 0.1.8)

References oyICCColourSpaceGetChannelCount(), oyProfile_s::oyProfile_GetSignature(), and oySIGNATURE_COLOUR_SPACE.

const char* oyCountry ( void  )

get country code

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)

Referenced by oyProfileTag_s::oyProfileTag_GetText().

const char* oyDatatypeToText ( oyDATATYPE_e  t)

oyDATATYPE_e to string mapping

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)

References oyDOUBLE, oyFLOAT, oyHALF, oyUINT16, oyUINT32, and oyUINT8.

oyChar* oyDumpColourToCGATS ( const double *  channels,
size_t  n,
oyProfile_s prof,
oyAlloc_f  allocateFunc,
const oyChar *  DESCRIPTOR 
)

create CGATS text from double value array and a profile

Function oyDumpColourToCGATS The funtion operates on raw colour values. Alpha is not supported. The intention is to have a small debugging only tool. The values are required to come prescaled (IE RGB 0...255, XYZ 0...1, CMYK 0...100 ...)

Todo:
should be merged to some structure like oyImage_s.
Since:
Oyranos: version 0.1.8
Date:
2008/01/21 (API 0.1.8)

References oyProfile_s::oyProfile_GetChannelsCount(), oyProfile_s::oyProfile_GetSignature(), oySIGNATURE_COLOUR_SPACE, and PT_ANY.

void oyI18Nreset ( void  )

reset i18n language and country variables

Version:
Oyranos: 0.1.10
Since:
2009/01/05 (Oyranos: 0.1.10)
Date:
2009/01/05
void oyI18NSet ( int  active,
int  reserved 
)

switch internationalisation of strings on or off

Parameters:
activebool
reservedfor future use
const char* oyLang ( void  )

get LANG code/variable

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)
const char* oyLanguage ( void  )

get language code

Since:
Oyranos: version 0.1.8
Date:
26 november 2007 (API 0.1.8)

Referenced by oyProfileTag_s::oyProfileTag_GetText().

int oySizeofDatatype ( oyDATATYPE_e  t)
icUInt16Number oyValueUInt16 ( icUInt16Number  val)
int oyVersion ( int  type)

give the compiled in library version

Parameters:
[in]type0 - Oyranos API 1 - start month 2 - start year 3 - development last month 4 - development last year
Returns:
OYRANOS_VERSION at library compile time

Referenced by oyVersionString().

char* oyVersionString ( int  type,
oyAlloc_f  allocateFunc 
)

give the configure options for Oyranos

Parameters:
[in]type
  • 1 OYRANOS_VERSION_NAME;
  • 2 git master hash;
  • 3 OYRANOS_CONFIG_DATE,
  • 4 development period
allocateFuncuser allocator, e.g. malloc
Returns:
Oyranos configure output
Since:
Oyranos: version 0.1.8
Date:
18 december 2007 (API 0.1.8)

References oyVersion().

Referenced by oyGetHtmlHeader().