Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 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. | |
| 4 | |
| 5 #ifndef MEDIA_WEBM_CLUSTER_BUILDER_H_ | |
| 6 #define MEDIA_WEBM_CLUSTER_BUILDER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/scoped_ptr.h" | |
| 10 | |
| 11 namespace media { | |
| 12 | |
| 13 class ClusterBuilder { | |
| 14 public: | |
| 15 ClusterBuilder(int64 cluster_timecode); | |
|
scherkus (not reviewing)
2011/06/28 20:03:29
explicit
acolwell GONE FROM CHROMIUM
2011/06/29 16:38:43
Done.
| |
| 16 | |
| 17 void AddSimpleBlock(int track_num, int64 timecode, int flags, | |
| 18 const uint8* data, int size); | |
| 19 | |
| 20 void Finish(); | |
| 21 | |
| 22 const uint8* GetClusterData() const; | |
| 23 const int GetClusterDataSize() const; | |
| 24 | |
| 25 private: | |
| 26 void ExtendBuffer(int bytes_needed); | |
| 27 void UpdateUInt64(int offset, int64 value); | |
| 28 | |
| 29 scoped_array<uint8> buffer_; | |
| 30 int buffer_size_; | |
| 31 int bytes_used_; | |
| 32 int64 cluster_timecode_; | |
| 33 bool finished_; | |
| 34 | |
| 35 DISALLOW_IMPLICIT_CONSTRUCTORS(ClusterBuilder); | |
| 36 }; | |
| 37 | |
| 38 } // namespace media | |
| 39 | |
| 40 #endif // MEDIA_WEBM_CLUSTER_BUILDER_H_ | |
|
scherkus (not reviewing)
2011/06/28 20:03:29
two spaces
acolwell GONE FROM CHROMIUM
2011/06/29 16:38:43
Done.
| |
| OLD | NEW |