Lines Matching defs:size
86 { "blocksize", "set I/O operation maximum block size", offsetof(FileContext, blocksize), AV_OPT_TYPE_INT, { .i64 = INT_MAX }, 1, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
93 { "blocksize", "set I/O operation maximum block size", offsetof(FileContext, blocksize), AV_OPT_TYPE_INT, { .i64 = INT_MAX }, 1, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM },
111 static int file_read(URLContext *h, unsigned char *buf, int size)
115 size = FFMIN(size, c->blocksize);
116 ret = read(c->fd, buf, size);
124 static int file_write(URLContext *h, const unsigned char *buf, int size)
128 size = FFMIN(size, c->blocksize);
129 ret = write(c->fd, buf, size);
328 (*next)->size = st.st_size;