Home
last modified time | relevance | path

Searched refs:getFormat (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/external/deqp/framework/opengl/
DgluPixelTransfer.cpp54 TCU_CHECK_INTERNAL(dst.getRowPitch() == dst.getFormat().getPixelSize()*dst.getWidth()); in readPixels()
58 TransferFormat format = getTransferFormat(dst.getFormat()); in readPixels()
60 gl.pixelStorei(GL_PACK_ALIGNMENT, getTransferAlignment(dst.getFormat())); in readPixels()
73 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texImage2D()
77 TransferFormat format = getTransferFormat(src.getFormat()); in texImage2D()
79 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat())); in texImage2D()
91 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texImage3D()
97 TransferFormat format = getTransferFormat(src.getFormat()); in texImage3D()
99 gl.pixelStorei(GL_UNPACK_ALIGNMENT, getTransferAlignment(src.getFormat())); in texImage3D()
112 TCU_CHECK_INTERNAL(src.getRowPitch() == src.getFormat().getPixelSize()*src.getWidth()); in texSubImage2D()
[all …]
DgluTexture.cpp86 gl.pixelStorei(GL_UNPACK_ALIGNMENT, computePixelStore(m_refTexture.getFormat())); in upload()
89 TransferFormat transferFormat = getTransferFormat(m_refTexture.getFormat()); in upload()
132 , m_format (getGLFormat(levels[0].getFormat())) in Texture2D()
133 …, m_refTexture (getUncompressedFormat(levels[0].getFormat()), levels[0].getWidth(), levels[0].get… in Texture2D()
169 gl.pixelStorei(GL_UNPACK_ALIGNMENT, computePixelStore(m_refTexture.getFormat())); in upload()
172 TransferFormat transferFormat = getTransferFormat(m_refTexture.getFormat()); in upload()
180 DE_ASSERT(access.getRowPitch() == access.getFormat().getPixelSize()*access.getWidth()); in upload()
190 deUint32 compressedFormat = getGLFormat(levels[0].getFormat()); in loadCompressed()
229 …TCU_CHECK_INTERNAL(level.getFormat() == tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureF… in create()
230 … level.getFormat() == tcu::TextureFormat(tcu::TextureFormat::RGB, tcu::TextureFormat::UNORM_INT8)); in create()
[all …]
/external/swiftshader/src/OpenGL/libGLESv2/
DRenderbuffer.cpp44 return GetRedSize(getFormat()); in getRedSize()
49 return GetGreenSize(getFormat()); in getGreenSize()
54 return GetBlueSize(getFormat()); in getBlueSize()
59 return GetAlphaSize(getFormat()); in getAlphaSize()
64 return GetDepthSize(getFormat()); in getDepthSize()
69 return GetStencilSize(getFormat()); in getStencilSize()
125 GLint RenderbufferTexture2D::getFormat() const in getFormat() function in es2::RenderbufferTexture2D
127 return mTexture2D->getFormat(GL_TEXTURE_2D, mLevel); in getFormat()
188 GLint RenderbufferTexture2DRect::getFormat() const in getFormat() function in es2::RenderbufferTexture2DRect
190 return mTexture2DRect->getFormat(GL_TEXTURE_RECTANGLE_ARB, 0); in getFormat()
[all …]
DFramebuffer.cpp350 if(!IsColorRenderable(colorbuffer->getFormat())) in completeness()
357 GLint format = colorbuffer->getFormat(); in completeness()
413 if(!es2::IsDepthRenderable(depthbuffer->getFormat())) in completeness()
420 if(!es2::IsDepthTexture(depthbuffer->getFormat())) in completeness()
465 if(!es2::IsStencilRenderable(stencilbuffer->getFormat())) in completeness()
472 GLenum internalformat = stencilbuffer->getFormat(); in completeness()
528 switch(colorbuffer->getFormat()) in getImplementationColorReadFormat()
576 UNREACHABLE(colorbuffer->getFormat()); in getImplementationColorReadFormat()
589 switch(colorbuffer->getFormat()) in getImplementationColorReadType()
637 UNREACHABLE(colorbuffer->getFormat()); in getImplementationColorReadType()
[all …]
DRenderbuffer.h57 virtual GLint getFormat() const = 0;
87 GLint getFormat() const override;
113 GLint getFormat() const override;
138 GLint getFormat() const override;
165 GLint getFormat() const override;
192 GLint getFormat() const override;
227 GLint getFormat() const;
DTexture.cpp510 GLint Texture2D::getFormat(GLenum target, GLint level) const in getFormat() function in es2::Texture2D
513 return image[level] ? image[level]->getFormat() : GL_NONE; in getFormat()
735 if(image[level]->getFormat() != image[mBaseLevel]->getFormat()) in isMipmapComplete()
758 return IsCompressed(getFormat(target, level)); in isCompressed()
763 return IsDepthTexture(getFormat(target, level)); in isDepth()
789 …idth() >> i, 1), std::max(image[mBaseLevel]->getHeight() >> i, 1), image[mBaseLevel]->getFormat()); in generateMipmaps()
980 GLint TextureCubeMap::getFormat(GLenum target, GLint level) const in getFormat() function in es2::TextureCubeMap
983 return image[face][level] ? image[face][level]->getFormat() : 0; in getFormat()
1091 image[face][mBaseLevel]->getFormat() != image[0][mBaseLevel]->getFormat()) in isCubeComplete()
1125 if(image[face][level]->getFormat() != image[0][mBaseLevel]->getFormat()) in isMipmapCubeComplete()
[all …]
/external/swiftshader/src/OpenGL/libGLES_CM/
DRenderbuffer.cpp44 return GetRedSize(getFormat()); in getRedSize()
49 return GetGreenSize(getFormat()); in getGreenSize()
54 return GetBlueSize(getFormat()); in getBlueSize()
59 return GetAlphaSize(getFormat()); in getAlphaSize()
64 return GetDepthSize(getFormat()); in getDepthSize()
69 return GetStencilSize(getFormat()); in getStencilSize()
125 GLint RenderbufferTexture2D::getFormat() const in getFormat() function in es1::RenderbufferTexture2D
127 return mTexture2D->getFormat(GL_TEXTURE_2D, 0); in getFormat()
198 GLenum Renderbuffer::getFormat() const in getFormat() function in es1::Renderbuffer
200 return mInstance->getFormat(); in getFormat()
[all …]
DFramebuffer.cpp257 if(!IsColorRenderable(colorbuffer->getFormat())) in completeness()
264 GLenum format = colorbuffer->getFormat(); in completeness()
306 if(!es1::IsDepthRenderable(depthbuffer->getFormat())) in completeness()
313 if(!es1::IsDepthTexture(depthbuffer->getFormat())) in completeness()
356 if(!es1::IsStencilRenderable(stencilbuffer->getFormat())) in completeness()
363 GLenum internalformat = stencilbuffer->getFormat(); in completeness()
408 switch(colorbuffer->getFormat()) in getImplementationColorReadFormat()
417 UNREACHABLE(colorbuffer->getFormat()); in getImplementationColorReadFormat()
430 switch(colorbuffer->getFormat()) in getImplementationColorReadType()
439 UNREACHABLE(colorbuffer->getFormat()); in getImplementationColorReadType()
/external/clang/include/clang/Frontend/
DPCHContainerOperations.h44 virtual StringRef getFormat() const = 0;
62 virtual StringRef getFormat() const = 0;
72 StringRef getFormat() const override { return "raw"; } in getFormat() function
84 StringRef getFormat() const override { return "raw"; } in getFormat() function
100 Writers[Writer->getFormat()] = std::move(Writer); in registerWriter()
103 Readers[Reader->getFormat()] = std::move(Reader); in registerReader()
/external/deqp/framework/common/
DtcuImageCompare.cpp232 …if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8) && referen… in fuzzyCompare()
246 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in fuzzyCompare()
293 …TCU_CHECK_INTERNAL(ref.getFormat().type == TextureFormat::UNORM_INT8 && cmp.getFormat().type == Te… in computeSquaredDiffSum()
348 …if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8) && referen… in measurePixelDiffAccuracy()
359 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in measurePixelDiffAccuracy()
524 …if (tcu::getTextureChannelClass(reference.getFormat().type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_F… in floatUlpThresholdCompare()
525 …tcu::getTextureChannelClass(result.getFormat().type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_PO… in floatUlpThresholdCompare()
542 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8)) in floatUlpThresholdCompare()
611 …if (tcu::getTextureChannelClass(reference.getFormat().type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_F… in floatThresholdCompare()
612 …tcu::getTextureChannelClass(result.getFormat().type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_PO… in floatThresholdCompare()
[all …]
DtcuTextureUtil.cpp263 …return ConstPixelBufferAccess(access.getFormat(), tcu::IVec3(width, height, depth), access.getPitc… in getSubregion()
289 return PixelBufferAccess(access.getFormat(), tcu::IVec3(width, height, depth), access.getPitch(), in getSubregion()
332 …return PixelBufferAccess(access.getFormat(), access.getSize(), pitch, (deUint8*)access.getDataPtr(… in flipYAccess()
346 …return ConstPixelBufferAccess(access.getFormat(), access.getSize(), pitch, (deUint8*)access.getDat… in flipYAccess()
716 const int pixelSize = access.getFormat().getPixelSize(); in clear()
730 PixelBufferAccess(access.getFormat(), 1, 1, 1, 0, 0, &pixel.u8[0]).setPixel(color, 0, 0); in clear()
747 const int pixelSize = access.getFormat().getPixelSize(); in clear()
761 PixelBufferAccess(access.getFormat(), 1, 1, 1, 0, 0, &pixel.u8[0]).setPixel(color, 0, 0); in clear()
783 …DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureForm… in clearDepth()
790 …DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureForm… in clearStencil()
[all …]
DtcuTestLog.cpp67 if (tcu::isCombinedDepthStencilType(m_access.getFormat().type)) in LogImage()
69 if (m_access.getFormat().order == tcu::TextureFormat::D) in LogImage()
71 else if (m_access.getFormat().order == tcu::TextureFormat::S) in LogImage()
76 if (m_access.getFormat().order != tcu::TextureFormat::DS) in LogImage()
105 DE_ASSERT(access.getFormat().order != tcu::TextureFormat::DS); in LogImage()
108 if (tcu::isCombinedDepthStencilType(access.getFormat().type)) in LogImage()
110 if (access.getFormat().order == tcu::TextureFormat::D) in LogImage()
112 if (access.getFormat().order == tcu::TextureFormat::S) in LogImage()
125 if (m_access.getFormat().order != tcu::TextureFormat::DS) in write()
238 const TextureFormat& format = access.getFormat(); in writeImage()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECKeyFactory.java97 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
112 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
123 if (!"PKCS#8".equals(key.getFormat())) { in engineGetKeySpec()
125 + key.getFormat()); in engineGetKeySpec()
133 if (!"X.509".equals(key.getFormat())) { in engineGetKeySpec()
135 + key.getFormat()); in engineGetKeySpec()
178 } else if ((key instanceof PrivateKey) && "PKCS#8".equals(key.getFormat())) { in engineTranslateKey()
188 } else if ((key instanceof PublicKey) && "X.509".equals(key.getFormat())) { in engineTranslateKey()
DOpenSSLRSAKeyFactory.java98 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
130 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
148 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
159 if (!"PKCS#8".equals(key.getFormat())) { in engineGetKeySpec()
161 + key.getFormat()); in engineGetKeySpec()
169 if (!"X.509".equals(key.getFormat())) { in engineGetKeySpec()
171 + key.getFormat()); in engineGetKeySpec()
228 } else if ((key instanceof PrivateKey) && "PKCS#8".equals(key.getFormat())) { in engineTranslateKey()
238 } else if ((key instanceof PublicKey) && "X.509".equals(key.getFormat())) { in engineTranslateKey()
DOpenSSLKey.java65 final String keyFormat = key.getFormat(); in fromPrivateKey()
68 } else if (!"PKCS#8".equals(key.getFormat())) { in fromPrivateKey()
178 if (!"PKCS#8".equals(key.getFormat())) { in fromKeyMaterial()
224 if (!"X.509".equals(key.getFormat())) { in fromPublicKey()
225 throw new InvalidKeyException("Unknown key format " + key.getFormat()); in fromPublicKey()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECKeyFactory.java101 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
116 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
127 if (!"PKCS#8".equals(key.getFormat())) { in engineGetKeySpec()
129 + key.getFormat()); in engineGetKeySpec()
137 if (!"X.509".equals(key.getFormat())) { in engineGetKeySpec()
139 + key.getFormat()); in engineGetKeySpec()
182 } else if ((key instanceof PrivateKey) && "PKCS#8".equals(key.getFormat())) { in engineTranslateKey()
192 } else if ((key instanceof PublicKey) && "X.509".equals(key.getFormat())) { in engineTranslateKey()
DOpenSSLRSAKeyFactory.java103 if (!"X.509".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
135 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
153 if (!"PKCS#8".equals(key.getFormat()) || encoded == null) { in engineGetKeySpec()
164 if (!"PKCS#8".equals(key.getFormat())) { in engineGetKeySpec()
166 + key.getFormat()); in engineGetKeySpec()
174 if (!"X.509".equals(key.getFormat())) { in engineGetKeySpec()
176 + key.getFormat()); in engineGetKeySpec()
233 } else if ((key instanceof PrivateKey) && "PKCS#8".equals(key.getFormat())) { in engineTranslateKey()
243 } else if ((key instanceof PublicKey) && "X.509".equals(key.getFormat())) { in engineTranslateKey()
DOpenSSLKey.java69 final String keyFormat = key.getFormat(); in fromPrivateKey()
72 } else if (!"PKCS#8".equals(key.getFormat())) { in fromPrivateKey()
182 if (!"PKCS#8".equals(key.getFormat())) { in fromKeyMaterial()
228 if (!"X.509".equals(key.getFormat())) { in fromPublicKey()
229 throw new InvalidKeyException("Unknown key format " + key.getFormat()); in fromPublicKey()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DElapsedTimer.java42 return diffTime(getFormat(), start, end); in elapsedTime()
46 return diffTime(getFormat(), start, System.currentTimeMillis()); in elapsedTime()
95 private static NumberFormat getFormat() { in getFormat() method in ElapsedTimer
105 fmt = getFormat(); in diffTime()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DElapsedTimer.java39 return diffTime(getFormat(), start, end); in elapsedTime()
43 return diffTime(getFormat(), start, System.currentTimeMillis()); in elapsedTime()
92 private static NumberFormat getFormat() { in getFormat() method in ElapsedTimer
102 fmt = getFormat(); in diffTime()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DBuilderInstruction.java48 Preconditions.checkFormat(opcode, getFormat()); in BuilderInstruction()
56 public abstract Format getFormat(); in getFormat() method in BuilderInstruction
59 return getFormat().size / 2; in getCodeUnits()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageUtil.cpp244 …tcu::copy(*resultLevel, tcu::ConstPixelBufferAccess(resultLevel->getFormat(), resultLevel->getSize… in readColorAttachment()
592 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in getSize()
600 …textureSize += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().getPixe… in getSize()
616 offsetMultiples.push_back(tcu::getBlockSize(getCompressedLevel(0, 0).getFormat())); in getCompressedSize()
656 offsetMultiples.push_back(tcu::getBlockSize(getCompressedLevel(0, 0).getFormat())); in getBufferCopyRegions()
663 tcu::IVec3 blockPixelSize = getBlockPixelSize(level.getFormat()); in getBufferCopyRegions()
704 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in getBufferCopyRegions()
737 …layerDataOffset += level.getWidth() * level.getHeight() * level.getDepth() * level.getFormat().get… in getBufferCopyRegions()
754 offsetMultiples.push_back(tcu::getBlockSize(getCompressedLevel(0, 0).getFormat())); in write()
771 offsetMultiples.push_back(getLevel(0, 0).getFormat().getPixelSize()); in write()
[all …]
DvktPipelineImageUtil.hpp176 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat()
198 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat()
220 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat()
242 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat()
263 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); } in getTextureFormat()
285 …virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat();… in getTextureFormat()
307 …virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat();… in getTextureFormat()
/external/deqp/modules/internal/
DditTextureFormatTests.cpp1308 switch (getTextureChannelClass(dst.getFormat().type)) in copyPixels()
1396 getReferenceValues<T>(m_format, src.getFormat(), ref); in verifyRead()
1414 const bool isFloat32Or64 = src.getFormat().type == tcu::TextureFormat::FLOAT || in verifyRead()
1415 src.getFormat().type == tcu::TextureFormat::FLOAT64; in verifyRead()
1417 if (isAccessValid(src.getFormat(), tcu::TEXTUREACCESSTYPE_FLOAT)) in verifyRead()
1420 if (isAccessValid(src.getFormat(), tcu::TEXTUREACCESSTYPE_UNSIGNED_INT) && !isFloat32Or64) in verifyRead()
1423 if (isAccessValid(src.getFormat(), tcu::TEXTUREACCESSTYPE_SIGNED_INT) && !isFloat32Or64) in verifyRead()
1497 vector<deUint8> tmpMem (getPixelSize(inputAccess.getFormat())*inputAccess.getWidth()); in iterate()
1498 …const PixelBufferAccess tmpAccess (inputAccess.getFormat(), inputAccess.getWidth(), 1, 1, &tmpM… in iterate()
1530 vector<deUint8> tmpMem (getPixelSize(inputAccess.getFormat())*inputAccess.getWidth()); in iterate()
[all …]
/external/deqp/modules/gles31/functional/
Des31fCopyImageTests.cpp350 deUint32 getFormat (void) const { return m_format; } in getFormat() function in deqp::gles31::Functional::__anond55736d60111::ImageInfo
372 builder << info.getFormat() << info.getTarget() << info.getSize(); in operator <<()
822 const int texelBlockSize = getTexelBlockSize(info.getFormat()); in genTextureImage()
823 const IVec3 texelBlockPixelSize = getTexelBlockPixelSize(info.getFormat()); in genTextureImage()
850 …genericTexImage(gl, info.getTarget(), faceNdx, levelNdx, levelPixelSize, info.getFormat(), levelSi… in genTextureImage()
876 const tcu::TextureFormat format = glu::mapGLInternalFormat(info.getFormat()); in genRenderbufferImage()
881 DE_ASSERT(!glu::isCompressedFormat(info.getFormat())); in genRenderbufferImage()
890 gl.renderbufferStorage(GL_RENDERBUFFER, info.getFormat(), info.getSize().x(), info.getSize().y()); in genRenderbufferImage()
900 if (isFixedPointFormat(info.getFormat())) in genRenderbufferImage()
919 if (isIntFormat(info.getFormat())) in genRenderbufferImage()
[all …]

12345678910>>...16