mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-03 00:06:31 +00:00
26 lines
686 B
Objective-C
26 lines
686 B
Objective-C
//
|
|
// VideoDecoderRenderer.h
|
|
// Moonlight
|
|
//
|
|
// Created by Cameron Gutman on 10/18/14.
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
|
//
|
|
|
|
@import AVFoundation;
|
|
|
|
#import "ConnectionCallbacks.h"
|
|
|
|
@interface VideoDecoderRenderer : NSObject
|
|
|
|
- (id)initWithView:(UIView*)view callbacks:(id<ConnectionCallbacks>)callbacks;
|
|
|
|
- (void)setupWithVideoFormat:(int)videoFormat refreshRate:(int)refreshRate;
|
|
|
|
- (void)cleanup;
|
|
|
|
- (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 pts:(unsigned int)pts;
|
|
|
|
@end
|