Miscellaneous
[Alpha API's]

Collaboration diagram for Miscellaneous:

Modules

 Basic colour calculations
 Generic Objects
 Values Handling
 Region Handling

Functions

void oyI18NSet (int active, int reserved)
 switch internationalisation of strings on or off
const char * oyLanguage (void)
 get language code
const char * oyCountry (void)
 get country code
const char * oyLang (void)
 get LANG code/variable
int oyVersion (int type)
 give the compiled in library version
char * oyVersionString (int type, oyAlloc_f allocateFunc)
 give the configure options for Oyranos
int oyProfileGetMD5 (void *buffer, size_t size, unsigned char *md5_return)
 calculate a md5 digest beginning after the header offset
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
const oyChar * oyDatatypeToText (oyDATATYPE_e t)
 oyDATATYPE_e to string mapping
icUInt16Number oyValueUInt16 (icUInt16Number val)
 MSB<->LSB.
int oySizeofDatatype (oyDATATYPE_e t)
 oyDATATYPE_e to byte mapping

Detailed Description

Miscellaneous stuff.

Function Documentation

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

copy pure colours

handle colour only, without from set to -1 default

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

References oyProfile_s::oyProfile_GetSignature(), and oySIGNATURE_COLOUR_SPACE.

Referenced by oyNamedColour_s::oyNamedColour_Create(), oyNamedColour_s::oyNamedColour_CreateWithName(), oyNamedColour_s::oyNamedColour_GetColourStd(), and oyNamedColour_s::oyNamedColour_SetColourStd().

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 oyChar* 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::file_name_, oyProfile_s::oyProfile_GetChannelsCount(), oyProfile_s::oyProfile_GetSignature(), and oySIGNATURE_COLOUR_SPACE.

void oyI18NSet ( int  active,
int  reserved 
)

switch internationalisation of strings on or off

Parameters:
active bool
reserved for 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 oyProfileGetMD5 ( void *  buffer,
size_t  size,
unsigned char *  md5_return 
)

calculate a md5 digest beginning after the header offset

The md5 implementation is written by L. Peter Deutsch

Parameters:
[in] buffer complete profiles buffer
[in] size over all profile size
[out] md5_return buffer to write in the md5 digest (128 bytes)
Returns:
error

int oySizeofDatatype ( oyDATATYPE_e  t  ) 

oyDATATYPE_e to byte mapping

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

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

Referenced by oyImage_s::oyImage_FillArray().

icUInt16Number oyValueUInt16 ( icUInt16Number  val  ) 

int oyVersion ( int  type  ) 

give the compiled in library version

Parameters:
[in] type 0 - 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 oyObject_s::oyObject_New(), oyObject_s::oyObject_NewWithAllocators(), and 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
allocateFunc user allocator, e.g. malloc
Returns:
Oyranos configure output
Since:
Oyranos: version 0.1.8
Date:
18 december 2007 (API 0.1.8)

References oyVersion().


Generated on Tue Mar 10 09:45:18 2009 for Oyranos by  doxygen 1.5.8