Home
last modified time | relevance | path

Searched refs:pixelFormat (Results 1 – 25 of 105) sorted by relevance

12345

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJ.java220 public static int getPixelSize(int pixelFormat) { in getPixelSize() argument
221 checkPixelFormat(pixelFormat); in getPixelSize()
222 return PIXEL_SIZE[pixelFormat]; in getPixelSize()
242 public static int getRedOffset(int pixelFormat) { in getRedOffset() argument
243 checkPixelFormat(pixelFormat); in getRedOffset()
244 return RED_OFFSET[pixelFormat]; in getRedOffset()
264 public static int getGreenOffset(int pixelFormat) { in getGreenOffset() argument
265 checkPixelFormat(pixelFormat); in getGreenOffset()
266 return GREEN_OFFSET[pixelFormat]; in getGreenOffset()
286 public static int getBlueOffset(int pixelFormat) { in getBlueOffset() argument
[all …]
DTJDecompressor.java378 int pitch, int desiredHeight, int pixelFormat, in decompress() argument
384 pixelFormat < 0 || pixelFormat >= TJ.NUMPF || flags < 0) in decompress()
389 yuvImage.getWidth(), pitch, yuvImage.getHeight(), pixelFormat, in decompress() local
394 desiredHeight, pixelFormat, flags); in decompress()
397 desiredHeight, pixelFormat, flags); in decompress()
408 int desiredHeight, int pixelFormat, int flags) in decompress() argument
410 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat, in decompress()
439 int pixelFormat, int flags) throws TJException { in decompress() argument
442 pixelFormat < 0 || pixelFormat >= TJ.NUMPF || flags < 0) in decompress()
444 int pixelSize = TJ.getPixelSize(pixelFormat); in decompress()
[all …]
DTJCompressor.java72 int height, int pixelFormat) throws TJException { in TJCompressor() argument
73 setSourceImage(srcImage, x, y, width, pitch, height, pixelFormat); in TJCompressor()
83 int pixelFormat) throws TJException { in TJCompressor() argument
84 setSourceImage(srcImage, width, pitch, height, pixelFormat); in TJCompressor()
144 int pitch, int height, int pixelFormat) in setSourceImage() argument
148 pitch < 0 || pixelFormat < 0 || pixelFormat >= TJ.NUMPF) in setSourceImage()
153 srcPitch = width * TJ.getPixelSize(pixelFormat); in setSourceImage()
157 srcPixelFormat = pixelFormat; in setSourceImage()
171 int height, int pixelFormat) throws TJException { in setSourceImage() argument
172 setSourceImage(srcImage, 0, 0, width, pitch, height, pixelFormat); in setSourceImage()
[all …]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DGlTextureFrameBuffer.java41 private final int pixelFormat; field in GlTextureFrameBuffer
49 public GlTextureFrameBuffer(int pixelFormat) { in GlTextureFrameBuffer() argument
50 switch (pixelFormat) { in GlTextureFrameBuffer()
54 this.pixelFormat = pixelFormat; in GlTextureFrameBuffer()
57 throw new IllegalArgumentException("Invalid pixel format: " + pixelFormat); in GlTextureFrameBuffer()
102 GLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, pixelFormat, width, height, 0, pixelFormat, in setSize()
/external/libjpeg-turbo/
Dturbojpeg.h744 int width, int pitch, int height, int pixelFormat,
1046 int width, int pitch, int height, int pixelFormat,
1107 int pixelFormat, unsigned char **dstPlanes,
1218 int width, int pitch, int height, int pixelFormat,
1382 int width, int pitch, int height, int pixelFormat,
1443 int height, int pixelFormat, int flags);
1592 int align, int *height, int *pixelFormat,
1629 int width, int pitch, int height, int pixelFormat,
1713 int pitch, int height, int pixelFormat,
Dturbojpeg.c236 static int setCompDefaults(struct jpeg_compress_struct *cinfo, int pixelFormat, in setCompDefaults() argument
242 cinfo->in_color_space = pf2cs[pixelFormat]; in setCompDefaults()
243 cinfo->input_components = tjPixelSize[pixelFormat]; in setCompDefaults()
277 else if (pixelFormat == TJPF_CMYK) in setCompDefaults()
626 int width, int pitch, int height, int pixelFormat, in tjCompress2() argument
639 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2()
644 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjCompress2()
667 if (setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags) == -1) in tjCompress2()
715 int pixelFormat, unsigned char **dstPlanes, in tjEncodeYUVPlanes() argument
738 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || !dstPlanes || in tjEncodeYUVPlanes()
[all …]
Dtjexample.c171 int retval = 0, i, pixelFormat = TJPF_UNKNOWN; in main() local
330 pixelFormat = TJPF_BGRX; in main()
332 tjPixelSize[pixelFormat])) == NULL) in main()
336 pixelFormat, flags) < 0) in main()
342 if ((imgBuf = tjLoadImage(argv[1], &width, 1, &height, &pixelFormat, in main()
346 if (pixelFormat == TJPF_GRAY) in main()
368 if (tjCompress2(tjInstance, imgBuf, width, 0, height, pixelFormat, in main()
385 if (tjSaveImage(argv[2], imgBuf, width, 0, height, pixelFormat, 0) < 0) in main()
/external/deqp/external/openglcts/modules/common/
DglcConfigListWGL.cpp52 const int pixelFormat = *fmtIter; in getDefaultWglConfigList() local
53 …:wgl::PixelFormatInfo fmtInfo = wgl.getPixelFormatInfo(tmpWindow.getDeviceContext(), pixelFormat); in getDefaultWglConfigList()
65 …CONFIGTYPE_WGL, pixelFormat, SURFACETYPE_WINDOW, fmtInfo.redBits, fmtInfo.greenBits, fmtInfo.blueB… in getDefaultWglConfigList()
71 configList.configs.push_back(Config(CONFIGTYPE_WGL, pixelFormat, SURFACETYPE_WINDOW)); in getDefaultWglConfigList()
76 ExcludedConfig(CONFIGTYPE_WGL, pixelFormat, EXCLUDEREASON_NOT_COMPATIBLE)); in getDefaultWglConfigList()
DglcInfoTests.cpp98 const tcu::PixelFormat& pixelFormat = renderTarget.getPixelFormat(); in iterate() local
102 << TestLog::Integer("RedBits", "Red bits", "", QP_KEY_TAG_NONE, pixelFormat.redBits) in iterate()
103 << TestLog::Integer("GreenBits", "Green bits", "", QP_KEY_TAG_NONE, pixelFormat.greenBits) in iterate()
104 << TestLog::Integer("BlueBits", "Blue bits", "", QP_KEY_TAG_NONE, pixelFormat.blueBits) in iterate()
105 << TestLog::Integer("AlphaBits", "Alpha bits", "", QP_KEY_TAG_NONE, pixelFormat.alphaBits) in iterate()
/external/deqp/framework/platform/win32/
DtcuWGLContextFactory.cpp105 int pixelFormat = 0; in WGLContext() local
108 pixelFormat = config.id; in WGLContext()
110 pixelFormat = wgl::choosePixelFormat(wglCore, deviceCtx, config); in WGLContext()
112 if (pixelFormat < 0) in WGLContext()
119 …m_context = new wgl::Context(&wglCore, deviceCtx, sharedCtx, config.type, pixelFormat, config.rese… in WGLContext()
124 const wgl::PixelFormatInfo info = wglCore.getPixelFormatInfo(deviceCtx, pixelFormat); in WGLContext()
DtcuWGL.cpp229 int pixelFormat = ChoosePixelFormat(tmpWindow.getDeviceContext(), &pixelFormatDesc); in Library() local
230 if (!SetPixelFormat(tmpWindow.getDeviceContext(), pixelFormat, &pixelFormatDesc)) in Library()
329 static void getPixelFormatAttribs (const Functions& wgl, HDC deviceCtx, int pixelFormat, int numAtt… in getPixelFormatAttribs() argument
333 if (!wgl.getPixelFormatAttribivARB(deviceCtx, pixelFormat, 0, numAttribs, &attribs[0], &values[0])) in getPixelFormatAttribs()
340 PixelFormatInfo Core::getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const in getPixelFormatInfo()
369 …getPixelFormatAttribs(wgl, deviceCtx, pixelFormat, DE_LENGTH_OF_ARRAY(s_attribsToQuery), &s_attrib… in getPixelFormatInfo()
374 info.pixelFormat = pixelFormat; in getPixelFormatInfo()
406 int pixelFormat, in Context() argument
503 if (!DescribePixelFormat(deviceCtx, pixelFormat, sizeof(pixelFormatDesc), &pixelFormatDesc)) in Context()
506 if (!SetPixelFormat(deviceCtx, pixelFormat, &pixelFormatDesc)) in Context()
[all …]
DtcuWGL.hpp80 int pixelFormat; member in tcu::wgl::PixelFormatInfo
134 : pixelFormat (0) in PixelFormatInfo()
173 PixelFormatInfo getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const;
202 int pixelFormat,
/external/deqp/framework/platform/osx/
DtcuOSXPlatform.cpp173 CGLPixelFormatObj pixelFormat; in CGLRenderContext() local
176 if (CGLChoosePixelFormat(&attribs[0], &pixelFormat, &numVScreens) != kCGLNoError) in CGLRenderContext()
181 if (CGLCreateContext(pixelFormat, DE_NULL, &m_context) != kCGLNoError) in CGLRenderContext()
189 CGLReleasePixelFormat(pixelFormat); in CGLRenderContext()
193 CGLReleasePixelFormat(pixelFormat); in CGLRenderContext()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDisplay.java57 private Integer pixelFormat; field in ShadowDisplay
139 return pixelFormat == null in getPixelFormat()
141 : pixelFormat; in getPixelFormat()
374 public void setPixelFormat(int pixelFormat) { in setPixelFormat() argument
375 this.pixelFormat = pixelFormat; in setPixelFormat()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureShadowTests.cpp138 const tcu::PixelFormat& pixelFormat) in verifyTexCompareResult() argument
143 …const tcu::Vec3 nonShadowThreshold = tcu::computeFixedPointThreshold(getBitsVec(pixelFormat)-1).sw… in verifyTexCompareResult()
159 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), clampedSource, texCoord, sampleParams); in verifyTexCompareResult()
166 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), src, texCoord, sampleParams); in verifyTexCompareResult()
350 const tcu::PixelFormat pixelFormat = getPixelFormat(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM)); in iterate() local
360 texComparePrecision.resultBits = pixelFormat.redBits-1; in iterate()
363 &texCoord[0], sampleParams, texComparePrecision, lodPrecision, pixelFormat); in iterate()
374 &texCoord[0], sampleParams, texComparePrecision, lodPrecision, pixelFormat); in iterate()
566 … const tcu::PixelFormat pixelFormat = getPixelFormat(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM)); in iterate() local
576 texComparePrecision.resultBits = pixelFormat.redBits-1; in iterate()
[all …]
/external/v4l2_codec2/
DC2VDAAdaptor.cpp79 media::VideoPixelFormat pixelFormat; in importBufferForPicture() local
82 pixelFormat = media::PIXEL_FORMAT_YV12; in importBufferForPicture()
85 pixelFormat = media::PIXEL_FORMAT_NV12; in importBufferForPicture()
97 mVDA->ImportBufferForPicture(pictureBufferId, pixelFormat, handle); in importBufferForPicture()
/external/skia/tools/sk_app/win/
DGLWindowContext_win.cpp97 int pixelFormat = GetPixelFormat(dc); in onInitializeContext() local
99 DescribePixelFormat(dc, pixelFormat, sizeof(pfd), &pfd); in onInitializeContext()
107 pixelFormat, in onInitializeContext()
/external/skqp/tools/sk_app/win/
DGLWindowContext_win.cpp97 int pixelFormat = GetPixelFormat(dc); in onInitializeContext() local
99 DescribePixelFormat(dc, pixelFormat, sizeof(pfd), &pfd); in onInitializeContext()
107 pixelFormat, in onInitializeContext()
/external/deqp/framework/opengl/
DgluTextureTestUtil.hpp264 const tcu::PixelFormat& pixelFormat);
273 const tcu::PixelFormat& pixelFormat);
282 const tcu::PixelFormat& pixelFormat);
291 const tcu::PixelFormat& pixelFormat);
300 const tcu::PixelFormat& pixelFormat);
309 const tcu::PixelFormat& pixelFormat);
319 const tcu::PixelFormat& pixelFormat);
/external/skqp/src/gpu/vk/
DGrVkTextureRenderTarget.cpp115 VkFormat pixelFormat; in create_views() local
116 GrPixelConfigToVkFormat(desc.fConfig, &pixelFormat); in create_views()
124 msImageDesc.fFormat = pixelFormat; in create_views()
145 GrVkImageView::Create(gpu, image, pixelFormat, GrVkImageView::kColor_Type, in create_views()
159 gpu, colorImage, pixelFormat, GrVkImageView::kColor_Type, 1, GrVkYcbcrConversionInfo()); in create_views()
/external/skia/src/gpu/vk/
DGrVkTextureRenderTarget.cpp115 VkFormat pixelFormat; in create_views() local
116 GrPixelConfigToVkFormat(desc.fConfig, &pixelFormat); in create_views()
124 msImageDesc.fFormat = pixelFormat; in create_views()
145 GrVkImageView::Create(gpu, image, pixelFormat, GrVkImageView::kColor_Type, in create_views()
159 gpu, colorImage, pixelFormat, GrVkImageView::kColor_Type, 1, GrVkYcbcrConversionInfo()); in create_views()
/external/skqp/src/gpu/mtl/
DGrMtlCopyPipelineState.h27 MTLPixelFormat pixelFormat) in GrMtlCopyPipelineState() argument
29 , fPixelFormat(pixelFormat) {} in GrMtlCopyPipelineState()
/external/skia/src/gpu/mtl/
DGrMtlCopyPipelineState.h27 MTLPixelFormat pixelFormat) in GrMtlCopyPipelineState() argument
29 , fPixelFormat(pixelFormat) {} in GrMtlCopyPipelineState()
/external/deqp/framework/platform/ios/
DtcuIOSPlatform.mm216 tcu::PixelFormat pixelFormat;
244 gl.getRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_RED_SIZE, &pixelFormat.redBits);
245 gl.getRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_GREEN_SIZE, &pixelFormat.greenBits);
246 gl.getRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_BLUE_SIZE, &pixelFormat.blueBits);
247 gl.getRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_ALPHA_SIZE, &pixelFormat.alphaBits);
281 m_renderTarget = tcu::RenderTarget(width, height, pixelFormat, depthBits, stencilBits, 0);
/external/deqp/modules/gles3/functional/
Des3fTextureShadowTests.cpp105 const tcu::PixelFormat& pixelFormat) in verifyTexCompareResult() argument
110 …const tcu::Vec3 nonShadowThreshold = tcu::computeFixedPointThreshold(getBitsVec(pixelFormat)-1).sw… in verifyTexCompareResult()
126 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), clampedSource, texCoord, sampleParams); in verifyTexCompareResult()
133 sampleTexture(tcu::SurfaceAccess(reference, pixelFormat), src, texCoord, sampleParams); in verifyTexCompareResult()
364 const tcu::PixelFormat pixelFormat = m_context.getRenderTarget().getPixelFormat(); in iterate() local
374 texComparePrecision.resultBits = pixelFormat.redBits-1; in iterate()
377 &texCoord[0], sampleParams, texComparePrecision, lodPrecision, pixelFormat); in iterate()
388 &texCoord[0], sampleParams, texComparePrecision, lodPrecision, pixelFormat); in iterate()
654 const tcu::PixelFormat pixelFormat = m_context.getRenderTarget().getPixelFormat(); in iterate() local
664 texComparePrecision.resultBits = pixelFormat.redBits-1; in iterate()
[all …]

12345