| 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 #ifndef MEDIA_BASE_WIN_MF_HELPERS_H_ | 5 #ifndef MEDIA_BASE_WIN_MF_HELPERS_H_ |
| 6 #define MEDIA_BASE_WIN_MF_HELPERS_H_ | 6 #define MEDIA_BASE_WIN_MF_HELPERS_H_ |
| 7 | 7 |
| 8 #include <mfapi.h> | 8 #include <mfapi.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
| 11 #include "base/win/scoped_comptr.h" | 13 #include "base/win/scoped_comptr.h" |
| 12 #include "media/base/win/mf_initializer_export.h" | 14 #include "media/base/win/mf_initializer_export.h" |
| 13 | 15 |
| 14 namespace media { | 16 namespace media { |
| 15 | 17 |
| 16 namespace mf { | 18 namespace mf { |
| 17 | 19 |
| 18 #define RETURN_ON_FAILURE(result, log, ret) \ | 20 #define RETURN_ON_FAILURE(result, log, ret) \ |
| 19 do { \ | 21 do { \ |
| 20 if (!(result)) { \ | 22 if (!(result)) { \ |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 DWORD current_length_; | 69 DWORD current_length_; |
| 68 | 70 |
| 69 DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer); | 71 DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer); |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 } // namespace mf | 74 } // namespace mf |
| 73 | 75 |
| 74 } // namespace media | 76 } // namespace media |
| 75 | 77 |
| 76 #endif // MEDIA_BASE_WIN_MF_HELPERS_H_ | 78 #endif // MEDIA_BASE_WIN_MF_HELPERS_H_ |
| OLD | NEW |