• Home
  • Raw
  • Download

Lines Matching +full:write +full:- +full:host

2 // Copyright 2006-2012 Adobe Systems Incorporated
15 // ------------------
21 // DNG SDK error code - 100000 + 100
69 static int32 gMosaicPlane = -1;
99 dng_host host; in dng_validate() local
101 host.SetPreferredSize (gPreferredSize); in dng_validate()
102 host.SetMinimumSize (gMinimumSize ); in dng_validate()
103 host.SetMaximumSize (gMaximumSize ); in dng_validate()
105 host.ValidateSizes (); in dng_validate()
107 if (host.MinimumSize ()) in dng_validate()
110 host.SetForPreview (true); in dng_validate()
119 host.SetSaveDNGVersion (dngVersion_SaveDefault); in dng_validate()
121 host.SetSaveLinearDNG (false); in dng_validate()
123 host.SetKeepOriginalFile (false); in dng_validate()
135 info.Parse (host, stream); in dng_validate()
137 info.PostParse (host); in dng_validate()
144 negative.Reset (host.Make_dng_negative ()); in dng_validate()
146 negative->Parse (host, stream, info); in dng_validate()
148 negative->PostParse (host, stream, info); in dng_validate()
154 negative->ReadStage1Image (host, stream, info); in dng_validate()
158 if (info.fMaskIndex != -1) in dng_validate()
163 negative->ReadTransparencyMask (host, stream, info); in dng_validate()
167 negative->ValidateRawImageDigest (host); in dng_validate()
171 // Option to write stage 1 image. in dng_validate()
178 const dng_image &stage1 = *negative->Stage1Image (); in dng_validate()
182 writer.WriteTIFF (host, in dng_validate()
194 negative->SynchronizeMetadata (); in dng_validate()
200 negative->SetFourColorBayer (); in dng_validate()
209 negative->BuildStage2Image (host); in dng_validate()
218 const dng_image &stage2 = *negative->Stage2Image (); in dng_validate()
222 writer.WriteTIFF (host, in dng_validate()
238 negative->BuildStage3Image (host, in dng_validate()
252 negative->ConvertToProxy (host, in dng_validate()
260 if (negative->NeedFlattenTransparency (host)) in dng_validate()
265 negative->FlattenTransparency (host); in dng_validate()
274 const dng_image &stage3 = *negative->Stage3Image (); in dng_validate()
278 writer.WriteTIFF (host, in dng_validate()
307 if (negative->RawJPEGImage () != NULL && previewIndex > 0) in dng_validate()
323 dng_render render (host, *negative); in dng_validate()
325 render.SetFinalSpace (negative->IsMonochrome () ? dng_space_GrayGamma22::Get () in dng_validate()
336 // Don't write the preview if it is same size as thumbnail. in dng_validate()
339 Max_uint32 (previewImage->Bounds ().W (), in dng_validate()
340 previewImage->Bounds ().H ()) <= 256) in dng_validate()
348 bool useCompressedPreview = (negative->RawJPEGImage () != NULL) || in dng_validate()
357 preview->fInfo.fApplicationName .Set ("dng_validate"); in dng_validate()
358 preview->fInfo.fApplicationVersion.Set (kDNGValidateVersion); in dng_validate()
360 preview->fInfo.fSettingsName.Set ("Default"); in dng_validate()
362 preview->fInfo.fColorSpace = previewImage->Planes () == 1 ? in dng_validate()
366 preview->fInfo.fDateTime = dateTimeInfo.Encode_ISO_8601 (); in dng_validate()
373 imagePreview->fImage.Reset (previewImage.Release ()); in dng_validate()
386 writer.EncodeJPEGPreview (host, in dng_validate()
397 // Write DNG file. in dng_validate()
403 dng_timer timer ("Write DNG time"); in dng_validate()
407 writer.WriteDNG (host, in dng_validate()
427 dng_render render (host, *negative); in dng_validate()
432 if (host.MinimumSize ()) in dng_validate()
435 dng_point stage3Size = negative->Stage3Image ()->Size (); in dng_validate()
452 finalImage->Rotate (negative->Orientation ()); in dng_validate()
454 // Now that Camera Raw supports non-raw formats, we should in dng_validate()
460 if (negative->GetXMP ()) in dng_validate()
463 negative->GetXMP ()->RemoveProperties (XMP_NS_CRS); in dng_validate()
464 negative->GetXMP ()->RemoveProperties (XMP_NS_CRSS); in dng_validate()
470 // Write TIF file. in dng_validate()
476 dng_timer timer ("Write TIFF time"); in dng_validate()
480 writer.WriteTIFF (host, in dng_validate()
483 finalImage->Planes () >= 3 ? piRGB in dng_validate()
532 "(64-bit)" in main()
534 "(32-bit)" in main()
537 "Copyright 2005-2012 Adobe Systems, Inc.\n" in main()
542 "-v Verbose mode\n" in main()
543 "-d <num> Dump line limit (implies -v)\n" in main()
544 "-b4 Use four-color Bayer interpolation\n" in main()
545 "-s <num> Use this sample of multi-sample CFAs\n" in main()
546 "-size <num> Preferred preview image size\n" in main()
547 "-min <num> Minimum preview image size\n" in main()
548 "-max <num> Maximum preview image size\n" in main()
549 "-proxy <num> Target size for proxy DNG\n" in main()
550 "-cs1 Color space: \"sRGB\" (default)\n" in main()
551 "-cs2 Color space: \"Adobe RGB\"\n" in main()
552 "-cs3 Color space: \"ProPhoto RGB\"\n" in main()
553 "-cs4 Color space: \"ColorMatch RGB\"\n" in main()
554 "-cs5 Color space: \"Gray Gamma 1.8\"\n" in main()
555 "-cs6 Color space: \"Gray Gamma 2.2\"\n" in main()
556 "-16 16-bits/channel output\n" in main()
557 "-1 <file> Write stage 1 image to \"<file>.tif\"\n" in main()
558 "-2 <file> Write stage 2 image to \"<file>.tif\"\n" in main()
559 "-3 <file> Write stage 3 image to \"<file>.tif\"\n" in main()
560 "-tif <file> Write TIF image to \"<file>.tif\"\n" in main()
561 "-dng <file> Write DNG image to \"<file>.dng\"\n" in main()
571 for (index = 1; index < argc && argv [index] [0] == '-'; index++) in main()
597 fprintf (stderr, "*** Invalid number after -d\n"); in main()
613 fprintf (stderr, "*** Missing number after -s\n"); in main()
634 fprintf (stderr, "*** Missing number after -size\n"); in main()
650 fprintf (stderr, "*** Missing number after -min\n"); in main()
666 fprintf (stderr, "*** Missing number after -max\n"); in main()
682 fprintf (stderr, "*** Missing number after -proxy\n"); in main()
747 if (gDumpStage1.IsEmpty () || gDumpStage1.StartsWith ("-")) in main()
749 fprintf (stderr, "*** Missing file name after -1\n"); in main()
770 if (gDumpStage2.IsEmpty () || gDumpStage2.StartsWith ("-")) in main()
772 fprintf (stderr, "*** Missing file name after -2\n"); in main()
793 if (gDumpStage3.IsEmpty () || gDumpStage3.StartsWith ("-")) in main()
795 fprintf (stderr, "*** Missing file name after -3\n"); in main()
816 if (gDumpTIF.IsEmpty () || gDumpTIF.StartsWith ("-")) in main()
818 fprintf (stderr, "*** Missing file name after -tif\n"); in main()
839 if (gDumpDNG.IsEmpty () || gDumpDNG.StartsWith ("-")) in main()
841 fprintf (stderr, "*** Missing file name after -dng\n"); in main()
854 fprintf (stderr, "*** Unknown option \"-%s\"\n", option.Get ()); in main()
881 result = error_code - dng_error_unknown + 100; in main()