Searched refs:peak_info (Results 1 – 10 of 10) sorted by relevance
/third_party/libsnd/src/ |
D | aiff.c | 267 { if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in aiff_open() 269 psf->peak_info->peak_loc = SF_PEAK_START ; in aiff_open() 502 if (psf->peak_info) in aiff_read_header() 504 free (psf->peak_info) ; in aiff_read_header() 505 psf->peak_info = NULL ; in aiff_read_header() 507 if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in aiff_read_header() 511 psf_binheader_readf (psf, "E44", &(psf->peak_info->version), &(psf->peak_info->timestamp)) ; in aiff_read_header() 513 if (psf->peak_info->version != 1) in aiff_read_header() 514 … psf_log_printf (psf, " version : %d *** (should be version 1)\n", psf->peak_info->version) ; in aiff_read_header() 516 psf_log_printf (psf, " version : %d\n", psf->peak_info->version) ; in aiff_read_header() [all …]
|
D | command.c | 376 if (psf->peak_info == NULL) in psf_get_signal_max() 379 peak [0] = psf->peak_info->peaks [0].value ; in psf_get_signal_max() 382 peak [0] = SF_MAX (peak [0], psf->peak_info->peaks [k].value) ; in psf_get_signal_max() 391 if (psf->peak_info == NULL) in psf_get_max_all_channels() 395 peaks [k] = psf->peak_info->peaks [k].value ; in psf_get_max_all_channels()
|
D | float32.c | 399 if (fmaxval > psf->peak_info->peaks [chan].value) in float32_peak_update() 400 { psf->peak_info->peaks [chan].value = fmaxval ; in float32_peak_update() 401 …psf->peak_info->peaks [chan].position = psf->write_current + indx + (position / psf->sf.channels) ; in float32_peak_update() 642 if (psf->peak_info) in host_write_s2f() 673 if (psf->peak_info) in host_write_i2f() 695 if (psf->peak_info) in host_write_f() 733 if (psf->peak_info) in host_write_d2f() 886 if (psf->peak_info) in replace_write_s2f() 919 if (psf->peak_info) in replace_write_i2f() 944 if (psf->peak_info) in replace_write_f() [all …]
|
D | wavlike.c | 1196 if (psf->peak_info) in wavlike_read_peak_chunk() 1198 free (psf->peak_info) ; in wavlike_read_peak_chunk() 1199 psf->peak_info = NULL ; in wavlike_read_peak_chunk() 1201 if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in wavlike_read_peak_chunk() 1205 psf_binheader_readf (psf, "44", & (psf->peak_info->version), & (psf->peak_info->timestamp)) ; in wavlike_read_peak_chunk() 1207 if (psf->peak_info->version != 1) in wavlike_read_peak_chunk() 1208 psf_log_printf (psf, " version : %d *** (should be version 1)\n", psf->peak_info->version) ; in wavlike_read_peak_chunk() 1210 psf_log_printf (psf, " version : %d\n", psf->peak_info->version) ; in wavlike_read_peak_chunk() 1212 psf_log_printf (psf, " time stamp : %d\n", psf->peak_info->timestamp) ; in wavlike_read_peak_chunk() 1220 psf->peak_info->peaks [uk].value = value ; in wavlike_read_peak_chunk() [all …]
|
D | caf.c | 161 { if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in caf_open() 163 psf->peak_info->peak_loc = SF_PEAK_START ; in caf_open() 419 if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in caf_read_header() 423 psf_binheader_readf (psf, "E4", & (psf->peak_info->edit_number)) ; in caf_read_header() 424 psf_log_printf (psf, " edit count : %d\n", psf->peak_info->edit_number) ; in caf_read_header() 432 psf->peak_info->peaks [k].value = value ; in caf_read_header() 433 psf->peak_info->peaks [k].position = position ; in caf_read_header() 439 psf->peak_info->peak_loc = SF_PEAK_START ; in caf_read_header() 728 if (psf->peak_info != NULL) in caf_write_header() 730 …, BHW8 ((sf_count_t) CAF_PEAK_CHUNK_SIZE (psf->sf.channels)), BHW4 (psf->peak_info->edit_number)) ; in caf_write_header() [all …]
|
D | double64.c | 448 if (fmaxval > psf->peak_info->peaks [chan].value) in double64_peak_update() 449 { psf->peak_info->peaks [chan].value = fmaxval ; in double64_peak_update() 450 …psf->peak_info->peaks [chan].position = psf->write_current + indx + (position / psf->sf.channels) ; in double64_peak_update() 692 if (psf->peak_info) in host_write_s2d() 723 if (psf->peak_info) in host_write_i2d() 752 if (psf->peak_info) in host_write_f2d() 774 if (psf->peak_info) in host_write_d() 935 if (psf->peak_info) in replace_write_s2d() 968 if (psf->peak_info) in replace_write_i2d() 1021 if (psf->peak_info) in replace_write_d()
|
D | wav.c | 216 { if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in wav_open() 218 psf->peak_info->peak_loc = SF_PEAK_START ; in wav_open() 464 psf->peak_info->peak_loc = ((parsestage & HAVE_data) == 0) ? SF_PEAK_START : SF_PEAK_END ; in wav_read_header() 1121 if (psf->peak_info != NULL && psf->peak_info->peak_loc == SF_PEAK_START) in wav_write_header() 1222 if (psf->peak_info != NULL && psf->peak_info->peak_loc == SF_PEAK_END) in wav_write_tailer()
|
D | rf64.c | 295 psf->peak_info->peak_loc = ((parsestage & HAVE_data) == 0) ? SF_PEAK_START : SF_PEAK_END ; in rf64_read_header() 709 if (psf->peak_info != NULL && psf->peak_info->peak_loc == SF_PEAK_START) in rf64_write_header()
|
D | sndfile.c | 1045 if (datasize == SF_FALSE && psf->peak_info != NULL) in sf_command() 1046 { free (psf->peak_info) ; in sf_command() 1047 psf->peak_info = NULL ; in sf_command() 1049 else if (psf->peak_info == NULL) in sf_command() 1050 { psf->peak_info = peak_info_calloc (psf->sf.channels) ; in sf_command() 1051 if (psf->peak_info != NULL) in sf_command() 1052 psf->peak_info->peak_loc = SF_PEAK_START ; in sf_command() 2901 free (psf->peak_info) ; in psf_close()
|
D | common.h | 460 PEAK_INFO *peak_info ; member
|