2014-10-18 22:43:52 -04:00
|
|
|
//
|
|
|
|
|
// VideoDecoderRenderer.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2014-10-18 22:43:52 -04:00
|
|
|
//
|
|
|
|
|
// Created by Cameron Gutman on 10/18/14.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2014 Moonlight Stream. All rights reserved.
|
2014-10-18 22:43:52 -04:00
|
|
|
//
|
|
|
|
|
|
2014-10-19 00:09:47 -04:00
|
|
|
@import AVFoundation;
|
2014-10-18 22:43:52 -04:00
|
|
|
|
2020-11-01 20:00:39 -06:00
|
|
|
#import "ConnectionCallbacks.h"
|
|
|
|
|
|
2023-10-20 17:04:06 -05:00
|
|
|
#include "Limelight.h"
|
|
|
|
|
|
2014-10-19 00:09:47 -04:00
|
|
|
@interface VideoDecoderRenderer : NSObject
|
2018-03-27 00:34:38 -07:00
|
|
|
|
2022-02-06 17:13:03 -06:00
|
|
|
- (id)initWithView:(UIView*)view callbacks:(id<ConnectionCallbacks>)callbacks streamAspectRatio:(float)aspectRatio useFramePacing:(BOOL)useFramePacing;
|
2014-10-19 00:09:47 -04:00
|
|
|
|
2023-09-18 21:24:12 -05:00
|
|
|
- (void)setupWithVideoFormat:(int)videoFormat width:(int)videoWidth height:(int)videoHeight frameRate:(int)frameRate;
|
2022-01-13 22:37:18 -06:00
|
|
|
- (void)start;
|
|
|
|
|
- (void)stop;
|
2023-02-02 23:11:27 -06:00
|
|
|
- (void)setHdrMode:(BOOL)enabled;
|
2017-09-10 00:00:40 -07:00
|
|
|
|
2023-10-20 17:04:06 -05:00
|
|
|
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType decodeUnit:(PDECODE_UNIT)du;
|
2014-10-18 22:43:52 -04:00
|
|
|
|
|
|
|
|
@end
|