Home
last modified time | relevance | path

Searched refs:frame_size (Results 1 – 25 of 117) sorted by relevance

12345

/external/speex/libspeex/
Dscal.c60 int frame_size; member
81 EXPORT SpeexDecorrState *speex_decorrelate_new(int rate, int channels, int frame_size) in speex_decorrelate_new() argument
87 st->frame_size = frame_size; in speex_decorrelate_new()
89 st->psy = vorbis_psy_init(rate, 2*frame_size); in speex_decorrelate_new()
90 spx_drft_init(&st->lookup, 2*frame_size); in speex_decorrelate_new()
91 st->wola_mem = speex_alloc(frame_size*sizeof(float)); in speex_decorrelate_new()
92 st->curve = speex_alloc(frame_size*sizeof(float)); in speex_decorrelate_new()
94 st->y = speex_alloc(frame_size*sizeof(float)); in speex_decorrelate_new()
96 st->buff = speex_alloc(channels*2*frame_size*sizeof(float)); in speex_decorrelate_new()
103 st->vorbis_win = speex_alloc((2*frame_size+20)*sizeof(float)); in speex_decorrelate_new()
[all …]
Dmdf.c133 int frame_size; /**< Number of samples processed each time */ member
402 EXPORT SpeexEchoState *speex_echo_state_init(int frame_size, int filter_length) in speex_echo_state_init() argument
404 return speex_echo_state_init_mc(frame_size, filter_length, 1, 1); in speex_echo_state_init()
407 EXPORT SpeexEchoState *speex_echo_state_init_mc(int frame_size, int filter_length, int nb_mic, int … in speex_echo_state_init_mc() argument
424 st->frame_size = frame_size; in speex_echo_state_init_mc()
425 st->window_size = 2*frame_size; in speex_echo_state_init_mc()
427 M = st->M = (filter_length+st->frame_size-1)/frame_size; in speex_echo_state_init_mc()
434 st->spec_average = DIV32_16(SHL32(EXTEND32(st->frame_size), 15), st->sampling_rate); in speex_echo_state_init_mc()
436 st->beta0 = DIV32_16(SHL32(EXTEND32(st->frame_size), 16), st->sampling_rate); in speex_echo_state_init_mc()
437 st->beta_max = DIV32_16(SHL32(EXTEND32(st->frame_size), 14), st->sampling_rate); in speex_echo_state_init_mc()
[all …]
Dstereo.c108 EXPORT void speex_encode_stereo(float *data, int frame_size, SpeexBits *bits) in speex_encode_stereo() argument
113 for (i=0;i<frame_size;i++) in speex_encode_stereo()
146 EXPORT void speex_encode_stereo_int(spx_int16_t *data, int frame_size, SpeexBits *bits) in speex_encode_stereo_int() argument
162 for (i=0;i<frame_size;i++) in speex_encode_stereo_int()
221 EXPORT void speex_decode_stereo(float *data, int frame_size, SpeexStereoState *_stereo) in speex_decode_stereo() argument
237 for (i=frame_size-1;i>=0;i--) in speex_decode_stereo()
248 EXPORT void speex_decode_stereo_int(spx_int16_t *data, int frame_size, SpeexStereoState *_stereo) in speex_decode_stereo_int() argument
264 for (i=frame_size-1;i>=0;i--) in speex_decode_stereo_int()
Dsb_celp.c213 st->frame_size = mode->frameSize; in sb_encoder_init()
216 st->windowSize = st->frame_size+st->subframeSize; in sb_encoder_init()
233 st->high=(spx_word16_t*)speex_alloc((st->windowSize-st->frame_size)*sizeof(spx_word16_t)); in sb_encoder_init()
335 high = in+st->frame_size; in sb_encode()
346 e_low = compute_rms16(low, st->frame_size); in sb_encode()
347 e_high = compute_rms16(high, st->frame_size); in sb_encode()
356 high = high - (st->windowSize-st->frame_size); in sb_encode()
357 SPEEX_COPY(high, st->high, st->windowSize-st->frame_size); in sb_encode()
358 SPEEX_COPY(st->high, &high[st->frame_size], st->windowSize-st->frame_size); in sb_encode()
515 for (i=0;i<st->frame_size;i++) in sb_encode()
[all …]
/external/libvpx/libvpx/
Divfdec.c75 size_t frame_size = 0; in ivf_read_frame() local
81 frame_size = mem_get_le32(raw_header); in ivf_read_frame()
83 if (frame_size > 256 * 1024 * 1024) { in ivf_read_frame()
84 warn("Read invalid frame size (%u)\n", (unsigned int)frame_size); in ivf_read_frame()
85 frame_size = 0; in ivf_read_frame()
88 if (frame_size > *buffer_size) { in ivf_read_frame()
89 uint8_t *new_buffer = realloc(*buffer, 2 * frame_size); in ivf_read_frame()
93 *buffer_size = 2 * frame_size; in ivf_read_frame()
96 frame_size = 0; in ivf_read_frame()
102 if (fread(*buffer, 1, frame_size, infile) != frame_size) { in ivf_read_frame()
[all …]
Divfenc.c39 void ivf_write_frame_header(FILE *outfile, int64_t pts, size_t frame_size) { in ivf_write_frame_header() argument
42 mem_put_le32(header, (int)frame_size); in ivf_write_frame_header()
48 void ivf_write_frame_size(FILE *outfile, size_t frame_size) { in ivf_write_frame_size() argument
51 mem_put_le32(header, (int)frame_size); in ivf_write_frame_size()
/external/libopus/src/
Dopus_decoder.c70 int frame_size; member
139 st->frame_size = Fs/400; in opus_decoder_init()
205 opus_int32 len, opus_val16 *pcm, int frame_size, int decode_fec) in opus_decode_frame() argument
241 if (frame_size < F2_5) in opus_decode_frame()
247 frame_size = IMIN(frame_size, st->Fs/25*3); in opus_decode_frame()
253 frame_size = IMIN(frame_size, st->frame_size); in opus_decode_frame()
257 audiosize = st->frame_size; in opus_decode_frame()
261 audiosize = frame_size; in opus_decode_frame()
288 return frame_size; in opus_decode_frame()
318 if (audiosize > frame_size) in opus_decode_frame()
[all …]
Dopus_multistream_decoder.c152 int frame_size
190 int frame_size, in opus_multistream_decode_native() argument
206 frame_size = IMIN(frame_size, Fs/25*3); in opus_multistream_decode_native()
207 ALLOC(buf, 2*frame_size, opus_val16); in opus_multistream_decode_native()
231 } else if (ret > frame_size) in opus_multistream_decode_native()
251 …ret = opus_decode_native(dec, data, len, buf, frame_size, decode_fec, s!=st->layout.nb_streams-1, … in opus_multistream_decode_native()
259 frame_size = ret; in opus_multistream_decode_native()
268 buf, 2, frame_size); in opus_multistream_decode_native()
276 buf+1, 2, frame_size); in opus_multistream_decode_native()
286 buf, 1, frame_size); in opus_multistream_decode_native()
[all …]
Dopus_multistream_encoder.c69 int frame_size
229 int frame_size; in surround_analysis() local
239 frame_size = len*upsample; in surround_analysis()
242 if (celt_mode->shortMdctSize<<LM==frame_size) in surround_analysis()
245 ALLOC(in, frame_size+overlap, opus_val32); in surround_analysis()
247 ALLOC(freq, frame_size, opus_val32); in surround_analysis()
259 … celt_preemphasis(x, in+overlap, frame_size, 1, upsample, celt_mode->preemph, preemph_mem+c, 0); in surround_analysis()
266 for (;i<frame_size;i++) in surround_analysis()
301 OPUS_COPY(mem+c*overlap, in+frame_size, overlap); in surround_analysis()
597 int frame_size in surround_rate_allocation() argument
[all …]
Dopus_demo.c226 int frame_size, channels; in main() local
320 frame_size = sampling_rate/50; in main()
377 frame_size = sampling_rate/400; in main()
379 frame_size = sampling_rate/200; in main()
381 frame_size = sampling_rate/100; in main()
383 frame_size = sampling_rate/50; in main()
385 frame_size = sampling_rate/25; in main()
387 frame_size = 3*sampling_rate/50; in main()
593 bandwidth_string, frame_size); in main()
606 if (frame_size==sampling_rate/400) in main()
[all …]
Dopus_encoder.c406 int overlap48, int frame_size, int channels, const opus_val16 *window, opus_int32 Fs) in stereo_fade() argument
427 for (;i<frame_size;i++) in stereo_fade()
438 int overlap48, int frame_size, int channels, const opus_val16 *window, opus_int32 Fs) in gain_fade() argument
468 for (i=overlap;i<frame_size;i++) in gain_fade()
506 static opus_int32 user_bitrate_to_bitrate(OpusEncoder *st, int frame_size, int max_data_bytes) in user_bitrate_to_bitrate() argument
508 if(!frame_size)frame_size=st->Fs/400; in user_bitrate_to_bitrate()
510 return 60*st->Fs/frame_size + st->Fs*st->channels; in user_bitrate_to_bitrate()
512 return max_data_bytes*8*st->Fs/frame_size; in user_bitrate_to_bitrate()
800 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs) in frame_size_select() argument
803 if (frame_size<Fs/400) in frame_size_select()
[all …]
Dopus_private.h95 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs);
97 opus_int32 compute_frame_size(const void *analysis_pcm, int frame_size,
105 opus_int32 opus_encode_native(OpusEncoder *st, const opus_val16 *pcm, int frame_size,
110 opus_val16 *pcm, int frame_size, int decode_fec, int self_delimited,
/external/libvpx/libvpx/vpx_scale/generic/
Dyv12config.c60 const int frame_size = yplane_size + 2 * uvplane_size; in vp8_yv12_realloc_frame_buffer() local
63 ybf->buffer_alloc = (uint8_t *)vpx_memalign(32, frame_size); in vp8_yv12_realloc_frame_buffer()
64 ybf->buffer_alloc_sz = frame_size; in vp8_yv12_realloc_frame_buffer()
67 if (!ybf->buffer_alloc || ybf->buffer_alloc_sz < frame_size) in vp8_yv12_realloc_frame_buffer()
95 ybf->frame_size = frame_size; in vp8_yv12_realloc_frame_buffer()
172 const uint64_t frame_size = (1 + use_highbitdepth) * in vpx_realloc_frame_buffer() local
175 const uint64_t frame_size = yplane_size + 2 * uvplane_size + in vpx_realloc_frame_buffer() local
180 const uint64_t frame_size = in vpx_realloc_frame_buffer() local
183 const uint64_t frame_size = yplane_size + 2 * uvplane_size; in vpx_realloc_frame_buffer() local
191 const uint64_t external_frame_size = frame_size + align_addr_extra_size; in vpx_realloc_frame_buffer()
[all …]
/external/libopus/celt/
Dmodes.c89 static opus_int16 *compute_ebands(opus_int32 Fs, int frame_size, int res, int *nbEBands) in compute_ebands() argument
95 if (Fs == 400*(opus_int32)frame_size) in compute_ebands()
140 if (eBands[*nbEBands] > frame_size) in compute_ebands()
141 eBands[*nbEBands] = frame_size; in compute_ebands()
223 CELTMode *opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error) in opus_custom_mode_create() argument
246 … (frame_size<<j) == static_mode_list[i]->shortMdctSize*static_mode_list[i]->nbShortMdcts) in opus_custom_mode_create()
270 if (frame_size < 40 || frame_size > 1024 || frame_size%2!=0) in opus_custom_mode_create()
277 if ((opus_int32)frame_size*1000 < Fs) in opus_custom_mode_create()
284 if ((opus_int32)frame_size*75 >= Fs && (frame_size%16)==0) in opus_custom_mode_create()
287 } else if ((opus_int32)frame_size*150 >= Fs && (frame_size%8)==0) in opus_custom_mode_create()
[all …]
Dopus_custom_demo.c51 opus_int32 frame_size, channels, rate; in main() local
72 frame_size = atoi(argv[3]); in main()
73 mode = opus_custom_mode_create(rate, frame_size, NULL); in main()
128 in = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); in main()
129 out = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); in main()
134 err = fread(in, sizeof(short), frame_size*channels, fin); in main()
137 len = opus_custom_encode(enc, in, frame_size, data, bytes_per_packet); in main()
168 ret = opus_custom_decode(dec, NULL, len, out, frame_size); in main()
170 ret = opus_custom_decode(dec, data, len, out, frame_size); in main()
200 rmsd = sqrt(rmsd/(1.0*frame_size*channels*count)); in main()
/external/webrtc/webrtc/sound/
Dalsasoundsystem.cc78 size_t frame_size, in AlsaStream() argument
84 frame_size_(frame_size), in AlsaStream()
217 size_t frame_size() { in frame_size() function in rtc::AlsaStream
240 size_t frame_size, in AlsaInputStream() argument
244 : stream_(alsa, handle, frame_size, wait_timeout_ms, flags, freq), in AlsaInputStream()
292 size_t size = avail * stream_.frame_size(); in OnHaveWork()
313 read * stream_.frame_size(), in OnHaveWork()
345 size_t frame_size, in AlsaOutputStream() argument
349 : stream_(alsa, handle, frame_size, wait_timeout_ms, flags, freq) { in AlsaOutputStream()
367 if (size % stream_.frame_size() != 0) { in WriteSamples()
[all …]
/external/speex/include/speex/
Dspeex_stereo.h72 void speex_encode_stereo(float *data, int frame_size, SpeexBits *bits);
75 void speex_encode_stereo_int(spx_int16_t *data, int frame_size, SpeexBits *bits);
78 void speex_decode_stereo(float *data, int frame_size, SpeexStereoState *stereo);
81 void speex_decode_stereo_int(spx_int16_t *data, int frame_size, SpeexStereoState *stereo);
/external/libopus/tests/
Dtest_opus_encode.c248 int bw,len,out_samples,frame_size; in run_test1() local
249 frame_size=frame[j]; in run_test1()
280 len = opus_encode(enc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); in run_test1()
299 if(out_samples!=frame_size)test_failed(); in run_test1()
303 … out_samples = opus_decode(dec_err[0], packet, len, out2buf, frame_size, (fast_rand()&3)!=0); in run_test1()
304 if(out_samples!=frame_size)test_failed(); in run_test1()
307 i+=frame_size; in run_test1()
338 int pred,len,out_samples,frame_size,loss; in run_test1() local
341 frame_size=frame[j]; in run_test1()
357 len = opus_multistream_encode(MSenc, &inbuf[i<<1], frame_size, packet, MAX_PACKET); in run_test1()
[all …]
/external/libopus/include/
Dopus_custom.h121 …N_UNUSED_RESULT OpusCustomMode *opus_custom_mode_create(opus_int32 Fs, int frame_size, int *error);
206 int frame_size,
227 int frame_size,
308 int frame_size
325 int frame_size
Dopus.h266 int frame_size,
307 int frame_size,
467 int frame_size,
492 int frame_size,
606 OPUS_EXPORT void opus_pcm_soft_clip(float *pcm, int frame_size, int channels, float *softclip_mem);
/external/libvpx/libvpx/test/
Dvpx_scale_test.cc38 memset(img_.buffer_alloc, kBufFiller, img_.frame_size); in ResetImage()
49 memset(ref_img_.buffer_alloc, kBufFiller, ref_img_.frame_size); in ResetImage()
54 memset(cpy_img_.buffer_alloc, kBufFiller, cpy_img_.frame_size); in ResetImage()
135 EXPECT_EQ(ref_img_.frame_size, img_.frame_size); in ReferenceCopyFrame()
156 EXPECT_EQ(ref_img_.frame_size, actual.frame_size); in CompareImages()
158 ref_img_.frame_size)); in CompareImages()
/external/libopus/doc/
Dtrivial_example.c115 int frame_size; in main() local
138 frame_size = opus_decode(decoder, cbits, nbBytes, out, MAX_FRAME_SIZE, 0); in main()
139 if (frame_size<0) in main()
146 for(i=0;i<CHANNELS*frame_size;i++) in main()
152 fwrite(pcm_bytes, sizeof(short), frame_size*CHANNELS, fout); in main()
/external/webrtc/webrtc/tools/frame_analyzer/
Dvideo_quality_analysis.cc98 int frame_size = GetI420FrameSize(width, height); in ExtractFrameFromYuvFile() local
99 int offset = frame_number * frame_size; // Calculate offset for the frame. in ExtractFrameFromYuvFile()
112 size_t bytes_read = fread(result_frame, 1, frame_size, input_file); in ExtractFrameFromYuvFile()
113 if (bytes_read != static_cast<size_t>(frame_size) && in ExtractFrameFromYuvFile()
128 int frame_size = GetI420FrameSize(width, height); in ExtractFrameFromY4mFile() local
129 int frame_offset = frame_number * frame_size; in ExtractFrameFromY4mFile()
146 if (bytes_read != static_cast<size_t>(frame_size) && ferror(input_file)) { in ExtractFrameFromY4mFile()
166 size_t bytes_read = fread(result_frame, 1, frame_size, input_file); in ExtractFrameFromY4mFile()
167 if (bytes_read != static_cast<size_t>(frame_size) && in ExtractFrameFromY4mFile()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dneteq_stereo_unittest.cc28 int frame_size; member
53 frame_size_ms_(GetParam().frame_size), in NetEqStereoTest()
385 for (int frame_size = 10; frame_size <= 60; frame_size += 10) { in GetTestParameters() local
387 p.frame_size = frame_size; in GetTestParameters()
403 *os << "{frame_size = " << p.frame_size << in PrintTo()
/external/opencv3/samples/python2/
Dvideo.py46 self.frame_size = (640, 480)
50 self.frame_size = (w, h)
54 self.frame_size = (w, h)
55 self.bg = cv2.resize(self.bg, self.frame_size)
63 w, h = self.frame_size
85 w, h = self.frame_size

12345