Move homography history to video

This commit is contained in:
Ivan Malison 2024-03-23 17:03:11 -06:00
parent 8102a0f40b
commit d3c5979d3e
3 changed files with 125 additions and 123 deletions

View File

@ -56,10 +56,10 @@ export type BankFeaturesGql = {
export type BoundingBoxGql = {
__typename?: "BoundingBoxGQL";
height: Scalars["Int"]["output"];
left: Scalars["Int"]["output"];
top: Scalars["Int"]["output"];
width: Scalars["Int"]["output"];
height: Scalars["Float"]["output"];
left: Scalars["Float"]["output"];
top: Scalars["Float"]["output"];
width: Scalars["Float"]["output"];
};
export type BucketGql = {
@ -162,6 +162,7 @@ export type HomographyInfoGql = {
__typename?: "HomographyInfoGQL";
crop: BoundingBoxGql;
destPoints: PocketPointsGql;
frameIndex: Scalars["Int"]["output"];
pockets: Array<BoundingBoxGql>;
sourcePoints: PocketPointsGql;
};
@ -368,7 +369,6 @@ export type UploadStreamGql = {
__typename?: "UploadStreamGQL";
createdAt: Scalars["DateTime"]["output"];
errors: Array<StreamErrorGql>;
homographyHistory: Array<HomographyInfoGql>;
id: Scalars["ID"]["output"];
isCompleted: Scalars["Boolean"]["output"];
linksRequested: Scalars["Int"]["output"];
@ -420,6 +420,7 @@ export type VideoGql = {
elapsedTime?: Maybe<Scalars["Float"]["output"]>;
endTime?: Maybe<Scalars["DateTime"]["output"]>;
framesPerSecond: Scalars["Int"]["output"];
homographyHistory: Array<HomographyInfoGql>;
id: Scalars["Int"]["output"];
makePercentage: Scalars["Float"]["output"];
medianRun?: Maybe<Scalars["Float"]["output"]>;
@ -659,11 +660,6 @@ export type GetStreamMonitoringDetailsQuery = {
totalShots: number;
makePercentage: number;
elapsedTime?: number | null;
stream?: {
__typename?: "UploadStreamGQL";
linksRequested: number;
uploadsCompleted: number;
segmentProcessingCursor: number;
homographyHistory: Array<{
__typename?: "HomographyInfoGQL";
crop: {
@ -690,6 +686,11 @@ export type GetStreamMonitoringDetailsQuery = {
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
};
}>;
stream?: {
__typename?: "UploadStreamGQL";
linksRequested: number;
uploadsCompleted: number;
segmentProcessingCursor: number;
} | null;
};
};
@ -1399,7 +1400,6 @@ export const GetStreamMonitoringDetailsDocument = gql`
totalShots
makePercentage
elapsedTime
stream {
homographyHistory {
crop {
left
@ -1440,6 +1440,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
}
}
}
stream {
linksRequested
uploadsCompleted
segmentProcessingCursor

View File

@ -4,7 +4,6 @@ query GetStreamMonitoringDetails($videoId: Int!) {
totalShots
makePercentage
elapsedTime
stream {
homographyHistory {
crop {
left
@ -45,6 +44,7 @@ query GetStreamMonitoringDetails($videoId: Int!) {
}
}
}
stream {
linksRequested
uploadsCompleted
segmentProcessingCursor

View File

@ -156,6 +156,7 @@ type VideoGQL {
framesPerSecond: Int!
stream: UploadStreamGQL
tags: [VideoTag!]!
homographyHistory: [HomographyInfoGQL!]!
}
type ShotGQL {
@ -221,13 +222,26 @@ type UploadStreamGQL {
uploadsCompleted: Int!
segmentProcessingCursor: Int!
isCompleted: Boolean!
homographyHistory: [HomographyInfoGQL!]!
errors: [StreamErrorGQL!]!
createdAt: DateTime!
updatedAt: DateTime!
}
type StreamErrorGQL {
message: String!
}
type VideoTag {
tagClasses: [VideoTagClass!]!
name: String!
}
type VideoTagClass {
name: String!
}
type HomographyInfoGQL {
frameIndex: Int!
crop: BoundingBoxGQL!
pockets: [BoundingBoxGQL!]!
sourcePoints: PocketPointsGQL!
@ -235,10 +249,10 @@ type HomographyInfoGQL {
}
type BoundingBoxGQL {
left: Int!
top: Int!
width: Int!
height: Int!
left: Float!
top: Float!
width: Float!
height: Float!
}
type PocketPointsGQL {
@ -255,19 +269,6 @@ type IntPoint2D {
y: Int!
}
type StreamErrorGQL {
message: String!
}
type VideoTag {
tagClasses: [VideoTagClass!]!
name: String!
}
type VideoTagClass {
name: String!
}
type BucketSetGQL {
keyName: String!
feature: String!