Searched defs:frames (Results 1 - 20 of 20) sorted by relevance

/device/google/dragon/audio/hal/dsp/tests/
H A Ddrc_test.c26 static void process(struct drc *drc, float *buf, size_t frames) argument
33 for (start = 0; start < frames;) {
35 data[1] = buf + start + frames;
36 chunk = min(DRC_PROCESS_MAX_FRAMES, frames - start);
42 tp_diff(&tp2, &tp1), frames * 2);
49 size_t frames; local
90 buf = read_raw(argv[1], &frames);
91 process(drc, buf, frames);
92 write_raw(argv[2], buf, frames);
H A Draw.c13 float *read_raw(const char *filename, size_t *frames) argument
50 *frames = f;
66 int write_raw(const char *filename, float *input, size_t frames) argument
70 int n = frames * 4;
74 for (i = 0; i < frames; i++) {
76 buf[2*i+1] = f2s16(input[i + frames]);
H A Dcrossover_test.c40 size_t frames; local
55 data0 = read_raw(argv[1], &frames);
56 data1 = (float *)malloc(sizeof(float) * frames * 2);
57 data2 = (float *)malloc(sizeof(float) * frames * 2);
61 process(&xo, frames, data0, data1, data2);
64 tp_diff(&tp2, &tp1), frames);
68 process(&xo, frames, data0 + frames, data1 + frames,
69 data2 + frames);
[all...]
H A Deq2_test.c39 size_t frames; local
45 float *data = read_raw(input_filename, &frames);
48 for (i = frames / 10; i < frames; i++)
66 process(eq2, data, data + frames, frames);
69 tp_diff(&tp2, &tp1), frames * 2);
72 write_raw(output_filename, data, frames);
H A Dcrossover2_test.c42 size_t frames; local
57 data0 = read_raw(argv[1], &frames);
58 data1 = (float *)malloc(sizeof(float) * frames * 2);
59 data2 = (float *)malloc(sizeof(float) * frames * 2);
63 process(&xo2, frames, data0, data0 + frames, data1, data1 + frames,
64 data2, data2 + frames);
67 tp_diff(&tp2, &tp1), frames * 2);
70 write_raw(argv[3], data0, frames);
[all...]
H A Deq_test.c73 size_t frames; local
79 float *data = read_raw(input_filename, &frames);
82 for (i = frames / 10; i < frames; i++)
94 process(eq, data, frames);
97 tp_diff(&tp2, &tp1), frames);
109 process(eq, data + frames, frames);
112 tp_diff(&tp2, &tp1), frames);
115 write_raw(output_filename, data, frames);
[all...]
/device/google/dragon/audio/hal/dsp/
H A Ddsp_util.c27 float *output2, int frames)
29 /* Process 8 frames (16 samples) each loop. */
31 int chunk = frames >> 3;
32 frames &= 7;
61 while (frames--) {
69 int16_t *output, int frames)
71 /* Process 4 frames (8 samples) each loop. */
75 int chunk = frames >> 2;
76 frames &= 3;
119 while (frames
26 deinterleave_stereo(int16_t *input, float *output1, float *output2, int frames) argument
68 interleave_stereo(float *input1, float *input2, int16_t *output, int frames) argument
136 deinterleave_stereo(int16_t *input, float *output1, float *output2, int frames) argument
192 interleave_stereo(float *input1, float *input2, int16_t *output, int frames) argument
250 dsp_util_deinterleave(int16_t *input, float *const *output, int channels, int frames) argument
271 dsp_util_interleave(float *const *input, int16_t *output, int channels, int frames) argument
[all...]
H A Ddrc.c353 void drc_process(struct drc *drc, float **data, int frames) argument
361 eq2_process(drc->emphasis_eq, data[0], data[1], frames);
364 crossover2_process(&drc->xo2, frames, data[0], data[1],
370 dk_process(&drc->kernel[0], data, frames);
371 dk_process(&drc->kernel[1], data1, frames);
372 dk_process(&drc->kernel[2], data2, frames);
376 sum3(data[i], data1[i], data2[i], frames);
380 eq2_process(drc->deemphasis_eq, data[0], data[1], frames);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dcgitb.py117 frames = [] variable
169 frames.append('''
181 return head + ''.join(frames) + ''.join(exception) + '''
205 frames = [] variable
243 frames.append('\n%s\n' % '\n'.join(rows))
251 return head + ''.join(frames) + ''.join(exception) + '''
/device/asus/fugu/libaudio/
H A DAudioStreamIn.cpp283 // of audio frames synthesized from the last time we returned data
434 // readFrames() reads frames from kernel driver, down samples to the capture
435 // rate if necessary and outputs the number of frames requested to the buffer
437 ssize_t AudioStreamIn::readFrames_l(void* buffer, ssize_t frames) argument
442 while (framesWr < frames) {
443 size_t framesRd = frames - framesWr;
H A DAudioStreamOut.cpp206 // frames per chunk.
350 status_t AudioStreamOut::getPresentationPosition(uint64_t *frames, argument
363 *frames = mLastPresentationPosition;
371 result = getPresentationPosition_l(frames, timestamp);
381 status_t AudioStreamOut::getPresentationPosition_l(uint64_t *frames, argument
429 *frames = mLastPresentationPosition;
434 *frames = unsignedFrames;
664 uint64_t frames; local
666 getPresentationPosition_l(&frames, &timestamp);
H A Daudio_hal_thunks.cpp202 uint64_t *frames, struct timespec *timestamp)
207 return tstream->impl->getPresentationPosition(frames, timestamp);
201 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument
/device/google/dragon/audio/hal/
H A Dcras_dsp_pipeline.c93 * in number of frames. */
143 /* The total number of sample frames the pipeline processed */
816 uint8_t *buf, unsigned int frames)
828 if (!pipeline || frames == 0)
841 remaining = frames;
843 /* process at most DSP_BUFFER_SIZE frames each loop */
862 //cras_dsp_pipeline_add_statistic(pipeline, &delta, frames);
815 cras_dsp_pipeline_apply(struct pipeline *pipeline, uint8_t *buf, unsigned int frames) argument
H A Daudio_hw.c860 static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames);
1023 ssize_t frames_wr = 0; /* Number of frames actually read */
1044 /* since all the processing below is done in frames and using the config.channels
1047 /* first reload enough frames at the end of process input buffer */
1075 * the maximum number of frames to be consumed and produced by process() */
1092 /* process() has updated the number of frames consumed and produced in
1094 * move remaining frames to the beginning of in->proc_buf_in */
1103 /* if not enough frames were passed to process(), read more and retry. */
1105 ALOGW("No frames produced by preproc");
1113 ALOGE("preprocessing produced too many frames
1211 read_frames(struct stream_in *in, void *buffer, ssize_t frames) argument
2025 apply_dsp(struct pcm_device *iodev, uint8_t *buf, size_t frames) argument
2238 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument
2508 ssize_t frames = -1; local
[all...]
/device/google/dragon/audio/soundtrigger/
H A Dsound_trigger_hw.c538 int frames; local
570 frames = pcm_mmap_avail(stdev->pcm);
571 if (frames < 0) {
572 ALOGE("%s: DSP mmap error %d", __func__, frames);
573 ret = frames;
576 if (frames == 0) {
577 // ALOGE("%s: DSP mmap retry %d", __func__, frames);
585 if (frames > buffer_len / 2)
586 frames = buffer_len / 2;
588 orig_frames = frames;
[all...]
/device/linaro/hikey/audio/
H A Daudio_hw.c51 /* number of frames per short period (low latency) */
134 /* return the closest majoring multiple of 16 frames, as
135 * audioflinger expects audio buffers to be a multiple of 16 frames */
294 uint64_t *frames, struct timespec *timestamp)
305 *frames = signed_frames;
293 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument
/device/generic/goldfish/audio/
H A Daudio_hw.c125 int frames = 0; local
127 frames = MIN(frame_count, audio_vbuffer->frame_count - audio_vbuffer->head);
129 frames = MIN(frame_count, audio_vbuffer->tail - (audio_vbuffer->head));
136 frames*audio_vbuffer->frame_size);
137 audio_vbuffer->live += frames;
138 frames_written += frames;
139 frame_count -= frames;
140 audio_vbuffer->head = (audio_vbuffer->head + frames) % audio_vbuffer->frame_count;
152 int frames = 0; local
155 frames
436 int frames = audio_vbuffer_read(&out->buffer, buffer, buffer_frames); local
494 const size_t frames = bytes / audio_stream_out_frame_size(stream); local
557 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument
1006 const size_t frames = bytes / audio_stream_in_frame_size(stream); local
1100 in_get_capture_position(const struct audio_stream_in *stream, int64_t *frames, int64_t *time) argument
[all...]
/device/google/marlin/camera/
H A DQCamera_Intf.h333 mm_camera_wnr_frame_info_t frames[MM_CAMEAR_MAX_STRAEM_BUNDLE]; member in struct:__anon1275
/device/huawei/angler/camera/
H A DQCamera_Intf.h333 mm_camera_wnr_frame_info_t frames[MM_CAMEAR_MAX_STRAEM_BUNDLE]; member in struct:__anon1836
/device/lge/bullhead/camera/
H A DQCamera_Intf.h333 mm_camera_wnr_frame_info_t frames[MM_CAMEAR_MAX_STRAEM_BUNDLE]; member in struct:__anon2388

Completed in 800 milliseconds