Lines Matching refs:ofs
196 int ofs; in vmd_decode() local
296 ofs = 0; in vmd_decode()
301 if (ofs + len > frame_width || in vmd_decode()
304 bytestream2_get_bufferu(&gb, &dp[ofs], len); in vmd_decode()
305 ofs += len; in vmd_decode()
308 if (ofs + len + 1 > frame_width || !pp) in vmd_decode()
310 memcpy(&dp[ofs], &pp[ofs], len + 1); in vmd_decode()
311 ofs += len + 1; in vmd_decode()
313 } while (ofs < frame_width); in vmd_decode()
314 if (ofs > frame_width) { in vmd_decode()
317 ofs, frame_width); in vmd_decode()
334 ofs = 0; in vmd_decode()
342 len = rle_unpack(gb.buffer, &dp[ofs], in vmd_decode()
344 frame_width - ofs); in vmd_decode()
345 ofs += slen; in vmd_decode()
348 if (ofs + len > frame_width || in vmd_decode()
351 bytestream2_get_buffer(&gb, &dp[ofs], len); in vmd_decode()
352 ofs += len; in vmd_decode()
356 if (ofs + len + 1 > frame_width || !pp) in vmd_decode()
358 memcpy(&dp[ofs], &pp[ofs], len + 1); in vmd_decode()
359 ofs += len + 1; in vmd_decode()
361 } while (ofs < frame_width); in vmd_decode()
362 if (ofs > frame_width) { in vmd_decode()
365 ofs, frame_width); in vmd_decode()