Lines Matching refs:state
94 if (this->nErrorState) return 0; /* do not overwrite error state */
146 if (this->state.ppchLines)
149 for (i=0; i<this->state.cBacklog; i++)
151 if (this->state.ppchLines[i])
152 free(this->state.ppchLines[i]);
154 free(this->state.ppchLines);
156 if (this->state.pchLineOut) free(this->state.pchLineOut);
157 if (this->state.pchBuf) free(this->state.pchBuf);
158 this->state.pchBuf =NULL;
159 this->state.pchLineOut=NULL;
160 this->state.ppchLines =NULL;
173 if (!this->state.bScanning) return SANE_STATUS_GOOD;
175 this->state.bScanning=false;
178 return DoJog(this,-this->state.cyTotalPath);
193 this->state.cyTotalPath-=RegRead(this,R_POS,2);
194 DBG(DEBUG_JUNK,"stepping back %d steps\n",this->state.cyTotalPath);
195 /* this->state.cyTotalPath=0; */
202 bCanceled=this->state.bCanceled;
203 this->state.bCanceled=false; /* re-enable Origination! */
206 this->state.bCanceled=bCanceled;
229 if (!this->state.bScanning)
231 if (this->state.bCanceled) /* deferred cancellation? */
241 if (this->state.iLine)
244 rc=(*(this->state.ReadProc))(this); /* preread one line */
247 while (this->state.iReadPos + cchMax > this->state.cchLineOut)
251 cch = this->state.cchLineOut - this->state.iReadPos;
253 this->state.pchLineOut+this->state.iReadPos,
258 this->state.iReadPos=0;
259 rc=(*(this->state.ReadProc))(this);
268 this->state.pchLineOut+this->state.iReadPos,
270 this->state.iReadPos += cchMax;
283 /* this->state.cxPixel : pixels, we *want* (after interpolation)
284 this->state.cxMax : pixels, we *need* (before interpolation) */
289 case 75: nRefResX=100; this->state.nFixAspect=75; break;
290 default: this->state.nFixAspect=100; break;
292 this->state.cxPixel =this->param.cx*this->param.res/1200;
293 this->state.cyPixel =this->param.cy*this->param.res/1200;
294 this->state.cxMax =this->state.cxPixel*100/this->state.nFixAspect;
295 this->state.cxWindow =this->state.cxMax*600/nRefResX;
296 this->state.cyWindow =this->state.cyPixel*600/nRefResY;
298 this->state.cxWindow,this->state.cxPixel,this->state.cxMax);
388 cx=this->state.cxPixel;
389 cy=this->state.cyPixel;