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 #include "content/common/gpu/media/dxva_video_decode_accelerator_win.h" | 5 #include "content/common/gpu/media/dxva_video_decode_accelerator_win.h" |
6 | 6 |
7 #if !defined(OS_WIN) | 7 #if !defined(OS_WIN) |
8 #error This file should only be built on Windows. | 8 #error This file should only be built on Windows. |
9 #endif // !defined(OS_WIN) | 9 #endif // !defined(OS_WIN) |
10 | 10 |
11 #include <codecapi.h> | 11 #include <codecapi.h> |
12 #include <dxgi1_2.h> | 12 #include <dxgi1_2.h> |
13 #include <ks.h> | 13 #include <ks.h> |
14 #include <mfapi.h> | 14 #include <mfapi.h> |
15 #include <mferror.h> | 15 #include <mferror.h> |
16 #include <ntverp.h> | 16 #include <ntverp.h> |
17 #include <stddef.h> | 17 #include <stddef.h> |
| 18 #include <string.h> |
18 #include <wmcodecdsp.h> | 19 #include <wmcodecdsp.h> |
19 | 20 |
20 #include "base/base_paths_win.h" | 21 #include "base/base_paths_win.h" |
21 #include "base/bind.h" | 22 #include "base/bind.h" |
22 #include "base/callback.h" | 23 #include "base/callback.h" |
23 #include "base/command_line.h" | 24 #include "base/command_line.h" |
24 #include "base/debug/alias.h" | 25 #include "base/debug/alias.h" |
25 #include "base/file_version_info.h" | 26 #include "base/file_version_info.h" |
26 #include "base/files/file_path.h" | 27 #include "base/files/file_path.h" |
27 #include "base/logging.h" | 28 #include "base/logging.h" |
(...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 D3DSURFACE_DESC surface_desc; | 2302 D3DSURFACE_DESC surface_desc; |
2302 hr = surface->GetDesc(&surface_desc); | 2303 hr = surface->GetDesc(&surface_desc); |
2303 RETURN_ON_HR_FAILURE(hr, "Failed to get surface description", false); | 2304 RETURN_ON_HR_FAILURE(hr, "Failed to get surface description", false); |
2304 *width = surface_desc.Width; | 2305 *width = surface_desc.Width; |
2305 *height = surface_desc.Height; | 2306 *height = surface_desc.Height; |
2306 } | 2307 } |
2307 return true; | 2308 return true; |
2308 } | 2309 } |
2309 | 2310 |
2310 } // namespace content | 2311 } // namespace content |
OLD | NEW |