Lines Matching refs:temp

32     uint8_t *temp;  // realloc buffer used for shrinking 16 bits to 8 bits and byte-swapping  member
77 handle->temp = NULL; in sf_open_read()
369 handle->temp = NULL; in sf_open_write()
402 free(handle->temp); in sf_close()
431 void *temp = NULL; in sf_readf_short() local
434 temp = malloc(desiredBytes); in sf_readf_short()
435 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_short()
450 memcpy_to_i16_from_i32(ptr, (const int *) temp, actualFrames * handle->info.channels); in sf_readf_short()
451 free(temp); in sf_readf_short()
454 memcpy_to_i16_from_float(ptr, (const float *) temp, actualFrames * handle->info.channels); in sf_readf_short()
455 free(temp); in sf_readf_short()
458 memcpy_to_i16_from_p24(ptr, (const uint8_t *) temp, actualFrames * handle->info.channels); in sf_readf_short()
459 free(temp); in sf_readf_short()
480 void *temp = NULL; in sf_readf_float() local
483 temp = malloc(desiredBytes); in sf_readf_float()
484 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_float()
492 memcpy_to_float_from_u8(ptr, (const unsigned char *) temp, in sf_readf_float()
494 free(temp); in sf_readf_float()
497 memcpy_to_float_from_i16(ptr, (const short *) temp, actualFrames * handle->info.channels); in sf_readf_float()
498 free(temp); in sf_readf_float()
506 memcpy_to_float_from_p24(ptr, (const uint8_t *) temp, actualFrames * handle->info.channels); in sf_readf_float()
507 free(temp); in sf_readf_float()
527 void *temp = NULL; in sf_readf_int() local
531 temp = malloc(desiredBytes); in sf_readf_int()
532 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_int()
540 memcpy_to_i32_from_u8(ptr, (const unsigned char *) temp, in sf_readf_int()
542 free(temp); in sf_readf_int()
545 memcpy_to_i32_from_i16(ptr, (const short *) temp, actualFrames * handle->info.channels); in sf_readf_int()
546 free(temp); in sf_readf_int()
554 memcpy_to_i32_from_p24(ptr, (const uint8_t *) temp, actualFrames * handle->info.channels); in sf_readf_int()
555 free(temp); in sf_readf_int()
572 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short()
573 memcpy_to_u8_from_i16(handle->temp, ptr, desiredBytes); in sf_writef_short()
574 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
581 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short()
582 memcpy(handle->temp, ptr, desiredBytes); in sf_writef_short()
583 my_swab((short *) handle->temp, desiredFrames * handle->info.channels); in sf_writef_short()
584 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
588 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short()
589 memcpy_to_float_from_i16((float *) handle->temp, ptr, in sf_writef_short()
591 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
612 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_float()
613 memcpy_to_i16_from_float((short *) handle->temp, ptr, in sf_writef_float()
615 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()