Home
last modified time | relevance | path

Searched refs:sf (Results 1 - 25 of 205) sorted by relevance

123456789

/third_party/libsnd/src/
H A Dvoc.c115 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 in voc_read_header()
[all...]
H A Dircam.c88 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 in ircam_read_header()
[all...]
H A Dw64.c137 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 in w64_read_header()
[all...]
H A Dmat4.c84 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 in mat4_write_header()
[all...]
H A Dnist.c66 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 in nist_read_header()
[all...]
H A Davr.c86 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 in avr_read_header()
[all...]
H A Dsndfile.c1073 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 in sf_command()
[all...]
H A Dau.c114 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_binheader_writef (psf, "E4444", BHW4 (datalength), BHW4 (encoding), BHW4 (psf->sf.samplerate), BHW4 (psf->sf in au_write_header()
[all...]
H A Dmpc2k.c71 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 psf_binheader_writef (psf, "et4888", BHW4 (0), BHW8 (psf->sf.frames), BHW8 (psf->sf.frames), BHW8 (psf->sf.frames)) ; 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 in mpc2k_read_header()
[all...]
H A Dhtk.c63 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 in htk_read_header()
[all...]
H A Dwav.c182 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 in wav_read_header()
[all...]
H A Dmat5.c94 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 in mat5_write_header()
[all...]
H A Dpvf.c59 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 in pvf_read_header()
[all...]
H A Drf64.c110 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 psf_log_printf (psf, "*** Calculated frame count %d does not match value from 'ds64' chunk of %d.\n", psf->sf in rf64_read_header()
[all...]
H A Dflac.c181 if (psf->sf.channels != (int) frame->header.channels) in flac_buffer_copy()
184 psf->sf.channels, frame->header.channels) ; in flac_buffer_copy()
453 if (psf->sf.channels > 0 && psf->sf.channels != (int) metadata->data.stream_info.channels)
456 psf->sf.channels, metadata->data.stream_info.channels) ;
461 if (psf->sf.channels > 0 && psf->sf.samplerate != (int) metadata->data.stream_info.sample_rate)
464 psf->sf.samplerate, metadata->data.stream_info.sample_rate) ;
466 psf->sf.channels = metadata->data.stream_info.channels ;
467 psf->sf
[all...]
H A Ddither.c131 switch (SF_CODEC (psf->sf.format)) in dither_init()
158 switch (SF_CODEC (psf->sf.format)) in dither_init()
226 switch (SF_CODEC (psf->sf.format)) in dither_write_short()
240 writecount /= psf->sf.channels ; in dither_write_short()
241 writecount *= psf->sf.channels ; in dither_write_short()
243 dither_short (ptr, (short*) pdither->buffer, writecount / psf->sf.channels, psf->sf.channels) ; in dither_write_short()
266 switch (SF_CODEC (psf->sf.format)) in dither_write_int()
286 writecount /= psf->sf.channels ; in dither_write_int()
287 writecount *= psf->sf in dither_write_int()
[all...]
H A Dtxw.c170 psf->sf.samplerate = 33333 ; in txw_read_header()
174 psf->sf.samplerate = 50000 ; in txw_read_header()
178 psf->sf.samplerate = 16667 ; in txw_read_header()
186 psf->sf.samplerate = 33333 ; in txw_read_header()
190 psf->sf.samplerate = 50000 ; in txw_read_header()
194 psf->sf.samplerate = 166667 ; in txw_read_header()
199 psf->sf.samplerate = 33333 ; in txw_read_header()
208 psf_log_printf (psf, " Sample Rate : %d (0x%X) => %d\n", txwh.srate, txwh.srhash, psf->sf.samplerate) ; in txw_read_header()
210 psf_log_printf (psf, " Sample Rate : %d => %d\n", txwh.srate, psf->sf.samplerate) ; in txw_read_header()
219 psf->sf in txw_read_header()
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
H A Dnv50_resource.c48 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 in nv50_surface_from_buffer()
[all...]
/third_party/libsnd/include/
H A Dsndfile.hh74 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()
[all...]
/third_party/mesa3d/src/gallium/auxiliary/hud/
H A Dhud_sensors_temp.c93 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/pulseaudio/src/pulsecore/
H A Dsound-file.c48 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 in pa_sound_file_too_big_to_cache() local
[all...]
/third_party/typescript/tests/baselines/reference/
H A DprotectedMembers.js9 protected static sf() {
19 protected static sf() {
20 return super.sf() + this.sx;
31 static sf() {
32 return super.sf();
44 C1.sf();
50 C2.sf();
56 C3.sf();
141 C1.sf = function () {
155 C2.sf
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmpegaudioenc_template.c385 unsigned char *sf = &scale_factors[0][0]; in compute_scale_factors() local
418 sf[i] = index; in compute_scale_factors()
423 d1 = s->scale_diff_table[sf[0] - sf[1] + 64]; in compute_scale_factors()
424 d2 = s->scale_diff_table[sf[1] - sf[2] + 64]; in compute_scale_factors()
440 sf[2] = sf[1]; in compute_scale_factors()
445 sf[1] = sf[ in compute_scale_factors()
611 unsigned char *sf; encode_frame() local
[all...]
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_clear.c128 struct nv30_surface *sf = nv30_surface(ps); in nv30_clear_render_target() local
143 rt_format |= util_logbase2(sf->width) << 16; in nv30_clear_render_target()
144 rt_format |= util_logbase2(sf->height) << 24; in nv30_clear_render_target()
158 PUSH_DATA (push, sf->width << 16); in nv30_clear_render_target()
159 PUSH_DATA (push, sf->height << 16); in nv30_clear_render_target()
163 PUSH_DATA (push, (sf->pitch << 16) | sf->pitch); in nv30_clear_render_target()
165 PUSH_DATA (push, sf->pitch); in nv30_clear_render_target()
166 PUSH_RELOC(push, mt->base.bo, sf->offset, NOUVEAU_BO_LOW, 0, 0); in nv30_clear_render_target()
189 struct nv30_surface *sf in nv30_clear_depth_stencil() local
[all...]
/third_party/mesa3d/src/gallium/drivers/crocus/
H A Dgen4_blorp_exec.h74 blorp_emit_dynamic(blorp_batch, GENX(SF_STATE), sf, 64, &offset) { in blorp_emit_sf_state()
76 sf.KernelStartPointer = in blorp_emit_sf_state()
79 sf.KernelStartPointer = params->sf_prog_kernel; in blorp_emit_sf_state()
81 sf.GRFRegisterCount = DIV_ROUND_UP(prog_data->total_grf, 16) - 1; in blorp_emit_sf_state()
82 sf.VertexURBEntryReadLength = prog_data->urb_read_length; in blorp_emit_sf_state()
83 sf.VertexURBEntryReadOffset = BRW_SF_URB_ENTRY_READ_OFFSET; in blorp_emit_sf_state()
84 sf.DispatchGRFStartRegisterForURBData = 3; in blorp_emit_sf_state()
85 sf.URBEntryAllocationSize = batch->ice->urb.sfsize - 1; in blorp_emit_sf_state()
86 sf.NumberofURBEntries = batch->ice->urb.nr_sf_entries; in blorp_emit_sf_state()
89 sf in blorp_emit_sf_state()
[all...]

Completed in 15 milliseconds

123456789