/external/chromium_org/media/base/ |
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_bus.h | 28 // Creates a new AudioBus and allocates |channels| of length |frames|. Uses 30 static scoped_ptr<AudioBus> Create(int channels, int frames); 42 int frames, const std::vector<float*>& channel_data); 47 static scoped_ptr<AudioBus> WrapMemory(int channels, int frames, void* data); 53 // and frames. 54 static int CalculateMemorySize(int channels, int frames); 61 // any unfilled frames when |frames| is less than frames(). 62 void FromInterleaved(const void* source, int frames, int bytes_per_sample) 95 int frames() const { return frames_; } function in class:media::AudioBus [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_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.cc | 38 // Update the |frames_| counter since we have added frames. 43 int AudioBufferQueue::ReadFrames(int frames, 46 DCHECK_GE(dest->frames(), frames + dest_frame_offset); 47 return InternalRead(frames, true, 0, dest_frame_offset, dest); 50 int AudioBufferQueue::PeekFrames(int frames, 54 DCHECK_GE(dest->frames(), frames); 56 frames, false, source_frame_offset, dest_frame_offset, dest); 59 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_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_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_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...] |
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 | 74 void AppendTo(ScopedVector<WebSocketFrame>* frames, 83 frames->push_back(frame.release()); 86 void AppendTo(ScopedVector<WebSocketFrame>* frames, 92 frames->push_back(frame.release()); 116 ADD_FAILURE() << "There are missing frames to be input."; 120 ADD_FAILURE() << "There are extra written frames."; 126 virtual Result Predict(const ScopedVector<WebSocketFrame>& frames, 132 ADD_FAILURE() << "Control frames should not be recorded."; 151 ADD_FAILURE() << "Control frames should not be recorded."; 171 ADD_FAILURE() << "There are missing frames to be written." 335 ScopedVector<WebSocketFrame>* frames() { return &frames_; } function in class:net::__anon13828::WriteFramesStub 345 ScopedVector<WebSocketFrame> frames; local 362 ScopedVector<WebSocketFrame> frames; local 380 ScopedVector<WebSocketFrame> frames; local 411 ScopedVector<WebSocketFrame> frames; local 444 ScopedVector<WebSocketFrame> frames; local 463 ScopedVector<WebSocketFrame> frames; local 501 ScopedVector<WebSocketFrame> frames; local 538 ScopedVector<WebSocketFrame> frames; local 564 ScopedVector<WebSocketFrame> frames; local 589 ScopedVector<WebSocketFrame> frames; local 620 ScopedVector<WebSocketFrame> frames; local 648 ScopedVector<WebSocketFrame> frames; local 675 ScopedVector<WebSocketFrame> frames; local 709 ScopedVector<WebSocketFrame> frames; local 755 ScopedVector<WebSocketFrame> frames; local 792 ScopedVector<WebSocketFrame> frames; local 816 ScopedVector<WebSocketFrame> frames; local 840 ScopedVector<WebSocketFrame> frames; local 871 ScopedVector<WebSocketFrame> frames; local 904 ScopedVector<WebSocketFrame> frames; local 937 ScopedVector<WebSocketFrame> frames; local 964 ScopedVector<WebSocketFrame> frames; local 994 ScopedVector<WebSocketFrame> frames; local 1004 ScopedVector<WebSocketFrame> frames; local 1019 ScopedVector<WebSocketFrame> frames; local 1044 ScopedVector<WebSocketFrame> frames; local 1069 ScopedVector<WebSocketFrame> frames; local 1096 ScopedVector<WebSocketFrame> frames; local 1117 ScopedVector<WebSocketFrame> frames; local 1162 ScopedVector<WebSocketFrame> frames; local 1201 ScopedVector<WebSocketFrame> frames; local 1229 ScopedVector<WebSocketFrame> frames; local 1260 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 | 19 void AudioClock::WroteAudio(int frames, 25 DCHECK_GE(frames, 0); 32 PushBufferedAudio(frames, playback_rate, timestamp); 37 void AudioClock::WroteSilence(int frames, int delay_frames) { 38 DCHECK_GE(frames, 0); 45 PushBufferedAudio(frames, 0, kNoTimestamp()); 53 silence_frames += buffered_audio_[i].frames; 57 // Multiply by playback rate as frames represent time-scaled audio. 60 ((buffered_audio_[i].frames * buffered_audio_[i].playback_rate) + 78 if (buffered_audio_[i].frames <= delay_frames) [all...] |
audio_clock.h | 24 // |frames| amount of audio data scaled to |playback_rate| was written. 27 void WroteAudio(int frames, 32 // |frames| amount of silence was written. 34 void WroteSilence(int frames, int delay_frames); 47 void PushBufferedAudio(int frames, 60 BufferedAudio(int frames, 64 int frames; member in struct:media::AudioClock::BufferedAudio
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
ScriptCallStack.cpp | 39 PassRefPtrWillBeRawPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCallFrame>& frames) 41 return adoptRefWillBeNoop(new ScriptCallStack(frames)); 44 ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames) 46 m_frames.swap(frames); 62 RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBuilder::Array<TypeBuilder::Console::CallFrame>::create(); local 64 frames->addItem(m_frames.at(i).buildInspectorObject()); 65 return frames;
|
/external/chromium_org/remoting/ios/bridge/ |
frame_consumer_bridge_unittest.cc | 43 frames.push(buffer); 53 while (!frames.empty()) { 54 frames.pop(); 66 std::queue<webrtc::DesktopFrame*> frames; member in class:remoting::FrameProducerTester 94 ASSERT_EQ(0, frameProducer_->frames.size()); 96 ASSERT_EQ(1, frameProducer_->frames.size()); 99 frame = frameProducer_->frames.front(); 100 frameProducer_->frames.pop(); 101 ASSERT_EQ(0, frameProducer_->frames.size()); 104 ASSERT_EQ(1, frameProducer_->frames.size()) [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/replicaisland/src/com/replica/replicaisland/ |
SpriteAnimation.java | 45 final FixedSizeArray<AnimationFrame> frames = mFrames; local 46 assert frames.getCount() == frames.getCapacity(); 47 final int frameCount = frames.getCount(); 48 result = frames.get(frameCount - 1); 58 // When there are very few frames it's actually slower to do a binary search 66 result = frames.get(index); 69 AnimationFrame frame = frames.get(x);
|
/external/srec/srec/ca/ |
utt_proc.c | 40 int ii, frames = 0; local 42 frames = get_background_statistics(hUtt->data.gen_utt.frame, 47 /* log_report ("UTT (%d): ", frames); */ 54 return (frames);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAnimationDrawable.java | 14 private List<Drawable> frames = new ArrayList<Drawable>(); field in class:ShadowAnimationDrawable 19 frames.add(frame); 24 return frames.size(); 37 return frames;
|
/external/qemu/distrib/sdl-1.2.15/test/ |
testvidinfo.c | 80 Uint32 frames; local 95 frames = 0; 102 ++frames; 110 ++frames; 118 ++frames; 123 printf("%d fills and flips in %2.2f seconds, %2.2f FPS\n", frames, seconds, (float)frames / seconds); 125 printf("%d fills and flips in zero seconds!n", frames); 148 frames = RunBlitTests(screen, bmp, NUM_BLITS); 152 printf("%d blits / %d updates in %2.2f seconds, %2.2f FPS\n", NUM_BLITS*frames, frames, seconds, (float)frames / seconds) [all...] |