Source

kinect-viewer / KVDataSource.h

Full commit
Cliff Biffle 0c2057e 























/*
 * Copyright 2010 Cliff L. Biffle.  All Rights Reserved.
 * Use of this source code is governed by the Apache License 2.0,
 * which can be found in the LICENSE file.
 */

#import <Cocoa/Cocoa.h>

// Collects and broadcasts depth and color information.  Depth and
// color may be generated asynchronously.
@protocol KVDataSource <NSObject>

- (void)open;

// The latest frame of depth samples, in the Kinect's format: 12-bit
// samples in 16-bit fields, organized as 480 rows of 640 samples.
@property (readonly) NSData *latestDepthSamples;

// The latest frame of color samples, as 480 rows of 640 samples of
// 24-bit RGB.
@property (readonly) NSData *latestColorSamples;

- (void)close;

@end