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

Side by Side Diff: media/base/mac/coremedia_glue.h

Issue 1421583007: Mac Video Capture: Sending the timestamps provided by the driver to the capture pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Alignment Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/base/mac/coremedia_glue.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ 5 #ifndef MEDIA_BASE_MAC_COREMEDIA_GLUE_H_
6 #define MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ 6 #define MEDIA_BASE_MAC_COREMEDIA_GLUE_H_
7 7
8 #include <CoreVideo/CoreVideo.h> 8 #include <CoreVideo/CoreVideo.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Originally from CMSampleBuffer.h. 88 // Originally from CMSampleBuffer.h.
89 static CMBlockBufferRef CMSampleBufferGetDataBuffer(CMSampleBufferRef sbuf); 89 static CMBlockBufferRef CMSampleBufferGetDataBuffer(CMSampleBufferRef sbuf);
90 static CMFormatDescriptionRef CMSampleBufferGetFormatDescription( 90 static CMFormatDescriptionRef CMSampleBufferGetFormatDescription(
91 CMSampleBufferRef sbuf); 91 CMSampleBufferRef sbuf);
92 static CVImageBufferRef CMSampleBufferGetImageBuffer( 92 static CVImageBufferRef CMSampleBufferGetImageBuffer(
93 CMSampleBufferRef buffer); 93 CMSampleBufferRef buffer);
94 static CFArrayRef CMSampleBufferGetSampleAttachmentsArray( 94 static CFArrayRef CMSampleBufferGetSampleAttachmentsArray(
95 CMSampleBufferRef sbuf, 95 CMSampleBufferRef sbuf,
96 Boolean createIfNecessary); 96 Boolean createIfNecessary);
97 static CFStringRef kCMSampleAttachmentKey_NotSync(); 97 static CFStringRef kCMSampleAttachmentKey_NotSync();
98 static CMTime CMSampleBufferGetPresentationTimeStamp(CMSampleBufferRef sbuf);
98 99
99 // Originally from CMFormatDescription.h. 100 // Originally from CMFormatDescription.h.
100 static FourCharCode CMFormatDescriptionGetMediaSubType( 101 static FourCharCode CMFormatDescriptionGetMediaSubType(
101 CMFormatDescriptionRef desc); 102 CMFormatDescriptionRef desc);
102 static CMVideoDimensions CMVideoFormatDescriptionGetDimensions( 103 static CMVideoDimensions CMVideoFormatDescriptionGetDimensions(
103 CMVideoFormatDescriptionRef videoDesc); 104 CMVideoFormatDescriptionRef videoDesc);
104 static OSStatus CMVideoFormatDescriptionGetH264ParameterSetAtIndex( 105 static OSStatus CMVideoFormatDescriptionGetH264ParameterSetAtIndex(
105 CMFormatDescriptionRef videoDesc, 106 CMFormatDescriptionRef videoDesc,
106 size_t parameterSetIndex, 107 size_t parameterSetIndex,
107 const uint8_t** parameterSetPointerOut, 108 const uint8_t** parameterSetPointerOut,
108 size_t* parameterSetSizeOut, 109 size_t* parameterSetSizeOut,
109 size_t* parameterSetCountOut, 110 size_t* parameterSetCountOut,
110 int* NALUnitHeaderLengthOut) 111 int* NALUnitHeaderLengthOut)
111 /*__OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_7_0)*/; 112 /*__OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_7_0)*/;
112 113
113 private: 114 private:
114 DISALLOW_IMPLICIT_CONSTRUCTORS(CoreMediaGlue); 115 DISALLOW_IMPLICIT_CONSTRUCTORS(CoreMediaGlue);
115 }; 116 };
116 117
117 #endif // MEDIA_BASE_MAC_COREMEDIA_GLUE_H_ 118 #endif // MEDIA_BASE_MAC_COREMEDIA_GLUE_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/mac/coremedia_glue.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698