5 #ifndef MEDIA_FORMATS_WEBM_OPUS_PACKET_BUILDER_H_
6 #define MEDIA_FORMATS_WEBM_OPUS_PACKET_BUILDER_H_
10 #include "packager/base/memory/scoped_ptr.h"
11 #include "packager/base/memory/scoped_vector.h"
13 namespace edash_packager {
18 kNumPossibleOpusConfigs = 32,
19 kMinOpusPacketFrameCount = 1,
20 kMaxOpusPacketFrameCount = 48
25 OpusPacket(uint8_t config, uint8_t frame_count,
bool is_VBR);
28 const uint8_t* data()
const;
30 double duration_ms()
const;
33 std::vector<uint8_t> data_;
40 ScopedVector<OpusPacket> BuildAllOpusPackets();
45 #endif // MEDIA_FORMATS_WEBM_OPUS_PACKET_BUILDER_H_