Skip to content

Commit

Permalink
fix: created transformation matrix type
Browse files Browse the repository at this point in the history
New type as readonly array of readonly arrays with number type.
  • Loading branch information
victoringvarsson authored and steabert committed Jun 2, 2021
1 parent bc4b0ba commit 75ee34e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/utils/protocols/sdp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,18 @@ export interface MediaDescription extends RtspExtensions {
codec?: any
}

export type TransformationMatrix = readonly [
readonly [number, number, number],
readonly [number, number, number],
readonly [number, number, number],
]

export interface VideoMedia extends MediaDescription {
readonly type: 'video'
readonly framerate?: number
// Transformation matrix
readonly transform?: number[][]
readonly 'x-sensor-transform'?: number[][]
readonly transform?: TransformationMatrix
readonly 'x-sensor-transform'?: TransformationMatrix
// JPEG
readonly framesize?: [number, number]
}
Expand Down

0 comments on commit 75ee34e

Please sign in to comment.