Home
last modified time | relevance | path

Searched refs:formatInfo (Results 1 – 25 of 72) sorted by relevance

123

/external/angle/src/tests/gl_tests/
DD3D11FormatTablesTest.cpp53 const rx::d3d11::Format &formatInfo = in TEST_P() local
72 bool texSuccess = SUCCEEDED(device->CheckFormatSupport(formatInfo.texFormat, &texSupport)); in TEST_P()
79 const auto &dxgiSupport = rx::d3d11::GetDXGISupport(formatInfo.texFormat, featureLevel); in TEST_P()
89 SUCCEEDED(device->CheckFormatSupport(formatInfo.srvFormat, &filterSupport)); in TEST_P()
100 renderFormat = formatInfo.dsvFormat; in TEST_P()
102 SUCCEEDED(device->CheckFormatSupport(formatInfo.dsvFormat, &renderSupport)); in TEST_P()
107 EXPECT_NE(DXGI_FORMAT_UNKNOWN, formatInfo.dsvFormat) in TEST_P()
113 renderFormat = formatInfo.rtvFormat; in TEST_P()
115 SUCCEEDED(device->CheckFormatSupport(formatInfo.rtvFormat, &renderSupport)); in TEST_P()
119 EXPECT_NE(DXGI_FORMAT_UNKNOWN, formatInfo.rtvFormat) in TEST_P()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineClearUtil.cpp42 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColor() local
43 return (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.lookupScale; in defaultClearColor()
49 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColorInt() local
50 …const tcu::Vec4 color = (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.looku… in defaultClearColorInt()
60 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(format); in defaultClearColorUint() local
61 …const tcu::Vec4 color = (defaultClearColorUnorm() - formatInfo.lookupBias) / formatInfo.looku… in defaultClearColorUint()
DvktPipelineBlendTests.cpp794 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(mapVkFormat(m_colorFormat)); in BlendTestInstance() local
796 …vertices[vertexNdx].color = (m_vertices[vertexNdx].color - formatInfo.lookupBias) / formatInfo.loo… in BlendTestInstance()
1384 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(mapVkFormat(m_colorFormat)); in DualSourceBlendTestInstance() local
1387 …rtices[vertexNdx].color0 = (m_vertices[vertexNdx].color0 - formatInfo.lookupBias) / formatInfo.loo… in DualSourceBlendTestInstance()
1388 …rtices[vertexNdx].color1 = (m_vertices[vertexNdx].color1 - formatInfo.lookupBias) / formatInfo.loo… in DualSourceBlendTestInstance()
1917 const auto formatInfo = tcu::getTextureFormatInfo(tcuColorFormat); in iterate() local
1924 …clampedBlendConstants[i] = de::clamp(clampedBlendConstants[i], formatInfo.valueMin[i], formatInfo.… in iterate()
1925 …clampedQuadColor[i] = de::clamp(clampedQuadColor[i], formatInfo.valueMin[i], formatInfo.valueMa… in iterate()
/external/angle/src/libANGLE/
Dformatutils.cpp593 void InsertFormatInfo(InternalFormatInfoMap *map, const InternalFormat &formatInfo) in InsertFormatInfo() argument
595 ASSERT(!formatInfo.sized || (*map).count(formatInfo.internalFormat) == 0); in InsertFormatInfo()
596 ASSERT((*map)[formatInfo.internalFormat].count(formatInfo.type) == 0); in InsertFormatInfo()
597 (*map)[formatInfo.internalFormat][formatInfo.type] = formatInfo; in InsertFormatInfo()
764 InternalFormat formatInfo; in AddRGBAFormat() local
765 formatInfo.internalFormat = internalFormat; in AddRGBAFormat()
766 formatInfo.sized = sized; in AddRGBAFormat()
767 formatInfo.sizedInternalFormat = in AddRGBAFormat()
769 formatInfo.redBits = red; in AddRGBAFormat()
770 formatInfo.greenBits = green; in AddRGBAFormat()
[all …]
Dformat_map_desktop.cpp87 const InternalFormat &formatInfo = GetInternalFormatInfo(format, type); in ValidDesktopFormatCombination() local
117 if (formatInfo.isDepthOrStencil() != internalFormatInfo.isDepthOrStencil()) in ValidDesktopFormatCombination()
DvalidationES3.cpp366 const InternalFormat &formatInfo = GetInternalFormatInfo(internalFormat, type); in ValidateTexImageFormatCombination() local
367 if (!formatInfo.textureSupport(context->getClientVersion(), context->getExtensions())) in ValidateTexImageFormatCombination()
875 const EffectiveInternalFormatInfo &formatInfo = list[curFormat]; in QueryEffectiveFormatList() local
876 if ((formatInfo.destFormat == targetFormat) && in QueryEffectiveFormatList()
877 (formatInfo.minRedBits <= srcFormat.redBits && in QueryEffectiveFormatList()
878 formatInfo.maxRedBits >= srcFormat.redBits) && in QueryEffectiveFormatList()
879 (formatInfo.minGreenBits <= srcFormat.greenBits && in QueryEffectiveFormatList()
880 formatInfo.maxGreenBits >= srcFormat.greenBits) && in QueryEffectiveFormatList()
881 (formatInfo.minBlueBits <= srcFormat.blueBits && in QueryEffectiveFormatList()
882 formatInfo.maxBlueBits >= srcFormat.blueBits) && in QueryEffectiveFormatList()
[all …]
/external/icu/icu4c/source/i18n/
Dwinnmfmt.cpp388 FormatInfo formatInfo; in format() local
390 formatInfo = *fFormatInfo; in format()
402 formatInfo.currency.NumDigits = (UINT) numDigits; in format()
406 formatInfo.currency.Grouping = 0; in format()
409 …result = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SI… in format()
415 … int newLength = GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, NULL, 0); in format()
419 … GetCurrencyFormatEx(localeName, 0, nBuffer, &formatInfo.currency, buffer, newLength); in format()
424 formatInfo.number.NumDigits = (UINT) numDigits; in format()
428 formatInfo.number.Grouping = 0; in format()
431 … result = GetNumberFormatEx(localeName, 0, nBuffer, &formatInfo.number, buffer, STACK_BUFFER_SIZE); in format()
[all …]
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DClear11.cpp478 const gl::InternalFormat &formatInfo = *attachment.getFormat().info; in clearFramebuffer() local
481 !(formatInfo.componentType == GL_FLOAT || in clearFramebuffer()
482 formatInfo.componentType == GL_UNSIGNED_NORMALIZED || in clearFramebuffer()
483 formatInfo.componentType == GL_SIGNED_NORMALIZED)) in clearFramebuffer()
494 if ((formatInfo.redBits == 0 || !r) && (formatInfo.greenBits == 0 || !g) && in clearFramebuffer()
495 (formatInfo.blueBits == 0 || !b) && (formatInfo.alphaBits == 0 || !a)) in clearFramebuffer()
505 clearParams.colorType != GL_FLOAT || (formatInfo.redBits > 0 && !r) || in clearFramebuffer()
506 (formatInfo.greenBits > 0 && !g) || (formatInfo.blueBits > 0 && !b) || in clearFramebuffer()
507 (formatInfo.alphaBits > 0 && !a)) in clearFramebuffer()
510 rtvMasks[numRtvs] = gl_d3d11::GetColorMask(formatInfo) & colorMask; in clearFramebuffer()
[all …]
DImage11.cpp133 const auto &formatInfo = d3d11::Format::Get(mInternalFormat, deviceCaps); in isDirty() local
134 if (formatInfo.dataInitializerFunction == nullptr) in isDirty()
243 const d3d11::Format &formatInfo = in redefine() local
245 mDXGIFormat = formatInfo.texFormat; in redefine()
246 mRenderable = (formatInfo.rtvFormat != DXGI_FORMAT_UNKNOWN); in redefine()
249 mDirty = (formatInfo.dataInitializerFunction != nullptr); in redefine()
278 const gl::InternalFormat &formatInfo = gl::GetSizedInternalFormatInfo(mInternalFormat); in loadData() local
280 ANGLE_CHECK_GL_MATH(context11, formatInfo.computeRowPitch(type, area.width, unpack.alignment, in loadData()
283 ANGLE_CHECK_GL_MATH(context11, formatInfo.computeDepthPitch(area.height, unpack.imageHeight, in loadData()
287 formatInfo.computeSkipBytes(type, inputRowPitch, inputDepthPitch, unpack, in loadData()
[all …]
DExternalImageSiblingImpl11.cpp119 const d3d11::Format &formatInfo = mTexture.getFormatSet(); in createRenderTarget() local
125 rtvDesc.Format = formatInfo.rtvFormat; in createRenderTarget()
163 srvDesc.Format = formatInfo.srvFormat; in createRenderTarget()
202 formatInfo, mWidth, mHeight, 1, mSamples); in createRenderTarget()
/external/deqp/external/vulkancts/framework/vulkan/
DvkImageUtil.hpp141 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo,
146 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo,
151 VkExtent3D getPlaneExtent (const PlanarFormatDescription& formatInfo,
155 tcu::UVec2 getPlaneExtent (const PlanarFormatDescription& formatInfo,
160 tcu::UVec3 getImageSizeAlignment (const PlanarFormatDescription& formatInfo);
162 tcu::UVec2 getBlockExtent (const PlanarFormatDescription& formatInfo);
165 VkFormat getPlaneCompatibleFormat (const PlanarFormatDescription& formatInfo,
174 tcu::PixelBufferAccess getChannelAccess (const PlanarFormatDescription& formatInfo,
179 tcu::ConstPixelBufferAccess getChannelAccess (const PlanarFormatDescription& formatInfo,
184 tcu::PixelBufferAccess getChannelAccess (const PlanarFormatDescription& formatInfo,
[all …]
DvkImageUtil.cpp2448 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo, in getPlaneSizeInBytes() argument
2454 VkExtent3D imageExtent = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel); in getPlaneSizeInBytes()
2455 imageExtent.width /= formatInfo.blockWidth; in getPlaneSizeInBytes()
2456 imageExtent.height /= formatInfo.blockHeight; in getPlaneSizeInBytes()
2457 …return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * imageExtent.width * imageExtent.h… in getPlaneSizeInBytes()
2460 deUint32 getPlaneSizeInBytes (const PlanarFormatDescription& formatInfo, in getPlaneSizeInBytes() argument
2466 … mipExtents = getPlaneExtent(formatInfo, baseExtents, planeNdx, mipmapLevel) / tcu::UVec2(formatIn… in getPlaneSizeInBytes()
2467 …return deAlign32( formatInfo.planes[planeNdx].elementSizeBytes * mipExtents.x() * mipExtents.y(), … in getPlaneSizeInBytes()
2470 VkExtent3D getPlaneExtent(const PlanarFormatDescription& formatInfo, in getPlaneExtent() argument
2475 deUint32 widthDivisor = formatInfo.planes[planeNdx].widthDivisor; in getPlaneExtent()
[all …]
/external/angle/src/tests/gl_tests/gles1/
DFramebufferObjectTest.cpp98 for (const FormatInfo &formatInfo : kFormatArrays) in TEST_P() local
100 glTexImage2D(GL_TEXTURE_2D, 0, formatInfo[0], 1, 1, 0, formatInfo[1], formatInfo[2], in TEST_P()
/external/mesa3d/src/amd/addrlib/src/core/
Daddrelemlib.cpp1088 PixelFormatInfo formatInfo; in PixGetExportNorm() local
1090 PixGetColorCompInfo(colorFmt, numberFmt, swap, &formatInfo); in PixGetExportNorm()
1096 if (((formatInfo.compBit[c] > 11) || (formatInfo.numType[c] > ADDR_USCALED)) && in PixGetExportNorm()
1097 (formatInfo.numType[c] != ADDR_U4FLOATC) && in PixGetExportNorm()
1098 (formatInfo.numType[c] != ADDR_S5FLOAT) && in PixGetExportNorm()
1099 (formatInfo.numType[c] != ADDR_S5FLOATM) && in PixGetExportNorm()
1100 (formatInfo.numType[c] != ADDR_U5FLOAT) && in PixGetExportNorm()
1101 (formatInfo.numType[c] != ADDR_U3FLOATM)) in PixGetExportNorm()
1109 if ((formatInfo.compBit[c] > 11) || (formatInfo.numType[c] > ADDR_USCALED)) in PixGetExportNorm()
/external/angle/src/libANGLE/renderer/d3d/d3d9/
Dformatutils9.cpp576 VertexFormat formatInfo; in CreateVertexFormatInfo() local
577 formatInfo.conversionType = identity ? VERTEX_CONVERT_NONE : VERTEX_CONVERT_CPU; in CreateVertexFormatInfo()
578 formatInfo.outputElementSize = elementSize; in CreateVertexFormatInfo()
579 formatInfo.copyFunction = copyFunc; in CreateVertexFormatInfo()
580 formatInfo.nativeFormat = nativeFormat; in CreateVertexFormatInfo()
581 formatInfo.componentType = GetDeclTypeComponentType(nativeFormat); in CreateVertexFormatInfo()
582 return formatInfo; in CreateVertexFormatInfo()
Drenderer9_utils.cpp425 const gl::InternalFormat &formatInfo = gl::GetSizedInternalFormatInfo(internalFormat); in GenerateTextureFormatCaps() local
429 if (formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) in GenerateTextureFormatCaps()
454 if ((formatInfo.depthBits > 0 || formatInfo.stencilBits > 0) && in GenerateTextureFormatCaps()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureCompressedFormatTests.cpp197 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(textureFormat); in iterate() local
227 sampleParams.colorBias = formatInfo.lookupBias; in iterate()
228 sampleParams.colorScale = formatInfo.lookupScale; in iterate()
317 const tcu::TextureFormatInfo formatInfo = tcu::getTextureFormatInfo(textureFormat); in iterate() local
347 sampleParams.colorBias = formatInfo.lookupBias; in iterate()
348 sampleParams.colorScale = formatInfo.lookupScale; in iterate()
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrUtil.cpp287 const PlanarFormatDescription& formatInfo = imageData->getDescription(); in fillGradient() local
293 if (formatInfo.hasChannelNdx(channelNdx)) in fillGradient()
958 const vk::PlanarFormatDescription& formatInfo, in getChannelAccess() argument
962 DE_ASSERT(formatInfo.hasChannelNdx(channelNdx)); in getChannelAccess()
964 const deUint32 planeNdx = formatInfo.channels[channelNdx].planeNdx; in getChannelAccess()
965 const deUint32 valueOffsetBits = formatInfo.channels[channelNdx].offsetBits; in getChannelAccess()
966 const deUint32 pixelStrideBytes = formatInfo.channels[channelNdx].strideBytes; in getChannelAccess()
968 const deUint8 sizeBits = formatInfo.channels[channelNdx].sizeBits; in getChannelAccess()
970 DE_ASSERT(size.x() % (formatInfo.blockWidth * formatInfo.planes[planeNdx].widthDivisor) == 0); in getChannelAccess()
971 DE_ASSERT(size.y() % (formatInfo.blockHeight * formatInfo.planes[planeNdx].heightDivisor) == 0); in getChannelAccess()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ssa/
DSsaDecoder.java182 @Nullable SsaStyle.Format formatInfo = null; in parseStyles() local
187 formatInfo = SsaStyle.Format.fromFormatLine(currentLine); in parseStyles()
189 if (formatInfo == null) { in parseStyles()
193 @Nullable SsaStyle style = SsaStyle.fromStyleLine(currentLine, formatInfo); in parseStyles()
/external/angle/src/libANGLE/renderer/gl/cgl/
DIOSurfaceSurfaceCGL.cpp67 const auto &formatInfo = kIOSurfaceFormats[i]; in FindIOSurfaceFormatIndex() local
68 if (formatInfo.internalFormat == internalFormat && formatInfo.type == type) in FindIOSurfaceFormatIndex()
/external/angle/src/libANGLE/renderer/gl/
Dformatutilsgl.cpp143 InternalFormatInfo formatInfo; in InsertFormatMapping() local
144 formatInfo.glInfo.texture = desktopTexture; in InsertFormatMapping()
145 formatInfo.glInfo.filter = desktopFilter; in InsertFormatMapping()
147 formatInfo.glInfo.textureAttachment = desktopRender; in InsertFormatMapping()
148 formatInfo.glInfo.renderbuffer = desktopRender; in InsertFormatMapping()
149 formatInfo.glesInfo.texture = esTexture; in InsertFormatMapping()
150 formatInfo.glesInfo.filter = esFilter; in InsertFormatMapping()
151 formatInfo.glesInfo.textureAttachment = esTextureAttachment; in InsertFormatMapping()
152 formatInfo.glesInfo.renderbuffer = esRenderbufferAttachment; in InsertFormatMapping()
153 map->insert(std::make_pair(internalFormat, formatInfo)); in InsertFormatMapping()
/external/angle/src/libANGLE/renderer/metal/
DIOSurfaceSurfaceMtl.mm62 const auto &formatInfo = kIOSurfaceFormats[i];
63 if (formatInfo.internalFormat == internalFormat && formatInfo.type == type)
/external/angle/src/libANGLE/renderer/vulkan/mac/
DIOSurfaceSurfaceVkMac.mm55 const auto &formatInfo = kIOSurfaceFormats[i];
56 if (formatInfo.internalFormat == internalFormat && formatInfo.type == type)
/external/skia/src/gpu/gl/
DGrGLCaps.cpp3098 const auto& formatInfo = fFormatTable[i]; in initFormatTable() local
3100 SkASSERT(!((formatInfo.fFlags & FormatInfo::kFBOColorAttachmentWithMSAA_Flag) && in initFormatTable()
3101 !(formatInfo.fFlags & FormatInfo::kFBOColorAttachment_Flag))); in initFormatTable()
3104 SkASSERT(formatInfo.fFormatType != FormatType::kUnknown); in initFormatTable()
3107 for (int j = 0; j < formatInfo.fColorTypeInfoCount; ++j) { in initFormatTable()
3108 const auto& ctInfo = formatInfo.fColorTypeInfos[j]; in initFormatTable()
4215 const auto& formatInfo = this->getFormatInfo(srcBackendFormat.asGLFormat()); in onSupportedReadPixelsColorType() local
4217 for (int i = 0; !foundSrcCT && i < formatInfo.fColorTypeInfoCount; ++i) { in onSupportedReadPixelsColorType()
4218 if (formatInfo.fColorTypeInfos[i].fColorType == srcColorType) { in onSupportedReadPixelsColorType()
4219 const ColorTypeInfo& ctInfo = formatInfo.fColorTypeInfos[i]; in onSupportedReadPixelsColorType()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDecimalFormatSymbols.java844 CurrencyFormatInfo formatInfo = displayInfo.getFormatInfo(currency.getCurrencyCode()); in setCurrencyOrNull() local
845 if (formatInfo != null) { in setCurrencyOrNull()
846 setMonetaryDecimalSeparatorString(formatInfo.monetaryDecimalSeparator); in setCurrencyOrNull()
847 setMonetaryGroupingSeparatorString(formatInfo.monetaryGroupingSeparator); in setCurrencyOrNull()
848 currencyPattern = formatInfo.currencyPattern; in setCurrencyOrNull()

123