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

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

Issue 531863002: Extend media glue code to support the VideoToolbox cast video encoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base-glue
Patch Set: Rework the VideoToolbox glue to allow lower-overhead calls to functions and support load failure. Created 6 years, 3 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
Index: media/base/mac/corevideo_glue.h
diff --git a/media/base/mac/corevideo_glue.h b/media/base/mac/corevideo_glue.h
new file mode 100644
index 0000000000000000000000000000000000000000..3597a10110aba8390fcf97b3e35de81a7b80ae3f
--- /dev/null
+++ b/media/base/mac/corevideo_glue.h
@@ -0,0 +1,30 @@
+// Copyright 2014 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_COREVIDEO_GLUE_H_
+#define MEDIA_BASE_MAC_COREVIDEO_GLUE_H_
+
+#include "base/basictypes.h"
+#include "media/base/media_export.h"
+
+// Although CoreVideo exists in 10.6, not all of its types and functions were
+// introduced in that release. Clients can use this class to access types,
+// constants and functions not available in 10.6.
+class MEDIA_EXPORT CoreVideoGlue {
+ public:
+ // Originally from CVPixelBuffer.h
+ typedef struct CVPlanarPixelBufferInfo_YCbCrPlanar
+ CVPlanarPixelBufferInfo_YCbCrPlanar;
+ struct CVPlanarPixelBufferInfo_YCbCrBiPlanar {
+ CVPlanarComponentInfo componentInfoY;
+ CVPlanarComponentInfo componentInfoCbCr;
+ };
+ typedef struct CVPlanarPixelBufferInfo_YCbCrBiPlanar
+ CVPlanarPixelBufferInfo_YCbCrBiPlanar;
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(CoreVideoGlue);
+};
+
+#endif // MEDIA_BASE_MAC_COREVIDEO_GLUE_H_

Powered by Google App Engine
This is Rietveld 408576698