Switch to a pull-based renderer and render from CADisplayLink callback

This commit is contained in:
Cameron Gutman
2022-01-13 22:37:18 -06:00
parent 445c026ea9
commit bd582aa6c0
3 changed files with 53 additions and 43 deletions

View File

@@ -14,9 +14,9 @@
- (id)initWithView:(UIView*)view callbacks:(id<ConnectionCallbacks>)callbacks;
- (void)setupWithVideoFormat:(int)videoFormat refreshRate:(int)refreshRate;
- (void)cleanup;
- (void)setupWithVideoFormat:(int)videoFormat frameRate:(int)frameRate;
- (void)start;
- (void)stop;
- (void)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;