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

Side by Side Diff: content/common/gpu/media/vt_stubs_header.fragment

Issue 773673002: Add UMA to track software fallback in VTVideoDecodeAccelerator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BooleanHardwareAccelerated Created 6 years 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
OLDNEW
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
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"
OLDNEW
« no previous file with comments | « content/common/gpu/media/vt.sig ('k') | content/common/gpu/media/vt_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698