mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 02:20:53 +00:00
* merged moonlight-mac with moonlight-ios * reverted to the original project.pbxproj * cleaned up the code, fixed lots of unnecessary code duplications * multicontroller support (not tested) * new class that can be used for further modularization of the MainFrameViewController
27 lines
641 B
Objective-C
27 lines
641 B
Objective-C
//
|
|
// VideoDecoderRenderer.h
|
|
// Moonlight
|
|
//
|
|
// Created by Cameron Gutman on 10/18/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@import AVFoundation;
|
|
|
|
@interface VideoDecoderRenderer : NSObject
|
|
#if TARGET_OS_IPHONE
|
|
- (id)initWithView:(UIView*)view;
|
|
#else
|
|
- (id)initWithView:(NSView*)view;
|
|
#endif
|
|
|
|
- (void)setupWithVideoFormat:(int)videoFormat;
|
|
|
|
- (void)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;
|
|
|
|
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType;
|
|
|
|
@end
|