mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-23 00:19:53 +00:00
Use stdint.h types for Video.h
This commit is contained in:
22
src/Video.h
22
src/Video.h
@@ -17,11 +17,13 @@ bool getNextQueuedDecodeUnit(PQUEUED_DECODE_UNIT* qdu);
|
||||
#define FLAG_SOF 0x4
|
||||
|
||||
typedef struct _NV_VIDEO_PACKET {
|
||||
unsigned int streamPacketIndex;
|
||||
unsigned int frameIndex;
|
||||
char flags;
|
||||
char reserved[3];
|
||||
int fecInfo;
|
||||
uint32_t streamPacketIndex;
|
||||
uint32_t frameIndex;
|
||||
uint8_t flags;
|
||||
uint8_t reserved;
|
||||
uint8_t multiFecFlags;
|
||||
uint8_t multiFecBlocks;
|
||||
uint32_t fecInfo;
|
||||
} NV_VIDEO_PACKET, *PNV_VIDEO_PACKET;
|
||||
|
||||
#define FLAG_EXTENSION 0x10
|
||||
@@ -30,11 +32,11 @@ typedef struct _NV_VIDEO_PACKET {
|
||||
#define MAX_RTP_HEADER_SIZE 16
|
||||
|
||||
typedef struct _RTP_PACKET {
|
||||
char header;
|
||||
char packetType;
|
||||
unsigned short sequenceNumber;
|
||||
unsigned int timestamp;
|
||||
unsigned int ssrc;
|
||||
uint8_t header;
|
||||
uint8_t packetType;
|
||||
uint16_t sequenceNumber;
|
||||
uint32_t timestamp;
|
||||
uint32_t ssrc;
|
||||
} RTP_PACKET, *PRTP_PACKET;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
Reference in New Issue
Block a user