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 "media/base/media.h" | 5 #include "media/base/media.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <delayimp.h> | 8 #include <delayimp.h> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 FILE_LIBAVCODEC, // full path to libavcodec media decoding library. | 21 FILE_LIBAVCODEC, // full path to libavcodec media decoding library. |
22 FILE_LIBAVFORMAT, // full path to libavformat media parsing library. | 22 FILE_LIBAVFORMAT, // full path to libavformat media parsing library. |
23 FILE_LIBAVUTIL, // full path to libavutil media utility library. | 23 FILE_LIBAVUTIL, // full path to libavutil media utility library. |
24 }; | 24 }; |
25 | 25 |
26 // Retrieves the DLLName for the given key. | 26 // Retrieves the DLLName for the given key. |
27 static const char* GetDLLName(FFmpegDLLKeys dll_key) { | 27 static const char* GetDLLName(FFmpegDLLKeys dll_key) { |
28 // TODO(ajwong): Do we want to lock to a specific ffmpeg version? | 28 // TODO(ajwong): Do we want to lock to a specific ffmpeg version? |
29 switch (dll_key) { | 29 switch (dll_key) { |
30 case FILE_LIBAVCODEC: | 30 case FILE_LIBAVCODEC: |
31 return "avcodec-53.dll"; | 31 return "avcodec-54.dll"; |
32 case FILE_LIBAVFORMAT: | 32 case FILE_LIBAVFORMAT: |
33 return "avformat-53.dll"; | 33 return "avformat-54.dll"; |
34 case FILE_LIBAVUTIL: | 34 case FILE_LIBAVUTIL: |
35 return "avutil-51.dll"; | 35 return "avutil-51.dll"; |
36 default: | 36 default: |
37 LOG(DFATAL) << "Invalid DLL key requested: " << dll_key; | 37 LOG(DFATAL) << "Invalid DLL key requested: " << dll_key; |
38 return ""; | 38 return ""; |
39 } | 39 } |
40 } | 40 } |
41 | 41 |
42 static bool g_media_library_is_initialized = false; | 42 static bool g_media_library_is_initialized = false; |
43 | 43 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 bool IsMediaLibraryInitialized() { | 119 bool IsMediaLibraryInitialized() { |
120 return g_media_library_is_initialized; | 120 return g_media_library_is_initialized; |
121 } | 121 } |
122 | 122 |
123 bool InitializeOpenMaxLibrary(const FilePath& module_dir) { | 123 bool InitializeOpenMaxLibrary(const FilePath& module_dir) { |
124 NOTIMPLEMENTED() << "OpenMAX is not used in Windows."; | 124 NOTIMPLEMENTED() << "OpenMAX is not used in Windows."; |
125 return false; | 125 return false; |
126 } | 126 } |
127 | 127 |
128 } // namespace media | 128 } // namespace media |
OLD | NEW |