本文整理汇总了C++中LibRaw::set_dng_host方法的典型用法代码示例。如果您正苦于以下问题:C++ LibRaw::set_dng_host方法的具体用法?C++ LibRaw::set_dng_host怎么用?C++ LibRaw::set_dng_host使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LibRaw
的用法示例。
在下文中一共展示了LibRaw::set_dng_host方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
case '6': OUT.output_bps = 16; break;
case 'F': use_bigfile=1; break;
case 'd':
if(!strcmp(optstr,"-dcbi"))
OUT.dcb_iterations = atoi(argv[arg++]);
else if(!strcmp(optstr,"-disars"))
OUT.use_rawspeed=0;
else if(!strcmp(optstr,"-disadcf"))
OUT.raw_processing_options |=LIBRAW_PROCESSING_FORCE_FOVEON_X3F;
else if(!strcmp(optstr,"-disinterp"))
OUT.no_interpolation=1;
else if(!strcmp(optstr,"-dcbe"))
OUT.dcb_enhance_fl = 1;
else if(!strcmp(optstr,"-dsrawrgb1"))
{
OUT.raw_processing_options |= LIBRAW_PROCESSING_SRAW_NO_RGB;
OUT.raw_processing_options &= ~LIBRAW_PROCESSING_SRAW_NO_INTERPOLATE;
}
else if(!strcmp(optstr,"-dsrawrgb2"))
{
OUT.raw_processing_options &= ~LIBRAW_PROCESSING_SRAW_NO_RGB;
OUT.raw_processing_options |= LIBRAW_PROCESSING_SRAW_NO_INTERPOLATE;
}
else if(!strcmp(optstr,"-dbnd"))
{
for(c=0; c<4; c++)
OUT.wf_deband_treshold[c] = (float)atof(argv[arg++]);
OUT.wf_debanding = 1;
}
#ifdef USE_DNGSDK
else if(!strcmp(optstr,"-dngsdk"))
{
dnghost = new dng_host;
RawProcessor.set_dng_host(dnghost);
}
else if(!strcmp(optstr,"-dngflags"))
{
OUT.use_dngsdk = atoi(argv[arg++]);
}
#endif
else
fprintf (stderr,"Unknown option \"%s\".\n",argv[arg-1]);
break;
#ifdef LIBRAW_DEMOSAIC_PACK_GPL2
case 'e':
if(!strcmp(optstr,"-eeci"))
OUT.eeci_refine = 1;
else if(!strcmp(optstr,"-esmed"))
OUT.es_med_passes = atoi(argv[arg++]);
else
fprintf (stderr,"Unknown option \"%s\".\n",argv[arg-1]);
break;
#endif
default:
fprintf (stderr,"Unknown option \"-%c\".\n", opt);
return 1;
}
}
#ifndef WIN32
putenv ((char*)"TZ=UTC"); // dcraw compatibility, affects TIFF datestamp field
#else
_putenv ((char*)"TZ=UTC"); // dcraw compatibility, affects TIFF datestamp field
#endif
#define P1 RawProcessor.imgdata.idata
#define S RawProcessor.imgdata.sizes
#define C RawProcessor.imgdata.color