Lines Matching defs:writeoffset
72 uint32_t bitbuf = 0, writeoffset = 0, count = 0;
81 if (writeoffset >= hnm->width * hnm->height) {
86 hnm->current[writeoffset++] = bytestream2_get_byte(&gb);
102 offset += writeoffset;
106 } else if (writeoffset + count >= hnm->width * hnm->height) {
112 hnm->current[writeoffset++] = hnm->current[offset++];
154 uint32_t writeoffset = 0;
167 if (writeoffset + 2 > hnm->width * hnm->height) {
168 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
171 hnm->current[writeoffset++] = bytestream2_get_byte(&gb);
172 hnm->current[writeoffset++] = bytestream2_get_byte(&gb);
174 writeoffset += bytestream2_get_byte(&gb) * 2;
178 writeoffset += count;
181 if (writeoffset + count > hnm->width * hnm->height) {
182 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
186 hnm->current[writeoffset++] = bytestream2_peek_byte(&gb);
193 if (writeoffset > hnm->width * hnm->height) {
194 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
205 offset = writeoffset + (offset * 2) - 0x8000;
215 } else if (writeoffset + 2*count > hnm->width * hnm->height) {
236 hnm->current[writeoffset++] = hnm->previous[offset - (2 * hnm->width) + 1];
237 hnm->current[writeoffset++] = hnm->previous[offset++];
240 hnm->current[writeoffset++] = hnm->previous[offset++];
241 hnm->current[writeoffset++] = hnm->previous[offset++];
250 hnm->current[writeoffset++] = hnm->current[offset - (2 * hnm->width) + 1];
251 hnm->current[writeoffset++] = hnm->current[offset++];
254 hnm->current[writeoffset++] = hnm->current[offset++];
255 hnm->current[writeoffset++] = hnm->current[offset++];
265 writeoffset -= count * 2;
267 swap = hnm->current[writeoffset];
268 hnm->current[writeoffset] = hnm->current[writeoffset + 1];
269 hnm->current[writeoffset + 1] = swap;
271 writeoffset += 2;
284 uint32_t writeoffset = 0, offset;
295 writeoffset += bytestream2_get_byte(&gb);
297 if (writeoffset + hnm->width >= hnm->width * hnm->height) {
298 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
301 hnm->current[writeoffset] = bytestream2_get_byte(&gb);
302 hnm->current[writeoffset + hnm->width] = bytestream2_get_byte(&gb);
303 writeoffset++;
305 writeoffset += hnm->width;
309 if (writeoffset > hnm->width * hnm->height) {
310 av_log(avctx, AV_LOG_ERROR, "writeoffset out of bounds\n");
318 offset = writeoffset;
332 } else if (writeoffset + 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];
341 writeoffset++;
347 hnm->current[writeoffset] = hnm->current[offset];
348 hnm->current[writeoffset + hnm->width] = hnm->current[offset + hnm->width];
349 writeoffset++;
363 uint8_t start, writeoffset;
379 writeoffset = start;
381 hnm->palette[writeoffset] = bytestream2_get_be24(&gb);
383 hnm->palette[writeoffset] <<= 2;
384 hnm->palette[writeoffset] |= (0xFFU << 24);
386 writeoffset++;