Merge pull request 'Add homography and resolution to GetVideo' (#25) from loewy/add-resolution-in-operation into master

Reviewed-on: #25
This commit is contained in:
loewy 2024-07-25 19:09:56 -06:00
commit 251ebe7056
2 changed files with 119 additions and 0 deletions

View File

@ -1780,6 +1780,32 @@ export type GetVideoQuery = {
__typename?: "HLSPlaylistGQL"; __typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>; segmentDurations: Array<number>;
} | null; } | null;
homographyHistory: Array<{
__typename?: "HomographyInfoGQL";
crop: {
__typename?: "BoundingBoxGQL";
left: number;
top: number;
width: number;
height: number;
};
pockets: Array<{
__typename?: "BoundingBoxGQL";
left: number;
top: number;
width: number;
height: number;
}>;
sourcePoints: {
__typename?: "PocketPointsGQL";
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
};
}>;
stream?: { stream?: {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
segments: Array<{ segments: Array<{
@ -1788,6 +1814,11 @@ export type GetVideoQuery = {
endFrameIndex?: number | null; endFrameIndex?: number | null;
framesPerSecond?: number | null; framesPerSecond?: number | null;
}>; }>;
resolution: {
__typename?: "VideoResolutionGQL";
width?: number | null;
height?: number | null;
};
} | null; } | null;
}; };
}; };
@ -3253,12 +3284,56 @@ export const GetVideoDocument = gql`
playlist { playlist {
segmentDurations segmentDurations
} }
homographyHistory {
crop {
left
top
width
height
}
pockets {
left
top
width
height
}
sourcePoints {
topLeft {
x
y
}
topSide {
x
y
}
topRight {
x
y
}
bottomLeft {
x
y
}
bottomSide {
x
y
}
bottomRight {
x
y
}
}
}
stream { stream {
segments { segments {
segmentIndex segmentIndex
endFrameIndex endFrameIndex
framesPerSecond framesPerSecond
} }
resolution {
width
height
}
} }
} }
} }

View File

@ -138,12 +138,56 @@ query GetVideo($videoId: Int!) {
playlist { playlist {
segmentDurations segmentDurations
} }
homographyHistory {
crop {
left
top
width
height
}
pockets {
left
top
width
height
}
sourcePoints {
topLeft {
x
y
}
topSide {
x
y
}
topRight {
x
y
}
bottomLeft {
x
y
}
bottomSide {
x
y
}
bottomRight {
x
y
}
}
}
stream { stream {
segments { segments {
segmentIndex segmentIndex
endFrameIndex endFrameIndex
framesPerSecond framesPerSecond
} }
resolution {
width
height
}
} }
} }
} }