Home
last modified time | relevance | path

Searched refs:velocity (Results 1 - 25 of 27) sorted by relevance

12

/third_party/libinput/src/
H A Dfilter-touchpad-x230.c65 double velocity; /* units/us */ member
78 * Apply the acceleration profile to the given velocity.
82 * @param velocity Velocity in device-units per µs
89 void *data, double velocity, uint64_t time) in acceleration_profile()
91 return accel->profile(&accel->base, data, velocity, time); in acceleration_profile()
95 * Calculate the acceleration factor for our current velocity, averaging
96 * between our current and the most recent velocity to smoothen out changes.
100 * @param velocity Velocity in device-units per µs
101 * @param last_velocity Previous velocity in device-units per µs
109 double velocity, in calculate_acceleration()
88 acceleration_profile(struct pointer_accelerator_x230 *accel, void *data, double velocity, uint64_t time) acceleration_profile() argument
107 calculate_acceleration(struct pointer_accelerator_x230 *accel, void *data, double velocity, double last_velocity, uint64_t time) calculate_acceleration() argument
140 double velocity; /* units/us */ accelerator_filter_x230() local
[all...]
H A Dfilter-trackpoint.c50 double velocity, in trackpoint_accel_profile()
57 velocity = v_us2ms(velocity); /* make it units/ms */ in trackpoint_accel_profile()
67 factor = 10.06254 + (0.3 - 10.06254)/(1 + pow(velocity/0.9205459, 1.15363)); in trackpoint_accel_profile()
83 double velocity; in trackpoint_accelerator_filter() local
89 velocity = trackers_velocity(&accel_filter->trackers, time); in trackpoint_accelerator_filter()
91 f = trackpoint_accel_profile(filter, data, velocity, time); in trackpoint_accelerator_filter()
48 trackpoint_accel_profile(struct motion_filter *filter, void *data, double velocity, uint64_t time) trackpoint_accel_profile() argument
H A Dfilter.c203 * past to use it for velocity calculation across multiple tracker in trackers_velocity_after_timeout()
217 * Calculate the velocity based on the tracker data. Velocity is averaged
220 * past, moving into a different direction or having too much of a velocity
232 /* Find least recent vector within a timelimit, maximum velocity diff in trackers_velocity()
250 double velocity = calculate_trackers_velocity(tracker, in trackers_velocity() local
257 /* First movement after dirchange - velocity is that in trackers_velocity()
260 result = velocity; in trackers_velocity()
268 result = initial_velocity = velocity; in trackers_velocity()
270 /* Stop if velocity differs too much from initial */ in trackers_velocity()
271 double velocity_diff = fabs(initial_velocity - velocity); in trackers_velocity()
296 calculate_acceleration_simpsons(struct motion_filter *filter, accel_profile_func_t profile, void *data, double velocity, double last_velocity, uint64_t time) calculate_acceleration_simpsons() argument
[all...]
H A Dfilter-mouse.c51 double velocity; /* units/us */ member
79 double velocity; /* units/us in normalized 1000dpi units*/ in calculate_acceleration_factor() local
89 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor()
94 velocity, /* normalized coords */ in calculate_acceleration_factor()
97 accel->last_velocity = velocity; in calculate_acceleration_factor()
H A Dfilter-low-dpi.c51 double velocity; /* units/us */ member
112 double velocity; /* units/us in device-native dpi*/ in calculate_acceleration_factor() local
116 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor()
120 velocity, in calculate_acceleration_factor()
123 accel->last_velocity = velocity; in calculate_acceleration_factor()
H A Dfilter-touchpad.c48 double velocity; /* units/us */ member
77 double velocity; /* units/us in device-native dpi*/ in calculate_acceleration_factor() local
81 velocity = trackers_velocity(&accel->trackers, time); in calculate_acceleration_factor()
85 velocity, in calculate_acceleration_factor()
88 accel->last_velocity = velocity; in calculate_acceleration_factor()
H A Dfilter.h125 double velocity,
193 double velocity,
H A Dfilter-private.h117 double velocity,
121 /* Convert speed/velocity from units/us to units/ms */
134 /* Convert speed/velocity from units/ms to units/us */
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/
H A DSynthEngine.java220 public void noteOff(int channel, int noteIndex, int velocity) { in noteOff() argument
251 * @param velocity
253 public void noteOn(int channel, int noteIndex, int velocity) { in noteOn() argument
254 if (velocity == 0) { in noteOn()
255 noteOff(channel, noteIndex, velocity); in noteOn()
265 voice.noteOn(noteIndex, velocity); in noteOn()
H A DSawVoice.java36 public void noteOn(int noteIndex, int velocity) { in noteOn() argument
37 super.noteOn(noteIndex, velocity); in noteOn()
H A DSynthVoice.java33 public void noteOn(int noteIndex, int velocity) { in noteOn() argument
36 setAmplitude(velocity / 128.0f); in noteOn()
/third_party/alsa-utils/seq/aseqdump/
H A Daseqdump.c193 if (ev->data.note.velocity) in dump_event()
194 printf("Note on %2d, note %d, velocity %s\n", in dump_event()
197 midi1_data(ev->data.note.velocity)); in dump_event()
204 printf("Note off %2d, note %d, velocity %s\n", in dump_event()
207 midi1_data(ev->data.note.velocity)); in dump_event()
213 midi1_data(ev->data.note.velocity)); in dump_event()
397 printf("Note off %2d, note %d, velocity %s", in dump_ump_midi1_event()
399 midi1_data(m->note_off.velocity)); in dump_ump_midi1_event()
402 printf("Note on %2d, note %d, velocity %s", in dump_ump_midi1_event()
404 midi1_data(m->note_off.velocity)); in dump_ump_midi1_event()
[all...]
/third_party/alsa-lib/include/
H A Dseqmid.h408 * \param vel velocity
416 (ev)->data.note.velocity = (vel),\
424 * \param vel velocity
431 (ev)->data.note.velocity = (vel))
438 * \param vel velocity
445 (ev)->data.note.velocity = (vel))
452 * \param vel velocity
459 (ev)->data.note.velocity = (vel))
H A Dump_msg.h45 uint8_t velocity; /**< Velocity (7bit) */ member
47 uint8_t velocity; /**< Velocity (7bit) */
200 uint16_t velocity; /**< Velocity (16bit) */ member
211 uint16_t velocity; /**< Velocity (16bit) */
H A Dseq_event.h234 unsigned char velocity; /**< velocity */ member
235 unsigned char off_velocity; /**< note-off velocity; only for #SND_SEQ_EVENT_NOTE */
/third_party/alsa-lib/test/lsb/
H A Dmidi_event.c192 TEST_CHECK(ev.data.note.velocity == 3); in test_encode()
198 TEST_CHECK(ev.data.note.velocity == 6); in test_encode()
204 TEST_CHECK(ev.data.note.velocity == 9); in test_encode()
349 TEST_CHECK(ev.data.note.velocity == 3); in test_encode_byte()
357 TEST_CHECK(ev.data.note.velocity == 5); in test_encode_byte()
/third_party/alsa-lib/test/
H A Dseq-decoder.c136 printf("; ch=%d, note=%d, velocity=%d, off_velocity=%d, duration=%d\n", in decode_event()
139 ev->data.note.velocity, in decode_event()
147 printf("; ch=%d, note=%d, velocity=%d\n", in decode_event()
150 ev->data.note.velocity); in decode_event()
H A Dseq-sender.c134 ev.data.note.velocity = 127; in send_event()
/third_party/skia/modules/particles/include/
H A DSkParticleEffect.h63 // float2 vel = { 0, 0 }; // Linear velocity, in (units / second)
64 // float spin = 0; // Angular velocity, in (radians / second)
134 SkVector velocity, float spin, SkColor4f color, float frame, float seed);
142 { 0.0f, 0.0f }, // velocity in start()
/third_party/glfw/examples/
H A Dparticles.c167 // Base initial velocity (m/s)
247 float xy_angle, velocity; in init_particle() local
254 // Start velocity is up (Z)... in init_particle()
262 // Scale velocity vector according to a time-varying velocity in init_particle()
263 velocity = VELOCITY * (0.8f + 0.1f * (float) (sin(0.5 * t) + sin(1.31 * t))); in init_particle()
264 p->vx *= velocity; in init_particle()
265 p->vy *= velocity; in init_particle()
266 p->vz *= velocity; in init_particle()
/third_party/alsa-lib/src/seq/
H A Dseq_midi_event.c470 ev->data.note.velocity = dev->buf[2]; in note_event()
625 buf[1] = ev->data.note.velocity & 0x7f; in note_decode()
/third_party/alsa-utils/seq/aplaymidi/
H A Darecordmidi.c486 add_byte(track, ev->data.note.velocity & 0x7f); in record_event()
492 add_byte(track, ev->data.note.velocity & 0x7f); in record_event()
498 add_byte(track, ev->data.note.velocity & 0x7f); in record_event()
H A Daplaymidi.c658 ev->data.note.velocity = event->data.d[2]; in fill_legacy_event()
724 /* correct the note-on with velocity 0 to note-off; in fill_ump_event()
725 * UMP may handle velocity 0 differently in fill_ump_event()
727 if (!ev->data.note.velocity) in fill_ump_event()
735 ump.note_on.velocity = event->data.d[2]; in fill_ump_event()
/third_party/backends/backend/
H A Dmicrotek.h323 SANE_Byte velocity; member
/third_party/skia/modules/particles/src/
H A DSkParticleEffect.cpp266 float scale, SkVector velocity, float spin, SkColor4f color, in start()
286 fState.fVelocity = velocity; in start()
265 start(double now, bool looping, SkPoint position, SkVector heading, float scale, SkVector velocity, float spin, SkColor4f color, float frame, float seed) start() argument

Completed in 18 milliseconds

12