Home | History | Annotate | Download | only in zopfli

Lines Matching refs:size

36 The window size for deflate. Must be a power of two. This should be 32768, the
44 window size must be a power of two.
53 Dividing into huge blocks hurts compression, but not much relative to the size.
84 consumes a lot of memory but speeds it up. No effect on compression size.
141 Appends value to dynamically allocated memory, doubling its allocation size
146 size: pointer to the size of the array to append to, type size_t*. This is the
147 size that you consider the array to be, not the internal allocation size.
148 Precondition: allocated size of data is at least a power of two greater than or
149 equal than *size.
152 #define ZOPFLI_APPEND_DATA(/* T */ value, /* T** */ data, /* size_t* */ size) {\
153 if (!((*size) & ((*size) - 1))) {\
154 /*double alloc size if it's a power of two*/\
156 *data_void = (*size) == 0 ? malloc(sizeof(**data))\
157 : realloc((*data), (*size) * 2 * sizeof(**data));\
159 (*data)[(*size)] = (value);\
160 (*size)++;\
163 #define ZOPFLI_APPEND_DATA(/* T */ value, /* T** */ data, /* size_t* */ size) {\
164 if (!((*size) & ((*size) - 1))) {\
165 /*double alloc size if it's a power of two*/\
166 (*data) = (*size) == 0 ? malloc(sizeof(**data))\
167 : realloc((*data), (*size) * 2 * sizeof(**data));\
169 (*data)[(*size)] = (value);\
170 (*size)++;\