OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BASE_ANDROID_TEST_DATA_FACTORY_H_ | 5 #ifndef MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ |
6 #define MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ | 6 #define MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Used to modify the generated access unit by a subclass. | 65 // Used to modify the generated access unit by a subclass. |
66 virtual void ModifyAccessUnit(int index_in_chunk, AccessUnit* unit) {} | 66 virtual void ModifyAccessUnit(int index_in_chunk, AccessUnit* unit) {} |
67 | 67 |
68 base::TimeDelta duration_; | 68 base::TimeDelta duration_; |
69 base::TimeDelta frame_period_; | 69 base::TimeDelta frame_period_; |
70 std::vector<uint8_t> packet_[4]; | 70 std::vector<uint8_t> packet_[4]; |
71 base::TimeDelta regular_pts_; // monotonically increasing PTS | 71 base::TimeDelta regular_pts_; // monotonically increasing PTS |
72 base::TimeDelta last_pts_; // subclass can modify PTS, maintain the last | 72 base::TimeDelta last_pts_; // subclass can modify PTS, maintain the last |
73 bool starvation_mode_; // true means no EOS at the end | 73 bool starvation_mode_; // true means no EOS at the end |
| 74 bool eos_reached_; // true if CreateChunk() returned EOS frame |
74 }; | 75 }; |
75 | 76 |
76 } // namespace media | 77 } // namespace media |
77 | 78 |
78 #endif // MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ | 79 #endif // MEDIA_BASE_ANDROID_TEST_DATA_FACTORY_H_ |
OLD | NEW |