Refactor new macOS code to reduce #ifs, increase shared code, and fix warnings
This commit is contained in:
parent
6cc165b589
commit
e8832ed746
22 changed files with 73 additions and 293 deletions
|
|
@ -11,11 +11,8 @@
|
|||
@import AVFoundation;
|
||||
|
||||
@interface VideoDecoderRenderer : NSObject
|
||||
#if TARGET_OS_IPHONE
|
||||
- (id)initWithView:(UIView*)view;
|
||||
#else
|
||||
- (id)initWithView:(NSView*)view;
|
||||
#endif
|
||||
|
||||
- (id)initWithView:(OSView*)view;
|
||||
|
||||
- (void)setupWithVideoFormat:(int)videoFormat;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue