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

Unified Diff: media/base/mac/videotoolbox_helpers.h

Issue 1801343002: Revert of H264 HW encode using VideoToolbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/mac/videotoolbox_glue.mm ('k') | media/base/mac/videotoolbox_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mac/videotoolbox_helpers.h
diff --git a/media/base/mac/videotoolbox_helpers.h b/media/base/mac/videotoolbox_helpers.h
deleted file mode 100644
index 87d769eef816020c81a1d3b8f11a10390517d34a..0000000000000000000000000000000000000000
--- a/media/base/mac/videotoolbox_helpers.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_BASE_MAC_VIDEOTOOLBOX_HELPERS_H_
-#define MEDIA_BASE_MAC_VIDEOTOOLBOX_HELPERS_H_
-
-#include "base/mac/scoped_cftyperef.h"
-#include "media/base/mac/videotoolbox_glue.h"
-#include "media/base/media_export.h"
-
-namespace media {
-
-namespace video_toolbox {
-
-// Create a CFDictionaryRef with the given keys and values.
-MEDIA_EXPORT base::ScopedCFTypeRef<CFDictionaryRef>
-DictionaryWithKeysAndValues(CFTypeRef* keys, CFTypeRef* values, size_t size);
-
-// Create a CFDictionaryRef with the given key and value.
-MEDIA_EXPORT base::ScopedCFTypeRef<CFDictionaryRef> DictionaryWithKeyValue(
- CFTypeRef key,
- CFTypeRef value);
-
-// Create a CFArrayRef with the given array of integers.
-MEDIA_EXPORT base::ScopedCFTypeRef<CFArrayRef> ArrayWithIntegers(const int* v,
- size_t size);
-
-// Create a CFArrayRef with the given int and float values.
-MEDIA_EXPORT base::ScopedCFTypeRef<CFArrayRef> ArrayWithIntegerAndFloat(
- int int_val,
- float float_val);
-
-// Copy a H.264 frame stored in a CM sample buffer to an Annex B buffer. Copies
-// parameter sets for keyframes before the frame data as well.
-MEDIA_EXPORT bool CopySampleBufferToAnnexBBuffer(
- CoreMediaGlue::CMSampleBufferRef sbuf,
- bool keyframe,
- std::string* annexb_buffer);
-MEDIA_EXPORT bool CopySampleBufferToAnnexBBuffer(
- CoreMediaGlue::CMSampleBufferRef sbuf,
- bool keyframe,
- size_t annexb_buffer_size,
- char* annexb_buffer,
- size_t* used_buffer_size);
-
-// Helper class to add session properties to a VTCompressionSessionRef.
-class MEDIA_EXPORT SessionPropertySetter {
- public:
- SessionPropertySetter(
- base::ScopedCFTypeRef<VideoToolboxGlue::VTCompressionSessionRef> session,
- const VideoToolboxGlue* const glue);
- ~SessionPropertySetter();
-
- bool Set(CFStringRef key, int32_t value);
- bool Set(CFStringRef key, bool value);
- bool Set(CFStringRef key, CFStringRef value);
- bool Set(CFStringRef key, CFArrayRef value);
-
- private:
- base::ScopedCFTypeRef<VideoToolboxGlue::VTCompressionSessionRef> session_;
- const VideoToolboxGlue* glue_;
-};
-
-} // namespace video_toolbox
-
-} // namespace media
-
-#endif // MEDIA_BASE_MAC_VIDEOTOOLBOX_HELPERS_H_
« no previous file with comments | « media/base/mac/videotoolbox_glue.mm ('k') | media/base/mac/videotoolbox_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698