OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <random> | 8 #include <random> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "media/base/decoder_buffer.h" | 16 #include "media/base/decoder_buffer.h" |
16 #include "media/base/media.h" | 17 #include "media/base/media.h" |
17 #include "media/base/media_util.h" | 18 #include "media/base/media_util.h" |
18 #include "media/filters/vpx_video_decoder.h" | 19 #include "media/filters/vpx_video_decoder.h" |
19 | 20 |
20 using namespace media; | 21 using namespace media; |
21 | 22 |
22 struct Env { | 23 struct Env { |
23 Env() { | 24 Env() { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 { | 111 { |
111 base::RunLoop run_loop; | 112 base::RunLoop run_loop; |
112 auto buffer = DecoderBuffer::CopyFrom(data, size); | 113 auto buffer = DecoderBuffer::CopyFrom(data, size); |
113 decoder.Decode(buffer, | 114 decoder.Decode(buffer, |
114 base::Bind(&OnDecodeComplete, run_loop.QuitClosure())); | 115 base::Bind(&OnDecodeComplete, run_loop.QuitClosure())); |
115 run_loop.Run(); | 116 run_loop.Run(); |
116 } | 117 } |
117 | 118 |
118 return 0; | 119 return 0; |
119 } | 120 } |
OLD | NEW |