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

12345

/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.h36 int64 frame_count() const { return frame_count_; } function in class:media::AudioTimestampHelper
38 // Adds |frame_count| to the frame counter.
41 void AddFrames(int frame_count);
47 // Gets the duration if |frame_count| frames were added to the current
51 base::TimeDelta GetFrameDuration(int frame_count) const;
58 base::TimeDelta ComputeTimestamp(int64 frame_count) const;
H A Daudio_buffer_unittest.cc47 EXPECT_EQ(frames, buffer->frame_count());
62 EXPECT_EQ(frames - trim_length, buffer->frame_count());
66 buffer->ReadFrames(buffer->frame_count(), 0, 0, bus.get());
70 buffer->frame_count() - trim_start,
79 EXPECT_EQ(frames - 2 * trim_length, buffer->frame_count());
83 buffer->ReadFrames(buffer->frame_count(), 0, 0, bus.get());
87 buffer->frame_count() - trim_start,
95 EXPECT_EQ(frames - 3 * trim_length, buffer->frame_count());
99 buffer->ReadFrames(buffer->frame_count(), 0, 0, bus.get());
103 buffer->frame_count()
[all...]
H A Daudio_buffer.h34 // number of buffers must be equal to |channel_count|. |frame_count| is the
35 // number of frames in each buffer. |data| must not be null and |frame_count|
41 int frame_count,
45 // Create an AudioBuffer with |frame_count| frames. Buffer is allocated, but
51 int frame_count);
53 // Create an empty AudioBuffer with |frame_count| frames.
58 int frame_count,
94 int frame_count() const { return adjusted_frame_count_; } function in class:media::AudioBuffer
125 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.cc24 int frame_count,
32 adjusted_frame_count_(frame_count),
34 end_of_stream_(!create_buffer && data == NULL && frame_count == 0),
41 CHECK_GE(frame_count, 0);
47 int data_size = frame_count * bytes_per_channel;
99 int frame_count,
103 CHECK_GT(frame_count, 0); // Otherwise looks like an EOF buffer.
109 frame_count,
121 int frame_count) {
122 CHECK_GT(frame_count,
20 AudioBuffer(SampleFormat sample_format, ChannelLayout channel_layout, int channel_count, int sample_rate, int frame_count, bool create_buffer, const uint8* const* data, const base::TimeDelta timestamp) argument
94 CopyFrom( SampleFormat sample_format, ChannelLayout channel_layout, int channel_count, int sample_rate, int frame_count, const uint8* const* data, const base::TimeDelta timestamp) argument
116 CreateBuffer( SampleFormat sample_format, ChannelLayout channel_layout, int channel_count, int sample_rate, int frame_count) argument
134 CreateEmptyBuffer( ChannelLayout channel_layout, int channel_count, int sample_rate, int frame_count, const base::TimeDelta timestamp) argument
[all...]
H A Daudio_splicer.cc39 wrapper->set_frames(buffer->frame_count());
58 void ResetTimestampState(int64 frame_count, base::TimeDelta base_timestamp);
105 void AudioStreamSanitizer::ResetTimestampState(int64 frame_count, argument
110 if (frame_count > 0)
111 output_timestamp_helper_.AddFrames(frame_count);
125 DCHECK_GT(input->frame_count(), 0);
184 if (input->frame_count() <= frames_to_skip) {
211 output_timestamp_helper_.AddFrames(buffer->frame_count());
216 int frame_count = 0; local
218 frame_count
[all...]
H A Daudio_discard_helper.cc84 const size_t original_frame_count = decoded_buffer->frame_count();
99 const size_t decoded_frames = decoded_buffer->frame_count();
126 const size_t decoded_frames = decoded_buffer->frame_count();
139 const size_t decoded_frames = decoded_buffer->frame_count();
160 original_frame_count - decoded_buffer->frame_count();
196 const size_t decoded_frames = decoded_buffer->frame_count();
238 timestamp_helper_.AddFrames(decoded_buffer->frame_count());
H A Daudio_splicer_unittest.cc56 int frames = buffer->frame_count();
73 EXPECT_EQ(input->frame_count(), output->frame_count());
85 EXPECT_EQ(expected_pre_splice_size, pre_splice_output->frame_count());
100 EXPECT_EQ(expected_crossfade_size, crossfade_output->frame_count());
109 const int frames = crossfade_output->frame_count();
139 input->frame_count(),
251 EXPECT_EQ(kGapSize, output_2->frame_count());
323 const int kOverlapSize = input_1->frame_count() / 4;
325 input_timestamp_helper_.AddFrames(input_1->frame_count()
[all...]
/external/chromium_org/native_client_sdk/src/gonacl_appengine/src/common/
H A Dfps.h28 int frame_count; member in struct:FpsState
36 state->frame_count = 0;
49 state->frame_count++;
54 *out_fps = state->frame_count / (current_time - state->last_time);
56 state->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/libvpx/source/libvpx/
H A Dvideo_writer.c20 int frame_count; member in struct:VpxVideoWriterStruct
24 int frame_count) {
31 ivf_write_file_header(file, &cfg, info->codec_fourcc, frame_count);
47 writer->frame_count = 0;
63 write_header(writer->file, &writer->info, writer->frame_count);
77 ++writer->frame_count;
23 write_header(FILE *file, const VpxVideoInfo *info, int frame_count) argument
/external/libvpx/libvpx/
H A Dvideo_writer.c20 int frame_count; member in struct:VpxVideoWriterStruct
24 int frame_count) {
31 ivf_write_file_header(file, &cfg, info->codec_fourcc, frame_count);
47 writer->frame_count = 0;
63 write_header(writer->file, &writer->info, writer->frame_count);
77 ++writer->frame_count;
23 write_header(FILE *file, const VpxVideoInfo *info, int frame_count) argument
/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/chromecast/media/cma/base/
H A Dbuffering_frame_provider_unittest.cc34 size_t frame_count,
59 size_t frame_count,
62 DCHECK_GE(frame_count, 1u);
65 std::vector<FrameGeneratorForTest::FrameSpec> frame_specs(frame_count);
120 const size_t frame_count = 100u; local
122 frame_count,
141 const size_t frame_count = 100u; local
143 frame_count,
169 const size_t frame_count = 100u; local
171 frame_count,
58 Configure( size_t frame_count, const std::vector<bool>& provider_delayed_pattern, const std::vector<bool>& consumer_delayed_pattern) argument
[all...]
/external/chromium_org/cc/debug/
H A Drendering_stats.cc32 : frame_count(0), painted_pixel_count(0), recorded_pixel_count(0) {
42 record_data->SetInteger("frame_count", frame_count);
52 frame_count += other.frame_count;
60 : frame_count(0),
73 record_data->SetInteger("frame_count", frame_count);
108 frame_count += other.frame_count;
[all...]
H A Dframe_rate_counter.cc112 int frame_count = 0; local
133 frame_count++;
135 } else if (frame_count) {
140 if (frame_count) {
142 average_fps = frame_count / frame_times_total;
H A Drendering_stats.h39 int64 frame_count; member in struct:cc::RenderingStats::MainThreadRenderingStats
56 int64 frame_count; member in struct:cc::RenderingStats::ImplThreadRenderingStats
/external/chromium_org/base/debug/
H A Dstack_trace_android.cc25 frame_count(0),
30 size_t frame_count; member in struct:__anon2229::StackCrawlState
45 state->frames[state->frame_count++] = ip;
46 if (state->frame_count >= state->max_depth)
71 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));
/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/chromecast/media/cma/ipc_streamer/
H A Dav_streamer_unittest.cc58 size_t frame_count,
89 size_t frame_count,
94 frame_specs.resize(frame_count);
185 const size_t frame_count = 100u; local
187 frame_count,
206 const size_t frame_count = 100u; local
208 frame_count,
235 const size_t frame_count = 100u; local
237 frame_count,
88 Configure( size_t frame_count, const std::vector<bool>& provider_delayed_pattern, const std::vector<bool>& consumer_delayed_pattern) argument
/external/chromium_org/third_party/libvpx/source/libvpx/examples/
H A Dtwopass_encoder.c134 int frame_count = 0; local
142 ++frame_count;
143 get_frame_stats(&codec, raw, frame_count, 1, 0, VPX_DL_GOOD_QUALITY,
148 while (get_frame_stats(&codec, NULL, frame_count, 1, 0,
151 printf("Pass 0 complete. Processed %d frames.\n", frame_count);
171 int frame_count = 0; local
182 ++frame_count;
183 encode_frame(&codec, raw, frame_count, 1, 0, VPX_DL_GOOD_QUALITY, writer);
196 printf("Pass 1 complete. Processed %d frames.\n", frame_count);
/external/chromium_org/ui/base/cursor/
H A Dcursor_util.cc92 int frame_count = total_width / frame_width; local
93 DCHECK_GT(frame_count, 0);
95 bitmaps->resize(frame_count);
97 for (int frame = 0; frame < frame_count; ++frame) {

Completed in 475 milliseconds

12345