Home
last modified time | relevance | path

Searched refs:reference_pos (Results 1 – 1 of 1) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dnotchlc.c81 unsigned reference_pos, match_length, delta, pos = 0; in lz4_decompress() local
124 reference_pos = (pos >= delta) ? (pos - delta) : (HISTORY_SIZE + pos - delta); in lz4_decompress()
125 if (pos + match_length < HISTORY_SIZE && reference_pos + match_length < HISTORY_SIZE) { in lz4_decompress()
126 if (pos >= reference_pos + match_length || reference_pos >= pos + match_length) { in lz4_decompress()
127 memcpy(history + pos, history + reference_pos, match_length); in lz4_decompress()
131 history[pos++] = history[reference_pos++]; in lz4_decompress()
135 history[pos++] = history[reference_pos++]; in lz4_decompress()
140 reference_pos %= HISTORY_SIZE; in lz4_decompress()