/external/swiftshader/src/OpenGL/libGL/ |
H A D | utilities.h | 80 GLuint GetAlphaSize(sw::Format colorFormat); 81 GLuint GetRedSize(sw::Format colorFormat); 82 GLuint GetGreenSize(sw::Format colorFormat); 83 GLuint GetBlueSize(sw::Format colorFormat);
|
H A D | utilities.cpp | 731 unsigned int GetAlphaSize(sw::Format colorFormat) argument 733 switch(colorFormat) 753 unsigned int GetRedSize(sw::Format colorFormat) argument 755 switch(colorFormat) 774 unsigned int GetGreenSize(sw::Format colorFormat) argument 776 switch(colorFormat) 796 unsigned int GetBlueSize(sw::Format colorFormat) argument 798 switch(colorFormat)
|
/external/deqp/framework/opengl/ |
H A D | gluFboRenderContext.cpp | 64 static tcu::PixelFormat getPixelFormat (deUint32 colorFormat) argument 66 const tcu::IVec4 bits = tcu::getTextureFormatBitDepth(glu::mapGLInternalFormat(colorFormat)); 215 const deUint32 colorFormat = chooseColorFormat(config); local 226 if (colorFormat == 0) 239 pixelFormat = getPixelFormat(colorFormat); 245 gl.renderbufferStorageMultisample(GL_RENDERBUFFER, config.numSamples, colorFormat, width, height); 247 gl.renderbufferStorage(GL_RENDERBUFFER, colorFormat, width, height);
|
/external/webrtc/talk/app/webrtc/java/src/org/webrtc/ |
H A D | MediaCodecVideoEncoder.java | 124 private int colorFormat; // Used by native code. field in class:MediaCodecVideoEncoder 143 public EncoderProperties(String codecName, int colorFormat) { argument 145 this.colorFormat = colorFormat; 148 public final int colorFormat; // Color format supported by codec. field in class:MediaCodecVideoEncoder.EncoderProperties 198 for (int colorFormat : capabilities.colorFormats) { 199 Logging.v(TAG, " Color: 0x" + Integer.toHexString(colorFormat)); 307 colorFormat = properties.colorFormat; 308 Logging.d(TAG, "Color format: " + colorFormat); [all...] |
H A D | MediaCodecVideoDecoder.java | 102 private int colorFormat; field in class:MediaCodecVideoDecoder 134 public DecoderProperties(String codecName, int colorFormat) { argument 136 this.colorFormat = colorFormat; 139 public final int colorFormat; // Color format supported by codec. field in class:MediaCodecVideoDecoder.DecoderProperties 180 for (int colorFormat : capabilities.colorFormats) { 181 Logging.v(TAG, " Color: 0x" + Integer.toHexString(colorFormat)); 256 ". Color: 0x" + Integer.toHexString(properties.colorFormat) + 273 format.setInteger(MediaFormat.KEY_COLOR_FORMAT, properties.colorFormat); 284 colorFormat [all...] |
/external/deqp/external/vulkancts/modules/vulkan/geometry/ |
H A D | vktGeometryBasicClass.cpp | 74 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 79 makeImageCreateInfo(resolution, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT), 82 const Unique<VkRenderPass> renderPass (makeRenderPass(vk, device, colorFormat)); 86 const Unique<VkImageView> colorAttachmentView (makeImageView(vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorSubRange)); 108 const VkDeviceSize colorBufferSizeBytes = resolution.x()*resolution.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 196 const tcu::ConstPixelBufferAccess imagePixelAccess(mapVkFormat(colorFormat), resolution.x(), resolution.y(), 1, colorBufferAlloc.getHostPtr());
|
H A D | vktGeometryInstancedRenderingTests.cpp | 87 const VkFormat colorFormat) 92 colorFormat, // VkFormat format; 342 const VkFormat colorFormat, 358 const Unique<VkImage> colorImage (makeImage (vk, device, makeImageCreateInfo(colorFormat, colorImageExtent, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT))); 360 const Unique<VkImageView> colorAttachment (makeImageView (vk, device, *colorImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorSubresourceRange)); 370 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat)); 635 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 638 const VkDeviceSize colorBufferSize = renderSize.x() * renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 651 draw(context, renderSize, colorFormat, clearColor, *colorBuffer, params.numDrawInstances, perInstancePosition); 656 const tcu::ConstPixelBufferAccess result(mapVkFormat(colorFormat), renderSiz 85 makeRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat) argument 340 draw(Context& context, const UVec2& renderSize, const VkFormat colorFormat, const Vec4& clearColor, const VkBuffer colorBuffer, const int numDrawInstances, const std::vector<Vec4>& perInstanceAttribute) argument [all...] |
H A D | vktGeometryLayeredRenderingTests.cpp | 158 const VkFormat colorFormat) 163 colorFormat, // VkFormat format; 610 bool verifyResults (tcu::TestLog& log, const TestParams& params, const VkFormat colorFormat, const void* resultData) argument 612 const LayeredImageAccess image = LayeredImageAccess::create(getImageType(params.image.viewType), colorFormat, params.image.size, params.image.numLayers, resultData); 910 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 913 const VkDeviceSize colorBufferSize = params.image.size.width * params.image.size.height * params.image.size.depth * params.image.numLayers * tcu::getPixelSize(mapVkFormat(colorFormat)); 918 const Unique<VkImage> colorImage (makeImage (vk, device, makeImageCreateInfo(imageCreateFlags, getImageType(params.image.viewType), colorFormat, params.image.size, 921 const Unique<VkImageView> colorAttachment (makeImageView (vk, device, *colorImage, viewType, colorFormat, makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, 1u, 0u, numLayers))); 930 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat)); 1026 if (!verifyResults(context.getTestContext().getLog(), params, colorFormat, colorBufferAllo 156 makeRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat) argument [all...] |
/external/deqp/modules/gles3/functional/ |
H A D | es3fFboDepthbufferTests.cpp | 68 const deUint32 colorFormat = GL_RGBA8; local 89 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, m_width, m_height); 132 readPixels(dst, 0, 0, m_width, m_height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); 160 const deUint32 colorFormat = GL_RGBA8; local 179 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, m_width, m_height); 218 readPixels(dst, 0, 0, m_width, m_height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); 246 const deUint32 colorFormat = GL_RGBA8; local 265 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, m_width, m_height); 298 readPixels(dst, 0, 0, m_width, m_height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f));
|
H A D | es3fFboRenderTest.cpp | 72 , colorFormat (colorFormat_) 84 , colorFormat (GL_NONE) 98 GLenum colorFormat; //!< Internal format for color buffer texture or renderbuffer member in class:deqp::gles3::Functional::FboConfig 124 name << getTypeName(colorType) << "_" << getFormatName(colorFormat); 257 checkColorFormatSupport(context, config.colorFormat); 268 m_colorBuffer = createTex2D(colorBufferName, m_config.colorFormat, width, height); 273 m_colorBuffer = createRbo(colorBufferName, m_config.colorFormat, width, height); 505 const tcu::RGBA threshold (tcu::max(getFormatThreshold(m_config.colorFormat), tcu::RGBA(12, 12, 12, 12))); 529 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat); local 750 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat); local 1111 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat); local 1267 tcu::TextureFormat colorFormat = glu::mapGLInternalFormat(m_config.colorFormat); local 1624 deUint32 colorFormat = colorFormats[colorFmtNdx].format; local 1662 deUint32 colorFormat = colorFormats[colorFmtNdx].format; local [all...] |
H A D | es3fFboStencilbufferTests.cpp | 68 const deUint32 colorFormat = GL_RGBA8; local 82 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, m_size.x(), m_size.y()); 132 readPixels(dst, 0, 0, m_size.x(), m_size.y(), glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f)); 157 const deUint32 colorFormat = GL_RGBA8; local 176 glRenderbufferStorage(GL_RENDERBUFFER, colorFormat, width, height); 229 readPixels(dst, 0, 0, width, height, glu::mapGLInternalFormat(colorFormat), Vec4(1.0f), Vec4(0.0f));
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineMultisampleImageTests.cpp | 68 VkFormat colorFormat; member in struct:vkt::pipeline::__anon4389::CaseDef 320 const VkFormat colorFormat, 327 colorFormat, // VkFormat format; 387 const VkFormat colorFormat) 392 colorFormat, // VkFormat format; 718 const int numComponents = tcu::getNumUsedChannels(mapVkFormat(caseDef.colorFormat).order); 719 const bool isUint = isUintFormat(caseDef.colorFormat); 720 const bool isSint = isIntFormat(caseDef.colorFormat); 746 const std::string colorFormat = getColorFormatStr(numComponents, isUint, isSint); 752 << "layout(location = 0) out " << colorFormat << " o_colo 318 makeMultisampleRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const VkSampleCountFlagBits numSamples, const deUint32 numLayers) argument 385 makeSimpleRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat) argument [all...] |
H A D | vktPipelineRenderToImageTests.cpp | 110 VkFormat colorFormat; member in struct:vkt::pipeline::__anon4395::CaseDef 440 const VkFormat colorFormat, 449 colorFormat, // VkFormat format; 766 colorImage = makeImage(vk, device, getImageCreateFlags(caseDef.viewType), getImageType(caseDef.viewType), caseDef.colorFormat, 836 const int numComponents = getNumUsedChannels(mapVkFormat(caseDef.colorFormat).order); 837 const bool isUint = isUintFormat(caseDef.colorFormat); 838 const bool isSint = isIntFormat(caseDef.colorFormat); 866 const std::string colorFormat = getColorFormatStr(numComponents, isUint, isSint); local 867 const std::string colorInteger = (isUint || isSint ? " * "+colorFormat+"("+colorValue.str()+")" :""); 873 << "layout(location = 0) out " << colorFormat << " o_colo 438 makeRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const VkFormat depthStencilFormat, const deUint32 numLayers, const VkImageLayout initialColorImageLayout = VK_IMAGE_LAYOUT_UNDEFINED, const VkImageLayout initialDepthStencilImageLayout = VK_IMAGE_LAYOUT_UNDEFINED) argument 1709 getFormatString(const VkFormat colorFormat, const VkFormat depthStencilFormat) argument 1825 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local [all...] |
H A D | vktPipelineReferenceRenderer.hpp | 122 ColorFragmentShader (const tcu::TextureFormat& colorFormat, argument 125 , m_colorFormat (colorFormat) 229 const tcu::TextureFormat& colorFormat,
|
/external/deqp/external/vulkancts/modules/vulkan/multiview/ |
H A D | vktMultiViewRenderUtil.hpp | 42 vk::Move<vk::VkRenderPass> makeRenderPass (const vk::DeviceInterface& vk, const vk::VkDevice device, const vk::VkFormat colorFormat, const std::vector<deUint32>& viewMasks); 43 vk::Move<vk::VkRenderPass> makeRenderPassWithAttachments (const vk::DeviceInterface& vk, const vk::VkDevice device, const vk::VkFormat colorFormat, const std::vector<deUint32>& viewMasks);
|
H A D | vktMultiViewRenderUtil.cpp | 189 const VkFormat colorFormat, 196 colorFormat, // VkFormat format; 279 const VkFormat colorFormat, 287 colorFormat, // VkFormat format; 300 colorFormat, // VkFormat format; 187 makeRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const vector<deUint32>& viewMasks) argument 277 makeRenderPassWithAttachments(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat, const vector<deUint32>& viewMasks) argument
|
/external/deqp/external/vulkancts/modules/vulkan/fragment_ops/ |
H A D | vktFragmentOperationsScissorMultiViewportTests.cpp | 97 const VkFormat colorFormat) 102 colorFormat, // VkFormat format; 554 const VkFormat colorFormat, 558 , m_colorFormat (colorFormat) 725 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 730 const VkDeviceSize colorBufferSize = renderSize.x() * renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 744 const ScissorRenderer renderer (context, renderSize, numViewports, scissors, colorFormat, clearColor, vertexColors); 752 const tcu::ConstPixelBufferAccess resultImage (mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1u, colorBufferAlloc->getHostPtr()); 753 const tcu::TextureLevel referenceImage = generateReferenceImage(mapVkFormat(colorFormat), renderSize, clearColor, scissors, vertexColors); 95 makeRenderPass(const DeviceInterface& vk, const VkDevice device, const VkFormat colorFormat) argument 550 ScissorRenderer(Context& context, const IVec2& renderSize, const int numViewports, const std::vector<IVec4>& scissors, const VkFormat colorFormat, const Vec4& clearColor, const std::vector<Vec4>& vertices) argument
|
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationGeometryPassthroughTests.cpp | 351 const VkFormat colorFormat, 357 return tcu::ConstPixelBufferAccess(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1, alloc.getHostPtr()); 472 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 475 makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, 1u), 481 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 488 const Unique<VkImageView> colorAttachmentView(makeImageView(vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange)); 489 const Unique<VkRenderPass> renderPass (makeRenderPass(vk, device, colorFormat)); 599 tcu::ConstPixelBufferAccess image0 = getPixelBufferAccess(vk, device, *colorBuffer[0], colorFormat, colorBufferSizeBytes, renderSize); 600 tcu::ConstPixelBufferAccess image1 = getPixelBufferAccess(vk, device, *colorBuffer[1], colorFormat, colorBufferSizeBytes, renderSize); 348 getPixelBufferAccess(const DeviceInterface& vk, const VkDevice device, const Buffer& colorBuffer, const VkFormat colorFormat, const VkDeviceSize colorBufferSizeBytes, const tcu::IVec2& renderSize) argument
|
H A D | vktTessellationGeometryPointSizeTests.cpp | 316 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 319 makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, 1u), 324 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 329 const Unique<VkImageView> colorAttachmentView(makeImageView (vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange)); 330 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat)); 415 tcu::ConstPixelBufferAccess image(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1, alloc.getHostPtr());
|
H A D | vktTessellationCommonEdgeTests.cpp | 351 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 354 makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, 1u), 359 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 364 const Unique<VkImageView> colorAttachmentView (makeImageView (vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange)); 365 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat)); 453 const tcu::ConstPixelBufferAccess imagePixelAccess(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1, colorBufferAlloc.getHostPtr());
|
H A D | vktTessellationGeometryGridRenderTests.cpp | 541 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 543 const VkImageCreateInfo colorImageCreateInfo = makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, m_params.numLayers); 549 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * m_params.numLayers * tcu::getPixelSize(mapVkFormat(colorFormat)); 554 const Unique<VkImageView> colorAttachmentView(makeImageView (vk, device, *colorAttachmentImage, colorAttachmentViewType, colorFormat, colorImageAllLayersRange)); 555 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat)); 630 const tcu::ConstPixelBufferAccess imageAllLayers(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), m_params.numLayers, alloc.getHostPtr());
|
H A D | vktTessellationMiscDrawTests.cpp | 162 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 165 makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, 1u), 170 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 198 const Unique<VkImageView> colorAttachmentView (makeImageView(vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange)); 199 const Unique<VkRenderPass> renderPass (makeRenderPass(vk, device, colorFormat)); 304 const tcu::ConstPixelBufferAccess resultImageAccess(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1, colorBufferAlloc.getHostPtr());
|
H A D | vktTessellationPrimitiveDiscardTests.cpp | 434 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; 437 makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, 1u), 442 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 465 const Unique<VkImageView> colorAttachmentView (makeImageView(vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange)); 466 const Unique<VkRenderPass> renderPass (makeRenderPass(vk, device, colorFormat)); 562 const tcu::ConstPixelBufferAccess imagePixelAccess(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1, colorBufferAlloc.getHostPtr());
|
H A D | vktTessellationShaderInputOutputTests.cpp | 96 const VkFormat colorFormat = VK_FORMAT_R8G8B8A8_UNORM; local 99 makeImageCreateInfo(renderSize, colorFormat, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, 1u), 104 const VkDeviceSize colorBufferSizeBytes = renderSize.x()*renderSize.y() * tcu::getPixelSize(mapVkFormat(colorFormat)); 109 const Unique<VkImageView> colorAttachmentView(makeImageView (vk, device, *colorAttachmentImage, VK_IMAGE_VIEW_TYPE_2D, colorFormat, colorImageSubresourceRange)); 110 const Unique<VkRenderPass> renderPass (makeRenderPass (vk, device, colorFormat)); 199 const tcu::ConstPixelBufferAccess resultImageAccess(mapVkFormat(colorFormat), renderSize.x(), renderSize.y(), 1, colorBufferAlloc.getHostPtr());
|
/external/deqp/framework/platform/ios/ |
H A D | tcuIOSPlatform.mm | 214 const NSString* const colorFormat = chooseLayerColorFormat(config); 225 if (colorFormat == nil) 233 colorFormat, kEAGLDrawablePropertyColorFormat,
|