Update depacketizer to using the same algorithm as the Java version for decreased CPU load

This commit is contained in:
Cameron Gutman
2014-03-29 11:50:58 -04:00
parent d751c44c3d
commit e27218f56e
4 changed files with 204 additions and 67 deletions
+4 -1
View File
@@ -1,10 +1,13 @@
#pragma once
#define FLAG_EOF 0x2
#define FLAG_SOF 0x4
typedef struct _NV_VIDEO_PACKET {
int frameIndex;
int packetIndex;
int totalPackets;
int reserved1;
int flags;
int payloadLength;
char reserved2[36];
} NV_VIDEO_PACKET, *PNV_VIDEO_PACKET;