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

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

Issue 1041353002: media-internals: Differentiate error, info, and debug log messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer comments Created 5 years, 8 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
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 // Called by PrepareRangesForNextAppend() before pruning overlapped buffers to 317 // Called by PrepareRangesForNextAppend() before pruning overlapped buffers to
318 // generate a splice frame with a small portion of the overlapped buffers. If 318 // generate a splice frame with a small portion of the overlapped buffers. If
319 // a splice frame is generated, the first buffer in |new_buffers| will have 319 // a splice frame is generated, the first buffer in |new_buffers| will have
320 // its timestamps, duration, and fade out preroll updated. 320 // its timestamps, duration, and fade out preroll updated.
321 void GenerateSpliceFrame(const BufferQueue& new_buffers); 321 void GenerateSpliceFrame(const BufferQueue& new_buffers);
322 322
323 // If |out_buffer| has splice buffers or preroll, sets |pending_buffer_| 323 // If |out_buffer| has splice buffers or preroll, sets |pending_buffer_|
324 // appropriately and returns true. Otherwise returns false. 324 // appropriately and returns true. Otherwise returns false.
325 bool SetPendingBuffer(scoped_refptr<StreamParserBuffer>* out_buffer); 325 bool SetPendingBuffer(scoped_refptr<StreamParserBuffer>* out_buffer);
326 326
327 // Callback used to report error strings that can help the web developer 327 // Callback used to report log messages that can help the web developer figure
328 // figure out what is wrong with the content. 328 // out what is wrong with the content.
329 LogCB log_cb_; 329 LogCB log_cb_;
330 330
331 // List of disjoint buffered ranges, ordered by start time. 331 // List of disjoint buffered ranges, ordered by start time.
332 RangeList ranges_; 332 RangeList ranges_;
333 333
334 // Indicates which decoder config is being used by the decoder. 334 // Indicates which decoder config is being used by the decoder.
335 // GetNextBuffer() is only allows to return buffers that have a 335 // GetNextBuffer() is only allows to return buffers that have a
336 // config ID that matches this index. If there is a mismatch then 336 // config ID that matches this index. If there is a mismatch then
337 // it must signal that a config change is needed. 337 // it must signal that a config change is needed.
338 int current_config_index_; 338 int current_config_index_;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 // Indicates that splice frame generation is enabled. 415 // Indicates that splice frame generation is enabled.
416 const bool splice_frames_enabled_; 416 const bool splice_frames_enabled_;
417 417
418 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); 418 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream);
419 }; 419 };
420 420
421 } // namespace media 421 } // namespace media
422 422
423 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ 423 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698