Lines Matching defs:offset
74 int32_t offset;
91 offset = (word >> 3) - 0x2000;
99 offset = bytestream2_get_byte(&gb) - 0x0100;
102 offset += writeoffset;
103 if (offset < 0 || offset + count >= hnm->width * hnm->height) {
112 hnm->current[writeoffset++] = hnm->current[offset++];
155 int count, left, offset;
203 offset = bytestream2_get_le16(&gb);
204 offset = (offset >> 1) & 0x7FFF;
205 offset = writeoffset + (offset * 2) - 0x8000;
209 if (!backward && offset + 2*count > hnm->width * hnm->height) {
212 } else if (backward && offset + 1 >= hnm->width * hnm->height) {
222 if (offset < (!!backline)*(2 * hnm->width - 1) + 2*(left-1)) {
227 if (offset < (!!backline)*(2 * hnm->width - 1)) {
236 hnm->current[writeoffset++] = hnm->previous[offset - (2 * hnm->width) + 1];
237 hnm->current[writeoffset++] = hnm->previous[offset++];
238 offset++;
240 hnm->current[writeoffset++] = hnm->previous[offset++];
241 hnm->current[writeoffset++] = hnm->previous[offset++];
244 offset -= 4;
250 hnm->current[writeoffset++] = hnm->current[offset - (2 * hnm->width) + 1];
251 hnm->current[writeoffset++] = hnm->current[offset++];
252 offset++;
254 hnm->current[writeoffset++] = hnm->current[offset++];
255 hnm->current[writeoffset++] = hnm->current[offset++];
258 offset -= 4;
284 uint32_t writeoffset = 0, offset;
318 offset = writeoffset;
319 offset += bytestream2_get_le16(&gb);
322 if (offset < 0x10000) {
326 offset -= 0x10000;
329 if (offset + hnm->width + count >= hnm->width * hnm->height) {
339 hnm->current[writeoffset] = hnm->previous[offset];
340 hnm->current[writeoffset + hnm->width] = hnm->previous[offset + hnm->width];
342 offset++;
347 hnm->current[writeoffset] = hnm->current[offset];
348 hnm->current[writeoffset + hnm->width] = hnm->current[offset + hnm->width];
350 offset++;