2021-04-26 17:08:44 -05:00

43 lines
959 B
C

#pragma once
#include "LinkedBlockingQueue.h"
typedef struct _QUEUED_DECODE_UNIT {
DECODE_UNIT decodeUnit;
LINKED_BLOCKING_QUEUE_ENTRY entry;
} QUEUED_DECODE_UNIT, *PQUEUED_DECODE_UNIT;
void completeQueuedDecodeUnit(PQUEUED_DECODE_UNIT qdu, int drStatus);
bool getNextQueuedDecodeUnit(PQUEUED_DECODE_UNIT* qdu);
#pragma pack(push, 1)
#define FLAG_CONTAINS_PIC_DATA 0x1
#define FLAG_EOF 0x2
#define FLAG_SOF 0x4
typedef struct _NV_VIDEO_PACKET {
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
#define FIXED_RTP_HEADER_SIZE 12
#define MAX_RTP_HEADER_SIZE 16
typedef struct _RTP_PACKET {
uint8_t header;
uint8_t packetType;
uint16_t sequenceNumber;
uint32_t timestamp;
uint32_t ssrc;
} RTP_PACKET, *PRTP_PACKET;
#pragma pack(pop)