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 #include "media/base/mac/videotoolbox_helpers.h" | 5 #include "media/base/mac/videotoolbox_helpers.h" |
6 | 6 |
7 #include <array> | 7 #include <array> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/big_endian.h" | 10 #include "base/big_endian.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 | 11 |
13 namespace media { | 12 namespace media { |
14 | 13 |
15 namespace video_toolbox { | 14 namespace video_toolbox { |
16 | 15 |
17 base::ScopedCFTypeRef<CFDictionaryRef> | 16 base::ScopedCFTypeRef<CFDictionaryRef> |
18 DictionaryWithKeysAndValues(CFTypeRef* keys, CFTypeRef* values, size_t size) { | 17 DictionaryWithKeysAndValues(CFTypeRef* keys, CFTypeRef* values, size_t size) { |
19 return base::ScopedCFTypeRef<CFDictionaryRef>(CFDictionaryCreate( | 18 return base::ScopedCFTypeRef<CFDictionaryRef>(CFDictionaryCreate( |
20 kCFAllocatorDefault, keys, values, size, &kCFTypeDictionaryKeyCallBacks, | 19 kCFAllocatorDefault, keys, values, size, &kCFTypeDictionaryKeyCallBacks, |
21 &kCFTypeDictionaryValueCallBacks)); | 20 &kCFTypeDictionaryValueCallBacks)); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 294 |
296 bool SessionPropertySetter::Set(CFStringRef key, CFArrayRef value) { | 295 bool SessionPropertySetter::Set(CFStringRef key, CFArrayRef value) { |
297 DCHECK(session_); | 296 DCHECK(session_); |
298 DCHECK(glue_); | 297 DCHECK(glue_); |
299 return glue_->VTSessionSetProperty(session_, key, value) == noErr; | 298 return glue_->VTSessionSetProperty(session_, key, value) == noErr; |
300 } | 299 } |
301 | 300 |
302 } // namespace video_toolbox | 301 } // namespace video_toolbox |
303 | 302 |
304 } // namespace media | 303 } // namespace media |
OLD | NEW |