<builderarguments="apps-camogm"command="${workspace_loc:/elphel-apps-imgsrv/run_bitbake.sh}"enableAutoBuild="false"enableCleanBuild="false"id="org.eclipse.cdt.build.core.settings.default.builder.1922841623"incrementalBuildTarget="-c compile -f"keepEnvironmentInBuildfile="false"managedBuildOn="false"name="Gnu Make Builder"superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<builderarguments="apps-camogm"cleanBuildTarget="-c clean -f"command="${workspace_loc:/elphel-apps-camogm/run_bitbake.sh}"enableCleanBuild="false"id="cdt.managedbuild.target.gnu.builder.base.1606892613"incrementalBuildTarget="-c compile -f"keepEnvironmentInBuildfile="false"managedBuildOn="false"name="Gnu Make Builder"superClass="cdt.managedbuild.target.gnu.builder.base"/>
<toolid="org.eclipse.cdt.build.core.settings.holder.libs.702004608"name="holder for library settings"superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
// find location of the timestamp and copy it to the frame_params structure
// ==================================
timestamp_start=(state->cirbuf_rp[chn])+((state->jpeg_len+CCAM_MMAP_META+3)&(~0x1f))+32-CCAM_MMAP_META_SEC;// magic shift - should index first byte of the time stamp
// find location of the timestamp and copy it to the frame_params structure
// ==================================
timestamp_start=(state->cirbuf_rp[chn])+((state->jpeg_len+CCAM_MMAP_META+3)&(~0x1f))+32-CCAM_MMAP_META_SEC;// magic shift - should index first byte of the time stamp
// read JPEG header - it should stay the same for the whole file (restart new file if any parameters changed)
// rebuild JPEG header:
lseek(state->fd_head[chn],state->cirbuf_rp[chn]+1,SEEK_END);// +1 to avoid condition when jpeg_start==0. overloaded lseek will ignore 5 LSBs when SEEK_END
state->head_size[chn]=lseek(state->fd_head[chn],0,SEEK_END);// In 8.0 the header size might change for some jp4 modes
if(state->head_size[chn]>JPEG_HEADER_MAXSIZE){
D0(fprintf(debug_file,"%s:%d: Too big JPEG header (%d > %d)",__FILE__,__LINE__,state->head_size[chn],JPEG_HEADER_MAXSIZE));
// read JPEG header - it should stay the same for the whole file (restart new file if any parameters changed)
// rebuild JPEG header:
lseek(state->fd_head[chn],state->cirbuf_rp[chn]+1,SEEK_END);// +1 to avoid condition when jpeg_start==0. overloaded lseek will ignore 5 LSBs when SEEK_END
state->head_size[chn]=lseek(state->fd_head[chn],0,SEEK_END);// In 8.0 the header size might change for some jp4 modes
if(state->head_size[chn]>JPEG_HEADER_MAXSIZE){
D0(fprintf(debug_file,"%s:%d: Too big JPEG header (%d > %d)",__FILE__,__LINE__,state->head_size[chn],JPEG_HEADER_MAXSIZE));