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

#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.

Referenced by ojpgApi4CmmCreate(), ojpgApi7CmmCreate(), and ojpgGetText().

Function Documentation

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

This function implements oyCMMGetText_f.

Examples:
oyranos_cmm_oJPG.c.

References oyCMM_s::api, oJPG_cmm_module, ojpg_msg, ojpgApi4CmmCreate(), ojpgApi7CmmCreate(), and oyCMMapiFilter_s::release.

Referenced by ojpgApi4CmmCreate().

oyCMMapi_s* ojpgApi7CmmCreate ( const char *  format,
const char *  ext 
)
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.

Referenced by ojpgApi4CmmCreate(), and ojpgApi7CmmCreate().

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.

References ojpg_msg.

Referenced by ojpgApi4CmmCreate(), and ojpgApi7CmmCreate().

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 ojpg_msg, OY_CREATE_NEW, oy_debug, OY_TYPE_STD, oyASSUMED_RGB, oyChannels_m, oyDataType_m, oyDataTypeGetSize(), oyDataTypeToText(), oyLAYOUT, oyNAME_DESCRIPTION, oyNAME_NAME, oyNAME_NICK, oyOBJECT_FILTER_PLUG_S, oyOBJECT_FILTER_SOCKET_S, oySIGNATURE_COLOR_SPACE, oyUINT8, and oyFilterPlug_s::type_.

Referenced by ojpgApi7CmmCreate().

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, oyNAME_NICK, and oyOBJECT_ICON_S.

Variable Documentation

oyCMM_s oJPG_cmm_module
Initial value:
= {
0,0,0,
(char*)"0.9.6",
(char**)oyCMM_texts,
NULL,
&ojpg_icon,
ojpgInit
}
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
#define CMM_NICK
Definition: oyranos_cmm_oJPG.c:42
Definition: oyranos_object.h:161

ojpg module infos

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.

Referenced by ojpgApi4UiGetText().

oyMessage_f ojpg_msg = oyMessageFunc

The message function pointer to use for messaging.

Examples:
oyranos_cmm_oJPG.c.

Referenced by ojpgApi4UiGetText(), ojpgApi7CmmCreate(), ojpgCMMMessageFuncSet(), and ojpgFilter_CmmRun().