Chromium Code Reviews| Index: media/formats/webm/opus_packet_builder.h |
| diff --git a/media/formats/webm/opus_packet_builder.h b/media/formats/webm/opus_packet_builder.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c406c309f2eec0cb7e46471037f1893dec034fe6 |
| --- /dev/null |
| +++ b/media/formats/webm/opus_packet_builder.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_FORMATS_WEBM_OPUS_PACKET_BUILDER_H_ |
| +#define MEDIA_FORMATS_WEBM_OPUS_PACKET_BUILDER_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "base/memory/scoped_vector.h" |
| + |
| +namespace media { |
| + |
| +class OpusPacket { |
| + public: |
| + OpusPacket(int config, int frame_count, bool is_VBR); |
| + ~OpusPacket(); |
| + |
| + const uint8_t* data() const; |
| + int size() const; |
| + double duration_ms() const; |
| + |
| + private: |
| + std::vector<uint8_t> data_; |
| + double duration_ms_; |
| +}; |
|
wolenetz
2015/02/05 23:05:00
DISALLOW_COPY_AND_ASSIGN(OpusPacket); in private:
chcunningham
2015/02/06 03:20:09
Done.
|
| + |
| +// Builds an exhaustive collection of Opus packet configurations. |
| +ScopedVector<OpusPacket> BuildAllOpusPackets(); |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_FORMATS_WEBM_OPUS_PACKET_BUILDER_H_ |