| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // The bulk of this file is support code; sorry about that. Here's an overview | 5 // The bulk of this file is support code; sorry about that. Here's an overview |
| 6 // to hopefully help readers of this code: | 6 // to hopefully help readers of this code: |
| 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or | 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or |
| 8 // Win/EGL. | 8 // Win/EGL. |
| 9 // - ClientState is an enum for the state of the decode client used by the test. | 9 // - ClientState is an enum for the state of the decode client used by the test. |
| 10 // - ClientStateNotification is a barrier abstraction that allows the test code | 10 // - ClientStateNotification is a barrier abstraction that allows the test code |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "content/common/gpu/media/mac_video_decode_accelerator.h" | 47 #include "content/common/gpu/media/mac_video_decode_accelerator.h" |
| 48 #elif defined(ARCH_CPU_X86_FAMILY) | 48 #elif defined(ARCH_CPU_X86_FAMILY) |
| 49 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" | 49 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" |
| 50 #elif defined(ARCH_CPU_ARMEL) | 50 #elif defined(ARCH_CPU_ARMEL) |
| 51 #include "content/common/gpu/media/omx_video_decode_accelerator.h" | 51 #include "content/common/gpu/media/omx_video_decode_accelerator.h" |
| 52 #else | 52 #else |
| 53 #error The VideoAccelerator tests are not supported on this platform. | 53 #error The VideoAccelerator tests are not supported on this platform. |
| 54 #endif // defined(OS_WIN) | 54 #endif // defined(OS_WIN) |
| 55 | 55 |
| 56 using media::VideoDecodeAccelerator; | 56 using media::VideoDecodeAccelerator; |
| 57 using video_test_util::RenderingHelper; | |
| 58 | 57 |
| 58 namespace content { |
| 59 namespace { | 59 namespace { |
| 60 | 60 |
| 61 // Values optionally filled in from flags; see main() below. | 61 // Values optionally filled in from flags; see main() below. |
| 62 // The syntax of this variable is: | 62 // The syntax of this variable is: |
| 63 // filename:width:height:numframes:numfragments:minFPSwithRender:minFPSnoRender | 63 // filename:width:height:numframes:numfragments:minFPSwithRender:minFPSnoRender |
| 64 // where only the first field is required. Value details: | 64 // where only the first field is required. Value details: |
| 65 // - |filename| must be an h264 Annex B (NAL) stream or an IVF VP8 stream. | 65 // - |filename| must be an h264 Annex B (NAL) stream or an IVF VP8 stream. |
| 66 // - |width| and |height| are in pixels. | 66 // - |width| and |height| are in pixels. |
| 67 // - |numframes| is the number of picture frames in the file. | 67 // - |numframes| is the number of picture frames in the file. |
| 68 // - |numfragments| NALU (h264) or frame (VP8) count in the stream. | 68 // - |numfragments| NALU (h264) or frame (VP8) count in the stream. |
| (...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 #if defined(OS_WIN) | 891 #if defined(OS_WIN) |
| 892 DXVAVideoDecodeAccelerator::PreSandboxInitialization(); | 892 DXVAVideoDecodeAccelerator::PreSandboxInitialization(); |
| 893 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) | 893 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
| 894 OmxVideoDecodeAccelerator::PreSandboxInitialization(); | 894 OmxVideoDecodeAccelerator::PreSandboxInitialization(); |
| 895 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) | 895 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) |
| 896 VaapiVideoDecodeAccelerator::PreSandboxInitialization(); | 896 VaapiVideoDecodeAccelerator::PreSandboxInitialization(); |
| 897 #endif | 897 #endif |
| 898 | 898 |
| 899 return RUN_ALL_TESTS(); | 899 return RUN_ALL_TESTS(); |
| 900 } | 900 } |
| 901 |
| 902 } // namespace content |
| OLD | NEW |