mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-30 09:44:28 +00:00
Use stdint.h types for Video.h
This commit is contained in:
1 parent
ae92f15b0a
commit
8dab1ee300
3 files changed
+18
-16
No files matched your search
+12
-10
@@ -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