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

Unified Diff: media/video/capture/mac/coremedia_glue.h

Issue 518313003: Move Mac media glue code from media/video/capture/mac to media/base/mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sort header includes by path. 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
« no previous file with comments | « media/video/capture/mac/avfoundation_glue.mm ('k') | media/video/capture/mac/coremedia_glue.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/mac/coremedia_glue.h
diff --git a/media/video/capture/mac/coremedia_glue.h b/media/video/capture/mac/coremedia_glue.h
deleted file mode 100644
index c69f279ed33b835b312745b2e0db40a34f58e1d4..0000000000000000000000000000000000000000
--- a/media/video/capture/mac/coremedia_glue.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2013 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_VIDEO_CAPTURE_MAC_COREMEDIA_GLUE_H_
-#define MEDIA_VIDEO_CAPTURE_MAC_COREMEDIA_GLUE_H_
-
-#import <CoreVideo/CoreVideo.h>
-#import <Foundation/Foundation.h>
-
-#include "base/basictypes.h"
-#include "media/base/media_export.h"
-
-// CoreMedia API is only introduced in Mac OS X > 10.6, the (potential) linking
-// with it has to happen in runtime. If it succeeds, subsequent clients can use
-// CoreMedia via the class declared in this file, where the original naming has
-// been kept as much as possible.
-class MEDIA_EXPORT CoreMediaGlue {
- public:
- // Originally from CMTime.h
- typedef int64_t CMTimeValue;
- typedef int32_t CMTimeScale;
- typedef int64_t CMTimeEpoch;
- typedef uint32_t CMTimeFlags;
- typedef struct {
- CMTimeValue value;
- CMTimeScale timescale;
- CMTimeFlags flags;
- CMTimeEpoch epoch;
- } CMTime;
-
- // Originally from CMFormatDescription.h.
- typedef const struct opaqueCMFormatDescription* CMFormatDescriptionRef;
- typedef CMFormatDescriptionRef CMVideoFormatDescriptionRef;
- typedef struct {
- int32_t width;
- int32_t height;
- } CMVideoDimensions;
- enum {
- kCMPixelFormat_422YpCbCr8_yuvs = 'yuvs',
- };
- enum {
- kCMVideoCodecType_JPEG_OpenDML = 'dmb1',
- };
-
- // Originally from CMSampleBuffer.h.
- typedef struct OpaqueCMSampleBuffer* CMSampleBufferRef;
-
- // Originally from CMTime.h.
- static CMTime CMTimeMake(int64_t value, int32_t timescale);
-
- // Originally from CMSampleBuffer.h.
- static CVImageBufferRef CMSampleBufferGetImageBuffer(
- CMSampleBufferRef buffer);
-
- // Originally from CMFormatDescription.h.
- static FourCharCode CMFormatDescriptionGetMediaSubType(
- CMFormatDescriptionRef desc);
- static CMVideoDimensions CMVideoFormatDescriptionGetDimensions(
- CMVideoFormatDescriptionRef videoDesc);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(CoreMediaGlue);
-};
-
-#endif // MEDIA_VIDEO_CAPTURE_MAC_COREMEDIA_GLUE_H_
« no previous file with comments | « media/video/capture/mac/avfoundation_glue.mm ('k') | media/video/capture/mac/coremedia_glue.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698