Searched refs:frame_count (Results 1 - 25 of 72) sorted by relevance

123

/external/chromium_org/media/base/
H A Daudio_timestamp_helper.cc29 void AudioTimestampHelper::AddFrames(int frame_count) { argument
30 DCHECK_GE(frame_count, 0);
32 frame_count_ += frame_count;
39 base::TimeDelta AudioTimestampHelper::GetFrameDuration(int frame_count) const {
40 DCHECK_GE(frame_count, 0);
41 base::TimeDelta end_timestamp = ComputeTimestamp(frame_count_ + frame_count);
68 int64 frame_count) const {
69 DCHECK_GE(frame_count, 0);
71 double frames_us = microseconds_per_frame_ * frame_count;
H A Daudio_timestamp_helper.h37 // Adds |frame_count| to the frame counter.
40 void AddFrames(int frame_count);
46 // Gets the duration if |frame_count| frames were added to the current
50 base::TimeDelta GetFrameDuration(int frame_count) const;
57 base::TimeDelta ComputeTimestamp(int64 frame_count) const;
H A Daudio_splicer_unittest.cc47 int frames = buffer->frame_count();
76 EXPECT_EQ(input_1->frame_count(), output_1->frame_count());
90 EXPECT_EQ(input_2->frame_count(), output_2->frame_count());
96 EXPECT_EQ(input_3->frame_count(), output_3->frame_count());
122 EXPECT_EQ(input_2->frame_count(), output_2->frame_count());
140 EXPECT_EQ(input_1->frame_count(), output_
[all...]
H A Daudio_buffer.h28 // number of buffers must be equal to |channel_count|. |frame_count| is the
29 // number of frames in each buffer. |data| must not be null and |frame_count|
35 int frame_count,
40 // Create an AudioBuffer with |frame_count| frames. Buffer is allocated, but
44 int frame_count);
46 // Create an empty AudioBuffer with |frame_count| frames.
49 int frame_count,
82 int frame_count() const { return adjusted_frame_count_; } function in class:media::AudioBuffer
111 int frame_count,
H A Daudio_timestamp_helper_unittest.cc31 void TestGetFramesToTargetRange(int frame_count, int start, int end) { argument
33 EXPECT_EQ(frame_count, FramesToTarget(i)) << " Failure for timestamp "
75 int frame_count = 5; local
78 base::TimeDelta duration = helper_.GetFrameDuration(frame_count);
82 helper_.AddFrames(frame_count);
H A Daudio_buffer.cc21 int frame_count,
28 adjusted_frame_count_(frame_count),
30 end_of_stream_(!create_buffer && data == NULL && frame_count == 0),
35 CHECK_GE(frame_count, 0);
38 int data_size = frame_count * bytes_per_channel;
86 int frame_count,
91 CHECK_GT(frame_count, 0); // Otherwise looks like an EOF buffer.
95 frame_count,
105 int frame_count) {
106 CHECK_GT(frame_count,
19 AudioBuffer(SampleFormat sample_format, int channel_count, int frame_count, bool create_buffer, const uint8* const* data, const base::TimeDelta timestamp, const base::TimeDelta duration) argument
83 CopyFrom( SampleFormat sample_format, int channel_count, int frame_count, const uint8* const* data, const base::TimeDelta timestamp, const base::TimeDelta duration) argument
103 CreateBuffer(SampleFormat sample_format, int channel_count, int frame_count) argument
117 CreateEmptyBuffer( int channel_count, int frame_count, const base::TimeDelta timestamp, const base::TimeDelta duration) argument
[all...]
H A Daudio_splicer.cc49 DCHECK_GT(input->frame_count(), 0);
100 if (input->frame_count() <= frames_to_skip) {
126 output_timestamp_helper_.AddFrames(buffer->frame_count());
H A Daudio_buffer_queue.cc39 frames_ += buffer_in->frame_count();
86 buffer->frame_count() - current_buffer_offset;
116 if (current_buffer_offset == buffer->frame_count()) {
156 static_cast<double>((*buffer)->frame_count());
H A Daudio_buffer_unittest.cc33 EXPECT_EQ(frames, buffer->frame_count());
54 EXPECT_EQ(16, buffer->frame_count()); // 2 channels of 8-bit data
58 EXPECT_EQ(2, buffer->frame_count()); // now 4 channels of 32-bit data
224 EXPECT_EQ(frames, buffer->frame_count());
251 EXPECT_EQ(frames, buffer->frame_count());
261 EXPECT_EQ(buffer->frame_count(), frames - 10);
269 EXPECT_EQ(buffer->frame_count(), frames - 20);
277 EXPECT_EQ(buffer->frame_count(), frames - 70);
285 EXPECT_EQ(buffer->frame_count(), 0);
/external/srec/audio/AudioIn/UNIX/include/
H A Daudioinwrapper.h35 int AudioRead(short *buffer, int frame_count);
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dstacktrace_android-inl.h55 size_t frame_count; member in struct:stack_crawl_state_t
62 frame_count(0),
93 state->frames[state->frame_count++] = ip;
94 if (state->frame_count >= state->max_depth)
120 return state.frame_count;
/external/chromium_org/content/browser/speech/endpointer/
H A Dendpointer_unittest.cc38 for (int frame_count = 0; frame_count < kNumFrames; ++frame_count) {
41 if ((frame_count >= 50) && (frame_count < 100)) {
57 if (20 == frame_count)
59 if (70 == frame_count)
61 if (120 == frame_count)
/external/chromium_org/cc/debug/
H A Dframe_rate_counter.cc102 int frame_count = 0; local
123 frame_count++;
125 } else if (frame_count) {
130 if (frame_count) {
132 average_fps = frame_count / frame_times_total;
/external/chromium_org/base/debug/
H A Dstack_trace_android.cc19 frame_count(0),
24 size_t frame_count; member in struct:__anon3706::StackCrawlState
49 state->frames[state->frame_count++] = ip;
50 if (state->frame_count >= state->max_depth)
75 count_ = state.frame_count;
/external/chromium_org/ppapi/tests/
H A Dtest_audio_config.cc62 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( local
64 ASSERT_TRUE(frame_count >= PP_AUDIOMINSAMPLEFRAMECOUNT);
65 ASSERT_TRUE(frame_count <= PP_AUDIOMAXSAMPLEFRAMECOUNT);
68 instance_->pp_instance(), sample_rate, frame_count);
72 ASSERT_EQ(frame_count, audio_config_interface_->GetSampleFrameCount(ac));
H A Dtest_audio.cc82 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( local
85 instance_->pp_instance(), sample_rate, frame_count);
100 ASSERT_EQ(frame_count, audio_config_interface_->GetSampleFrameCount(ac));
124 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( local
127 instance_->pp_instance(), kSampleRate, frame_count);
154 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( local
157 instance_->pp_instance(), kSampleRate, frame_count);
204 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( local
207 instance_->pp_instance(), kSampleRate, frame_count);
240 uint32_t frame_count local
278 uint32_t frame_count = audio_config_interface_->RecommendSampleFrameCount( local
[all...]
/external/srec/audio/AudioIn/UNIX/src/
H A Daudioinwrapper.cpp125 int AudioRead(short *buffer, int frame_count) argument
129 n = read(audiofd, buffer, frame_count*sizeof(short)*N_CHANNELS);
133 int nreq = frame_count * sizeof(short);
191 int AudioRead(short *buffer, int frame_count) argument
196 int AudioWrite(short *buffer, int frame_count) argument
/external/chromium_org/media/base/android/
H A Dwebaudio_media_codec_bridge.cc170 int frame_count = buf_size / sizeof(*data) / 2; local
172 decoded_data.resize(frame_count);
173 for (int k = 0; k < frame_count; ++k) {
179 count = frame_count * sizeof(*data);
/external/chromium_org/native_client_sdk/src/libraries/xray/
H A Dxray.h44 int frame_count,
86 int frame_count,
84 XRayInit(int stack_size, int buffer_size, int frame_count, const char* mapfilename) argument
/external/chromium_org/third_party/libjingle/source/talk/media/devices/
H A Dfilevideocapturer_unittest.cc73 int frame_count() const { return frame_count_; } function in class:__anon11419::FileVideoCapturerTest::VideoCapturerListener
152 EXPECT_EQ(48, listener.frame_count());
168 listener.frame_count() >= 150, 20000);
171 EXPECT_GE(listener.frame_count(), 150);
186 EXPECT_EQ(1, listener.frame_count());
/external/libvpx/libvpx/test/
H A Ddatarate_test.cc158 const int frame_count = 40; local
160 30, 1, 0, frame_count);
166 vpx_codec_pts_t last_drop = frame_count;
/external/webrtc/src/modules/audio_processing/test/
H A Dunpack.cc127 int frame_count = 0; local
144 frame_count++;
200 fprintf(settings_file, "Init at frame: %d\n", frame_count);
/external/srec/srec/cfront/
H A Dchelfep.c105 channel->frame_valid = (channel->frame_count) % 2;
116 if (channel->frame_count <= 1)
/external/chromium_org/build/android/pylib/
H A Dsurface_stats_collector.py91 frame_count = len(timestamps)
106 int(round(frame_count / seconds)), 'fps'),
132 frame_count = (surface_after['page_flip_count'] -
135 'avg_surface_fps', int(round(frame_count / seconds)), 'fps'))
/external/chromium_org/ui/base/cursor/
H A Dcursor_loader_x11.cc186 int frame_count = total_width / frame_width; local
187 DCHECK_GT(frame_count, 0);
188 XcursorImages* x_images = XcursorImagesCreate(frame_count);
189 x_images->nimage = frame_count;
191 for (int frame = 0; frame < frame_count; ++frame) {

Completed in 471 milliseconds

123