Home
last modified time | relevance | path

Searched refs:new_position (Results 1 – 13 of 13) sorted by relevance

/third_party/boost/libs/safe_numerics/example/
Dmotor3.c148 void motor_run(position_t new_position) { in motor_run() argument
149 if(new_position > motor_position){ in motor_run()
152 m = new_position - motor_position; in motor_run()
155 if(motor_position > new_position){ in motor_run()
158 m = motor_position - new_position; in motor_run()
Dexample93.cpp252 result_t test(position_t new_position){ in test() argument
254 std::cout << "move motor to " << new_position << '\n'; in test()
255 motor_run(new_position); in test()
/third_party/libsnd/src/
Dtest_file_io.c47 …IVATE *psf, void *data, sf_count_t bytes, sf_count_t items, sf_count_t new_position, int linenum) ;
48 …IVATE *psf, void *data, sf_count_t bytes, sf_count_t items, sf_count_t new_position, int linenum) ;
50 …eek_or_die (SF_PRIVATE *psf, sf_count_t offset, int whence, sf_count_t new_position, int linenum) ;
395 …PRIVATE *psf, void *data, sf_count_t bytes, sf_count_t items, sf_count_t new_position, int linenum) in test_write_or_die() argument
404 if ((retval = psf_ftell (psf)) != new_position) in test_write_or_die()
405 …er write is not correct. (%" PRId64 " should be %" PRId64 ")\n\n", linenum, retval, new_position) ; in test_write_or_die()
413 …PRIVATE *psf, void *data, sf_count_t bytes, sf_count_t items, sf_count_t new_position, int linenum) in test_read_or_die() argument
422 if ((retval = psf_ftell (psf)) != new_position) in test_read_or_die()
423 …er write is not correct. (%" PRId64 " should be %" PRId64 ")\n\n", linenum, retval, new_position) ; in test_read_or_die()
431 test_seek_or_die (SF_PRIVATE *psf, sf_count_t offset, int whence, sf_count_t new_position, int line… in test_seek_or_die() argument
[all …]
Dfile_io.c921 { sf_count_t new_position ; in psf_fseek() local
959 new_position = liNewFilePointer.QuadPart - psf->fileoffset ; in psf_fseek()
961 return new_position ; in psf_fseek()
1249 { sf_count_t new_position ; in psf_fseek() local
1261 { new_position = _lseeki64 (psf->file.filedes, offset, whence) ; in psf_fseek()
1263 if (new_position < 0) in psf_fseek()
1266 return new_position - psf->fileoffset ; in psf_fseek()
1289 new_position = _telli64 (psf->file.filedes) ; in psf_fseek()
1291 new_position = _lseeki64 (psf->file.filedes, offset, whence) ; in psf_fseek()
1293 if (new_position < 0) in psf_fseek()
[all …]
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/audio/
Dgstnonstreamaudiodecoder.c1530 GstClockTime new_position; in gst_nonstream_audio_decoder_switch_to_subsong() local
1593 if (!(klass->set_current_subsong (dec, new_subsong, &new_position))) { in gst_nonstream_audio_decoder_switch_to_subsong()
1601 new_position = klass->tell (dec); in gst_nonstream_audio_decoder_switch_to_subsong()
1603 new_position = 0; in gst_nonstream_audio_decoder_switch_to_subsong()
1637 gst_nonstream_audio_decoder_output_new_segment (dec, new_position); in gst_nonstream_audio_decoder_switch_to_subsong()
1835 GstClockTime new_position; in gst_nonstream_audio_decoder_do_seek() local
1943 new_position = segment.position; in gst_nonstream_audio_decoder_do_seek()
1944 res = klass->seek (dec, &new_position); in gst_nonstream_audio_decoder_do_seek()
1945 segment.position = new_position; in gst_nonstream_audio_decoder_do_seek()
2189 GstClockTime new_position) in gst_nonstream_audio_decoder_handle_loop() argument
[all …]
Dgstnonstreamaudiodecoder.h322 GstClockTime * new_position);
386 GstClockTime new_position);
/third_party/gstreamer/gstplugins_bad/ext/wildmidi/
Dgstwildmididec.c126 GstClockTime * new_position);
488 GstClockTime * new_position) in gst_wildmidi_dec_seek() argument
492 gst_util_uint64_scale_int (*new_position, WILDMIDI_SAMPLE_RATE, in gst_wildmidi_dec_seek()
500 *new_position = in gst_wildmidi_dec_seek()
/third_party/boost/boost/graph/
Dgrid_graph.hpp398 vertices_size_type new_position = vertex[dimension_index] + distance; in next() local
402 new_position %= length(dimension_index); in next()
407 new_position = (std::min)( in next()
408 new_position, vertices_size_type(length(dimension_index) - 1)); in next()
411 vertex[dimension_index] = new_position; in next()
/third_party/glib/gio/
Dgwin32file-sync-stream.c171 LARGE_INTEGER new_position; in _file_sync_stream_seek() local
189 if (!SetFilePointerEx (self->file_handle, move_distance, &new_position, move_method)) in _file_sync_stream_seek()
195 (*output_new_position).QuadPart = new_position.QuadPart; in _file_sync_stream_seek()
/third_party/gstreamer/gstplugins_bad/ext/openmpt/
Dgstopenmptdec.c110 GstClockTime * new_position);
428 GstClockTime * new_position) in gst_openmpt_dec_seek() argument
434 (double) (*new_position) / GST_SECOND); in gst_openmpt_dec_seek()
435 *new_position = gst_openmpt_dec_tell (dec); in gst_openmpt_dec_seek()
/third_party/gstreamer/gstplugins_good/ext/soup/
Dgstsouphttpsrc.c2369 guint64 new_position; in gst_soup_http_src_update_position() local
2371 new_position = src->read_position + bytes_read; in gst_soup_http_src_update_position()
2373 src->request_position = new_position; in gst_soup_http_src_update_position()
2374 src->read_position = new_position; in gst_soup_http_src_update_position()
2377 if (new_position > src->content_size) { in gst_soup_http_src_update_position()
2379 "(%" G_GINT64_FORMAT " > %" G_GINT64_FORMAT ")", new_position, in gst_soup_http_src_update_position()
2381 src->content_size = new_position; in gst_soup_http_src_update_position()
2385 } else if (new_position == src->content_size) { in gst_soup_http_src_update_position()
/third_party/gstreamer/gstplugins_bad/ext/curl/
Dgstcurlhttpsrc.c2256 guint64 new_position; local
2270new_position = (src->read_position == (guint64)-1) ? bytes_read : (src->read_position + bytes_read…
2272 new_position = src->read_position + bytes_read;
2275 src->request_position = new_position;
2277 src->read_position = new_position;
/third_party/python/Lib/
D_pyio.py819 new_position = self.raw.seek(pos, whence)
820 if new_position < 0:
822 return new_position