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

Side by Side Diff: media/base/demuxer_perftest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/base/media.h" 10 #include "media/base/media.h"
(...skipping 27 matching lines...) Expand all
38 DISALLOW_COPY_AND_ASSIGN(DemuxerHostImpl); 38 DISALLOW_COPY_AND_ASSIGN(DemuxerHostImpl);
39 }; 39 };
40 40
41 static void QuitLoopWithStatus(base::MessageLoop* message_loop, 41 static void QuitLoopWithStatus(base::MessageLoop* message_loop,
42 media::PipelineStatus status) { 42 media::PipelineStatus status) {
43 CHECK_EQ(status, media::PIPELINE_OK); 43 CHECK_EQ(status, media::PIPELINE_OK);
44 message_loop->PostTask(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure()); 44 message_loop->PostTask(FROM_HERE, base::MessageLoop::QuitWhenIdleClosure());
45 } 45 }
46 46
47 static void OnEncryptedMediaInitData(EmeInitDataType init_data_type, 47 static void OnEncryptedMediaInitData(EmeInitDataType init_data_type,
48 const std::vector<uint8>& init_data) { 48 const std::vector<uint8_t>& init_data) {
49 VLOG(0) << "File is encrypted."; 49 VLOG(0) << "File is encrypted.";
50 } 50 }
51 51
52 typedef std::vector<media::DemuxerStream* > Streams; 52 typedef std::vector<media::DemuxerStream* > Streams;
53 53
54 // Simulates playback reading requirements by reading from each stream 54 // Simulates playback reading requirements by reading from each stream
55 // present in |demuxer| in as-close-to-monotonically-increasing timestamp order. 55 // present in |demuxer| in as-close-to-monotonically-increasing timestamp order.
56 class StreamReader { 56 class StreamReader {
57 public: 57 public:
58 StreamReader(media::Demuxer* demuxer, bool enable_bitstream_converter); 58 StreamReader(media::Demuxer* demuxer, bool enable_bitstream_converter);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #endif 223 #endif
224 #if defined(OS_CHROMEOS) 224 #if defined(OS_CHROMEOS)
225 RunDemuxerBenchmark("bear.flac"); 225 RunDemuxerBenchmark("bear.flac");
226 #endif 226 #endif
227 #if defined(USE_PROPRIETARY_CODECS) && defined(OS_CHROMEOS) 227 #if defined(USE_PROPRIETARY_CODECS) && defined(OS_CHROMEOS)
228 RunDemuxerBenchmark("bear.avi"); 228 RunDemuxerBenchmark("bear.avi");
229 #endif 229 #endif
230 } 230 }
231 231
232 } // namespace media 232 } // namespace media
OLDNEW
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/djb2.h » ('j') | media/cdm/stub/stub_cdm.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698