Add homography and resolution to GetVideo #25

Merged
loewy merged 1 commits from loewy/add-resolution-in-operation into master 2024-07-25 19:09:57 -06:00
2 changed files with 119 additions and 0 deletions

View File

@ -1780,6 +1780,32 @@ export type GetVideoQuery = {
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
} | 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?: {
__typename?: "UploadStreamGQL";
segments: Array<{
@ -1788,6 +1814,11 @@ export type GetVideoQuery = {
endFrameIndex?: number | null;
framesPerSecond?: number | null;
}>;
resolution: {
__typename?: "VideoResolutionGQL";
width?: number | null;
height?: number | null;
};
} | null;
};
};
@ -3253,12 +3284,56 @@ export const GetVideoDocument = gql`
playlist {
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 {
segments {
segmentIndex
endFrameIndex
framesPerSecond
}
resolution {
width
height
}
}
}
}

View File

@ -138,12 +138,56 @@ query GetVideo($videoId: Int!) {
playlist {
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 {
segments {
segmentIndex
endFrameIndex
framesPerSecond
}
resolution {
width
height
}
}
}
}