HomeSort by relevance Sort by last modified time
    Searched refs:frames (Results 1 - 25 of 536) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/media/base/
audio_block_fifo_unittest.cc 47 EXPECT_GT(bus->channel(i)[bus->frames() - 1], 0.0f);
58 const int frames = 128; local
60 AudioBlockFifo fifo(channels, frames, blocks);
62 EXPECT_EQ(frames * blocks, fifo.GetUnfilledFrames());
68 const int frames = 128; local
70 AudioBlockFifo fifo(channels, frames, blocks);
72 // Push frames / 2 of data until FIFO is full.
73 PushAndVerify(&fifo, frames / 2, channels, frames, frames * blocks)
89 const int frames = 441; local
153 static const int frames = 441; local
172 const int frames = 441; local
    [all...]
audio_bus.h 29 // Creates a new AudioBus and allocates |channels| of length |frames|. Uses
31 static scoped_ptr<AudioBus> Create(int channels, int frames);
43 int frames, const std::vector<float*>& channel_data);
48 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data);
54 // and frames.
55 static int CalculateMemorySize(int channels, int frames);
62 // any unfilled frames when |frames| is less than frames().
63 void FromInterleaved(const void* source, int frames, int bytes_per_sample)
96 int frames() const { return frames_; } function in class:media::AudioBus
    [all...]
audio_pull_fifo.cc 14 AudioPullFifo::AudioPullFifo(int channels, int frames, const ReadCB& read_cb)
16 fifo_(AudioBus::Create(channels, frames)),
17 fifo_index_(frames) {}
22 DCHECK_LE(frames_to_consume, destination->frames());
31 // Get the remaining audio frames from the producer using the callback.
33 DCHECK_EQ(fifo_index_, fifo_->frames());
47 void AudioPullFifo::Clear() { fifo_index_ = fifo_->frames(); }
52 int frames = std::min(frames_to_provide, fifo_->frames() - fifo_index_); local
53 if (frames <= 0
    [all...]
audio_buffer_queue.h 36 // Reads a maximum of |frames| frames into |dest| from the current position.
37 // Returns the number of frames read. The current position will advance by the
38 // amount of frames read. |dest_frame_offset| specifies a starting offset into
39 // |dest|. On each call, the frames are converted from their source format
41 int ReadFrames(int frames, int dest_frame_offset, AudioBus* dest);
43 // Copies up to |frames| frames from current position to |dest|. Returns
44 // number of frames copied. Doesn't advance current position. Starts at
46 // a starting offset into |dest|. On each call, the frames are converted fro
58 int frames() const { return frames_; } function in class:media::AudioBufferQueue
    [all...]
audio_fifo_unittest.cc 31 EXPECT_EQ(fifo.frames(), 0);
42 EXPECT_EQ(fifo.frames(), 0);
44 EXPECT_EQ(fifo.frames(), bus->frames());
50 EXPECT_EQ(fifo.frames(), 0);
52 EXPECT_EQ(fifo.frames(), bus->frames());
65 EXPECT_EQ(fifo.frames(), kMaxFrameCount);
70 fifo.Consume(bus.get(), 0, bus->frames());
71 EXPECT_TRUE(fifo.frames() == bus->frames())
    [all...]
audio_buffer_queue_unittest.cc 22 int frames,
28 for (int i = offset; i < offset + frames; ++i) {
40 int frames) {
47 frames,
54 EXPECT_EQ(0, buffer.frames());
57 EXPECT_EQ(8, buffer.frames());
59 EXPECT_EQ(0, buffer.frames());
62 EXPECT_EQ(8, buffer.frames());
70 EXPECT_EQ(8, buffer.frames());
73 EXPECT_EQ(16, buffer.frames());
189 const int frames = 4; local
216 const int frames = 6; local
318 const int frames = 60; local
    [all...]
audio_bus.cc 24 static int CalculateMemorySizeInternal(int channels, int frames,
29 ((frames * sizeof(float) + AudioBus::kChannelAlignment - 1) &
43 int frames, AudioBus* dest,
51 for (int i = start_frame, offset = ch; i < start_frame + frames;
64 int frames, void* dst, Fixed min, Fixed max) {
71 for (int i = start_frame, offset = ch; i < start_frame + frames;
86 static void ValidateConfig(int channels, int frames) {
87 CHECK_GT(frames, 0);
92 static void CheckOverflow(int start_frame, int frames, int total_frames) {
94 CHECK_GE(frames, 0)
197 ValidateConfig(static_cast<int>(channel_data_.size()), frames); local
    [all...]
audio_buffer_queue.cc 31 // Update the |frames_| counter since we have added frames.
36 int AudioBufferQueue::ReadFrames(int frames,
39 DCHECK_GE(dest->frames(), frames + dest_frame_offset);
40 return InternalRead(frames, true, 0, dest_frame_offset, dest);
43 int AudioBufferQueue::PeekFrames(int frames,
47 DCHECK_GE(dest->frames(), frames);
49 frames, false, source_frame_offset, dest_frame_offset, dest);
52 void AudioBufferQueue::SeekFrames(int frames) {
    [all...]
audio_fifo.h 14 // The maximum number of audio frames in the FIFO is set at construction and
20 // Creates a new AudioFifo and allocates |channels| of length |frames|.
21 AudioFifo(int channels, int frames);
28 // Consumes |frames_to_consume| audio frames from the FIFO and copies
31 // frames or if there is insufficient space in |destination| to store the
32 // frames.
38 // Number of actual audio frames in the FIFO.
39 int frames() const;
48 // This value is set by |frames| in the constructor.
audio_buffer_unittest.cc 16 int frames,
21 const float v = start_offset + start + ch * bus->frames() * increment;
22 for (int i = offset; i < offset + frames; ++i) {
29 static void VerifyBus(AudioBus* bus, int frames, float start, float increment) {
30 VerifyBusWithOffset(bus, 0, frames, start, 0, increment);
36 const int frames = kSampleRate / 10; local
45 frames,
47 EXPECT_EQ(frames, buffer->frame_count());
51 scoped_ptr<AudioBus> bus = AudioBus::Create(channels, frames);
53 // Verify all frames before trimming
218 const int frames = 10; local
242 const int frames = 10; local
266 const int frames = 20; local
289 const int frames = 20; local
312 const int frames = 20; local
346 const int frames = 100; local
374 const int frames = kSampleRate \/ 100; local
392 const int frames = kSampleRate \/ 10; local
    [all...]
audio_hash_unittest.cc 31 wrapped_bus->set_frames(audio_bus->frames());
54 hash_one.Update(bus_one_.get(), bus_one_->frames());
57 hash_two.Update(bus_one_.get(), bus_one_->frames());
65 original_hash.Update(bus_one_.get(), bus_one_->frames());
71 swapped_hash.Update(bus_one_.get(), bus_one_->frames());
79 original_hash.Update(bus_one_.get(), bus_one_->frames());
84 swapped_ch_bus->set_frames(bus_one_->frames());
89 swapped_hash.Update(swapped_ch_bus.get(), swapped_ch_bus->frames());
97 original_hash.Update(bus_one_.get(), bus_one_->frames());
98 original_hash.Update(bus_two_.get(), bus_two_->frames());
    [all...]
audio_block_fifo.h 22 // of memory can store |channels| of length |frames| data.
23 AudioBlockFifo(int channels, int frames, int blocks);
29 void Push(const void* source, int frames, int bytes_per_sample);
42 // Number of available frames of data in the FIFO.
45 // Number of unfilled frames in the whole FIFO.
58 // Maximum number of frames of data one block of memory can contain.
59 // This value is set by |frames| in the constructor.
multi_channel_resampler.cc 45 void MultiChannelResampler::Resample(int frames, AudioBus* audio_bus) {
50 resamplers_[0]->Resample(frames, audio_bus->channel(0));
55 // channel. To ensure this, we chunk the number of requested frames into
59 while (output_frames_ready_ < frames) {
61 int frames_this_time = std::min(frames - output_frames_ready_, chunk_size);
72 // number of frames.
82 int frames,
93 DCHECK_EQ(frames, wrapped_resampler_audio_bus_->frames());
97 sizeof(*wrapped_resampler_audio_bus_->channel(channel)) * frames);
    [all...]
  /external/chromium_org/net/websockets/
websocket_deflate_predictor_impl_test.cc 20 ScopedVector<WebSocketFrame> frames; local
21 frames.push_back(new WebSocketFrame(WebSocketFrameHeader::kOpCodeText));
22 Result result = predictor.Predict(frames, 0);
websocket_deflate_stream_test.cc 75 void AppendTo(ScopedVector<WebSocketFrame>* frames,
84 frames->push_back(frame.release());
87 void AppendTo(ScopedVector<WebSocketFrame>* frames,
93 frames->push_back(frame.release());
117 ADD_FAILURE() << "There are missing frames to be input.";
121 ADD_FAILURE() << "There are extra written frames.";
127 virtual Result Predict(const ScopedVector<WebSocketFrame>& frames,
133 ADD_FAILURE() << "Control frames should not be recorded.";
152 ADD_FAILURE() << "Control frames should not be recorded.";
172 ADD_FAILURE() << "There are missing frames to be written."
336 ScopedVector<WebSocketFrame>* frames() { return &frames_; } function in class:net::__anon14448::WriteFramesStub
346 ScopedVector<WebSocketFrame> frames; local
363 ScopedVector<WebSocketFrame> frames; local
381 ScopedVector<WebSocketFrame> frames; local
412 ScopedVector<WebSocketFrame> frames; local
445 ScopedVector<WebSocketFrame> frames; local
464 ScopedVector<WebSocketFrame> frames; local
502 ScopedVector<WebSocketFrame> frames; local
539 ScopedVector<WebSocketFrame> frames; local
565 ScopedVector<WebSocketFrame> frames; local
590 ScopedVector<WebSocketFrame> frames; local
621 ScopedVector<WebSocketFrame> frames; local
649 ScopedVector<WebSocketFrame> frames; local
676 ScopedVector<WebSocketFrame> frames; local
710 ScopedVector<WebSocketFrame> frames; local
756 ScopedVector<WebSocketFrame> frames; local
793 ScopedVector<WebSocketFrame> frames; local
817 ScopedVector<WebSocketFrame> frames; local
841 ScopedVector<WebSocketFrame> frames; local
872 ScopedVector<WebSocketFrame> frames; local
905 ScopedVector<WebSocketFrame> frames; local
938 ScopedVector<WebSocketFrame> frames; local
965 ScopedVector<WebSocketFrame> frames; local
995 ScopedVector<WebSocketFrame> frames; local
1005 ScopedVector<WebSocketFrame> frames; local
1020 ScopedVector<WebSocketFrame> frames; local
1045 ScopedVector<WebSocketFrame> frames; local
1070 ScopedVector<WebSocketFrame> frames; local
1097 ScopedVector<WebSocketFrame> frames; local
1118 ScopedVector<WebSocketFrame> frames; local
1163 ScopedVector<WebSocketFrame> frames; local
1202 ScopedVector<WebSocketFrame> frames; local
1230 ScopedVector<WebSocketFrame> frames; local
1261 ScopedVector<WebSocketFrame> frames; local
    [all...]
websocket_deflate_stream.h 31 // data message frames, the control frame can overtake data frames.
32 // Say there are frames df1, df2 and cf, df1 and df2 are frames of a
34 // data frames may follow cf.
49 virtual int ReadFrames(ScopedVector<WebSocketFrame>* frames,
51 virtual int WriteFrames(ScopedVector<WebSocketFrame>* frames,
72 void OnReadComplete(ScopedVector<WebSocketFrame>* frames,
76 // This function deflates |frames| and stores the result to |frames| itself
    [all...]
websocket_deflate_stream.cc 58 int WebSocketDeflateStream::ReadFrames(ScopedVector<WebSocketFrame>* frames,
61 frames,
64 base::Unretained(frames),
69 DCHECK(!frames->empty());
71 return InflateAndReadIfNecessary(frames, callback);
74 int WebSocketDeflateStream::WriteFrames(ScopedVector<WebSocketFrame>* frames,
76 int result = Deflate(frames);
79 if (frames->empty())
81 return stream_->WriteFrames(frames, callback);
95 ScopedVector<WebSocketFrame>* frames,
    [all...]
  /external/chromium_org/media/filters/
audio_clock.cc 41 // Move frames from |buffered_| into the computed timestamp based on
70 scaled_frames += (buffered_[i].frames * buffered_[i].playback_rate);
103 frames_until_timestamp += buffered_[i].frames;
107 // Calculate upper bound on media time for current block of buffered frames.
108 double delta_us = buffered_[i].frames * buffered_[i].playback_rate *
112 // Determine amount of media time to convert to frames for current block. If
113 // target timestamp falls within current block, scale the amount of frames
117 buffered_[i].frames * (timestamp_us - media_time_us) / delta_us;
122 frames_until_timestamp += buffered_[i].frames;
129 AudioClock::AudioData::AudioData(int64_t frames, float playback_rate
    [all...]
  /external/chromium_org/v8/test/mjsunit/regress/
regress-2564.js 33 Error.prepareStackTrace = function(error, frames) {
36 assertEquals(5, frames.length);
38 for (var i = 0; i < frames.length - 1; i++) {
39 assertEquals(o[i], frames[i].getFunction());
40 assertEquals(o, frames[i].getThis());
42 assertEquals(undefined, frames[i].receiver);
43 assertEquals(undefined, frames[i].fun);
44 assertEquals(undefined, frames[i].pos);
64 Error.prepareStackTrace = function(error, frames) {
67 assertEquals(5, frames.length)
    [all...]
  /external/chromium_org/media/audio/
virtual_audio_output_stream.cc 80 const int frames = callback_->OnMoreData(audio_bus, AudioBuffersState()); local
81 if (frames < audio_bus->frames())
82 audio_bus->ZeroFramesPartial(frames, audio_bus->frames() - frames);
84 return frames > 0 ? volume_ : 0;
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
ScriptCallStack.cpp 40 PassRefPtrWillBeRawPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCallFrame>& frames)
42 return adoptRefWillBeNoop(new ScriptCallStack(frames));
45 ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames)
47 m_frames.swap(frames);
73 RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBuilder::Array<TypeBuilder::Console::CallFrame>::create(); local
75 frames->addItem(m_frames.at(i).buildInspectorObject());
76 return frames;
  /external/chromium_org/third_party/webrtc/common_audio/resampler/
push_sinc_resampler.cc 80 void PushSincResampler::Run(int frames, float* destination) {
83 assert(source_available_ == frames);
88 memset(destination, 0, frames * sizeof(float));
94 memcpy(destination, source_ptr_, frames * sizeof(float));
96 for (int i = 0; i < frames; ++i)
99 source_available_ -= frames;
  /external/e2fsprogs/debian/scripts/
test-backtrace 15 int frames;
17 frames = backtrace(stack_syms, 32);
18 backtrace_symbols_fd(stack_syms, frames, 0);
  /external/chromium_org/tools/android/heap_profiler/
heap_profiler_unittest.cc 26 uintptr_t frames[HEAP_PROFILER_MAX_DEPTH]; member in struct:__anon21038::HeapProfilerTest::StackTrace
34 st.frames[i] = base + i * 0x10UL;
49 EXPECT_EQ(st.frames[j], alloc.st->frames[j])
90 heap_profiler_alloc((void*)0x1000, 1024, st1.frames, st1.depth, 0);
91 heap_profiler_alloc((void*)0x2000, 2048, st1.frames, st1.depth, 0);
103 heap_profiler_alloc((void*)0x1000, 1024, st1.frames, st1.depth, 0);
104 heap_profiler_alloc((void*)0x2000, 2048, st2.frames, st2.depth, 0);
105 heap_profiler_alloc((void*)0x3000, 32, st1.frames, st1.depth, 0);
117 heap_profiler_alloc((void*)0x1000, 1024, st1.frames, st1.depth, 0)
407 uintptr_t frames[1]; local
    [all...]
  /bionic/libc/bionic/
debug_stacktrace.cpp 85 uintptr_t* frames; member in struct:stack_crawl_state_t
90 stack_crawl_state_t(uintptr_t* frames, size_t max_depth)
91 : frames(frames), frame_count(0), max_depth(max_depth), have_skipped_self(false) {
124 state->frames[state->frame_count++] = ip;
128 __LIBC_HIDDEN__ int get_backtrace(uintptr_t* frames, size_t max_depth) {
131 stack_crawl_state_t state(frames, max_depth);
136 __LIBC_HIDDEN__ void log_backtrace(uintptr_t* frames, size_t frame_count) {
140 if (frames == NULL) {
142 frames = self_bt
    [all...]

Completed in 815 milliseconds

1 2 3 4 5 6 7 8 91011>>