Lines Matching refs:result
139 bool result = false;
166 result = true;
172 return result;
181 h2p_read_hvif_input(h2p_hvif_buffer* result, FILE* in)
183 result->buffer = (uint8*)malloc(SIZE_HVIF_BUFFER_STEP);
184 result->allocated = SIZE_HVIF_BUFFER_STEP;
185 result->used = 0;
187 if (result->buffer == NULL) {
193 if (result->used == result->allocated) {
194 result->buffer = (uint8 *)realloc(result->buffer,
195 result->allocated + SIZE_HVIF_BUFFER_STEP);
197 if (result->buffer == NULL) {
202 result->allocated += SIZE_HVIF_BUFFER_STEP;
205 result->used += fread(&result->buffer[result->used], sizeof(uint8),
206 result->allocated - result->used, in);
216 if (result->used < 4) {
224 if (memcmp(result->buffer, kHvifMagic, 4) != 0) {
227 result->buffer[0], result->buffer[1], result->buffer[2],
228 result->buffer[3]);
232 return result->used;
241 h2p_parse_args(h2p_parameters* result, int argc, char* argv[])
264 result->size = atoi(argv[i + 1]);
266 if (result->size <= 0 || result->size > 8192) {
283 result->in_filename = argv[i + 1];
295 result->out_filename = argv[i + 1];
306 if (result->size == 0) {