| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include <CoreFoundation/CoreFoundation.h> | 5 #include <CoreFoundation/CoreFoundation.h> |
| 6 | 6 |
| 7 extern "C" { | 7 extern "C" { |
| 8 | 8 |
| 9 // | 9 // |
| 10 // Declare CoreMedia types. | 10 // Declare CoreMedia types. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 typedef CVBufferRef CVImageBufferRef; | 59 typedef CVBufferRef CVImageBufferRef; |
| 60 typedef uint32_t VTDecodeFrameFlags; | 60 typedef uint32_t VTDecodeFrameFlags; |
| 61 enum { | 61 enum { |
| 62 kVTDecodeFrame_EnableAsynchronousDecompression = 1 << 0, | 62 kVTDecodeFrame_EnableAsynchronousDecompression = 1 << 0, |
| 63 kVTDecodeFrame_DoNotOutputFrame = 1 << 1, | 63 kVTDecodeFrame_DoNotOutputFrame = 1 << 1, |
| 64 kVTDecodeFrame_1xRealTimePlayback = 1 << 2, | 64 kVTDecodeFrame_1xRealTimePlayback = 1 << 2, |
| 65 kVTDecodeFrame_EnableTemporalProcessing = 1 << 3, | 65 kVTDecodeFrame_EnableTemporalProcessing = 1 << 3, |
| 66 }; | 66 }; |
| 67 typedef UInt32 VTDecodeInfoFlags; | 67 typedef UInt32 VTDecodeInfoFlags; |
| 68 typedef struct OpaqueVTDecompressionSession* VTDecompressionSessionRef; | 68 typedef struct OpaqueVTDecompressionSession* VTDecompressionSessionRef; |
| 69 typedef CFTypeRef VTSessionRef; |
| 69 | 70 |
| 70 typedef void (*VTDecompressionOutputCallback)( | 71 typedef void (*VTDecompressionOutputCallback)( |
| 71 void *decompressionOutputRefCon, | 72 void *decompressionOutputRefCon, |
| 72 void *sourceFrameRefCon, | 73 void *sourceFrameRefCon, |
| 73 OSStatus status, | 74 OSStatus status, |
| 74 VTDecodeInfoFlags infoFlags, | 75 VTDecodeInfoFlags infoFlags, |
| 75 CVImageBufferRef imageBuffer, | 76 CVImageBufferRef imageBuffer, |
| 76 CMTime presentationTimeStamp, | 77 CMTime presentationTimeStamp, |
| 77 CMTime presentationDuration); | 78 CMTime presentationDuration); |
| 78 | 79 |
| 79 typedef struct { | 80 typedef struct { |
| 80 VTDecompressionOutputCallback decompressionOutputCallback; | 81 VTDecompressionOutputCallback decompressionOutputCallback; |
| 81 void *decompressionOutputRefCon; | 82 void *decompressionOutputRefCon; |
| 82 } VTDecompressionOutputCallbackRecord; | 83 } VTDecompressionOutputCallbackRecord; |
| 83 | 84 |
| 84 } // extern "C" | 85 } // extern "C" |
| OLD | NEW |