1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef MEDIA_WEBM_TRACKS_BUILDER_H_
6 #define MEDIA_WEBM_TRACKS_BUILDER_H_
12 #include "base/basictypes.h"
21 void AddTrack(int track_num, int track_type, const std::string& codec_id,
22 const std::string& name, const std::string& language);
24 std::vector<uint8> Finish();
27 int GetTracksSize() const;
28 int GetTracksPayloadSize() const;
29 void WriteTracks(uint8* buffer, int buffer_size) const;
33 Track(int track_num, int track_type, const std::string& codec_id,
34 const std::string& name, const std::string& language);
37 void Write(uint8** buf, int* buf_size) const;
39 int GetPayloadSize() const;
43 std::string codec_id_;
45 std::string language_;
48 typedef std::list<Track> TrackList;
51 DISALLOW_COPY_AND_ASSIGN(TracksBuilder);
56 #endif // MEDIA_WEBM_TRACKS_BUILDER_H_