/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as s,subclass as o}from"../../../core/accessorSupport/decorators.js";import r from"./BaseRasterFunction.js";import e from"./StatisticsHistogramFunctionArguments.js";let i=class extends r{constructor(){super(...arguments),this.functionName="StatisticsHistogram",this.functionArguments=null,this.rasterArgumentNames=["raster"],this.isNoopProcess=!0}_bindSourceRasters(){const t=this.sourceRasterInfos[0];this.outputPixelType=this._getOutputPixelType("u8");const s=t.clone(),{statistics:o,histograms:r}=this.functionArguments;return r&&(s.histograms=r),o&&(s.statistics=o),this.rasterInfo=s,{success:!0,supportsGPU:!0}}_processPixels(t){return t.pixelBlocks?.[0]}};t([s({json:{write:!0,name:"rasterFunction"}})],i.prototype,"functionName",void 0),t([s({type:e,json:{write:!0,name:"rasterFunctionArguments"}})],i.prototype,"functionArguments",void 0),t([s()],i.prototype,"rasterArgumentNames",void 0),t([s({json:{write:!0}})],i.prototype,"indexedColormap",void 0),t([s()],i.prototype,"isNoopProcess",void 0),i=t([o("esri.layers.raster.functions.StatisticsHistogramFunction")],i);const n=i;export{n as default};
