Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 463900 | Differences between
and this patch

Collapse All | Expand All

(-)a/examples/devices/test_device.c (-12 / +3 lines)
Lines 205-211 int main(int argc, char *argv[]) Link Here
205
    oyConfig_s * oy_device = 0;
205
    oyConfig_s * oy_device = 0;
206
    oyProfile_s * profile = 0;
206
    oyProfile_s * profile = 0;
207
    const char * tmp = 0;
207
    const char * tmp = 0;
208
    icSignature profile_class;
208
    icSignature profile_class = icSigDisplayClass;
209
    oyOptions_s * options = 0;
209
    oyOptions_s * options = 0;
210
    oyOptions_SetFromText( &options,
210
    oyOptions_SetFromText( &options,
211
                   "//"OY_TYPE_STD"/config/icc_profile.x_color_region_target",
211
                   "//"OY_TYPE_STD"/config/icc_profile.x_color_region_target",
Lines 331-337 int main(int argc, char *argv[]) Link Here
331
    oyConfig_s * oy_device = 0;
331
    oyConfig_s * oy_device = 0;
332
    oyProfile_s * profile = 0;
332
    oyProfile_s * profile = 0;
333
    const char * tmp = 0;
333
    const char * tmp = 0;
334
    icSignature profile_class;
335
    oyOptions_s * options = 0;
334
    oyOptions_s * options = 0;
336
    oyOptions_SetFromText( &options,
335
    oyOptions_SetFromText( &options,
337
                   "//"OY_TYPE_STD"/config/icc_profile.x_color_region_target",
336
                   "//"OY_TYPE_STD"/config/icc_profile.x_color_region_target",
Lines 344-358 int main(int argc, char *argv[]) Link Here
344
      oyConfDomain_s * d = oyConfDomain_FromReg( device_class, 0 );
343
      oyConfDomain_s * d = oyConfDomain_FromReg( device_class, 0 );
345
      const char * icc_profile_class = oyConfDomain_GetText( d,
344
      const char * icc_profile_class = oyConfDomain_GetText( d,
346
                                             "icc_profile_class", oyNAME_NICK );
345
                                             "icc_profile_class", oyNAME_NICK );
347
      if(icc_profile_class && strcmp(icc_profile_class,"display") == 0)
348
        profile_class = icSigDisplayClass;
349
      else if(icc_profile_class && strcmp(icc_profile_class,"output") == 0)
350
        profile_class = icSigOutputClass;
351
      else if(icc_profile_class && strcmp(icc_profile_class,"input") == 0)
352
        profile_class = icSigInputClass;
353
346
354
       printf("icc_profile_class: %s\n", icc_profile_class );
347
      printf("icc_profile_class: %s\n", icc_profile_class );
355
       oyConfDomain_Release( &d );
348
      oyConfDomain_Release( &d );
356
    }
349
    }
357
350
358
    error = oyDeviceGet( 0, device_class, device_name, 0, &oy_device );
351
    error = oyDeviceGet( 0, device_class, device_name, 0, &oy_device );
Lines 374-387 int main(int argc, char *argv[]) Link Here
374
    oyProfile_s * profile = 0;
367
    oyProfile_s * profile = 0;
375
    oyConfigs_s * taxi_devices = 0;
368
    oyConfigs_s * taxi_devices = 0;
376
    oyConfig_s * device = oy_device;
369
    oyConfig_s * device = oy_device;
377
    const char * profile_file_name = 0;
378
    
370
    
379
    oyDevicesFromTaxiDB( device, 0, &taxi_devices, 0 );
371
    oyDevicesFromTaxiDB( device, 0, &taxi_devices, 0 );
380
    
372
    
381
    size = oyConfigs_Count( taxi_devices );
373
    size = oyConfigs_Count( taxi_devices );
382
    
374
    
383
    error = oyDeviceGetProfile( device, options, &profile );
375
    error = oyDeviceGetProfile( device, options, &profile );
384
    profile_file_name = oyProfile_GetFileName( profile, 0 );
385
    
376
    
386
    int show_only_device_related = 1;
377
    int show_only_device_related = 1;
387
    int empty_added = -1;                   
378
    int empty_added = -1;                   
(-)a/examples/taxi/taxi.c (-18 / +12 lines)
Lines 7-15 Link Here
7
#include <oyConfigs_s.h>
7
#include <oyConfigs_s.h>
8
#include <oyProfile_s.h>
8
#include <oyProfile_s.h>
9
9
10
#include "oyranos_config_internal.h"
10
#include <oyranos_devices.h>
11
#include <oyranos_devices.h>
11
#include "oyranos_helper_macros_cli.h"
12
#include "oyranos_helper_macros_cli.h"
13
#include "oyranos_helper.h"
14
#include "oyranos_i18n.h"
12
#include "oyranos_sentinel.h"
15
#include "oyranos_sentinel.h"
16
#include "oyranos_string.h"
13
17
14
#include "oyjl/oyjl_tree.h"
18
#include "oyjl/oyjl_tree.h"
15
19
Lines 86-92 int oyLowerStrcmpWrap (const void * a_, const void * b_) Link Here
86
#endif
90
#endif
87
}
91
}
88
92
89
int oyStrCmp(char * a, char * b) { return (a && b) ? strcmp(a,b) : 1; }
93
int oyStrCmp(const char * a, const char * b) { return (a && b) ? strcmp(a,b) : 1; }
90
94
91
#define OPENICC_DEVICE_JSON_HEADER_BASE \
95
#define OPENICC_DEVICE_JSON_HEADER_BASE \
92
  "{\n" \
96
  "{\n" \
Lines 107-114 void storeTaxiProfile( const char * taxi_id, const char * taxi_full_id, const ch Link Here
107
{
111
{
108
  oyOptions_s * options = 0;
112
  oyOptions_s * options = 0;
109
  oyProfile_s * profile;
113
  oyProfile_s * profile;
110
  int error = oyOptions_SetFromText( &options,
114
111
                                   "//" OY_TYPE_STD "/argv/TAXI_id",
115
  oyOptions_SetFromText( &options, "//" OY_TYPE_STD "/argv/TAXI_id",
112
                                   taxi_full_id,
116
                                   taxi_full_id,
113
                                   OY_CREATE_NEW );
117
                                   OY_CREATE_NEW );
114
118
Lines 138-152 void storeTaxiProfile( const char * taxi_id, const char * taxi_full_id, const ch Link Here
138
142
139
int main( int argc, char ** argv )
143
int main( int argc, char ** argv )
140
{
144
{
141
  oyConfig_s * moni = NULL,
142
             * device = NULL;
143
  int error = 0;
145
  int error = 0;
144
  oyConfigs_s * devices = NULL;
145
  oyOptions_s * options = NULL;
146
  oyProfile_s * profile = NULL;
147
  char * profile_name = 0;          /* the file to write to */
146
  char * profile_name = 0;          /* the file to write to */
148
  int32_t rank_value = 0, max_rank_value = 0;
147
  int i,
149
  int i,n, max_device_pos = -1,
150
      verbose = 0,
148
      verbose = 0,
151
      list_manufacturers = 0,
149
      list_manufacturers = 0,
152
      list_urls = 0;
150
      list_urls = 0;
Lines 156-166 int main( int argc, char ** argv ) Link Here
156
154
157
  size_t size = 0;
155
  size_t size = 0;
158
  const char * short_name = NULL,
156
  const char * short_name = NULL,
159
             * long_name = NULL,
157
             * long_name = NULL;
160
             * name = NULL;
161
  oyjl_value_s * root = 0;
158
  oyjl_value_s * root = 0;
162
  char * val = NULL,
159
  char * val = NULL;
163
       * key = NULL;
164
  oyjl_value_s * v = 0, * tv = 0;
160
  oyjl_value_s * v = 0, * tv = 0;
165
  int count;
161
  int count;
166
162
Lines 229-238 int main( int argc, char ** argv ) Link Here
229
      error = oyjl_tree_from_json( manufacturers, &root, NULL );
225
      error = oyjl_tree_from_json( manufacturers, &root, NULL );
230
    if(root)
226
    if(root)
231
    {
227
    {
232
      int level = 0;
233
234
      int count = oyjl_value_count(root);
228
      int count = oyjl_value_count(root);
235
      char ** sort = calloc( sizeof(char**), 2*count + 2 );
229
      const char ** sort = calloc( sizeof(char**), 2*count + 2 );
236
230
237
      for(i = 0; i < count; ++i)
231
      for(i = 0; i < count; ++i)
238
      {
232
      {
Lines 392-396 int main( int argc, char ** argv ) Link Here
392
        if(device_db) oyDeAllocateFunc_(device_db); device_db = 0;
386
        if(device_db) oyDeAllocateFunc_(device_db); device_db = 0;
393
  }
387
  }
394
388
395
  return 0;
389
  return error;
396
}
390
}
(-)a/modules/oyranos_cmm_lcm2.c (-16 / +16 lines)
Lines 215-222 lcm2ProfileWrap_s * lcm2CMMProfile_GetWrap_( oyPointer_s* cmm_ptr ) Link Here
215
{
215
{
216
  lcm2ProfileWrap_s * s = 0;
216
  lcm2ProfileWrap_s * s = 0;
217
217
218
  char type_[4] = lcm2PROFILE;
218
  char * type_ = lcm2PROFILE;
219
  int type = *((int*)&type_);
219
  int type = *((int32_t*)type_);
220
220
221
  if(cmm_ptr && !lcm2CMMCheckPointer( cmm_ptr, lcm2PROFILE ) &&
221
  if(cmm_ptr && !lcm2CMMCheckPointer( cmm_ptr, lcm2PROFILE ) &&
222
     oyPointer_GetPointer(cmm_ptr))
222
     oyPointer_GetPointer(cmm_ptr))
Lines 238-245 lcm2ProfileWrap_s * lcm2CMMProfile_GetWrap_( oyPointer_s* cmm_ptr ) Link Here
238
int      lcm2CMMTransform_GetWrap_   ( oyPointer_s       * cmm_ptr,
238
int      lcm2CMMTransform_GetWrap_   ( oyPointer_s       * cmm_ptr,
239
                                       lcm2TransformWrap_s ** s )
239
                                       lcm2TransformWrap_s ** s )
240
{
240
{
241
  char type_[4] = lcm2TRANSFORM;
241
  char * type_ = lcm2TRANSFORM;
242
  int type = *((int*)&type_);
242
  int type = *((int32_t*)type_);
243
243
244
  if(cmm_ptr && !lcm2CMMCheckPointer( cmm_ptr, lcm2TRANSFORM ) &&
244
  if(cmm_ptr && !lcm2CMMCheckPointer( cmm_ptr, lcm2TRANSFORM ) &&
245
     oyPointer_GetPointer(cmm_ptr))
245
     oyPointer_GetPointer(cmm_ptr))
Lines 266-273 int lcm2CMMProfileReleaseWrap(oyPointer *p) Link Here
266
  int error = !p;
266
  int error = !p;
267
  lcm2ProfileWrap_s * s = 0;
267
  lcm2ProfileWrap_s * s = 0;
268
  
268
  
269
  char type_[4] = lcm2PROFILE;
269
  char * type_ = lcm2PROFILE;
270
  int type = *((int*)&type_);
270
  int type = *((int32_t*)type_);
271
  char s_type[4];
271
  char s_type[4];
272
272
273
  if(!error && *p)
273
  if(!error && *p)
Lines 315-322 int lcm2CMMData_Open ( oyStruct_s * data, Link Here
315
315
316
  if(!error)
316
  if(!error)
317
  {
317
  {
318
    char type_[4] = lcm2PROFILE;
318
    char * type_ = lcm2PROFILE;
319
    int type = *((int*)&type_);
319
    int type = *((int32_t*)type_);
320
    size_t size = 0;
320
    size_t size = 0;
321
    oyPointer block = 0;
321
    oyPointer block = 0;
322
    lcm2ProfileWrap_s * s = calloc(sizeof(lcm2ProfileWrap_s), 1);
322
    lcm2ProfileWrap_s * s = calloc(sizeof(lcm2ProfileWrap_s), 1);
Lines 482-489 lcm2TransformWrap_s * lcm2TransformWrap_Set_ ( Link Here
482
  
482
  
483
  if(!error)
483
  if(!error)
484
  {
484
  {
485
    char type_[4] = lcm2TRANSFORM;
485
    char * type_ = lcm2TRANSFORM;
486
    int type = *((int*)&type_);
486
    int type = *((int32_t*)type_);
487
    lcm2TransformWrap_s * ltw = calloc(sizeof(lcm2TransformWrap_s), 1);
487
    lcm2TransformWrap_s * ltw = calloc(sizeof(lcm2TransformWrap_s), 1);
488
488
489
    ltw->type = type;
489
    ltw->type = type;
Lines 991-998 cmsHPROFILE lcm2AddProofProfile ( oyProfile_s * proof, Link Here
991
  {
991
  {
992
    oyPointer_s * oy = cmm_ptr;
992
    oyPointer_s * oy = cmm_ptr;
993
993
994
    char type_[4] = lcm2PROFILE;
994
    char * type_ = lcm2PROFILE;
995
    uint32_t type = *((uint32_t*)&type_);
995
    uint32_t type = *((uint32_t*)type_);
996
    cmsUInt32Number size = 0;
996
    cmsUInt32Number size = 0;
997
    oyPointer block = 0;
997
    oyPointer block = 0;
998
    lcm2ProfileWrap_s * s = calloc(sizeof(lcm2ProfileWrap_s), 1);
998
    lcm2ProfileWrap_s * s = calloc(sizeof(lcm2ProfileWrap_s), 1);
Lines 2182-2191 int lcm2FilterPlug_CmmIccRun ( oyFilterPlug_s * requestor_plug, Link Here
2182
  {
2182
  {
2183
    uint8_t * array_in_tmp = 0,
2183
    uint8_t * array_in_tmp = 0,
2184
            * array_out_tmp = 0;
2184
            * array_out_tmp = 0;
2185
    float * array_in_tmp_flt,
2185
    float * array_in_tmp_flt = 0,
2186
          * array_out_tmp_flt;
2186
          * array_out_tmp_flt = 0;
2187
    double * array_in_tmp_dbl,
2187
    double * array_in_tmp_dbl = 0,
2188
           * array_out_tmp_dbl;
2188
           * array_out_tmp_dbl = 0;
2189
    uint8_t ** array_in_data = oyArray2d_GetData( array_in ),
2189
    uint8_t ** array_in_data = oyArray2d_GetData( array_in ),
2190
            ** array_out_data = oyArray2d_GetData( array_out );
2190
            ** array_out_data = oyArray2d_GetData( array_out );
2191
    int threads_n = 
2191
    int threads_n = 
(-)a/modules/oyranos_cmm_lcms.c (-16 / +16 lines)
Lines 213-220 lcmsProfileWrap_s * lcmsCMMProfile_GetWrap_( oyPointer_s * cmm_ptr ) Link Here
213
{
213
{
214
  lcmsProfileWrap_s * s = 0;
214
  lcmsProfileWrap_s * s = 0;
215
215
216
  char type_[4] = lcmsPROFILE;
216
  char * type_ = lcmsPROFILE;
217
  int type = *((int*)&type_);
217
  int type = *((int32_t*)type_);
218
218
219
  if(cmm_ptr && !lcmsCMMCheckPointer( cmm_ptr, lcmsPROFILE ) &&
219
  if(cmm_ptr && !lcmsCMMCheckPointer( cmm_ptr, lcmsPROFILE ) &&
220
     oyPointer_GetPointer(cmm_ptr))
220
     oyPointer_GetPointer(cmm_ptr))
Lines 236-243 lcmsProfileWrap_s * lcmsCMMProfile_GetWrap_( oyPointer_s * cmm_ptr ) Link Here
236
int      lcmsCMMTransform_GetWrap_   ( oyPointer_s       * cmm_ptr,
236
int      lcmsCMMTransform_GetWrap_   ( oyPointer_s       * cmm_ptr,
237
                                       lcmsTransformWrap_s ** s )
237
                                       lcmsTransformWrap_s ** s )
238
{
238
{
239
  char type_[4] = lcmsTRANSFORM;
239
  char * type_ = lcmsTRANSFORM;
240
  int type = *((int*)&type_);
240
  int type = *((int32_t*)type_);
241
241
242
  if(cmm_ptr && !lcmsCMMCheckPointer( cmm_ptr, lcmsTRANSFORM ) &&
242
  if(cmm_ptr && !lcmsCMMCheckPointer( cmm_ptr, lcmsTRANSFORM ) &&
243
     oyPointer_GetPointer(cmm_ptr))
243
     oyPointer_GetPointer(cmm_ptr))
Lines 264-271 int lcmsCMMProfileReleaseWrap(oyPointer *p) Link Here
264
  int error = !p;
264
  int error = !p;
265
  lcmsProfileWrap_s * s = 0;
265
  lcmsProfileWrap_s * s = 0;
266
  
266
  
267
  char type_[4] = lcmsPROFILE;
267
  char * type_ = lcmsPROFILE;
268
  int type = *((int*)&type_);
268
  int type = *((int32_t*)type_);
269
  char s_type[4];
269
  char s_type[4];
270
270
271
  if(!error && *p)
271
  if(!error && *p)
Lines 313-320 int lcmsCMMData_Open ( oyStruct_s * data, Link Here
313
313
314
  if(!error)
314
  if(!error)
315
  {
315
  {
316
    char type_[4] = lcmsPROFILE;
316
    char * type_ = lcmsPROFILE;
317
    int type = *((int*)&type_);
317
    int type = *((int32_t*)type_);
318
    size_t size = 0;
318
    size_t size = 0;
319
    oyPointer block = 0;
319
    oyPointer block = 0;
320
    lcmsProfileWrap_s * s = calloc(sizeof(lcmsProfileWrap_s), 1);
320
    lcmsProfileWrap_s * s = calloc(sizeof(lcmsProfileWrap_s), 1);
Lines 466-473 lcmsTransformWrap_s * lcmsTransformWrap_Set_ ( Link Here
466
  
466
  
467
  if(!error)
467
  if(!error)
468
  {
468
  {
469
    char type_[4] = lcmsTRANSFORM;
469
    char * type_ = lcmsTRANSFORM;
470
    int type = *((int*)&type_);
470
    int type = *((int32_t*)type_);
471
    lcmsTransformWrap_s * ltw = calloc(sizeof(lcmsTransformWrap_s), 1);
471
    lcmsTransformWrap_s * ltw = calloc(sizeof(lcmsTransformWrap_s), 1);
472
472
473
    ltw->type = type;
473
    ltw->type = type;
Lines 879-886 cmsHPROFILE lcmsAddProofProfile ( oyProfile_s * proof, Link Here
879
  {
879
  {
880
    oyPointer_s * oy = cmm_ptr;
880
    oyPointer_s * oy = cmm_ptr;
881
881
882
    char type_[4] = lcmsPROFILE;
882
    char * type_ = lcmsPROFILE;
883
    uint32_t type = *((uint32_t*)&type_);
883
    uint32_t type = *((uint32_t*)type_);
884
    size_t size = 0;
884
    size_t size = 0;
885
    oyPointer block = 0;
885
    oyPointer block = 0;
886
    lcmsProfileWrap_s * s = calloc(sizeof(lcmsProfileWrap_s), 1);
886
    lcmsProfileWrap_s * s = calloc(sizeof(lcmsProfileWrap_s), 1);
Lines 1821-1830 int lcmsFilterPlug_CmmIccRun ( oyFilterPlug_s * requestor_plug, Link Here
1821
  {
1821
  {
1822
    uint8_t * array_in_tmp = 0,
1822
    uint8_t * array_in_tmp = 0,
1823
            * array_out_tmp = 0;
1823
            * array_out_tmp = 0;
1824
    float * array_in_tmp_flt,
1824
    float * array_in_tmp_flt = 0,
1825
          * array_out_tmp_flt;
1825
          * array_out_tmp_flt = 0;
1826
    double * array_in_tmp_dbl,
1826
    double * array_in_tmp_dbl = 0,
1827
           * array_out_tmp_dbl;
1827
           * array_out_tmp_dbl = 0;
1828
    uint8_t ** array_in_data = oyArray2d_GetData( array_in ),
1828
    uint8_t ** array_in_data = oyArray2d_GetData( array_in ),
1829
            ** array_out_data = oyArray2d_GetData( array_out );
1829
            ** array_out_data = oyArray2d_GetData( array_out );
1830
    int threads_n = 
1830
    int threads_n = 
(-)a/modules/oyranos_cmm_lraw.cpp (-2 / +3 lines)
Lines 357-363 typedef struct { Link Here
357
  oyCIExyY v[3];
357
  oyCIExyY v[3];
358
} oyCIExyYTriple;
358
} oyCIExyYTriple;
359
359
360
void _oyMAT3toCIExyYTriple ( const oyMAT3* a,oyCIExyYTriple * triple )
360
int _oyMAT3toCIExyYTriple ( const oyMAT3* a,oyCIExyYTriple * triple )
361
{
361
{
362
  int i,j,
362
  int i,j,
363
      fail=0;
363
      fail=0;
Lines 380-385 void _oyMAT3toCIExyYTriple ( const oyMAT3* a,oyCIExyYTriple * triple ) Link Here
380
        triple->v[i].xy[1] = 1;
380
        triple->v[i].xy[1] = 1;
381
      }
381
      }
382
    }
382
    }
383
  return fail;
383
}
384
}
384
const char * _oyMAT3show ( const oyMAT3* a )
385
const char * _oyMAT3show ( const oyMAT3* a )
385
{
386
{
Lines 488-494 oyProfile_s * createMatrixProfile ( libraw_colordata_t & color ) Link Here
488
    _oyMAT3per( &ab_cm, &cam_zyx, &pre_mul );
489
    _oyMAT3per( &ab_cm, &cam_zyx, &pre_mul );
489
    if(_oyMAT3inverse( &ab_cm, &ab_cm_inverse ))
490
    if(_oyMAT3inverse( &ab_cm, &ab_cm_inverse ))
490
      // convert to CIE*xyY
491
      // convert to CIE*xyY
491
      _oyMAT3toCIExyYTriple( &ab_cm_inverse, &ab_cm_inverse_xyY );
492
      fail = _oyMAT3toCIExyYTriple( &ab_cm_inverse, &ab_cm_inverse_xyY );
492
    else
493
    else
493
    {
494
    {
494
      fail = 1;
495
      fail = 1;
(-)a/modules/oyranos_cmm_oyIM_profile.c (-2 / +2 lines)
Lines 249-257 int oyWriteIcSigLutAtoBType ( oyStructList_s * texts, Link Here
249
                                       size_t              tag_size )
249
                                       size_t              tag_size )
250
{
250
{
251
  int error = 0;
251
  int error = 0;
252
  int size, i;
252
  int size = 0, i;
253
  size_t off;
253
  size_t off;
254
  uint8_t * dimensions, precission, *u8;
254
  uint8_t * dimensions = 0, precission = 1, *u8;
255
  uint16_t u16;
255
  uint16_t u16;
256
  char * tmp = 0;
256
  char * tmp = 0;
257
  char * text = oyAllocateFunc_(128);
257
  char * text = oyAllocateFunc_(128);
(-)a/oyjl/oyjl_tree_parse.c (-1 / +1 lines)
Lines 684-690 yajl_status oyjl_tree_from_json ( const char * text, Link Here
684
#if YAJL_VERSION < 20000
684
#if YAJL_VERSION < 20000
685
  yajl_parser_config yconfig = { 1, 1 };
685
  yajl_parser_config yconfig = { 1, 1 };
686
#endif
686
#endif
687
  yajl_handle yhandle;
687
  yajl_handle yhandle = 0;
688
688
689
  if(!error && context)
689
  if(!error && context)
690
  {
690
  {
(-)a/test2.cpp (-3 / +3 lines)
Lines 3573-3579 oyTESTRESULT_e testImagePixel() Link Here
3573
      /* all other buffer pixels shall remain untouched */
3573
      /* all other buffer pixels shall remain untouched */
3574
      buf_16out2x2[3]==0 && buf_16out2x2[4]==0 && buf_16out2x2[5]==0 &&
3574
      buf_16out2x2[3]==0 && buf_16out2x2[4]==0 && buf_16out2x2[5]==0 &&
3575
      buf_16out2x2[6]==0 && buf_16out2x2[7]==0 && buf_16out2x2[8]==0 &&
3575
      buf_16out2x2[6]==0 && buf_16out2x2[7]==0 && buf_16out2x2[8]==0 &&
3576
      buf_16out2x2[9]==0 && buf_16out2x2[10]==0 && buf_16out2x2[10]==0
3576
      buf_16out2x2[9]==0 && buf_16out2x2[10]==0 && buf_16out2x2[11]==0
3577
      )
3577
      )
3578
  { PRINT_SUB( oyTESTRESULT_SUCCESS,
3578
  { PRINT_SUB( oyTESTRESULT_SUCCESS,
3579
    "lower right source pixel in 1 pixel RoI  %s",
3579
    "lower right source pixel in 1 pixel RoI  %s",
Lines 3621-3627 oyTESTRESULT_e testImagePixel() Link Here
3621
      buf_16in2x2[6]==0 && buf_16in2x2[7]==0 && buf_16in2x2[8]==0 &&
3621
      buf_16in2x2[6]==0 && buf_16in2x2[7]==0 && buf_16in2x2[8]==0 &&
3622
      buf_16in2x2[9]==65535 && buf_16in2x2[10]==65535 &&buf_16in2x2[11]==65535&&
3622
      buf_16in2x2[9]==65535 && buf_16in2x2[10]==65535 &&buf_16in2x2[11]==65535&&
3623
      /* the result shall appear in the lower right corner / last pixel */
3623
      /* the result shall appear in the lower right corner / last pixel */
3624
      buf_16out2x2[9]==65535 && buf_16out2x2[10]>20000&&buf_16out2x2[20]<40000&&
3624
      buf_16out2x2[9]==65535 && buf_16out2x2[10]>20000&&buf_16out2x2[11]<40000&&
3625
      /* all other buffer pixels shall remain untouched */
3625
      /* all other buffer pixels shall remain untouched */
3626
      buf_16out2x2[0]==0 && buf_16out2x2[1]==0 && buf_16out2x2[2]==0 &&
3626
      buf_16out2x2[0]==0 && buf_16out2x2[1]==0 && buf_16out2x2[2]==0 &&
3627
      buf_16out2x2[3]==0 && buf_16out2x2[4]==0 && buf_16out2x2[5]==0 &&
3627
      buf_16out2x2[3]==0 && buf_16out2x2[4]==0 && buf_16out2x2[5]==0 &&
Lines 3986-3992 oyTESTRESULT_e oyTestRun ( oyTESTRESULT_e (*test)(void), Link Here
3986
/*  main */
3986
/*  main */
3987
int main(int argc, char** argv)
3987
int main(int argc, char** argv)
3988
{
3988
{
3989
  int i, error;
3989
  int i, error = 0;
3990
3990
3991
  if(getenv("OY_DEBUG"))
3991
  if(getenv("OY_DEBUG"))
3992
  {
3992
  {
(-)a/tests/test_oyranos.c (-1 / +1 lines)
Lines 1009-1015 oyTESTRESULT_e testObserver () Link Here
1009
/*  main */
1009
/*  main */
1010
int main(int argc, char** argv)
1010
int main(int argc, char** argv)
1011
{
1011
{
1012
  int i, error;
1012
  int i, error = 0;
1013
1013
1014
  /* init */
1014
  /* init */
1015
  for(i = 0; i <= oyTESTRESULT_UNKNOWN; ++i)
1015
  for(i = 0; i <= oyTESTRESULT_UNKNOWN; ++i)
(-)a/examples/oyranos_convert/oyranos_convert.c (-7 / +8 lines)
Lines 135-150 int main( int argc , char** argv ) Link Here
135
135
136
  int levels = 0;
136
  int levels = 0;
137
137
138
  const char * result_xml = 0;
139
  char * text = 0, * t = 0;
140
  const char * opt_names = 0;
141
  oyFormsArgs_s * forms_args = oyFormsArgs_New( 0 );
142
  const char * data = 0, * ct = 0;
143
  char ** other_args = 0;
138
  char ** other_args = 0;
144
  int other_args_n = 0;
139
  int other_args_n = 0;
145
  int i;
140
  char * text = 0, * t = 0;
146
  oyOptions_s * opts = 0;
141
  oyOptions_s * opts = 0;
147
  oyOption_s * o = 0;
148
  oyImage_s * image = 0;
142
  oyImage_s * image = 0;
149
143
150
#ifdef USE_GETTEXT
144
#ifdef USE_GETTEXT
Lines 275-280 int main( int argc , char** argv ) Link Here
275
#if 0
269
#if 0
276
  if(other_args)
270
  if(other_args)
277
  {
271
  {
272
    const char * result_xml = 0;
273
    const char * opt_names = 0;
274
    oyFormsArgs_s * forms_args = oyFormsArgs_New( 0 );
275
    const char * data = 0, * ct = 0;
276
    int i;
277
    oyOption_s * o = 0;
278
278
    forms_args->print = 0;
279
    forms_args->print = 0;
279
280
280
    error = oyXFORMsRenderUi( text, oy_ui_cmd_line_handlers, forms_args );
281
    error = oyXFORMsRenderUi( text, oy_ui_cmd_line_handlers, forms_args );
(-)a/oyranos_gamma.c (-2 / +1 lines)
Lines 172-178 int main( int argc , char** argv ) Link Here
172
                        else if(OY_IS_ARG("profile"))
172
                        else if(OY_IS_ARG("profile"))
173
                        { OY_PARSE_STRING_ARG2(prof_name, "profile"); break; }
173
                        { OY_PARSE_STRING_ARG2(prof_name, "profile"); break; }
174
                        else if(OY_IS_ARG("display"))
174
                        else if(OY_IS_ARG("display"))
175
                        { const char * t; OY_PARSE_STRING_ARG2(t, "display");
175
                        { const char * t=0; OY_PARSE_STRING_ARG2(t, "display");
176
                          if(t) display_name = strdup(t); break; }
176
                          if(t) display_name = strdup(t); break; }
177
                        else if(OY_IS_ARG("modules"))
177
                        else if(OY_IS_ARG("modules"))
178
                        { list_modules = 1; i=100; break; }
178
                        { list_modules = 1; i=100; break; }
179
- 

Return to bug 463900