| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_FORMATS_WEBM_TRACKS_BUILDER_H_ | 5 #ifndef MEDIA_FORMATS_WEBM_TRACKS_BUILDER_H_ |
| 6 #define MEDIA_FORMATS_WEBM_TRACKS_BUILDER_H_ | 6 #define MEDIA_FORMATS_WEBM_TRACKS_BUILDER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 uint64_t track_uid, | 76 uint64_t track_uid, |
| 77 const std::string& codec_id, | 77 const std::string& codec_id, |
| 78 const std::string& name, | 78 const std::string& name, |
| 79 const std::string& language, | 79 const std::string& language, |
| 80 int default_duration, | 80 int default_duration, |
| 81 int video_pixel_width, | 81 int video_pixel_width, |
| 82 int video_pixel_height, | 82 int video_pixel_height, |
| 83 int audio_channels, | 83 int audio_channels, |
| 84 double audio_sampling_frequency, | 84 double audio_sampling_frequency, |
| 85 bool allow_invalid_values); | 85 bool allow_invalid_values); |
| 86 Track(const Track& other); |
| 86 | 87 |
| 87 int GetSize() const; | 88 int GetSize() const; |
| 88 void Write(uint8_t** buf, int* buf_size) const; | 89 void Write(uint8_t** buf, int* buf_size) const; |
| 89 | 90 |
| 90 private: | 91 private: |
| 91 int GetPayloadSize() const; | 92 int GetPayloadSize() const; |
| 92 int GetVideoPayloadSize() const; | 93 int GetVideoPayloadSize() const; |
| 93 int GetAudioPayloadSize() const; | 94 int GetAudioPayloadSize() const; |
| 94 | 95 |
| 95 int track_num_; | 96 int track_num_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 108 typedef std::list<Track> TrackList; | 109 typedef std::list<Track> TrackList; |
| 109 TrackList tracks_; | 110 TrackList tracks_; |
| 110 bool allow_invalid_values_; | 111 bool allow_invalid_values_; |
| 111 | 112 |
| 112 DISALLOW_COPY_AND_ASSIGN(TracksBuilder); | 113 DISALLOW_COPY_AND_ASSIGN(TracksBuilder); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 } // namespace media | 116 } // namespace media |
| 116 | 117 |
| 117 #endif // MEDIA_FORMATS_WEBM_TRACKS_BUILDER_H_ | 118 #endif // MEDIA_FORMATS_WEBM_TRACKS_BUILDER_H_ |
| OLD | NEW |