Home
last modified time | relevance | path

Searched refs:deUint8 (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/external/deqp/framework/common/
DtcuSeedBuilder.cpp38 deUint32 advanceCrc32 (deUint32 oldCrc, size_t len, const deUint8* data) in advanceCrc32()
69 m_hash = advanceCrc32(m_hash, size, (const deUint8*)ptr); in feed()
74 const deUint8 val = (value ? 54: 7); in operator <<()
88 SeedBuilder& operator<< (SeedBuilder& builder, deUint8 value) in operator <<()
90 const deUint8 val = value ^ 140u; in operator <<()
99 const deUint8 data[] = in operator <<()
101 (deUint8)(((deUint16)val) & 0xFFu), in operator <<()
102 (deUint8)(((deUint16)val) >> 8), in operator <<()
112 const deUint8 data[] = in operator <<()
114 (deUint8)(val & 0xFFu), in operator <<()
[all …]
DtcuCompressedTexture.cpp284 inline deUint64 get64BitBlock (const deUint8* src, int blockNdx) in get64BitBlock()
296 inline deUint64 get128BitBlockStart (const deUint8* src, int blockNdx) in get128BitBlockStart()
302 inline deUint64 get128BitBlockEnd (const deUint8* src, int blockNdx) in get128BitBlockEnd()
322 inline deUint8 extend4To8 (deUint8 src) in extend4To8()
325 return (deUint8)((src << 4) | src); in extend4To8()
328 inline deUint8 extend5To8 (deUint8 src) in extend5To8()
331 return (deUint8)((src << 3) | (src >> 2)); in extend5To8()
334 inline deUint8 extend6To8 (deUint8 src) in extend6To8()
337 return (deUint8)((src << 2) | (src >> 4)); in extend6To8()
340 inline deUint8 extend7To8 (deUint8 src) in extend7To8()
[all …]
DtcuSurface.hpp80 *((deUint8*)pixAddr + 0) = (deUint8)col.getRed(); in setPixel()
81 *((deUint8*)pixAddr + 1) = (deUint8)col.getGreen(); in setPixel()
82 *((deUint8*)pixAddr + 2) = (deUint8)col.getBlue(); in setPixel()
83 *((deUint8*)pixAddr + 3) = (deUint8)col.getAlpha(); in setPixel()
99 const deUint8* byteAddr = (const deUint8*)pixAddr; in getPixel()
DtcuAstcUtil.hpp65 void generateBlockCaseTestData (std::vector<deUint8>& dst, CompressedTexFormat format, BlockTest…
67 void generateRandomBlocks (deUint8* dst, size_t numBlocks, CompressedTexFormat format, deUint32…
68 void generateRandomValidBlocks (deUint8* dst, size_t numBlocks, CompressedTexFormat format, TexD…
70 void generateDummyVoidExtentBlocks (deUint8* dst, size_t numBlocks);
71 void generateDummyNormalBlocks (deUint8* dst, size_t numBlocks, int blockWidth, int blockHeight);
73 bool isValidBlock (const deUint8* data, CompressedTexFormat format, TexDecompressionParams::A…
75 void decompress (const PixelBufferAccess& dst, const deUint8* data, CompressedTexFormat form…
DtcuRGBA.cpp57 deUint8 rDiff = 0; in computeAbsDiffMasked()
58 deUint8 gDiff = 0; in computeAbsDiffMasked()
59 deUint8 bDiff = 0; in computeAbsDiffMasked()
60 deUint8 aDiff = 0; in computeAbsDiffMasked()
67 rDiff = (deUint8)deAbs32(ra - rb); in computeAbsDiffMasked()
75 gDiff = (deUint8)deAbs32(ga - gb); in computeAbsDiffMasked()
83 bDiff = (deUint8)deAbs32(ba - bb); in computeAbsDiffMasked()
91 aDiff = (deUint8)deAbs32(aa - ab); in computeAbsDiffMasked()
DtcuFuzzyImageCompare.cpp43 static inline deUint8 getChannel (deUint32 color) in getChannel()
45 return (deUint8)((color >> (Channel*8)) & 0xff); in getChannel()
48 static inline deUint8 getChannel (deUint32 color, int channel) in getChannel()
50 return (deUint8)((color >> (channel*8)) & 0xff); in getChannel()
53 static inline deUint32 setChannel (deUint32 color, int channel, deUint8 val) in setChannel()
63 static inline deUint8 roundToUint8Sat (float v) in roundToUint8Sat()
65 return (deUint8)de::clamp((int)(v + 0.5f), 0, 255); in roundToUint8Sat()
76 const deUint8* ptr = (const deUint8*)src.getDataPtr() + src.getRowPitch()*y + x*NumChannels; in readUnorm8()
92 return *(const deUint32*)((const deUint8*)src.getDataPtr() + src.getRowPitch()*y + x*4); in readUnorm8()
99 deUint8* ptr = (deUint8*)dst.getDataPtr() + dst.getRowPitch()*y + x*NumChannels; in writeUnorm8()
[all …]
DtcuBilinearImageCompare.cpp44 static inline deUint8 getChannel (deUint32 color) in getChannel()
46 return (deUint8)((color >> (Channel*8)) & 0xff); in getChannel()
52 return *(const deUint32*)((const deUint8*)src.getDataPtr() + y*src.getRowPitch() + x*4); in readRGBA8Raw()
57 …return deReverseBytes32(*(const deUint32*)((const deUint8*)src.getDataPtr() + y*src.getRowPitch() … in readRGBA8Raw()
74 inline deUint8 interpolateChannel (deUint32 fx1, deUint32 fy1, deUint8 p00, deUint8 p01, deUint8 p1… in interpolateChannel()
83 return (deUint8)rounded; in interpolateChannel()
/external/deqp/execserver/
DxsProtocol.hpp75 virtual void write (std::vector<deUint8>& buf) const = DE_NULL;
77 …static void parseHeader (const deUint8* data, size_t dataSize, MessageType& type, size_t& messag…
78 static void writeHeader (MessageType type, size_t messageSize, deUint8* dst, size_t bufSize);
81 void writeNoData (std::vector<deUint8>& buf) const;
92 …SimpleMessage (const deUint8* data, size_t dataSize) : Message((MessageType)MsgType) { DE_UNREF(da… in SimpleMessage()
96 void write (std::vector<deUint8>& buf) const { writeNoData(buf); } in write()
108 HelloMessage (const deUint8* data, size_t dataSize);
112 void write (std::vector<deUint8>& buf) const;
123 ExecuteBinaryMessage (const deUint8* data, size_t dataSize);
127 void write (std::vector<deUint8>& buf) const;
[all …]
DxsProtocol.cpp50 MessageParser (const deUint8* data, size_t dataSize) in MessageParser()
86 const deUint8* m_data;
94 MessageWriter (MessageType msgType, std::vector<deUint8>& buf) in MessageWriter()
128 std::vector<deUint8>& m_buf;
141 void Message::parseHeader (const deUint8* data, size_t dataSize, MessageType& type, size_t& size) in parseHeader()
149 void Message::writeHeader (MessageType type, size_t messageSize, deUint8* dst, size_t bufSize) in writeHeader()
158 void Message::writeNoData (vector<deUint8>& buf) const in writeNoData()
163 HelloMessage::HelloMessage (const deUint8* data, size_t dataSize) in HelloMessage()
171 void HelloMessage::write (vector<deUint8>& buf) const in write()
177 TestMessage::TestMessage (const deUint8* data, size_t dataSize) in TestMessage()
[all …]
/external/deqp/modules/glshared/
DglsBufferTestUtil.hpp54 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed);
55 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int num…
91 void setData (int numBytes, const deUint8* bytes);
92 void setSubData (int offset, int numBytes, const deUint8* bytes);
94 deUint8* getPtr (int offset = 0) { return &m_data[offset]; } in getPtr()
95 const deUint8* getPtr (int offset = 0) const { return &m_data[offset]; } in getPtr()
98 std::vector<deUint8> m_data;
123 …virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) = DE_NU…
124 …virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint3…
142 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes);
[all …]
DglsBufferTestUtil.cpp68 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed) in fillWithRandomBytes()
70 …std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUin… in fillWithRandomBytes()
73 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numByt… in compareByteArrays()
101 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(refPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
102 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(resPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
121 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(refPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
122 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(resPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
238 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes) in setData()
244 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes) in setSubData()
259 void BufferWriterBase::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUi… in write()
[all …]
DglsTextureBufferCase.cpp84 deUint8 extend2BitsToByte (deUint8 bits) in extend2BitsToByte()
88 return (deUint8)(bits | (bits << 2) | (bits << 4) | (bits << 6)); in extend2BitsToByte()
91 void genRandomCoords (de::Random rng, vector<deUint8>& coords, size_t offset, size_t size) in genRandomCoords()
93 const deUint8 bits = 2; in genRandomCoords()
94 const deUint8 bitMask = deUint8((0x1u << bits) - 1); in genRandomCoords()
100 const deUint8 xBits = deUint8(rng.getUint32() & bitMask); in genRandomCoords()
106 const deUint8 indices[] = in genRandomCoords()
116 const deUint8 index = indices[i]; in genRandomCoords()
130 const deUint8 indices[] = in genRandomCoords()
426 vector<deUint8> data; in modifyBufferData()
[all …]
/external/deqp/framework/delibs/decpp/
DdeSha1.hpp74 const deUint8 value = b ? 1 : 0; in operator <<()
81 const deUint8 data[] = in operator <<()
83 (deUint8)(0xFFu & (value >> 24)), in operator <<()
84 (deUint8)(0xFFu & (value >> 16)), in operator <<()
85 (deUint8)(0xFFu & (value >> 8)), in operator <<()
86 (deUint8)(0xFFu & (value >> 0)) in operator <<()
100 const deUint8 data[] = in operator <<()
102 (deUint8)(0xFFull & (value >> 56)), in operator <<()
103 (deUint8)(0xFFull & (value >> 48)), in operator <<()
104 (deUint8)(0xFFull & (value >> 40)), in operator <<()
[all …]
/external/deqp/framework/delibs/deimage/
DdeTarga.c45 deUint8* buffer; in deImage_loadTarga()
49 deUint8 tgaHeader[18]; in deImage_loadTarga()
84 const deUint8* src = buffer; in deImage_loadTarga()
86 deARGB* dst = (deUint32*)((deUint8*)image->pixels + dstY*image->width*bpp); in deImage_loadTarga()
93 deUint8 b = *src++; in deImage_loadTarga()
94 deUint8 g = *src++; in deImage_loadTarga()
95 deUint8 r = *src++; in deImage_loadTarga()
102 deUint8 a = *src++; in deImage_loadTarga()
103 deUint8 b = *src++; in deImage_loadTarga()
104 deUint8 g = *src++; in deImage_loadTarga()
[all …]
/external/deqp/modules/gles2/functional/
Des2fBufferTestUtil.hpp50 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed);
51 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int num…
84 void setData (int numBytes, const deUint8* bytes);
85 void setSubData (int offset, int numBytes, const deUint8* bytes);
87 deUint8* getPtr (int offset = 0) { return &m_data[offset]; } in getPtr()
88 const deUint8* getPtr (int offset = 0) const { return &m_data[offset]; } in getPtr()
91 std::vector<deUint8> m_data;
112 …virtual bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) = …
132 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
149 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
[all …]
Des2fBufferTestUtil.cpp70 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed) in fillWithRandomBytes()
72 …std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUin… in fillWithRandomBytes()
75 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numByt… in compareByteArrays()
103 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(refPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
104 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(resPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
123 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(refPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
124 …< tcu::formatArray(tcu::Format::HexIterator<deUint8>(resPtr+diffSpanStart), tcu::Format::HexIterat… in compareByteArrays()
226 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes) in setData()
232 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes) in setSubData()
266 bool BufferVerifier::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) in verify()
[all …]
/external/deqp/modules/internal/
DditTextureFormatTests.cpp59 static const deUint8 s_snormInt8In[] =
88 static const deUint8 s_snormInt16In[] =
121 static const deUint8 s_snormInt32In[] =
162 static const deUint8 s_unormInt8In[] =
191 static const deUint8 s_unormInt16In[] =
224 static const deUint8 s_unormInt24In[] =
261 static const deUint8 s_unormInt32In[] =
302 static const deUint8 s_unormByte44In[] =
328 static const deUint8 s_unormShort565In[] =
355 static const deUint8 s_unormShort555In[] =
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp86 deUint8 elementSizeBytes;
87 deUint8 widthDivisor;
88 deUint8 heightDivisor;
93 deUint8 planeNdx;
94 deUint8 type; // tcu::TextureChannelClass value
95 deUint8 offsetBits; // Offset in element in bits
96 deUint8 sizeBits; // Value size in bits
97 deUint8 strideBytes; // Pixel stride (in bytes), usually plane elementSize
100 deUint8 numPlanes;
101 deUint8 presentChannels;
/external/deqp/executor/
DxeCallQueue.hpp61 const deUint8* getData (void) const { return m_data.empty() ? DE_NULL : &m_data[0]; } in getData()
62 deUint8* getData (void) { return m_data.empty() ? DE_NULL : &m_data[0]; } in getData()
66 std::vector<deUint8> m_data;
75 void read (deUint8* bytes, size_t numBytes);
76 const deUint8* getDataBlock (size_t numBytes); //!< \note Valid only during call.
93 void write (const deUint8* bytes, size_t numBytes);
139 reader.read((deUint8*)&value, sizeof(T)); in operator >>()
146 writer.write((const deUint8*)&value, sizeof(T)); in operator <<()
DxeTcpIpLink.cpp40 static void writeMessageHeader (de::BlockBuffer<deUint8>& dst, xs::MessageType type, int messageSiz… in writeMessageHeader()
42 deUint8 hdr[xs::MESSAGE_HEADER_SIZE]; in writeMessageHeader()
47 static void writeKeepalive (de::BlockBuffer<deUint8>& dst) in writeKeepalive()
53 static void writeExecuteBinary (de::BlockBuffer<deUint8>& dst, const char* name, const char* params… in writeExecuteBinary()
62 dst.write(nameSize, (const deUint8*)name); in writeExecuteBinary()
63 dst.write(paramsSize, (const deUint8*)params); in writeExecuteBinary()
64 dst.write(workDirSize, (const deUint8*)workDir); in writeExecuteBinary()
65 dst.write(caseListSize, (const deUint8*)caseList); in writeExecuteBinary()
69 static void writeStopExecution (de::BlockBuffer<deUint8>& dst) in writeStopExecution()
136 void TcpIpLinkState::onTestLogData (const deUint8* bytes, size_t numBytes) const in onTestLogData()
[all …]
DxeBatchResult.hpp59 const deUint8* getBytes (void) const { return !m_data.empty() ? &m_data[0] : DE_NULL; } in getBytes()
61 void append (const deUint8* bytes, size_t numBytes);
67 std::vector<deUint8> m_data;
86 const deUint8* getData (void) const { return !m_data.empty() ? &m_data[0] : DE_NULL; } in getData()
87 deUint8* getData (void) { return !m_data.empty() ? &m_data[0] : DE_NULL; } in getData()
96 std::vector<deUint8> m_data;
DxeTcpIpLink.hpp52 void onTestLogData (const deUint8* bytes, size_t numBytes) const;
53 void onInfoLogData (const deUint8* bytes, size_t numBytes) const;
83 de::BlockBuffer<deUint8>& getBuffer (void) { return m_buffer; } in getBuffer()
89 de::BlockBuffer<deUint8> m_buffer;
107 void handleMessage (xs::MessageType messageType, const deUint8* data, size_t dataSize);
112 std::vector<deUint8> m_curMsgBuf;
/external/deqp/modules/gles31/functional/
Des31fShaderAtomicOpTests.cpp213 vector<deUint8> bufData(blockInfo.dataSize); in iterate()
241 (int)inVarInfo.arrayStride, (const deUint8*)resPtr + inVarInfo.offset, in iterate()
242 (int)outVarInfo.arrayStride, (const deUint8*)resPtr + outVarInfo.offset, in iterate()
243 (int)groupVarInfo.arrayStride, (const deUint8*)resPtr + groupVarInfo.offset); in iterate()
274 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal); in getInputs()
285 const int groupOutput = *(const deInt32*)((const deUint8*)groupOutputs + groupNdx*groupStride); in verify()
292 …const int inputValue = *(const deInt32*)((const deUint8*)inputs + inputStride*(groupOffset+localNd… in verify()
304 …const int inputValue = *(const deInt32*)((const deUint8*)inputs + inputStride*(groupOffset+localN… in verify()
305 …const int outputValue = *(const deInt32*)((const deUint8*)outputs + outputStride*(groupOffset+loc… in verify()
427 *(int*)((deUint8*)inputs + stride*valNdx) = rnd.getInt(minVal, maxVal); in getInputs()
[all …]
/external/deqp/framework/delibs/debase/
DdeSha1.c132 const deUint8* const data = (const deUint8*)data_; in deSha1Stream_process()
158 static const deUint8 padding[CHUNK_BYTE_SIZE] = { 0x80u }; in deSha1Stream_finalize()
160 deUint8 lengthData[sizeof(deUint64)]; in deSha1Stream_finalize()
167 lengthData[ndx] = (deUint8)(0xffu & (length >> (8 * (sizeof(deUint64) - 1 - ndx)))); in deSha1Stream_finalize()
200 const deUint8 val8 = (deUint8)(0x0fu & (val32 >> (4 * (8 - 1 - (charNdx % 8))))); in deSha1_render()
217 deUint8 val4; in deSha1_parse()
220 val4 = (deUint8)(buffer[charNdx] - '0'); in deSha1_parse()
222 val4 = (deUint8)(10 + (buffer[charNdx] - 'a')); in deSha1_parse()
224 val4 = (deUint8)(10 + (buffer[charNdx] - 'A')); in deSha1_parse()
/external/deqp/framework/delibs/destream/
DdeRingbuffer.c37 deUint8* buffer;
62 ringbuffer->buffer = (deUint8*)deMalloc(sizeof(deUint8) * (size_t)blockSize * (size_t)blockCount); in deRingbuffer_create()
131 deUint8* src = DE_NULL; in producerStream_write()
132 deUint8* dst = DE_NULL; in producerStream_write()
142 src = (deUint8*)buf + *written; in producerStream_write()
207 deUint8* src = DE_NULL; in consumerStream_read()
208 deUint8* dst = DE_NULL; in consumerStream_read()
239 dst = (deUint8*)buf + *read; in consumerStream_read()

12345678910>>...13