Oyranos Colour Management System API
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Modules | Functions
Miscellaneous
Collaboration diagram for Miscellaneous:

Modules

 Generic Objects
 
 Rectangle Handling
 
 ICC helpers
 

Functions

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 More...
 
void oyCopyColour (const double *from, double *to, int n, oyProfile_s *ref, int channels_n)
 copy pure colours More...
 
const char * oyLanguage (void)
 get language code More...
 
const char * oyCountry (void)
 get country code More...
 
const char * oyLang (void)
 get LANG code/variable More...
 
void oyI18Nreset (void)
 reset i18n language and country variables More...
 
int oyVersion (int type)
 give the compiled in library version More...
 
char * oyVersionString (int type, oyAlloc_f allocateFunc)
 give the configure options for Oyranos More...
 
icUInt16Number oyValueUInt16 (icUInt16Number val)
 MSB<->LSB. More...
 
void oyI18NSet (int active, int reserved)
 switch internationalisation of strings on or off More...
 

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. 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(), and oyProfile_s::oyProfile_GetSignature().

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().

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(), and oyProfile_s::oyProfile_GetSignature().

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 oyFilterCore_s::oyFilterCore_SetCMMapi4_(), and oyProfileTag_s::oyProfileTag_GetText().

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 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, deprecated
  • 3 OYRANOS_CONFIG_DATE, deprecated
  • 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(), and oyArray2d_s::oyImage_WritePPM().