Oyranos  0.9.7
Oyranos is a full featured Color Management System
Macros | Functions | Variables
oyranos_cmm_oJPG.c File Reference

JPEG filter for Oyranos. More...

#include "oyCMM_s.h"
#include "oyCMMapi4_s.h"
#include "oyCMMapi7_s.h"
#include "oyCMMapiFilter_s.h"
#include "oyCMMui_s.h"
#include "oyConnectorImaging_s.h"
#include "oyProfiles_s.h"
#include "oyranos_cmm.h"
#include "oyranos_config.h"
#include "oyranos_definitions.h"
#include "oyranos_helper.h"
#include <math.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <setjmp.h>
#include "jpegmarkers.h"
#include "oyranos_i18n.h"

Macros

#define CMM_NICK   "oJPG"
 

Functions

int ojpgFilter_CmmRun (oyFilterPlug_s *requestor_plug, oyPixelAccess_s *ticket)
 implement oyCMMFilter_GetNext_f() More...
 
const char * ojpgApi4UiGetText (const char *select, oyNAME_e type, oyStruct_s *context)
 
int ojpgCMMInit (oyStruct_s *s OY_UNUSED)
 API requirement. More...
 
int ojpgCMMMessageFuncSet (oyMessage_f message_func)
 API requirement. More...
 
const char * ojpgGetText (const char *select, oyNAME_e type, oyStruct_s *context)
 
oyCMMapi_sojpgApi7CmmCreate (const char *format, const char *ext)
 ojpg oyCMMapi7_s implementation More...
 
oyCMMapi_sojpgApi4CmmCreate (const char *format)
 ojpg oyCMMapi4_s implementation More...
 

Variables

oyMessage_f ojpg_msg = oyMessageFunc
 
oyCMM_s oJPG_cmm_module
 ojpg module infos More...
 

Detailed Description

JPEG filter for Oyranos.

JPEG file i/o module for Oyranos

Copyright:
2014-2015 (C) Kai-Uwe Behrmann

Macro Definition Documentation

◆ CMM_NICK

#define CMM_NICK   "oJPG"

The CMM_NICK consists of four bytes, which appear as well in the library name. This is important for Oyranos to identify the required filter struct name.

Examples
oyranos_cmm_oJPG.c.

Function Documentation

◆ ojpgApi4CmmCreate()

oyCMMapi_s* ojpgApi4CmmCreate ( const char *  format)

ojpg oyCMMapi4_s implementation

@instance ojpg_api4

a filter providing a CMM device link creator

Version
Oyranos: 0.9.6
Since
2014/03/21 (Oyranos: 0.9.6)
Date
2014/03/21
Examples
oyranos_cmm_oJPG.c.

◆ ojpgApi4UiGetText()

const char * ojpgApi4UiGetText ( const char *  select,
oyNAME_e  type,
oyStruct_s context 
)

This function implements oyCMMGetText_f.

Examples
oyranos_cmm_oJPG.c.

References oyCMMapiFilter_s::oyCMMapiFilter_GetBackendContext(), and oyCMMui_s::oyCMMui_GetParent().

◆ ojpgApi7CmmCreate()

oyCMMapi_s* ojpgApi7CmmCreate ( const char *  format,
const char *  ext 
)

ojpg oyCMMapi7_s implementation

@instance ojpg_api7

a filter providing a CMM filter

Version
Oyranos: 0.9.6
Date
2014/03/21
Since
2014/03/21 (Oyranos: 0.9.6)
Examples
oyranos_cmm_oJPG.c.

◆ ojpgCMMInit()

int ojpgCMMInit ( oyStruct_s *s  OY_UNUSED)

API requirement.

Function ojpgCMMInit

Version
Oyranos: 0.9.6
Since
2014/03/21 (Oyranos: 0.9.6)
Date
2014/03/21
Examples
oyranos_cmm_oJPG.c.

◆ ojpgCMMMessageFuncSet()

int ojpgCMMMessageFuncSet ( oyMessage_f  message_func)

API requirement.

Function ojpgCMMMessageFuncSet

A Oyranos user might want its own message function and omit the default one.

Version
Oyranos: 0.9.6
Since
2014/03/21 (Oyranos: 0.9.6)
Date
2014/03/21
Examples
oyranos_cmm_oJPG.c.

◆ ojpgFilter_CmmRun()

int ojpgFilter_CmmRun ( oyFilterPlug_s requestor_plug,
oyPixelAccess_s ticket 
)

implement oyCMMFilter_GetNext_f()

Function ojpgFilter_CmmRun

The primary filter entry for data processing.

Parameters
requestor_plugthe plug of the requesting node after my filter in the graph
ticketthe job ticket
Version
Oyranos: 0.9.6
Since
2014/03/21 (Oyranos: 0.9.6)
Date
2014/03/21
Examples
oyranos_cmm_oJPG.c.

References oyASSUMED_RGB, and oyUINT8.

◆ ojpgGetText()

const char* ojpgGetText ( const char *  select,
oyNAME_e  type,
oyStruct_s context 
)

This function implements oyCMMinfoGetText_f.

Implement at least "name", "manufacturer" and "copyright". If you like with internationalisation.

Version
Oyranos: 0.9.6
Since
2014/03/21 (Oyranos: 0.9.6)
Date
2014/03/21
Examples
oyranos_cmm_oJPG.c.

References CMM_NICK, and oyNAME_NICK.

Variable Documentation

◆ oJPG_cmm_module

oyCMM_s oJPG_cmm_module
Initial value:
= {
0,0,0,
(char*)"0.9.6",
(char**)oyCMM_texts,
NULL,
&ojpg_icon,
ojpgInit
}
@ oyOBJECT_CMM_INFO_S
Definition: oyranos_object.h:161
#define CMM_NICK
Definition: oyranos_cmm_oJPG.c:42
const char * ojpgGetText(const char *select, oyNAME_e type, oyStruct_s *context)
Definition: oyranos_cmm_oJPG.c:127
#define OYRANOS_VERSION
Definition: oyranos_version.h:11

ojpg module infos

@instance oJPG_cmm_module

This structure is dlopened by Oyranos. Its name has to consist of the following elements:

  • the four byte CMM_NICK plus
  • "_cmm_module" This string must be included in the the filters filename.
Version
Oyranos: 0.9.6
Since
2014/03/21 (Oyranos: 0.9.6)
Date
2014/03/21
Examples
oyranos_cmm_oJPG.c.

◆ ojpg_msg

oyMessage_f ojpg_msg = oyMessageFunc

The message function pointer to use for messaging.

Examples
oyranos_cmm_oJPG.c.