Home
last modified time | relevance | path

Searched refs:speed (Results 1 - 25 of 182) sorted by relevance

12345678

/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
H A Dsyscalls.rs175 pub(crate) fn cfsetospeed(termios: &mut Termios, speed: u32) -> io::Result<()> {
176 if (speed & !CBAUD) != 0 {
180 termios.c_cflag |= speed;
185 pub(crate) fn cfsetispeed(termios: &mut Termios, speed: u32) -> io::Result<()> {
186 if speed == 0 {
189 if (speed & !CBAUD) != 0 {
193 termios.c_cflag |= speed;
198 pub(crate) fn cfsetspeed(termios: &mut Termios, speed: u32) -> io::Result<()> {
199 if (speed & !CBAUD) != 0 {
203 termios.c_cflag |= speed;
[all...]
/third_party/pulseaudio/sonic/
H A DSonic.java15 /* This is used to down-sample some inputs to improve speed */
22 private float speed; field in Sonic
96 // Get the speed of the stream.
99 return speed; in getSpeed()
102 // Set the speed of the stream.
104 float speed) in setSpeed()
106 this.speed = speed; in setSpeed()
128 // Set the playback rate of the stream. This scales pitch and speed at the same time.
204 speed in Sonic()
103 setSpeed( float speed) setSpeed() argument
805 skipPitchPeriod( short samples[], int position, float speed, int period) skipPitchPeriod() argument
827 insertPitchPeriod( short samples[], int position, float speed, int period) insertPitchPeriod() argument
851 changeSpeed( float speed) changeSpeed() argument
946 changeFloatSpeed( float samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) changeFloatSpeed() argument
972 sonicChangeShortSpeed( short samples[], int numSamples, float speed, float pitch, float rate, float volume, boolean useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument
[all...]
H A Dsonic.c26 float speed; member
87 /* Get the speed of the stream. */
91 return stream->speed; in sonicGetSpeed()
94 /* Set the speed of the stream. */
97 float speed) in sonicSetSpeed()
99 stream->speed = speed; in sonicSetSpeed()
124 /* Set the playback rate of the stream. This scales pitch and speed at the same time. */
264 stream->speed = 1.0f; in sonicCreateStream()
551 float speed in sonicFlushStream() local
95 sonicSetSpeed( sonicStream stream, float speed) sonicSetSpeed() argument
956 skipPitchPeriod( sonicStream stream, short *samples, float speed, int period) skipPitchPeriod() argument
981 insertPitchPeriod( sonicStream stream, short *samples, float speed, int period) insertPitchPeriod() argument
1010 changeSpeed( sonicStream stream, float speed) changeSpeed() argument
1051 float speed = stream->speed/stream->pitch; processStreamInput() local
1124 sonicChangeFloatSpeed( float *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) sonicChangeFloatSpeed() argument
1151 sonicChangeShortSpeed( short *samples, int numSamples, float speed, float pitch, float rate, float volume, int useChordPitch, int sampleRate, int numChannels) sonicChangeShortSpeed() argument
[all...]
H A Dmain.c5 useful utility on it's own, which can speed up or slow down wav files, change
20 float speed, in runSonic()
33 sonicSetSpeed(stream, speed); in runSonic()
64 " -q -- Disable speed-up heuristics. May increase quality.\n" in usage()
66 " -s speed -- Set speed up factor. 2.0 means 2X faster.\n" in usage()
77 float speed = 1.0f; in main() local
98 printf("Disabling speed-up heuristics\n"); in main()
108 speed = atof(argv[xArg]); in main()
109 printf("Setting speed t in main()
17 runSonic( waveFile inFile, waveFile outFile, float speed, float pitch, float rate, float volume, int emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() argument
[all...]
H A DMain.java23 float speed, in runSonic()
38 sonic.setSpeed(speed); in runSonic()
63 float speed = 2.0f; in main()
79 runSonic(stream, line, speed, pitch, rate, volume, emulateChordPitch, quality, in main()
20 runSonic( AudioInputStream audioStream, SourceDataLine line, float speed, float pitch, float rate, float volume, boolean emulateChordPitch, int quality, int sampleRate, int numChannels) runSonic() argument
H A Dsonic.h12 generates smooth speech at speed up factors as high as 6X, possibly more. It is
14 regardless of the speed up or slow down factor. For speeding up speech by 2X or
17 newSamples = period/(speed - 1.0)
21 pitch estimator, and speed is the speedup factor. If the current position in
30 For speed factors < 2X, the PICOLA algorithm is used. The above
31 algorithm is first used to double the speed of one pitch period. Then, enough
33 speed up facter, where 1.0 < speed < 2.0. The amount of data copied is derived:
35 speed = (2*period + length)/(period + length)
36 speed*lengt
[all...]
/third_party/musl/porting/liteos_a/user/src/termios/
H A Dcfsetospeed.c7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed() argument
10 if (speed & ~CBAUD) { in cfsetospeed()
15 tio->c_cflag |= speed; in cfsetospeed()
19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed() argument
22 return speed ? cfsetospeed(tio, speed) : 0; in cfsetispeed()
/third_party/musl/src/termios/
H A Dcfsetospeed.c7 int cfsetospeed(struct termios *tio, speed_t speed) in cfsetospeed() argument
10 if (speed & ~CBAUD) { in cfsetospeed()
15 tio->c_cflag |= speed; in cfsetospeed()
19 int cfsetispeed(struct termios *tio, speed_t speed) in cfsetispeed() argument
22 return speed ? cfsetospeed(tio, speed) : 0; in cfsetispeed()
/third_party/rust/crates/rustix/src/termios/
H A Dcf.rs24 /// `cfsetospeed(termios, speed)`
26 pub fn cfsetospeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetospeed()
27 backend::termios::syscalls::cfsetospeed(termios, speed) in cfsetospeed()
30 /// `cfsetispeed(termios, speed)`
32 pub fn cfsetispeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetispeed()
33 backend::termios::syscalls::cfsetispeed(termios, speed) in cfsetispeed()
36 /// `cfsetspeed(termios, speed)`
38 pub fn cfsetspeed(termios: &mut Termios, speed: Speed) -> io::Result<()> { in cfsetspeed()
39 backend::termios::syscalls::cfsetspeed(termios, speed) in cfsetspeed()
/third_party/toybox/lib/
H A Dtty.c64 void xsetspeed(struct termios *tio, int speed) in xsetspeed() argument
71 // Find speed in table, adjust to constant in xsetspeed()
72 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) break; in xsetspeed()
73 if (i == ARRAY_LEN(speeds)) error_exit("unknown speed: %d", speed); in xsetspeed()
79 int set_terminal(int fd, int raw, int speed, struct termios *old) in set_terminal() argument
99 // Leave serial port speed alone in set_terminal()
111 if (speed) { in set_terminal()
117 // Find speed in table, adjust to constant in set_terminal()
118 for (i = 0; i < ARRAY_LEN(speeds); i++) if (speeds[i] == speed) brea in set_terminal()
126 xset_terminal(int fd, int raw, int speed, struct termios *old) xset_terminal() argument
[all...]
/third_party/skia/tools/skpbench/
H A D_hardware_android.py129 speed = freqs[int((len(freqs)-1) * self.desiredClock)]
132 echo {speed} > /sys/devices/system/cpu/cpu{id}/cpufreq/scaling_max_freq
133 echo {speed} > /sys/devices/system/cpu/cpu{id}/cpufreq/scaling_min_freq
134 echo {speed} > /sys/devices/system/cpu/cpu{id}/cpufreq/scaling_setspeed'''.format(id=i, speed=speed))
150 speed = freqs[int((len(freqs)-1) * self.desiredClock)]
155 echo {speed} > /sys/class/kgsl/kgsl-3d0/devfreq/max_freq
156 echo {speed} > /sys/class/kgsl/kgsl-3d0/devfreq/min_freq'''.format(speed
[all...]
/third_party/skia/tools/viewer/
H A DTouchGesture.cpp18 static SkScalar pin_max_fling(SkScalar speed) { in pin_max_fling() argument
19 if (speed > MAX_FLING_SPEED) { in pin_max_fling()
20 speed = MAX_FLING_SPEED; in pin_max_fling()
22 return speed; in pin_max_fling()
58 // printf("---- speed %g dir %g %g\n", fSpeed0, fDirection.fX, fDirection.fY); in reset()
70 const float speed = fSpeed0 * (sk_float_exp(- K0 * t) - K1); in evaluateMatrix() local
71 if (speed <= MIN_SPEED) { in evaluateMatrix()
75 float dist = (fSpeed0 - speed) / K0; in evaluateMatrix()
77 // printf("---- time %g speed %g dist %g\n", t, speed, dis in evaluateMatrix()
302 SkScalar speed; isFling() local
[all...]
/third_party/toybox/toys/pending/
H A Dgetty.c51 long speed; member
83 // Find speed from mapper array
87 long speed = atolx(s); in encode() local
89 if (!speed) return 0; in encode()
90 for (sp = speedtab; sp->speed; sp++) if (sp->speed == speed) return sp->code; in encode()
101 if (TT.speeds[TT.sc] < 0) perror_exit("bad speed"); in get_speed()
182 speed_t speed; in sense_baud() local
192 speed in sense_baud()
[all...]
H A Dstty.c28 N set input and output speed (ispeed N or ospeed N for just one)
34 speed show speed only
56 static int baud(speed_t speed) in baud() argument
58 if (speed&CBAUDEX) speed=(speed&~CBAUDEX)+15; in baud()
59 return bauds[speed]; in baud()
62 static speed_t speed(int baud) in speed() function
67 if (i == ARRAY_LEN(bauds)) error_exit("unknown speed in speed()
[all...]
/third_party/toybox/toys/net/
H A Dmicrocom.c39 int i, speed; in microcom_main() local
41 if (!TT.s) speed = 115200; in microcom_main()
42 else speed = atoi(TT.s); in microcom_main()
50 xset_terminal(TT.fd, 1, speed, &TT.original_fd_state); in microcom_main()
/third_party/pulseaudio/src/modules/oss/
H A Doss-util.c159 int format, channels, speed, reqformat; in pa_oss_auto_format() local
224 speed = (int) ss->rate; in pa_oss_auto_format()
225 if (ioctl(fd, SNDCTL_DSP_SPEED, &speed) < 0) { in pa_oss_auto_format()
229 pa_assert(speed > 0); in pa_oss_auto_format()
231 if (ss->rate != (unsigned) speed) { in pa_oss_auto_format()
232 pa_log_warn("device doesn't support %i Hz, changed to %i Hz.", ss->rate, speed); in pa_oss_auto_format()
235 if (speed < ss->rate*.95 || speed > ss->rate*1.05) in pa_oss_auto_format()
236 ss->rate = (uint32_t) speed; in pa_oss_auto_format()
/third_party/FreeBSD/sys/dev/usb/
H A Dusb_hub.c272 (udev->speed != USB_SPEED_HIGH) || in uhub_tt_buffer_reset_async_locked()
273 ((child->speed != USB_SPEED_LOW) && in uhub_tt_buffer_reset_async_locked()
274 (child->speed != USB_SPEED_FULL)) || in uhub_tt_buffer_reset_async_locked()
373 * This function counts the number of active ports at the given speed.
376 uhub_count_active_host_ports(struct usb_device *udev, enum usb_dev_speed speed) in uhub_count_active_host_ports() argument
399 (child->speed == speed)) in uhub_count_active_host_ports()
658 enum usb_dev_speed speed; in uhub_reattach_port() local
720 switch (udev->speed) { in uhub_reattach_port()
798 * Figure out the device speed in uhub_reattach_port()
1929 enum usb_dev_speed speed; usb_hs_bandwidth_adjust() local
1987 uint8_t speed; usb_hs_bandwidth_alloc() local
[all...]
/third_party/ffmpeg/libavcodec/tests/
H A Ddct.c180 static int dct_error(const struct algo *dct, int test, int is_idct, int speed, const int bits) in dct_error() argument
266 if (!speed) in dct_error()
269 /* speed test */ in dct_error()
379 int speed) in idct248_error()
432 if (!speed) in idct248_error()
461 "-t speed test\n"); in help()
473 int speed = 0; in main() local
491 speed = 1; in main()
507 idct248_error("SIMPLE-C", ff_simple_idct248_put, speed); in main()
512 err |= dct_error(&idct_tab[i], test, test_idct, speed, bit in main()
375 idct248_error(const char *name, void (*idct248_put)(uint8_t *dest, ptrdiff_t line_size, int16_t *block), int speed) idct248_error() argument
[all...]
/third_party/skia/samplecode/
H A DSampleCusp.cpp33 static SkPath cusp(const SkPoint P[4], SkPoint PP[7], bool& split, int speed, SkScalar phase) { in cusp() argument
36 SkScalar t = (curTime % speed) / SkIntToFloat(speed); in cusp()
54 static SkScalar linearToLoop(int speed, SkScalar phase, SkScalar scale) { in linearToLoop() argument
56 SkScalar linear = (curTime % speed) / SkIntToFloat(speed); // 0 to 1 in linearToLoop()
/third_party/curl/tests/unit/
H A Dunit1606.c52 curl_off_t speed, in runawhile()
65 /* fake the current transfer speed */ in runawhile()
66 easy->progress.current_speed = speed; in runawhile()
72 speed -= dec; in runawhile()
82 "wrong low speed timeout");
84 "wrong low speed timeout");
86 "wrong log speed timeout");
88 "wrong log speed timeout");
50 runawhile(long time_limit, long speed_limit, curl_off_t speed, int dec) runawhile() argument
/third_party/musl/Benchmark/musl/
H A Dlibc_ioctl.cpp41 int speed = cfgetospeed(&ttydev); in Bm_function_Ioctl_baudrate() local
51 cfsetospeed(&ttydev, speed); in Bm_function_Ioctl_baudrate()
52 cfsetispeed(&ttydev, speed); in Bm_function_Ioctl_baudrate()
/third_party/ffmpeg/libavfilter/
H A Df_realtime.c33 double speed; member
43 int64_t pts = av_rescale_q(frame->pts, inlink->time_base, AV_TIME_BASE_Q) / s->speed; in filter_frame()
51 if (FFABS(sleep) > s->limit / s->speed) { in filter_frame()
72 { "speed", "speed factor", OFFSET(speed), AV_OPT_TYPE_DOUBLE, { .dbl = 1.0 }, DBL_MIN, DBL_MAX, FLAGS },
/third_party/ffmpeg/tests/fate/
H A Dwavpack.mak58 # speed modes
60 FATE_WAVPACK_S16 += fate-wavpack-speed-default
61 fate-wavpack-speed-default: CMD = md5pipe -i $(TARGET_SAMPLES)/wavpack/speed_modes/default-partial.wv -f s16le -af aresample
63 FATE_WAVPACK_S16 += fate-wavpack-speed-fast
64 fate-wavpack-speed-fast: CMD = md5pipe -i $(TARGET_SAMPLES)/wavpack/speed_modes/fast-partial.wv -f s16le -af aresample
66 FATE_WAVPACK_S16 += fate-wavpack-speed-high
67 fate-wavpack-speed-high: CMD = md5pipe -i $(TARGET_SAMPLES)/wavpack/speed_modes/high-partial.wv -f s16le -af aresample
69 FATE_WAVPACK_S16 += fate-wavpack-speed-vhigh
70 fate-wavpack-speed-vhigh: CMD = md5pipe -i $(TARGET_SAMPLES)/wavpack/speed_modes/vhigh-partial.wv -f s16le -af aresample
/third_party/ffmpeg/libavformat/
H A Dflic.c45 #define FLIC_MC_SPEED 5 /* speed for Magic Carpet game FLIs */
46 #define FLIC_DEFAULT_SPEED 5 /* for FLIs that have 0 speed */
92 int speed, ret; in flic_read_header() local
103 speed = AV_RL32(&header[0x10]); in flic_read_header()
104 if (speed == 0) in flic_read_header()
105 speed = FLIC_DEFAULT_SPEED; in flic_read_header()
182 avpriv_set_pts_info(st, 64, speed, 70); in flic_read_header()
185 avpriv_set_pts_info(st, 64, speed, 1000); in flic_read_header()
/third_party/curl/src/
H A Dtool_progress.c192 curl_off_t speed = 0; in progress_meter() local
229 /* get the transfer speed, the higher of the two */ in progress_meter()
262 speed = dls > uls ? dls : uls; in progress_meter()
266 if(dlknown && speed) { in progress_meter()
267 curl_off_t est = all_dltotal / speed; in progress_meter()
268 curl_off_t left = (all_dltotal - all_dlnow) / speed; in progress_meter()
301 max5data(speed, buffer[2]), /* speed */ in progress_meter()

Completed in 12 milliseconds

12345678