Lines Matching refs:cache_size
39 unsigned int cache_size;
69 mxg->cache_size = 0;
99 static int mxg_update_cache(AVFormatContext *s, unsigned int cache_size)
108 if (current_pos > current_pos + cache_size)
112 current_pos + cache_size +
121 ret = avio_read(s->pb, mxg->buffer_ptr + mxg->cache_size,
122 cache_size - mxg->cache_size);
126 mxg->cache_size += ret;
139 if (mxg->cache_size <= OVERREAD_SIZE) {
145 end = mxg->buffer_ptr + mxg->cache_size;
148 if (mxg->cache_size > OVERREAD_SIZE) {
161 mxg->cache_size = end - mxg->buffer_ptr;
180 if (mxg->soi_ptr - mxg->buffer > mxg->cache_size) {
181 if (mxg->cache_size > 0) {
182 memmove(mxg->buffer, mxg->buffer_ptr, mxg->cache_size);
198 if (mxg->cache_size < size) {
203 mxg->cache_size = 0;
205 mxg->cache_size -= size;
220 if (startmarker_ptr - mxg->buffer > mxg->cache_size) {
221 if (mxg->cache_size > 0) {
222 memcpy(mxg->buffer, mxg->buffer_ptr, mxg->cache_size);
237 mxg->cache_size = OVERREAD_SIZE;