![]() |
Oyranos
0.9.7
Oyranos is a full featured Color Management System
|
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_s * | ojpgApi7CmmCreate (const char *format, const char *ext) |
ojpg oyCMMapi7_s implementation More... | |
oyCMMapi_s * | ojpgApi4CmmCreate (const char *format) |
ojpg oyCMMapi4_s implementation More... | |
Variables | |
oyMessage_f | ojpg_msg = oyMessageFunc |
oyCMM_s | oJPG_cmm_module |
ojpg module infos More... | |
JPEG filter for Oyranos.
JPEG file i/o module for Oyranos
#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.
Referenced by ojpgApi4CmmCreate(), ojpgApi7CmmCreate(), and ojpgGetText().
oyCMMapi_s* ojpgApi4CmmCreate | ( | const char * | format | ) |
ojpg oyCMMapi4_s implementation
ojpg_api4 a filter providing a CMM device link creator
References CMM_NICK, ojpgApi4UiGetText(), ojpgCMMInit(), ojpgCMMMessageFuncSet(), OY_SLASH_C, oyASSUMED_CMYK, oyASSUMED_GRAY, oyASSUMED_RGB, oyCheckProfile(), oyCMMapi4_s::oyCMMapi4_Create(), oyCMMapi4_s::oyCMMapi4_SetBackendContext(), oyCMMui_s::oyCMMui_Create(), oyCMMui_s::oyCMMui_SetUiOptions(), oyFilterNode_s::oyFilterNode_GetOptions(), oyGetDefaultProfileName(), oyGetProfileBlock(), oyNAME_NAME, oyNAME_NICK, oyOptions_s::oyOptions_FindString(), oyOptions_s::oyOptions_GetText(), oyOptions_s::oyOptions_Release(), oyPointer_s::oyPointer_New(), oyPointer_s::oyPointer_Set(), OYRANOS_VERSION_A, OYRANOS_VERSION_B, and OYRANOS_VERSION_C.
Referenced by ojpgApi4UiGetText().
const char * ojpgApi4UiGetText | ( | const char * | select, |
oyNAME_e | type, | ||
oyStruct_s * | context | ||
) |
This function implements oyCMMGetText_f.
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 | ||
) |
ojpg oyCMMapi7_s implementation
ojpg_api7 a filter providing a CMM filter
References CMM_NICK, ojpg_msg, ojpgCMMInit(), ojpgCMMMessageFuncSet(), ojpgFilter_CmmRun(), oy_debug, OY_DOMAIN_INTERNAL, OY_TOP_SHARED, OY_TYPE_STD, oyCMMapi7_s::oyCMMapi7_Create(), oyCONNECTOR_IMAGING_CAP_CAN_INTERWOVEN, oyCONNECTOR_IMAGING_CAP_CAN_NONPREMULTIPLIED_ALPHA, oyCONNECTOR_IMAGING_CAP_CAN_PREMULTIPLIED_ALPHA, oyCONNECTOR_IMAGING_CAP_ID, oyCONNECTOR_IMAGING_CAP_MAX_CHANNELS_COUNT, oyCONNECTOR_IMAGING_CAP_MAX_COLOR_COUNT, oyCONNECTOR_IMAGING_CAP_MAX_COLOR_OFFSET, oyCONNECTOR_IMAGING_CAP_MIN_CHANNELS_COUNT, oyCONNECTOR_IMAGING_CAP_MIN_COLOR_COUNT, oyConnectorImaging_s::oyConnectorImaging_New(), oyConnectorImaging_s::oyConnectorImaging_SetCapability(), oyConnectorImaging_s::oyConnectorImaging_SetDataTypes(), oyConnectorImaging_s::oyConnectorImaging_SetIsPlug(), oyConnectorImaging_s::oyConnectorImaging_SetMatch(), oyConnectorImaging_s::oyConnectorImaging_SetReg(), oyConnectorImaging_s::oyConnectorImaging_SetTexts(), oyDOUBLE, oyFLOAT, oyHALF, OYRANOS_VERSION_A, OYRANOS_VERSION_B, OYRANOS_VERSION_C, oyUINT16, oyUINT32, and oyUINT8.
Referenced by ojpgApi4UiGetText().
int ojpgCMMInit | ( | oyStruct_s *s | OY_UNUSED | ) |
API requirement.
Function ojpgCMMInit
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.
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.
requestor_plug | the plug of the requesting node after my filter in the graph |
ticket | the job ticket |
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.
References CMM_NICK, oyNAME_NICK, and oyOBJECT_ICON_S.
oyCMM_s oJPG_cmm_module |
ojpg module infos
oJPG_cmm_module This structure is dlopened by Oyranos. Its name has to consist of the following elements:
Referenced by ojpgApi4UiGetText().
oyMessage_f ojpg_msg = oyMessageFunc |
The message function pointer to use for messaging.
Referenced by ojpgApi4UiGetText(), ojpgApi7CmmCreate(), ojpgCMMMessageFuncSet(), and ojpgFilter_CmmRun().