Refactor decoder interface to pass decode unit into VideoDecoderRenderer

This commit is contained in:
Cameron Gutman
2023-10-20 17:04:06 -05:00
parent f20d90791a
commit 2c76654841
3 changed files with 10 additions and 12 deletions

View File

@@ -10,6 +10,8 @@
#import "ConnectionCallbacks.h"
#include "Limelight.h"
@interface VideoDecoderRenderer : NSObject
- (id)initWithView:(UIView*)view callbacks:(id<ConnectionCallbacks>)callbacks streamAspectRatio:(float)aspectRatio useFramePacing:(BOOL)useFramePacing;
@@ -19,6 +21,6 @@
- (void)stop;
- (void)setHdrMode:(BOOL)enabled;
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType frameType:(int)frameType pts:(unsigned int)pts;
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType decodeUnit:(PDECODE_UNIT)du;
@end