#3345 HoloLens: added Uint8 element type to VdeArrayDataPacket

This commit is contained in:
sigurdp
2018-09-19 09:58:24 +02:00
parent 1e320eeae7
commit a76d45fa70
2 changed files with 4 additions and 2 deletions

View File

@@ -31,7 +31,7 @@
// packetVersion: 2 bytes
// arrayId: 4 bytes ID of this array
// elementCount: 4 bytes number of elements in array
// elementType: 1 byte data type of each element in the array(float32=1, uint32=2, uint8=?, int8=?)
// elementType: 1 byte data type of each element in the array(float32=1, uint32=2, uint8=4, int8=?)
// imageComponentCount: 1 byte number of image components per pixel for texture image (currently always 0 or 3)
// imageWidth: 2 bytes only used for texture images, otherwise 0
// imageHeight: 2 bytes :

View File

@@ -36,7 +36,7 @@ public:
Unknown = 0,
Float32 = 1,
Uint32 = 2,
Uint8 = 4,
};
public:
@@ -55,6 +55,8 @@ public:
static VdeArrayDataPacket fromFloat32Arr(int arrayId, const float* srcArr, size_t srcArrElementCount);
static VdeArrayDataPacket fromUint32Arr(int arrayId, const unsigned int* srcArr, size_t srcArrElementCount);
//static VdeArrayDataPacket fromUint8ImageRGBArr(int arrayId, unsigned short imageWidth, unsigned short imageHeight, const unsigned char* srcArr, size_t srcArrElementCount);
static VdeArrayDataPacket fromRawPacketBuffer(const char* rawPacketBuffer, size_t bufferSize, std::string* errString);