Skip to content

Commit

Permalink
feat: Add depth to Frame types
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Dec 11, 2024
1 parent 54df86a commit d4592e6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions package/src/types/Frame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ export interface Frame {
*/
readonly pixelFormat: PixelFormat

/**
* Represents the depth data of this Frame, if the Camera is configured to stream depth data.
*/
readonly depth?: {
readonly width: number
readonly height: number
toArrayBuffer(): ArrayBuffer
}

/**
* Get the underlying data of the Frame as a uint8 array buffer.
*
Expand Down

0 comments on commit d4592e6

Please sign in to comment.