- Timestamp:
- Dec 20, 2018, 7:03:45 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- 7dea72f
- Parents:
- 2589ea9
- Location:
- src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/ioutils.c
r2589ea9 r2a94eca 20 20 21 21 #include "aubio_priv.h" 22 #include "fmat.h" 22 23 23 24 uint_t … … 92 93 } 93 94 95 void 96 aubio_source_pad_output (fvec_t *read_data, uint_t source_read) 97 { 98 uint_t i = 0; 99 if (source_read < read_data->length) { 100 for (i = source_read; i < read_data->length; i++) { 101 read_data->data[i] = 0.; 102 } 103 } 104 } 105 106 void 107 aubio_source_pad_multi_output (fmat_t *read_data, 108 uint_t source_channels, uint_t source_read) { 109 uint_t i, j; 110 if (source_read < read_data->length) { 111 for (i = 0; i < read_data->height; i++) { 112 for (j = source_read; j < read_data->length; j++) { 113 read_data->data[i][j] = 0.; 114 } 115 } 116 } 117 } 118 94 119 uint_t 95 120 aubio_sink_validate_input_length(const char_t *kind, const char_t *path, -
src/io/ioutils.h
r2589ea9 r2a94eca 80 80 uint_t source_channels, uint_t read_data_height); 81 81 82 /** pad end of source output vector with zeroes 83 84 \param read_data output vector to pad 85 \param source_read number of frames read 86 87 */ 88 void 89 aubio_source_pad_output (fvec_t *read_data, uint_t source_read); 90 91 /** pad end of source output matrix with zeroes 92 93 \param read_data output matrix to pad 94 \param source_channels number of channels in the source 95 \param source_read number of frames read 96 97 */ 98 void 99 aubio_source_pad_multi_output (fmat_t *read_data, uint_t source_channels, 100 uint_t source_read); 101 82 102 /** validate length of sink input 83 103
Note: See TracChangeset
for help on using the changeset viewer.