Some new structs in town in Adobe Camera Raw

Started by blue-j, October 16, 2023, 04:03:15 PM

Previous topic - Next topic

blue-j

Version 16 of ACR includes a new feature called "Lens Blur" that has a struct as so:

{"Active":true,
"BlurAmount":33,
"BokehAspect":0,
"BokehRotation":0,
"BokehShape":0,
"BokehShapeDetail":0,
"CatEyeAmount":80,
"CatEyeScale":100,
"FocalRange":"-48 32 64 144",
"FocalRangeSource":3,
"HighlightsBoost":39,
"HighlightsThreshold":50,
"SampledArea":"0.500000 0.500000 0.500000 0.500000",
"SampledRange":"0 0",
"SphericalAberration":0,
"SubjectRange":"0 57",
"Version":1}


this is an "Early Access" feature but it is present in any updated version of Photoshop, not just for special people.  :p

thing is, it doesn't appear to be using the CRS or CRD namespaces, just XMP.  so, this is XMP:LensBlur


the second new struct is part of lens blur as well, but not within its initial struct as presented above.  instead, XMP:DepthInfo has its own:

{"BaseHighlightGuideInputDigest":"4352D88A78AA39750BF70CD6F27BCAA5",
"BaseHighlightGuideTable":"79F0AA14E5C1F9E573816D24B895ABC4",
"BaseHighlightGuideVersion":1,
"BaseLayeredDepthInputDigest":"ADAF07D6C4365F4719A935CBEF5E02BD",
"BaseLayeredDepthTable":"87AF8D5ADCF792D83A4A4F3448B06F9C",
"BaseLayeredDepthVersion":1,
"BaseRawDepthInputDigest":"9CF072F7AAC4555048CDDA5AA368E4B5",
"BaseRawDepthTable":"FEEFB5534B1DEAA43F794645597FEC91",
"BaseRawDepthVersion":1,
"DepthSource":2}

I am still working on decoding.  The schema is not as sane as I would like. 




the third and last struct is XMP:DepthBasedCorrections and it has substructs as well:

[{"CorrectionActive":true,
"CorrectionAmount":1,
"CorrectionMasks": [{
"MaskActive":true,
"MaskBlendMode":0,
"MaskInverted":false,
"MaskSyncID":"04DC2781324741D594058D4437CDB170",
"MaskValue":1,
"Masks":[{
"CenterWeight":1,
"Dabs":["d 0.484389 0.358362","d 0.484426 0.364534","d 0.485793 0.370432","d 0.487159 0.376330","d 0.488525 0.382228","d 0.490538 0.387790","d 0.492550 0.393352","d 0.494562 0.398914","d 0.496574 0.404475","d 0.498586 0.410037","d 0.500599 0.415599","d 0.502611 0.421161","d 0.505942 0.425460","d 0.509274 0.429759","d 0.512605 0.434058","d 0.515936 0.438356","d 0.519268 0.442655","d 0.522599 0.446954","d 0.525931 0.451253","d 0.529262 0.455552","d 0.532593 0.459851","d 0.535925 0.464149","d 0.539256 0.468448","d 0.542588 0.472747","d 0.546578 0.475902","d 0.550569 0.479058","d 0.554559 0.482213","d 0.558549 0.485368","d 0.562540 0.488523","d 0.566530 0.491678","d 0.570521 0.494834","d 0.574511 0.497989","d 0.578502 0.501144","d 0.582492 0.504299","d 0.586482 0.507455","d 0.590473 0.510610","d 0.594463 0.513765","d 0.598454 0.516920","d 0.602444 0.520075","d 0.606435 0.523231","d 0.610425 0.526386","d 0.614798 0.528459","d 0.619172 0.530532","d 0.623545 0.532604","d 0.627919 0.534677","d 0.632292 0.536750","d 0.636665 0.538823","d 0.641039 0.540896","d 0.645412 0.542969","d 0.649785 0.545042","d 0.654159 0.547115","d 0.658532 0.549187","d 0.662906 0.551260","d 0.667279 0.553333","d 0.671652 0.555406","d 0.676026 0.557479","d 0.680399 0.559552","d 0.684930 0.560901","d 0.689461 0.562250","d 0.693992 0.563599","d 0.698522 0.564949","d 0.703053 0.566298","d 0.707584 0.567647","d 0.712115 0.568996","d 0.716646 0.570345","d 0.721176 0.571695","d 0.725707 0.573044","d 0.730238 0.574393","d 0.734835 0.575259","d 0.739432 0.576126","d 0.744030 0.576992","d 0.748627 0.577858","d 0.753224 0.578724","d 0.757843 0.579354","d 0.753268 0.578300","d 0.748693 0.577245","d 0.744118 0.576191","d 0.739543 0.575136","d 0.734969 0.574081","d 0.730336 0.573664","d 0.725704 0.573246","d 0.721071 0.572828","d 0.716439 0.572411","d 0.711806 0.571993","d 0.707200 0.572773","d 0.702594 0.573552","d 0.697988 0.574332","d 0.693383 0.575112","d 0.689508 0.578512","d 0.685632 0.581912","d 0.681757 0.585312","d 0.679698 0.590843","d 0.677638 0.596374","d 0.676578 0.602382","d 0.675519 0.608391","d 0.674980 0.614521","d 0.674442 0.620651","d 0.672816 0.626431","d 0.669788 0.631110","d 0.666761 0.635789","d 0.663031 0.639466","d 0.659302 0.643142","d 0.654932 0.645229","d 0.650563 0.647316","d 0.646193 0.649403","d 0.641824 0.651490","d 0.637262 0.650339","d 0.632700 0.649188","d 0.628139 0.648037","d 0.623577 0.646885","d 0.619016 0.645734","d 0.614454 0.644583","d 0.610382 0.641617","d 0.606310 0.638652","d 0.602238 0.635687","d 0.598166 0.632721","d 0.594094 0.629756","d 0.590022 0.626790","d 0.585950 0.623825","d 0.581878 0.620859","d 0.577806 0.617894","d 0.573734 0.614929","d 0.569662 0.611963","d 0.565590 0.608998","d 0.561518 0.606032","d 0.557446 0.603067","d 0.553777 0.599284","d 0.550108 0.595502","d 0.546440 0.591719","d 0.542771 0.587937","d 0.539102 0.584155","d 0.535433 0.580372","d 0.531764 0.576590","d 0.528095 0.572807","d 0.524427 0.569025","d 0.520758 0.565242","d 0.517089 0.561460","d 0.513420 0.557677","d 0.509751 0.553895","d 0.506082 0.550112","d 0.502414 0.546330","d 0.498745 0.542547","d 0.495076 0.538765","d 0.491407 0.534983","d 0.487738 0.531200","d 0.484069 0.527418","d 0.480401 0.523635","d 0.476732 0.519853","d 0.473344 0.515632","d 0.469957 0.511411","d 0.466569 0.507190","d 0.463182 0.502970","d 0.459794 0.498749","d 0.456407 0.494528","d 0.453019 0.490307","d 0.449632 0.486087","d 0.446245 0.481866","d 0.442857 0.477645","d 0.439470 0.473424","d 0.436082 0.469204","d 0.432695 0.464983","d 0.429307 0.460762","d 0.425920 0.456541","d 0.422532 0.452321","d 0.419145 0.448100","d 0.415757 0.443879","d 0.412370 0.439658","d 0.408982 0.435438","d 0.405595 0.431217","d 0.402208 0.426996","d 0.398820 0.422775","d 0.395433 0.418555","d 0.392045 0.414334","d 0.388658 0.410113","d 0.385572 0.405502","d 0.382486 0.400891","d 0.379400 0.396279","d 0.376314 0.391668","d 0.373229 0.387057","d 0.370143 0.382445","d 0.367057 0.377834","d 0.363971 0.373223","d 0.360885 0.368611","d 0.357799 0.364000","d 0.354714 0.359389","d 0.351628 0.354777","d 0.348542 0.350166","d 0.345456 0.345555","d 0.342370 0.340943","d 0.339284 0.336332","d 0.336199 0.331721","d 0.333113 0.327109","d 0.330027 0.322498","d 0.326941 0.317887","d 0.323855 0.313275","d 0.321231 0.308185","d 0.318606 0.303094","d 0.315981 0.298003","d 0.313357 0.292912","d 0.310732 0.287821","d 0.308107 0.282730","d 0.305483 0.277639","d 0.302858 0.272549","d 0.300233 0.267458","d 0.297609 0.262367","d 0.294984 0.257276","d 0.293325 0.251512","d 0.291666 0.245748","d 0.292410 0.239656","d 0.296993 0.238668","d 0.301624 0.238220","d 0.306255 0.237772","d 0.310886 0.237324","d 0.315528 0.237195","d 0.320170 0.237066","d 0.324810 0.236851","d 0.321030 0.233268","d 0.317250 0.229684","d 0.312930 0.227420","d 0.308611 0.225156","d 0.304292 0.222891","d 0.299676 0.222224","d 0.295035 0.222433","d 0.290395 0.222642","d 0.286054 0.224832","d 0.283112 0.229606","d 0.280170 0.234381","d 0.277228 0.239155","d 0.274437 0.244087","d 0.271646 0.249020","d 0.268855 0.253952","d 0.266065 0.258884","d 0.263274 0.263817","d 0.260483 0.268749","d 0.257693 0.273681","d 0.255343 0.279005","d 0.252994 0.284328","d 0.250645 0.289651","d 0.248295 0.294974","d 0.245946 0.300297","d 0.243597 0.305621","d 0.241247 0.310944","d 0.238898 0.316267","d 0.236549 0.321590","d 0.234200 0.326913","d 0.231850 0.332237","d 0.229501 0.337560","d 0.227152 0.342883","d 0.224802 0.348206","d 0.223236 0.354016","d 0.221669 0.359825","d 0.220102 0.365635","d 0.218535 0.371444","d 0.216968 0.377254","d 0.215402 0.383063","d 0.213835 0.388873","d 0.212268 0.394682","d 0.210701 0.400492","d 0.209134 0.406301","d 0.207568 0.412111","d 0.206001 0.417920","d 0.204434 0.423730","d 0.202867 0.429539","d 0.201300 0.435349","d 0.200677 0.441464","d 0.200053 0.447580","d 0.199430 0.453695","d 0.198806 0.459811","d 0.198183 0.465927","d 0.197559 0.472042","d 0.196936 0.478158","d 0.196312 0.484273","d 0.195689 0.490389","d 0.195065 0.496505","d 0.194442 0.502620","d 0.193818 0.508736","d 0.193195 0.514851","d 0.193400 0.521017","d 0.193606 0.527182","d 0.193811 0.533348","d 0.194017 0.539513","d 0.194223 0.545679","d 0.194428 0.551844","d 0.194634 0.558009","d 0.194839 0.564175","d 0.196088 0.570119","d 0.197337 0.576063","d 0.198586 0.582007","d 0.201350 0.586966","d 0.205907 0.588149","d 0.210550 0.588123","d 0.215193 0.588097","d 0.219790 0.587229","d 0.224387 0.586360","d 0.228984 0.585492","d 0.233524 0.584198","d 0.238064 0.582904","d 0.242604 0.581610","d 0.247144 0.580317","d 0.251650 0.578831","d 0.256157 0.577345","d 0.260733 0.576300","d 0.265338 0.577087","d 0.268385 0.581743","d 0.271322 0.586524","d 0.274258 0.591304","d 0.277616 0.595567","d 0.280974 0.599829","d 0.285046 0.602793","d 0.289119 0.605757","d 0.293706 0.606712","d 0.298293 0.607667","d 0.302881 0.608622","d 0.307468 0.609577","d 0.312108 0.609790","d 0.316749 0.610003","d 0.321389 0.610216","d 0.326029 0.610429","d 0.330670 0.610642","d 0.335313 0.610642","d 0.339956 0.610641","d 0.344599 0.610641","d 0.349242 0.610641","d 0.353885 0.610706","d 0.358528 0.610771","d 0.363171 0.610837","d 0.367776 0.611619","d 0.372382 0.612401","d 0.376762 0.614450","d 0.381142 0.616499","d 0.385373 0.619038","d 0.389595 0.621608"],
"Flow":1,
"MaskActive":true,
"MaskBlendMode":0,
"MaskInverted":false,
"MaskSyncID":"5C084591A4E34EA0923A3B6FC9BB072A",
"MaskValue":1,
"Radius":0.023216,
"What":"Mask\/Paint"}],
"What":"Mask\/Aggregate"}],
"CorrectionSyncID":"1CC394C6F2C445EF946E2A9314994CCE",
"LocalCorrectedDepth":-1,
"LocalCurveRefineSaturation":100,
"What":"Correction"},
{"CorrectionActive":true,
"CorrectionAmount":1,
"CorrectionMasks [{
"MaskActive":true,
"MaskBlendMode":0,
"MaskInverted":false,
"MaskSyncID":"47DB63F007A44BE8BC9037C7953EC0D2",
"MaskValue":1,
"Masks":[{
"CenterWeight":1,
"Dabs":["d 0.530175 0.222363","d 0.525592 0.223352","d 0.520971 0.223957","d 0.516350 0.224562","d 0.511715 0.224920","d 0.507080 0.225278","d 0.502445 0.225636","d 0.497813 0.226076","d 0.493182 0.226515","d 0.488551 0.226955","d 0.483919 0.227394","d 0.479303 0.228056","d 0.474687 0.228718","d 0.470070 0.229380","d 0.465454 0.230042","d 0.460838 0.230704","d 0.456221 0.231366","d 0.451619 0.232188","d 0.447018 0.233009","d 0.442416 0.233831","d 0.437814 0.234652","d 0.433212 0.235474","d 0.428610 0.236295","d 0.424009 0.237117","d 0.419429 0.238136","d 0.414850 0.239156","d 0.410271 0.240175","d 0.405691 0.241195","d 0.401112 0.242214","d 0.396533 0.243234","d 0.391953 0.244253","d 0.387431 0.245653","d 0.382909 0.247053","d 0.378387 0.248452","d 0.373865 0.249852","d 0.369343 0.251252","d 0.364821 0.252652","d 0.360369 0.254404","d 0.355917 0.256157","d 0.351465 0.257909","d 0.347013 0.259662","d 0.342621 0.261664","d 0.338228 0.263666","d 0.333836 0.265668","d 0.329482 0.267808","d 0.325127 0.269949","d 0.320772 0.272090","d 0.316494 0.274489","d 0.312370 0.277325","d 0.308247 0.280162","d 0.304368 0.283555","d 0.300490 0.286949","d 0.297101 0.291166","d 0.293711 0.295384","d 0.290832 0.300226","d 0.287954 0.305069","d 0.285076 0.309911","d 0.282665 0.315186","d 0.280255 0.320461","d 0.277845 0.325736","d 0.275435 0.331011","d 0.273546 0.336649","d 0.271657 0.342286","d 0.269768 0.347924","d 0.267879 0.353562","d 0.266430 0.359425","d 0.264980 0.365288","d 0.263531 0.371151","d 0.262081 0.377014","d 0.261068 0.383037","d 0.260055 0.389059","d 0.259041 0.395082","d 0.258028 0.401105","d 0.257015 0.407128","d 0.256249 0.413214","d 0.255483 0.419301","d 0.254717 0.425388","d 0.253951 0.431475","d 0.253186 0.437562","d 0.252420 0.443649","d 0.251978 0.449793","d 0.251535 0.455936","d 0.251093 0.462080","d 0.250651 0.468223","d 0.250506 0.474392","d 0.250362 0.480560","d 0.250217 0.486729","d 0.250072 0.492897","d 0.249928 0.499066","d 0.249783 0.505234","d 0.250067 0.511394","d 0.250350 0.517554","d 0.250633 0.523714","d 0.250917 0.529874","d 0.251200 0.536034","d 0.252228 0.542052","d 0.253257 0.548070","d 0.254285 0.554089","d 0.255313 0.560107","d 0.256341 0.566125","d 0.258287 0.571729","d 0.260232 0.577333","d 0.262177 0.582936","d 0.264122 0.588540","d 0.266068 0.594144","d 0.268720 0.599210","d 0.271372 0.604275","d 0.274024 0.609341","d 0.276676 0.614406","d 0.279328 0.619472","d 0.282299 0.624216","d 0.285269 0.628959","d 0.288239 0.633703","d 0.291209 0.638447","d 0.294295 0.643058","d 0.297381 0.647669","d 0.300467 0.652280","d 0.303553 0.656891","d 0.306639 0.661502","d 0.309925 0.665862","d 0.313212 0.670221","d 0.316498 0.674581","d 0.319785 0.678941","d 0.323071 0.683300","d 0.326614 0.687289","d 0.330157 0.691278","d 0.333700 0.695267","d 0.337243 0.699256","d 0.341080 0.702730","d 0.344917 0.706205","d 0.348755 0.709680","d 0.352592 0.713154","d 0.356734 0.715944","d 0.360875 0.718734","d 0.365017 0.721524","d 0.369159 0.724313","d 0.373517 0.726442","d 0.377875 0.728570","d 0.382234 0.730698","d 0.386592 0.732826","d 0.391069 0.734461","d 0.395546 0.736096","d 0.400024 0.737730","d 0.404501 0.739365","d 0.409038 0.740676","d 0.413575 0.741986","d 0.418123 0.743234","d 0.422670 0.744482","d 0.427229 0.745650","d 0.431783 0.746852"],
"Flow":1,
"MaskActive":true,
"MaskBlendMode":0,
"MaskInverted":false,
"MaskSyncID":"8086B9FC7B0C4E0DAE78AC743E6D66A4",
"MaskValue":1,
"Radius":0.023216,
"What":"Mask\/Paint"}],
"What":"Mask\/Aggregate"}],
"CorrectionSyncID":"7DF131B50BB24741ADA791762B006DE2",
"LocalCorrectedDepth":1,
"LocalCurveRefineSaturation":100,
"What":"Correction"}]   


attached please find a screenshot of the UI, and a sample image with the metadata embedded.

- J

Phil Harvey

Thanks.  Adobe certainly knows how to create complicated XMP.

I'll add support for these in 12.69.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).