// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ #define MEDIA_BASE_DECODER_BUFFER_QUEUE_H_ #include <stddef.h> #include "base/containers/circular_deque.h" #include "base/memory/scoped_refptr.h" #include "base/time/time.h" #include "media/base/media_export.h" namespace media { class DecoderBuffer; // Maintains a queue of DecoderBuffers in increasing timestamp order. // // Individual buffer durations are ignored when calculating the duration of the // queue i.e., the queue must have at least 2 in-order buffers to calculate // duration. // // Not thread safe: access must be externally synchronized. class MEDIA_EXPORT DecoderBufferQueue { … }; } // namespace media #endif // MEDIA_BASE_DECODER_BUFFER_QUEUE_H_