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
commit bd582aa6c0
3 changed files with 51 additions and 41 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;