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

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

Issue 2529493002: mac: Remove more media/base/mac glue unneeded now that we target 10.9 (Closed)
Patch Set: . Created 4 years, 1 month 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
index 87d769eef816020c81a1d3b8f11a10390517d34a..aa991118d5b55834ae9c5de59e044c4aa62a5a7d 100644
--- a/media/base/mac/videotoolbox_helpers.h
+++ b/media/base/mac/videotoolbox_helpers.h
@@ -5,8 +5,10 @@
#ifndef MEDIA_BASE_MAC_VIDEOTOOLBOX_HELPERS_H_
#define MEDIA_BASE_MAC_VIDEOTOOLBOX_HELPERS_H_
+#include <CoreMedia/CoreMedia.h>
+#include <VideoToolbox/VideoToolbox.h>
+
#include "base/mac/scoped_cftyperef.h"
-#include "media/base/mac/videotoolbox_glue.h"
#include "media/base/media_export.h"
namespace media {
@@ -33,23 +35,19 @@ MEDIA_EXPORT base::ScopedCFTypeRef<CFArrayRef> ArrayWithIntegerAndFloat(
// 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);
+MEDIA_EXPORT bool CopySampleBufferToAnnexBBuffer(CMSampleBufferRef sbuf,
+ bool keyframe,
+ std::string* annexb_buffer);
+MEDIA_EXPORT bool CopySampleBufferToAnnexBBuffer(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(base::ScopedCFTypeRef<VTCompressionSessionRef> session);
~SessionPropertySetter();
bool Set(CFStringRef key, int32_t value);
@@ -58,8 +56,7 @@ class MEDIA_EXPORT SessionPropertySetter {
bool Set(CFStringRef key, CFArrayRef value);
private:
- base::ScopedCFTypeRef<VideoToolboxGlue::VTCompressionSessionRef> session_;
- const VideoToolboxGlue* glue_;
+ base::ScopedCFTypeRef<VTCompressionSessionRef> session_;
};
} // namespace video_toolbox
« 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