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
|
|
|
|
2014-10-19 00:09:47 -04:00
|
|
|
@interface VideoDecoderRenderer : NSObject
|
2018-03-27 00:34:38 -07:00
|
|
|
|
|
|
|
|
- (id)initWithView:(OSView*)view;
|
2014-10-19 00:09:47 -04:00
|
|
|
|
2019-09-14 11:49:09 -07:00
|
|
|
- (void)setupWithVideoFormat:(int)videoFormat refreshRate:(int)refreshRate;
|
|
|
|
|
|
|
|
|
|
- (void)cleanup;
|
2017-09-10 00:00:40 -07:00
|
|
|
|
2014-10-20 04:48:48 -04:00
|
|
|
- (void)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;
|
2014-10-19 05:27:21 -04:00
|
|
|
|
2019-11-11 18:42:11 -08:00
|
|
|
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType pts:(unsigned int)pts;
|
2014-10-18 22:43:52 -04:00
|
|
|
|
|
|
|
|
@end
|