/kernel/linux/linux-6.6/include/xen/ |
H A D | mem-reservation.h | 31 xen_pfn_t *frames); 39 xen_pfn_t *frames) in xenmem_reservation_va_mapping_update() 43 __xenmem_reservation_va_mapping_update(count, pages, frames); in xenmem_reservation_va_mapping_update() 56 int xenmem_reservation_increase(int count, xen_pfn_t *frames); 58 int xenmem_reservation_decrease(int count, xen_pfn_t *frames); 37 xenmem_reservation_va_mapping_update(unsigned long count, struct page **pages, xen_pfn_t *frames) xenmem_reservation_va_mapping_update() argument
|
/kernel/linux/linux-5.10/sound/core/oss/ |
H A D | io.c | 40 snd_pcm_uframes_t frames) in io_playback_transfer() 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer() 66 snd_pcm_uframes_t frames) in io_capture_transfer() 73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer() 85 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer() 91 snd_pcm_uframes_t frames, in io_src_channels() 97 err = snd_pcm_plugin_client_channels(plugin, frames, &v); in io_src_channels() 105 return frames; in io_src_channels() 37 io_playback_transfer(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames) io_playback_transfer() argument 63 io_capture_transfer(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames) io_capture_transfer() argument 90 io_src_channels(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames, struct snd_pcm_plugin_channel **channels) io_src_channels() argument
|
H A D | rate.c | 183 static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_src_frames() argument 190 if (frames == 0) in rate_src_frames() 194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames() 196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames() 199 snd_pcm_sframes_t frames1 = frames, res1 = data->old_dst_frames; in rate_src_frames() 211 data->old_src_frames = frames; in rate_src_frames() 216 static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_dst_frames() argument 223 if (frames == 0) in rate_dst_frames() 227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames() 229 res = (((frames * dat in rate_dst_frames() 249 rate_transfer(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames) rate_transfer() argument [all...] |
/kernel/linux/linux-6.6/sound/core/oss/ |
H A D | io.c | 40 snd_pcm_uframes_t frames) in io_playback_transfer() 47 return pcm_write(plugin->plug, src_channels->area.addr, frames); in io_playback_transfer() 59 return pcm_writev(plugin->plug, bufs, frames); in io_playback_transfer() 66 snd_pcm_uframes_t frames) in io_capture_transfer() 73 return pcm_read(plugin->plug, dst_channels->area.addr, frames); in io_capture_transfer() 85 return pcm_readv(plugin->plug, bufs, frames); in io_capture_transfer() 91 snd_pcm_uframes_t frames, in io_src_channels() 97 err = snd_pcm_plugin_client_channels(plugin, frames, &v); in io_src_channels() 105 return frames; in io_src_channels() 37 io_playback_transfer(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames) io_playback_transfer() argument 63 io_capture_transfer(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames) io_capture_transfer() argument 90 io_src_channels(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames, struct snd_pcm_plugin_channel **channels) io_src_channels() argument
|
H A D | rate.c | 183 static snd_pcm_sframes_t rate_src_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_src_frames() argument 190 if (frames == 0) in rate_src_frames() 194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames() 196 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_src_frames() 199 snd_pcm_sframes_t frames1 = frames, res1 = data->old_dst_frames; in rate_src_frames() 211 data->old_src_frames = frames; in rate_src_frames() 216 static snd_pcm_sframes_t rate_dst_frames(struct snd_pcm_plugin *plugin, snd_pcm_uframes_t frames) in rate_dst_frames() argument 223 if (frames == 0) in rate_dst_frames() 227 res = DIV_ROUND_CLOSEST(frames << SHIFT, data->pitch); in rate_dst_frames() 229 res = (((frames * dat in rate_dst_frames() 249 rate_transfer(struct snd_pcm_plugin *plugin, const struct snd_pcm_plugin_channel *src_channels, struct snd_pcm_plugin_channel *dst_channels, snd_pcm_uframes_t frames) rate_transfer() argument [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_shuffleframes.c | 33 AVFrame **frames; member 52 s->frames = av_calloc(nb_items, sizeof(*s->frames)); in init() 55 if (!s->map || !s->frames || !s->pts) { in init() 89 s->frames[s->in_frames] = frame; in filter_frame() 102 out = av_frame_clone(s->frames[x]); in filter_frame() 112 av_frame_free(&s->frames[n]); in filter_frame() 124 av_frame_free(&s->frames[s->in_frames]); in uninit() 127 av_freep(&s->frames); in uninit() 135 { "mapping", "set destination indexes of input frames", OFFSE [all...] |
H A D | vf_tmidequalizer.c | 49 AVFrame **frames; member 181 if (!s->frames[idx]) in filter_frame() 183 in = av_frame_clone(s->frames[idx]); in filter_frame() 190 s->frames[s->f_frames] = in; in filter_frame() 202 s->frames[s->f_frames] = av_frame_clone(in); in filter_frame() 203 if (!s->frames[s->f_frames]) in filter_frame() 217 s->frames[s->f_frames] = av_frame_clone(in); in filter_frame() 218 if (!s->frames[s->f_frames]) in filter_frame() 231 av_frame_free(&s->frames[s->del_frame]); in filter_frame() 232 s->frames[ in filter_frame() [all...] |
H A D | vf_random.c | 38 AVFrame *frames[MAX_FRAMES]; member 47 { "frames", "set number of frames in cache", OFFSET(nb_frames), AV_OPT_TYPE_INT, {.i64=30}, 2, MAX_FRAMES, FLAGS }, 76 s->frames[s->nb_frames_filled] = in; in filter_frame() 83 out = s->frames[idx]; in filter_frame() 86 s->frames[idx] = in; in filter_frame() 102 AVFrame *out = s->frames[s->nb_frames - 1]; in request_frame() 109 s->frames[s->nb_frames - 1] = NULL; in request_frame() 121 av_frame_free(&s->frames[i]); in uninit() 142 .description = NULL_IF_CONFIG_SMALL("Return random frames [all...] |
H A D | vf_thumbnail_cuda.c | 58 int n_frames; ///< number of frames for analysis 59 struct thumb_frame *frames; ///< the n_frames frames member 81 { "n", "set the frames batch size", OFFSET(n_frames), AV_OPT_TYPE_INT, {.i64=100}, 2, INT_MAX, FLAGS }, 91 s->frames = av_calloc(s->n_frames, sizeof(*s->frames)); in init() 92 if (!s->frames) { in init() 94 "Allocation failure, try to lower the number of frames\n"); in init() 97 av_log(ctx, AV_LOG_VERBOSE, "batch size: %d frames\n", s->n_frames); in init() 127 // average histogram of the N frames in get_best_frame() [all...] |
H A D | vf_mix.c | 59 AVFrame **frames; member 119 s->frames = av_calloc(s->nb_inputs, sizeof(*s->frames)); in init() 120 if (!s->frames) in init() 220 AVFrame **in = s->frames; in process_frame() 231 out = av_frame_clone(s->frames[0]); in process_frame() 335 for (i = 0; i < s->nb_frames && s->frames; i++) in uninit() 336 av_frame_free(&s->frames[i]); in uninit() 338 av_freep(&s->frames); in uninit() 416 s->frames[ in tmix_filter_frame() [all...] |
H A D | vf_fps.c | 86 AVFrame *frames[2]; ///< buffered frames member 87 int frames_count; ///< number of buffered frames 93 int frames_in; ///< number of frames on input 94 int frames_out; ///< number of frames on output 95 int dup; ///< number of frames duplicated 112 { "round", "round similar to other frames", 0, AV_OPT_TYPE_CONST, { .i64 = EOF_ACTION_ROUND }, 0, 0, V|F, "eof_action" }, 134 /* Must only be called when there are frames in the buffer */ in shift_frame() 137 frame = s->frames[0]; in shift_frame() 138 s->frames[ in shift_frame() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | mp3dec.c | 52 unsigned frames; /* Total number of frames in file */ member 70 int frames, ret; in mp3_read_probe() local 86 for (framesizes = frames = 0; buf2 < end; frames++) { in mp3_read_probe() 105 frames++; in mp3_read_probe() 110 max_frames = FFMAX(max_frames, frames); in mp3_read_probe() 113 first_frames= frames; in mp3_read_probe() 186 mp3->frames = avio_rb32(s->pb); in mp3_parse_info_tag() 194 mp3->frames in mp3_parse_info_tag() [all...] |
H A D | rtpdec_amr.c | 53 int frames; in amr_handle_packet() local 75 * by the speech data for all the AMR frames. in amr_handle_packet() 82 /* Count the number of frames in the packet. The highest bit in amr_handle_packet() 83 * is set in a TOC byte if there are more frames following. in amr_handle_packet() 85 for (frames = 1; frames < len && (buf[frames] & 0x80); frames++) ; in amr_handle_packet() 87 if (1 + frames >= len) { in amr_handle_packet() 88 /* We hit the end of the packet while counting frames in amr_handle_packet() [all...] |
H A D | loasdec.c | 33 int fsize, frames; in loas_probe() local 43 for (frames = 0; buf2 < end; frames++) { in loas_probe() 53 max_frames = FFMAX(max_frames, frames); in loas_probe() 55 first_frames = frames; in loas_probe()
|
/third_party/libsnd/src/ |
H A D | avr.c | 52 int frames ; /* sample length in bytes or words (see rez) */ member 149 psf_binheader_readf (psf, "E4444", &hdr.srate, &hdr.frames, &hdr.lbeg, &hdr.lend) ; in avr_read_header() 151 psf->sf.frames = hdr.frames ; in avr_read_header() 154 psf_log_printf (psf, " Frames : %D\n", psf->sf.frames) ; in avr_read_header() 165 psf->datalength = hdr.frames * (hdr.rez / 8) ; in avr_read_header() 175 if (psf->sf.frames == 0 && psf->blockwidth) in avr_read_header() 176 psf->sf.frames = (psf->filelength - psf->dataoffset) / psf->blockwidth ; in avr_read_header() 198 psf->sf.frames = psf->datalength / (psf->bytewidth * psf->sf.channels) ; in avr_write_header() 218 psf_binheader_writef (psf, "E4444", BHW4 (psf->sf.samplerate), BHW4 (psf->sf.frames), BHW in avr_write_header() [all...] |
H A D | sndfile.c | 1244 psf->sf.frames = position ; in sf_command() 1569 seek_from_start = psf->sf.frames + offset ; in sf_seek() 1586 else if (seek_from_start < 0 || seek_from_start > psf->sf.frames) in sf_seek() 1718 if (bytes < 0 || psf->read_current >= psf->sf.frames) in sf_read_raw() 1734 if (psf->read_current + count / blockwidth <= psf->sf.frames) in sf_read_raw() 1737 { count = (psf->sf.frames - psf->read_current) * blockwidth ; in sf_read_raw() 1740 psf->read_current = psf->sf.frames ; in sf_read_raw() 1776 if (psf->read_current >= psf->sf.frames) in sf_read_short() 1792 if (psf->read_current + count / psf->sf.channels <= psf->sf.frames) in sf_read_short() 1795 { count = (psf->sf.frames in sf_read_short() 1807 sf_readf_short(SNDFILE *sndfile, short *ptr, sf_count_t frames) sf_readf_short() argument 1915 sf_readf_int(SNDFILE *sndfile, int *ptr, sf_count_t frames) sf_readf_int() argument 2023 sf_readf_float(SNDFILE *sndfile, float *ptr, sf_count_t frames) sf_readf_float() argument 2131 sf_readf_double(SNDFILE *sndfile, double *ptr, sf_count_t frames) sf_readf_double() argument 2300 sf_writef_short(SNDFILE *sndfile, const short *ptr, sf_count_t frames) sf_writef_short() argument 2412 sf_writef_int(SNDFILE *sndfile, const int *ptr, sf_count_t frames) sf_writef_int() argument 2524 sf_writef_float(SNDFILE *sndfile, const float *ptr, sf_count_t frames) sf_writef_float() argument 2636 sf_writef_double(SNDFILE *sndfile, const double *ptr, sf_count_t frames) sf_writef_double() argument [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_share.c | 136 /* Return number of frames to mmap_commit the slave */ 141 snd_pcm_sframes_t frames, safety_frames; in _snd_pcm_share_slave_forward() local 163 frames = slave_avail - avail; in _snd_pcm_share_slave_forward() 164 if (frames > max_frames) in _snd_pcm_share_slave_forward() 165 max_frames = frames; in _snd_pcm_share_slave_forward() 168 if (frames < min_frames) in _snd_pcm_share_slave_forward() 169 min_frames = frames; in _snd_pcm_share_slave_forward() 173 frames = min_frames; in _snd_pcm_share_slave_forward() 178 frames < safety_frames) { in _snd_pcm_share_slave_forward() 181 frames in _snd_pcm_share_slave_forward() 234 snd_pcm_sframes_t frames = slave_avail - avail; _snd_pcm_share_missing() local 324 snd_pcm_uframes_t frames = size - xfer; _snd_pcm_share_missing() local 833 snd_pcm_sframes_t frames; _snd_pcm_share_mmap_commit() local 958 snd_pcm_uframes_t frames = hw_avail - xfer; snd_pcm_share_start() local 1017 _snd_pcm_share_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) _snd_pcm_share_rewind() argument 1064 snd_pcm_share_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) snd_pcm_share_rewind() argument 1075 _snd_pcm_share_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) _snd_pcm_share_forward() argument 1121 snd_pcm_share_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames) snd_pcm_share_forward() argument [all...] |
/third_party/node/test/fixtures/wpt/dom/events/non-cancelable-when-passive/resources/ |
H A D | wait-for.js | 3 function tick(frames) { 4 // We requestAnimationFrame either for MAX_FRAME frames or until condition is 6 if (frames >= MAX_FRAME) 7 reject(new Error(`Condition did not become true after ${MAX_FRAME} frames`)); 11 requestAnimationFrame(() => tick(frames + 1));
|
/third_party/python/Lib/test/ |
H A D | test_sunau.py | 26 frames = bytes.fromhex("""\ 43 frames = bytes.fromhex("""\ 62 frames = bytes.fromhex("""\ 87 frames = bytes.fromhex("""\ 112 frames = bytes.fromhex("""\ 121 frames = audioop.byteswap(frames, 2) variable in SunauULAWTest
|
/third_party/ffmpeg/libavcodec/ |
H A D | pafaudio.c | 50 int frames, ret, i, j; in paf_audio_decode() local 53 frames = pkt->size / PAF_SOUND_FRAME_SIZE; in paf_audio_decode() 54 if (frames < 1) in paf_audio_decode() 57 frame->nb_samples = PAF_SOUND_SAMPLES * frames; in paf_audio_decode() 63 for (j = 0; j < frames; j++) { in paf_audio_decode()
|
/third_party/ffmpeg/tests/fate/ |
H A D | cdxl.mak | 2 fate-cdxl-bitline-ham6: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/bitline.cdxl -frames:v 10 5 fate-cdxl-ham6: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/cat.cdxl -an -frames:v 16 8 fate-cdxl-ham8: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/mirage.cdxl -an -frames:v 1 11 fate-cdxl-pal8: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/maku.cdxl -pix_fmt rgb24 -frames:v 11 -vf scale 14 fate-cdxl-pal8-small: CMD = framecrc -i $(TARGET_SAMPLES)/cdxl/fruit.cdxl -an -pix_fmt rgb24 -frames:v 46 -vf scale
|
/third_party/node/test/common/ |
H A D | cpu-prof.js | 18 const frames = profile.nodes.filter((i) => { 22 return { frames, nodes: profile.nodes }; 26 const { frames, nodes } = getFrames(file, suffix); 27 if (frames.length === 0) { 32 assert.notDeepStrictEqual(frames, []);
|
/third_party/libsnd/include/ |
H A D | sndfile.hh | 110 sf_count_t frames (void) const { return p ? p->sfinfo.frames : 0 ; } in frames() function in SndfileHandle 120 sf_count_t seek (sf_count_t frames, int whence) ; 140 sf_count_t readf (short *ptr, sf_count_t frames) ; 141 sf_count_t readf (int *ptr, sf_count_t frames) ; 142 sf_count_t readf (float *ptr, sf_count_t frames) ; 143 sf_count_t readf (double *ptr, sf_count_t frames) ; 145 sf_count_t writef (const short *ptr, sf_count_t frames) ; 146 sf_count_t writef (const int *ptr, sf_count_t frames) ; 147 sf_count_t writef (const float *ptr, sf_count_t frames) ; [all...] |
/third_party/libsnd/tests/ |
H A D | long_read_write_test.c | 101 sfinfo.frames = out_len ; in short_lrw_test() 116 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too short). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in short_lrw_test() 147 sfinfo.frames = out_len ; in int_lrw_test() 162 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too int). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ; in int_lrw_test() 193 sfinfo.frames = out_len ; in float_lrw_test() 208 exit_if_true (sfinfo.frames < out_le in float_lrw_test() [all...] |
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | debug.py | 83 def __init__(self, exc_type, exc_value, frames): 84 assert frames, 'no frames for this traceback?' 87 self.frames = frames 89 # newly concatenate the frames (which are proxies) 91 for tb in self.frames: 100 self.frames[0], limit=limit) 119 return self.exc_type, self.exc_value, self.frames[0] 124 tb = self.frames[ [all...] |