Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: media/filters/source_buffer_stream.h

Issue 1236543007: MSE: Log buffered audio splice generation to media-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS2 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // SourceBufferStream is a data structure that stores media Buffers in ranges. 5 // SourceBufferStream is a data structure that stores media Buffers in ranges.
6 // Buffers can be appended out of presentation order. Buffers are retrieved by 6 // Buffers can be appended out of presentation order. Buffers are retrieved by
7 // seeking to the desired start point and calling GetNextBuffer(). Buffers are 7 // seeking to the desired start point and calling GetNextBuffer(). Buffers are
8 // returned in sequential presentation order. 8 // returned in sequential presentation order.
9 9
10 #ifndef MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ 10 #ifndef MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // Indicates which of the splice buffers in |splice_buffer_| should be 412 // Indicates which of the splice buffers in |splice_buffer_| should be
413 // handled out next. 413 // handled out next.
414 size_t splice_buffers_index_; 414 size_t splice_buffers_index_;
415 415
416 // Indicates that all buffers before |pending_buffer_| have been handed out. 416 // Indicates that all buffers before |pending_buffer_| have been handed out.
417 bool pending_buffers_complete_; 417 bool pending_buffers_complete_;
418 418
419 // Indicates that splice frame generation is enabled. 419 // Indicates that splice frame generation is enabled.
420 const bool splice_frames_enabled_; 420 const bool splice_frames_enabled_;
421 421
422 // To prevent log spam, count the number of splice generation warnings and
423 // successes logged.
424 int num_splice_generation_warning_logs_;
425 int num_splice_generation_success_logs_;
426
422 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); 427 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream);
423 }; 428 };
424 429
425 } // namespace media 430 } // namespace media
426 431
427 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ 432 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698