mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +00:00
36 lines
1.3 KiB
C
36 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include "Limelight.h"
|
|
#include "Platform.h"
|
|
#include "PlatformSockets.h"
|
|
#include "Video.h"
|
|
|
|
char* allocateConfigDataForStreamConfig(PSTREAM_CONFIGURATION streamConfig);
|
|
int getConfigDataSize(PSTREAM_CONFIGURATION streamConfig);
|
|
|
|
int initializeControlStream(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig);
|
|
int startControlStream(void);
|
|
int stopControlStream(void);
|
|
void destroyControlStream(void);
|
|
void connectionSinkTooSlow(int startFrame, int endFrame);
|
|
void connectionDetectedFrameLoss(int startFrame, int endFrame);
|
|
|
|
int performHandshake(IP_ADDRESS host);
|
|
void terminateHandshake(void);
|
|
|
|
void initializeVideoDepacketizer(void);
|
|
void destroyVideoDepacketizer(void);
|
|
void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length);
|
|
int getNextDecodeUnit(PDECODE_UNIT *du);
|
|
void freeDecodeUnit(PDECODE_UNIT decodeUnit);
|
|
void queueRtpPacket(PRTP_PACKET rtpPacket, int length);
|
|
|
|
void initializeVideoStream(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig, PDECODER_RENDERER_CALLBACKS drCallbacks);
|
|
void destroyVideoStream(void);
|
|
int startVideoStream(void* rendererContext, int drFlags);
|
|
void stopVideoStream(void);
|
|
|
|
void initializeAudioStream(IP_ADDRESS host, PAUDIO_RENDERER_CALLBACKS arCallbacks);
|
|
void destroyAudioStream(void);
|
|
int startAudioStream(void);
|
|
void stopAudioStream(void); |