Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: media/base/android/test_data_factory.h

Issue 1254293003: MediaCodecPlayer implementation (stage 4 - preroll) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mtplayer-browserseek
Patch Set: Rebased Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/base/android/media_codec_video_decoder.cc ('k') | media/base/android/test_data_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698