Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: media/base/win/mf_helpers.h

Issue 2668293002: VPX HW encode using MediaFoundation
Patch Set: adding all Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/media_switches.cc ('k') | media/gpu/ipc/service/gpu_video_encode_accelerator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/win/scoped_comptr.h" 11 #include "base/win/scoped_comptr.h"
12 #include "media/base/win/mf_initializer_export.h" 12 #include "media/base/win/mf_initializer_export.h"
13 13
14 #undef DLOG
15 #define DLOG(err) LOG(ERROR)
16 #undef DVLOG
17 #define DVLOG(err) LOG(ERROR)
18
14 namespace media { 19 namespace media {
15 20
16 namespace mf { 21 namespace mf {
17 22
18 #define RETURN_ON_FAILURE(result, log, ret) \ 23 #define RETURN_ON_FAILURE(result, log, ret) \
19 do { \ 24 do { \
20 if (!(result)) { \ 25 if (!(result)) { \
21 DLOG(ERROR) << log; \ 26 DLOG(ERROR) << log; \
22 mf::LogDXVAError(__LINE__); \ 27 mf::LogDXVAError(__LINE__); \
23 return ret; \ 28 return ret; \
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DWORD current_length_; 73 DWORD current_length_;
69 74
70 DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer); 75 DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer);
71 }; 76 };
72 77
73 } // namespace mf 78 } // namespace mf
74 79
75 } // namespace media 80 } // namespace media
76 81
77 #endif // MEDIA_BASE_WIN_MF_HELPERS_H_ 82 #endif // MEDIA_BASE_WIN_MF_HELPERS_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/gpu/ipc/service/gpu_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698