Add a basic stats overlay

This commit is contained in:
Cameron Gutman
2020-11-01 13:27:10 -06:00
parent 2114e39237
commit 44f713f5c9
5 changed files with 125 additions and 1 deletions
+10
View File
@@ -11,6 +11,14 @@
#define CONN_TEST_SERVER "ios.conntest.moonlight-stream.org"
typedef struct {
CFTimeInterval startTime;
CFTimeInterval endTime;
int totalFrames;
int receivedFrames;
int networkDroppedFrames;
} video_stats_t;
@protocol ConnectionCallbacks <NSObject>
- (void) connectionStarted;
@@ -29,5 +37,7 @@
-(id) initWithConfig:(StreamConfiguration*)config renderer:(VideoDecoderRenderer*)myRenderer connectionCallbacks:(id<ConnectionCallbacks>)callbacks;
-(void) terminate;
-(void) main;
-(BOOL) getVideoStats:(video_stats_t*)stats;
-(NSString*) getActiveCodecName;
@end