/third_party/libsnd/src/ |
D | w64.c | 137 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_W64) in w64_open() 140 subformat = SF_CODEC (psf->sf.format) ; in w64_open() 148 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in w64_open() 151 { blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in w64_open() 160 if (psf->sf.frames <= 0) in w64_open() 161 psf->sf.frames = (psf->blockwidth) ? psf->filelength / psf->blockwidth : psf->filelength ; in w64_open() 321 if (! psf->sf.seekable) in w64_read_header() 363 if (psf->sf.seekable == 0 && (parsestage & HAVE_data)) in w64_read_header() 378 if (psf->sf.channels < 1) in w64_read_header() 381 if (psf->sf.channels > SF_MAX_CHANNELS) in w64_read_header() [all …]
|
D | ircam.c | 88 subformat = SF_CODEC (psf->sf.format) ; in ircam_open() 91 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_IRCAM) in ircam_open() 94 psf->endian = SF_ENDIAN (psf->sf.format) ; in ircam_open() 141 psf_binheader_readf (psf, "epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ; in ircam_read_header() 150 if (psf->sf.channels > SF_MAX_CHANNELS) in ircam_read_header() 151 { psf_binheader_readf (psf, "Epmf44", 0, &marker, &samplerate, &(psf->sf.channels), &encoding) ; in ircam_read_header() 154 if (psf->sf.channels > SF_MAX_CHANNELS) in ircam_read_header() 164 psf->sf.samplerate = (int) samplerate ; in ircam_read_header() 169 psf->sf.samplerate, psf->sf.channels, encoding, get_encoding_str (encoding)) ; in ircam_read_header() 174 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in ircam_read_header() [all …]
|
D | voc.c | 115 subformat = SF_CODEC (psf->sf.format) ; in voc_open() 118 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_VOC) in voc_open() 129 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in voc_open() 197 psf->sf.format = SF_FORMAT_VOC ; /* Major format */ in voc_read_header() 247 psf->sf.samplerate = 1000000 / (256 - (rate_byte & 0xFF)) ; in voc_read_header() 250 size, rate_byte, psf->sf.samplerate, compression) ; in voc_read_header() 266 psf->sf.channels = 1 ; in voc_read_header() 269 psf->sf.format = SF_FORMAT_VOC | SF_FORMAT_PCM_U8 ; in voc_read_header() 291 { psf->sf.channels = 2 ; in voc_read_header() 292 psf->sf.samplerate = 128000000 / (65536 - rate_short) ; in voc_read_header() [all …]
|
D | sndfile.c | 1073 memcpy (data, &psf->sf, sizeof (SF_INFO)) ; in sf_command() 1102 { int format = SF_CONTAINER (psf->sf.format) ; in sf_command() 1117 format = SF_CODEC (psf->sf.format) ; in sf_command() 1138 { psf->peak_info = peak_info_calloc (psf->sf.channels) ; in sf_command() 1169 if (data == NULL || datasize != SIGNED_SIZEOF (double) * psf->sf.channels) in sf_command() 1174 if (data == NULL || datasize != SIGNED_SIZEOF (double) * psf->sf.channels) in sf_command() 1186 if (data == NULL || datasize != SIGNED_SIZEOF (double) * psf->sf.channels) in sf_command() 1244 psf->sf.frames = position ; in sf_command() 1256 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_RAW) in sf_command() 1274 if ((SF_CODEC (psf->sf.format)) == SF_FORMAT_FLOAT) in sf_command() [all …]
|
D | au.c | 114 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_AU) in au_open() 117 subformat = SF_CODEC (psf->sf.format) ; in au_open() 120 { psf->endian = SF_ENDIAN (psf->sf.format) ; in au_open() 134 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in au_open() 166 psf->sf.seekable = SF_FALSE ; in au_open() 171 psf->sf.seekable = SF_FALSE ; in au_open() 176 psf->sf.seekable = SF_FALSE ; in au_open() 216 encoding = au_format_to_encoding (SF_CODEC (psf->sf.format)) ; in au_write_header() 243 …(psf, "E4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate), BHW4 (psf->sf.channe… in au_write_header() 247 …(psf, "e4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate), BHW4 (psf->sf.channe… in au_write_header() [all …]
|
D | mat4.c | 84 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_MAT4) in mat4_open() 87 subformat = SF_CODEC (psf->sf.format) ; in mat4_open() 93 psf->endian = SF_ENDIAN (psf->sf.format) ; in mat4_open() 107 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mat4_open() 159 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat4_write_header() 162 encoding = mat4_format_to_encoding (SF_CODEC (psf->sf.format), psf->endian) ; in mat4_write_header() 173 samplerate = psf->sf.samplerate ; in mat4_write_header() 178 …psf_binheader_writef (psf, "tEm484", BHWm (encoding), BHW4 (psf->sf.channels), BHW8 (psf->sf.frame… in mat4_write_header() 184 …psf_binheader_writef (psf, "tem484", BHWm (encoding), BHW4 (psf->sf.channels), BHW8 (psf->sf.frame… in mat4_write_header() 251 psf->sf.samplerate = psf_lrint (value) ; in mat4_read_header() [all …]
|
D | wav.c | 182 subformat = SF_CODEC (psf->sf.format) ; in wav_open() 190 format = SF_CONTAINER (psf->sf.format) ; in wav_open() 194 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in wav_open() 197 psf->endian = SF_ENDIAN (psf->sf.format) ; in wav_open() 207 psf->sf.frames = 0 ; in wav_open() 219 { blockalign = wavlike_srate2blocksize (psf->sf.samplerate * psf->sf.channels) ; in wav_open() 227 { if ((psf->peak_info = peak_info_calloc (psf->sf.channels)) == NULL) in wav_open() 438 if (! psf->sf.seekable || psf->dataoffset < 0) in wav_read_header() 655 if (! psf->sf.seekable && (parsestage & HAVE_data)) in wav_read_header() 667 if (psf->sf.channels < 1) in wav_read_header() [all …]
|
D | nist.c | 66 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_NIST) in nist_open() 69 psf->endian = SF_ENDIAN (psf->sf.format) ; in nist_open() 73 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in nist_open() 74 psf->sf.frames = 0 ; in nist_open() 84 switch (SF_CODEC (psf->sf.format)) in nist_open() 175 sscanf (cptr, "channel_count -i %d", &(psf->sf.channels)) ; in nist_read_header() 178 sscanf (cptr, "sample_rate -i %d", &(psf->sf.samplerate)) ; in nist_read_header() 182 psf->sf.frames = samples ; in nist_read_header() 216 psf->sf.format |= psf->endian ; in nist_read_header() 227 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in nist_read_header() [all …]
|
D | avr.c | 86 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_AVR) in avr_open() 100 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in avr_open() 123 psf->sf.channels = (hdr.mono & 1) + 1 ; in avr_read_header() 130 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_U8 ; in avr_read_header() 135 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_S8 ; in avr_read_header() 140 psf->sf.format = SF_FORMAT_AVR | SF_FORMAT_PCM_16 ; in avr_read_header() 151 psf->sf.frames = hdr.frames ; in avr_read_header() 152 psf->sf.samplerate = hdr.srate ; in avr_read_header() 154 psf_log_printf (psf, " Frames : %D\n", psf->sf.frames) ; in avr_read_header() 155 psf_log_printf (psf, " Sample rate : %d\n", psf->sf.samplerate) ; in avr_read_header() [all …]
|
D | mat5.c | 94 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_MAT5) in mat5_open() 97 subformat = SF_CODEC (psf->sf.format) ; in mat5_open() 103 psf->endian = SF_ENDIAN (psf->sf.format) ; in mat5_open() 117 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mat5_open() 175 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mat5_write_header() 178 switch (SF_CODEC (psf->sf.format)) in mat5_write_header() 225 if (psf->sf.samplerate > 0xFFFF) in mat5_write_header() 226 psf_binheader_writef (psf, "44", BHW4 (MAT5_TYPE_COMP_UINT), BHW4 (psf->sf.samplerate)) ; in mat5_write_header() 228 { unsigned short samplerate = psf->sf.samplerate ; in mat5_write_header() 233 datasize = psf->sf.frames * psf->sf.channels * psf->bytewidth ; in mat5_write_header() [all …]
|
D | mpc2k.c | 71 if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_MPC2K) in mpc2k_open() 83 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in mpc2k_open() 118 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in mpc2k_write_header() 135 psf_binheader_writef (psf, "e111", BHW1 (100), BHW1 (0), BHW1 ((psf->sf.channels - 1) & 1)) ; in mpc2k_write_header() 136 …nheader_writef (psf, "et4888", BHW4 (0), BHW8 (psf->sf.frames), BHW8 (psf->sf.frames), BHW8 (psf->… in mpc2k_write_header() 137 psf_binheader_writef (psf, "e112", BHW1 (0), BHW1 (1), BHW2 ((uint16_t) psf->sf.samplerate)) ; in mpc2k_write_header() 174 psf->sf.channels = bytes [2] ? 2 : 1 ; in mpc2k_read_header() 184 psf->sf.samplerate = sample_rate ; in mpc2k_read_header() 186 psf->sf.format = SF_FORMAT_MPC2K | SF_FORMAT_PCM_16 ; in mpc2k_read_header() 195 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in mpc2k_read_header() [all …]
|
D | htk.c | 63 subformat = SF_CODEC (psf->sf.format) ; in htk_open() 66 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_HTK) in htk_open() 79 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in htk_open() 124 sample_period = 10000000 / psf->sf.samplerate ; in htk_write_header() 197 psf->sf.channels = 1 ; in htk_read_header() 200 { psf->sf.samplerate = 10000000 / sample_period ; in htk_read_header() 202 sample_count, sample_period, psf->sf.samplerate) ; in htk_read_header() 205 { psf->sf.samplerate = 16000 ; in htk_read_header() 207 sample_count, sample_period, psf->sf.samplerate) ; in htk_read_header() 210 psf->sf.format = SF_FORMAT_HTK | SF_FORMAT_PCM_16 ; in htk_read_header() [all …]
|
D | pvf.c | 59 subformat = SF_CODEC (psf->sf.format) ; in pvf_open() 62 { if ((SF_CONTAINER (psf->sf.format)) != SF_FORMAT_PVF) in pvf_open() 75 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in pvf_open() 116 psf->sf.channels, psf->sf.samplerate, psf->bytewidth * 8) ; in pvf_write_header() 154 psf->sf.channels = channels ; in pvf_read_header() 155 psf->sf.samplerate = samplerate ; in pvf_read_header() 159 psf->sf.format = SF_FORMAT_PVF | SF_FORMAT_PCM_S8 ; in pvf_read_header() 164 psf->sf.format = SF_FORMAT_PVF | SF_FORMAT_PCM_16 ; in pvf_read_header() 168 psf->sf.format = SF_FORMAT_PVF | SF_FORMAT_PCM_32 ; in pvf_read_header() 182 psf->blockwidth = psf->sf.channels * psf->bytewidth ; in pvf_read_header() [all …]
|
D | rf64.c | 110 if ((psf->sf.format & SF_FORMAT_TYPEMASK) != SF_FORMAT_RF64) in rf64_open() 113 subformat = psf->sf.format & SF_FORMAT_SUBMASK ; in rf64_open() 119 psf->blockwidth = psf->bytewidth * psf->sf.channels ; in rf64_open() 331 if (!psf->sf.seekable || psf->dataoffset < 0) in rf64_read_header() 388 if (psf->sf.channels < 1) in rf64_read_header() 391 if (psf->sf.channels > SF_MAX_CHANNELS) in rf64_read_header() 414 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in rf64_read_header() 416 psf->sf.frames = psf->datalength / psf->blockwidth ; in rf64_read_header() 419 if (frame_count != psf->sf.frames) in rf64_read_header() 420 …ated frame count %d does not match value from 'ds64' chunk of %d.\n", psf->sf.frames, frame_count)… in rf64_read_header() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_resource.c | 48 struct nv50_surface *sf = CALLOC_STRUCT(nv50_surface); in nv50_surface_from_buffer() local 49 if (!sf) in nv50_surface_from_buffer() 52 pipe_reference_init(&sf->base.reference, 1); in nv50_surface_from_buffer() 53 pipe_resource_reference(&sf->base.texture, pbuf); in nv50_surface_from_buffer() 55 sf->base.format = templ->format; in nv50_surface_from_buffer() 56 sf->base.writable = templ->writable; in nv50_surface_from_buffer() 57 sf->base.u.buf.first_element = templ->u.buf.first_element; in nv50_surface_from_buffer() 58 sf->base.u.buf.last_element = templ->u.buf.last_element; in nv50_surface_from_buffer() 60 sf->offset = in nv50_surface_from_buffer() 61 templ->u.buf.first_element * util_format_get_blocksize(sf->base.format); in nv50_surface_from_buffer() [all …]
|
/third_party/libsnd/include/ |
D | sndfile.hh | 74 SNDFILE *sf ; member 166 : sf (SF_NULL), sfinfo (), ref (1) in SNDFILE_ref() 171 { if (sf != SF_NULL) sf_close (sf) ; } in ~SNDFILE_ref() 189 p->sf = sf_open (path, mode, &p->sfinfo) ; in SndfileHandle() 211 p->sf = sf_open (path.c_str (), mode, &p->sfinfo) ; in SndfileHandle() 236 p->sf = sf_open_fd (fd, mode, &p->sfinfo, close_desc) ; in SndfileHandle() 258 p->sf = sf_open_virtual (&sfvirtual, mode, &p->sfinfo, user_data) ; in SndfileHandle() 295 { return sf_error (p->sf) ; } in error() 299 { return sf_strerror (p->sf) ; } in strError() 303 { return sf_command (p->sf, cmd, data, datasize) ; } in command() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_sensors_temp.c | 93 const sensors_subfeature *sf; in get_sensor_values() local 97 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 99 if (sf) in get_sensor_values() 100 sti->current = get_value(sti->chip, sf); in get_sensor_values() 103 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 105 if (sf) { in get_sensor_values() 108 sti->current = get_value(sti->chip, sf) * 1000; in get_sensor_values() 112 sf = sensors_get_subfeature(sti->chip, sti->feature, in get_sensor_values() 114 if (sf) in get_sensor_values() 115 sti->current = get_value(sti->chip, sf); in get_sensor_values() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | protectedMembers.types | 20 protected static sf() { 21 >sf : () => number 48 protected static sf() { 49 >sf : () => number 51 return super.sf() + this.sx; 52 >super.sf() + this.sx : number 53 >super.sf() : number 54 >super.sf : () => number 56 >sf : () => number 83 static sf() { [all …]
|
D | declarationEmitProtectedMembers.types | 29 protected static sf() { 30 >sf : () => number 65 protected static sf() { 66 >sf : () => number 68 return super.sf() + this.sx; 69 >super.sf() + this.sx : number 70 >super.sf() : number 71 >super.sf : () => number 73 >sf : () => number 100 static sf() { [all …]
|
D | declarationEmitProtectedMembers.symbols | 28 protected static sf() { 29 >sf : Symbol(C1.sf, Decl(declarationEmitProtectedMembers.ts, 11, 32)) 61 protected static sf() { 62 >sf : Symbol(C2.sf, Decl(declarationEmitProtectedMembers.ts, 25, 5)) 64 return super.sf() + this.sx; 65 >super.sf : Symbol(C1.sf, Decl(declarationEmitProtectedMembers.ts, 11, 32)) 67 >sf : Symbol(C1.sf, Decl(declarationEmitProtectedMembers.ts, 11, 32)) 93 static sf() { 94 >sf : Symbol(C3.sf, Decl(declarationEmitProtectedMembers.ts, 37, 5)) 96 return super.sf(); [all …]
|
D | protectedMembers.js | 9 protected static sf() { method in C1 19 protected static sf() { method in C2 20 return super.sf() + this.sx; 31 static sf() { method in C3 32 return super.sf(); 44 C1.sf(); 50 C2.sf(); 56 C3.sf(); 141 C1.sf = function () { function in C1 155 C2.sf = function () { function in C2 [all …]
|
D | declarationEmitProtectedMembers.js | 15 protected static sf() { method in C1 28 protected static sf() { method in C2 29 return super.sf() + this.sx; 40 static sf() { method in C3 41 return super.sf(); 81 C1.sf = function () { function in C1 105 C2.sf = function () { function in C2 106 return _super.sf.call(this) + this.sx; 119 C3.sf = function () { function in C3 120 return _super.sf.call(this); [all …]
|
D | protectedMembers.symbols | 20 protected static sf() { 21 >sf : Symbol(C1.sf, Decl(protectedMembers.ts, 6, 5)) 46 protected static sf() { 47 >sf : Symbol(C2.sf, Decl(protectedMembers.ts, 16, 5)) 49 return super.sf() + this.sx; 50 >super.sf : Symbol(C1.sf, Decl(protectedMembers.ts, 6, 5)) 52 >sf : Symbol(C1.sf, Decl(protectedMembers.ts, 6, 5)) 78 static sf() { 79 >sf : Symbol(C3.sf, Decl(protectedMembers.ts, 28, 5)) 81 return super.sf(); [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | sound-file.c | 48 SNDFILE *sf = NULL; in pa_sound_file_load() local 76 if (!(sf = sf_open_fd(fd, SFM_READ, &sfi, 1))) { in pa_sound_file_load() 83 if (pa_sndfile_read_sample_spec(sf, ss) < 0) { in pa_sound_file_load() 88 if ((map && pa_sndfile_read_channel_map(sf, map) < 0)) { in pa_sound_file_load() 95 pa_sndfile_init_proplist(sf, p); in pa_sound_file_load() 110 if ((readf_function && readf_function(sf, ptr, sfi.frames) != sfi.frames) || in pa_sound_file_load() 111 (!readf_function && sf_read_raw(sf, ptr, (sf_count_t) l) != (sf_count_t) l)) { in pa_sound_file_load() 120 if (sf) in pa_sound_file_load() 121 sf_close(sf); in pa_sound_file_load() 137 SNDFILE*sf = NULL; in pa_sound_file_too_big_to_cache() local [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | mpegaudioenc_template.c | 384 unsigned char *sf = &scale_factors[0][0]; in compute_scale_factors() local 417 sf[i] = index; in compute_scale_factors() 422 d1 = s->scale_diff_table[sf[0] - sf[1] + 64]; in compute_scale_factors() 423 d2 = s->scale_diff_table[sf[1] - sf[2] + 64]; in compute_scale_factors() 439 sf[2] = sf[1]; in compute_scale_factors() 444 sf[1] = sf[2]; in compute_scale_factors() 450 sf[1] = sf[0]; in compute_scale_factors() 458 sf[1] = sf[2] = sf[0]; in compute_scale_factors() 463 sf[0] = sf[1] = sf[2]; in compute_scale_factors() 469 sf[0] = sf[2] = sf[1]; in compute_scale_factors() [all …]
|