Lines Matching defs:src

9 #define PRF2(s) printf("%s ip=%8x  tempPos=%d  src= %8x\n", s, (unsigned)p->ip64, p->tempPos, (unsigned)(p->srcLim - p->src));

130 if (p->srcLim == p->src) at exit, then
138 (p->srcLim != p->src)
141 and p->src points to last byte of that marker,
144 as continuous array starting from p->src.
145 (p->srcLim - p->src < 5) requirement is met after exit.
146 So non-processed resedue from p->src to p->srcLim is always less than 5 bytes.
157 const Byte *src;
171 src = p->src;
176 #define WRITE_CONTEXT_AND_SRC p->src = src; WRITE_CONTEXT
180 // const Byte *src;
190 src = p->src;
193 // src = p->src;
200 const SizeT remSrc = (SizeT)(p->srcLim - src);
204 srcLim = src + rem;
207 bits [0 : 7] : src[-1], if (src) was changed in this call
214 b = src[0]; \
220 src++; if (src == srcLim) { break; } }
222 if (src != srcLim)
236 if (src == srcLim)
239 if (src != p->srcLim)
244 /* (p->src == p->srcLim)
253 src++;
254 // p->src = src;
260 : value of src[-2] : xx/xx/0f
261 bits [0 : 7] : value of src[-1] : e8/e9/8x
269 if ((SizeT)(p->srcLim - src) >= 4)
275 const UInt32 relat = GetUi32(src);
295 // (p->srcLim - src < 4)
300 src--;
302 // (0 < p->srcLim - p->src <= 4)
332 // p->context = src[3];
337 v = GetUi32(src); // relat
340 src += 4;
341 // p->src = src;
371 BCJ2 encoder needs look ahead for up to 4 bytes in (src) buffer.
374 (p->state == BCJ2_ENC_STATE_ORIG && p->src < p->srcLim)
377 then (p->src == p->srcLim).
387 /* extra: number of bytes that were copied from (src) to (temp) buffer in this call */
389 /* We will touch only minimal required number of bytes in input (src) stream.
390 So we will add input bytes from (src) stream to temp[] with step of 1 byte.
400 /* p->src : the current src data position including extra bytes
402 const Byte *src = p->src;
405 if (src != srcLim)
407 /* if there are some src data after the data copied to temp[],
411 p->src = p->temp;
416 const unsigned num = (unsigned)(p->src - p->temp);
423 p->src = src;
432 // optional code begin : we rollback (src) and tempPos, if it's possible:
435 p->src = src - extra;
437 // optional code end : rollback of (src) and tempPos
443 if (src == srcLim)
444 return; // src buffer has no more input data.
445 /* (src != srcLim)
446 so we can provide more input data from src for Bcj2Enc_Encode_2() */
450 only data from src buffer of this call.
452 p->src = src - tempPos; // rollback (src)
456 // we append one additional extra byte from (src) to temp[] buffer:
457 p->temp[tempPos] = *src;
460 p->src = src + 1;
473 const Byte *src = p->src;
475 const unsigned rem = (unsigned)(srcLim - src);
477 if (p->src != p->srcLim), then
478 - we copy non-processed bytes from (p->src) to temp[] buffer,
479 - we set p->src equal to p->srcLim.
484 p->src = srcLim;
488 p->temp[i] = src[i];
492 // (p->src == p->srcLim)