<builderarguments="apps-histograms"command="${workspace_loc:/elphel-apps-imgsrv/run_bitbake.sh}"enableCleanBuild="false"id="org.eclipse.cdt.build.core.settings.default.builder.552011105"incrementalBuildTarget="-c compile -f -v"keepEnvironmentInBuildfile="false"managedBuildOn="false"name="Gnu Make Builder"superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<toolid="org.eclipse.cdt.build.core.settings.holder.libs.838083408"name="holder for library settings"superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
//#define DEV393_HISTOGRAM ("histogram_cache","histograms_operations",138,18,"0666","c") ///< Access to acquired/calculated histograms for all ports/channels/colors
inthists[1536];
intrava[256];
inti,j,k,a,l;
...
...
@@ -129,15 +146,18 @@ int main(int argc, char *argv[])
/// Now find the index of the most recently available histogram (maybe will wait a little if it is not yet available for the current frame - use previous?)
lseek(fd_histogram_cache,LSEEK_HIST_WAIT_C,SEEK_END);/// wait for all histograms, not just Y (G1)
lseek(fd_histogram_cache,LSEEK_HIST_NEEDED+0xf0,SEEK_END);/// forward and cumulative histograms are needed
...
...
@@ -188,6 +236,7 @@ int main(int argc, char *argv[])
fprintf(stderr," %05x",hists[i]);
}
fprintf(stderr,"\n\n\n");
fflush(stderr);
#endif
if((mode&(HPNG_FILL_ZEROS|HPNG_LIN_INTERP))|(rav>1)){// spread between zeros - needed at high digital gains (near black with low gammas)
...
...
@@ -259,7 +308,6 @@ int main(int argc, char *argv[])