OLD | NEW |
1 // Copyright (c) 2009-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009-2010 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "base/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "third_party/openmax/il/OMX_Component.h" | 9 #include "third_party/openmax/il/OMX_Component.h" |
10 #include "third_party/openmax/il/OMX_Core.h" | 10 #include "third_party/openmax/il/OMX_Core.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 // Defines the maximum number of buffers created for I/O ports. | 14 // Defines the maximum number of buffers created for I/O ports. |
15 const int kMaxBufferNum = 256; | 15 const int kMaxBufferNum = 256; |
16 | 16 |
17 template <typename T> | 17 template <typename T> |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 // Then configure the component as usual. | 416 // Then configure the component as usual. |
417 Configure(codec(), 1024, 768); | 417 Configure(codec(), 1024, 768); |
418 TransitionLoadedToIdle(); | 418 TransitionLoadedToIdle(); |
419 TransitionIdleToExecuting(); | 419 TransitionIdleToExecuting(); |
420 TransitionExecutingToIdle(); | 420 TransitionExecutingToIdle(); |
421 TransitionIdleToLoaded(); | 421 TransitionIdleToLoaded(); |
422 DeinitComponent(); | 422 DeinitComponent(); |
423 } | 423 } |
424 | 424 |
425 } // namespace media | 425 } // namespace media |
OLD | NEW |