mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3345 HoloLens: added Uint8 element type to VdeArrayDataPacket
This commit is contained in:
@@ -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 :
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user