Home
last modified time | relevance | path

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

123

/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJ.java220 public static int getPixelSize(int pixelFormat) throws Exception { in getPixelSize() argument
221 if (pixelFormat < 0 || pixelFormat >= NUMPF) in getPixelSize()
223 return pixelSize[pixelFormat]; in getPixelSize()
242 public static int getRedOffset(int pixelFormat) throws Exception { in getRedOffset() argument
243 if (pixelFormat < 0 || pixelFormat >= NUMPF) in getRedOffset()
245 return redOffset[pixelFormat]; in getRedOffset()
264 public static int getGreenOffset(int pixelFormat) throws Exception { in getGreenOffset() argument
265 if (pixelFormat < 0 || pixelFormat >= NUMPF) in getGreenOffset()
267 return greenOffset[pixelFormat]; in getGreenOffset()
286 public static int getBlueOffset(int pixelFormat) throws Exception { in getBlueOffset() argument
[all …]
DTJDecompressor.java371 int pitch, int desiredHeight, int pixelFormat, in decompress() argument
377 pixelFormat < 0 || pixelFormat >= TJ.NUMPF || flags < 0) in decompress()
382 yuvImage.getWidth(), pitch, yuvImage.getHeight(), pixelFormat, in decompress() local
387 desiredHeight, pixelFormat, flags); in decompress()
390 desiredHeight, pixelFormat, flags); in decompress()
400 int desiredHeight, int pixelFormat, int flags) in decompress() argument
402 decompress(dstBuf, 0, 0, desiredWidth, pitch, desiredHeight, pixelFormat, in decompress()
431 int pixelFormat, int flags) throws Exception { in decompress() argument
434 pixelFormat < 0 || pixelFormat >= TJ.NUMPF || flags < 0) in decompress()
436 int pixelSize = TJ.getPixelSize(pixelFormat); in decompress()
[all …]
DTJCompressor.java70 int height, int pixelFormat) throws Exception { in TJCompressor() argument
71 setSourceImage(srcImage, x, y, width, pitch, height, pixelFormat); in TJCompressor()
80 int pixelFormat) throws Exception { in TJCompressor() argument
81 setSourceImage(srcImage, width, pitch, height, pixelFormat); in TJCompressor()
141 int pitch, int height, int pixelFormat) in setSourceImage() argument
145 pitch < 0 || pixelFormat < 0 || pixelFormat >= TJ.NUMPF) in setSourceImage()
150 srcPitch = width * TJ.getPixelSize(pixelFormat); in setSourceImage()
154 srcPixelFormat = pixelFormat; in setSourceImage()
167 int height, int pixelFormat) throws Exception { in setSourceImage() argument
168 setSourceImage(srcImage, 0, 0, width, pitch, height, pixelFormat); in setSourceImage()
[all …]
/external/opencv3/modules/videoio/src/
Dcap_pvapi.cpp295 char pixelFormat[256]; in getProperty() local
296 PvAttrEnumGet(Camera.Handle, "PixelFormat", pixelFormat,256,NULL); in getProperty()
297 if (strcmp(pixelFormat, "Mono8")==0) in getProperty()
299 else if (strcmp(pixelFormat, "Mono16")==0) in getProperty()
301 else if (strcmp(pixelFormat, "Bayer8")==0) in getProperty()
303 else if (strcmp(pixelFormat, "Bayer16")==0) in getProperty()
305 else if (strcmp(pixelFormat, "Rgb24")==0) in getProperty()
307 else if (strcmp(pixelFormat, "Bgr24")==0) in getProperty()
309 else if (strcmp(pixelFormat, "Rgba32")==0) in getProperty()
311 else if (strcmp(pixelFormat, "Bgra32")==0) in getProperty()
[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/libvncserver/common/
Dturbojpeg.c141 int pixelFormat, int subsamp, int jpegQual) in setCompDefaults() argument
145 switch(pixelFormat) in setCompDefaults()
177 cinfo->in_color_space=JCS_RGB; pixelFormat=TJPF_RGB; in setCompDefaults()
182 cinfo->input_components=tjPixelSize[pixelFormat]; in setCompDefaults()
206 int pixelFormat) in setDecompDefaults() argument
210 switch(pixelFormat) in setDecompDefaults()
309 int height, int pixelFormat, unsigned char *dst) in toRGB() argument
312 switch(pixelFormat) in toRGB()
370 int pitch, int height, int pixelFormat) in fromRGB() argument
372 switch(pixelFormat) in fromRGB()
[all …]
Dturbojpeg.h353 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf,
468 int width, int pitch, int height, int pixelFormat, int flags);
/external/skia/src/gpu/vk/
DGrVkTextureRenderTarget.cpp32 VkFormat pixelFormat; in Create() local
33 GrPixelConfigToVkFormat(desc.fConfig, &pixelFormat); in Create()
43 msImageDesc.fFormat = pixelFormat; in Create()
64 if (pixelFormat == format) { in Create()
68 resolveAttachmentView = GrVkImageView::Create(gpu, image, pixelFormat, in Create()
85 if (pixelFormat == format && !resolveAttachmentView) { in Create()
89 colorAttachmentView = GrVkImageView::Create(gpu, colorImage, pixelFormat, in Create()
DGrVkRenderTarget.cpp119 VkFormat pixelFormat; in Create() local
120 GrPixelConfigToVkFormat(desc.fConfig, &pixelFormat); in Create()
130 msImageDesc.fFormat = pixelFormat; in Create()
149 resolveAttachmentView = GrVkImageView::Create(gpu, imageResource->fImage, pixelFormat, in Create()
161 const GrVkImageView* colorAttachmentView = GrVkImageView::Create(gpu, colorImage, pixelFormat, in Create()
/external/libjpeg-turbo/
Dturbojpeg.c174 int pixelFormat, int subsamp, int jpegQual, int flags) in setCompDefaults() argument
179 switch(pixelFormat) in setCompDefaults()
211 cinfo->in_color_space=JCS_RGB; pixelFormat=TJPF_RGB; in setCompDefaults()
218 cinfo->input_components=tjPixelSize[pixelFormat]; in setCompDefaults()
250 else if(pixelFormat==TJPF_CMYK) in setCompDefaults()
275 int pixelFormat, int flags) in setDecompDefaults() argument
279 switch(pixelFormat) in setDecompDefaults()
398 int height, int pixelFormat, unsigned char *dst) in toRGB() argument
401 switch(pixelFormat) in toRGB()
459 int pitch, int height, int pixelFormat) in fromRGB() argument
[all …]
Dturbojpeg.h676 int width, int pitch, int height, int pixelFormat, unsigned char **jpegBuf,
969 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
1027 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
1136 int width, int pitch, int height, int pixelFormat, int flags);
1296 int height, int pixelFormat, int flags);
1353 int width, int pitch, int height, int pixelFormat, int flags);
1515 unsigned char *srcBuf, int width, int pitch, int height, int pixelFormat,
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowDisplay.java26 private int pixelFormat = PixelFormat.RGBA_4444; field in ShadowDisplay
66 return pixelFormat; in getPixelFormat()
129 public void setPixelFormat(int pixelFormat) { in setPixelFormat() argument
130 this.pixelFormat = pixelFormat; in setPixelFormat()
/external/deqp/framework/platform/win32/
DtcuWGLContextFactory.cpp101 int pixelFormat = 0; in WGLContext() local
104 pixelFormat = config.id; in WGLContext()
106 pixelFormat = wgl::choosePixelFormat(wglCore, deviceCtx, config); in WGLContext()
108 if (pixelFormat < 0) in WGLContext()
111 m_context = new wgl::Context(&wglCore, deviceCtx, config.type, pixelFormat); in WGLContext()
116 const wgl::PixelFormatInfo info = wglCore.getPixelFormatInfo(deviceCtx, pixelFormat); in WGLContext()
DtcuWGL.hpp79 int pixelFormat; member in tcu::wgl::PixelFormatInfo
133 : pixelFormat (0) in PixelFormatInfo()
165 PixelFormatInfo getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const;
190 Context (const Core* core, HDC deviceCtx, glu::ContextType ctxType, int pixelFormat);
DtcuWGL.cpp215 int pixelFormat = ChoosePixelFormat(tmpWindow.getDeviceContext(), &pixelFormatDesc); in Library() local
216 if (!SetPixelFormat(tmpWindow.getDeviceContext(), pixelFormat, &pixelFormatDesc)) in Library()
304 PixelFormatInfo Core::getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const in getPixelFormatInfo()
326 …if (!wgl.getPixelFormatAttribivARB(deviceCtx, pixelFormat, 0, DE_LENGTH_OF_ARRAY(attribs), &attrib… in getPixelFormatInfo()
332 info.pixelFormat = pixelFormat; in getPixelFormatInfo()
353 Context::Context (const Core* core, HDC deviceCtx, glu::ContextType ctxType, int pixelFormat) in Context() argument
405 if (!DescribePixelFormat(deviceCtx, pixelFormat, sizeof(pixelFormatDesc), &pixelFormatDesc)) in Context()
408 if (!SetPixelFormat(deviceCtx, pixelFormat, &pixelFormatDesc)) in Context()
498 return info.pixelFormat; in choosePixelFormat()
DtcuWin32GLES3Platform.cpp92 const int pixelFormat = wgl::choosePixelFormat(wgl, deviceCtx, config); in Win32GLES3Context() local
94 if (pixelFormat < 0) in Win32GLES3Context()
97 …new wgl::Context(&wgl, m_window.getDeviceContext(), wgl::PROFILE_COMPATIBILITY, 3, 3, pixelFormat); in Win32GLES3Context()
111 const wgl::PixelFormatInfo info = wgl.getPixelFormatInfo(deviceCtx, pixelFormat); in Win32GLES3Context()
/external/deqp/framework/platform/osx/
DtcuOSXPlatform.cpp124 CGLPixelFormatObj pixelFormat; in CGLRenderContext() local
127 if (CGLChoosePixelFormat(&attribs[0], &pixelFormat, &numVScreens) != kCGLNoError) in CGLRenderContext()
132 if (CGLCreateContext(pixelFormat, DE_NULL, &m_context) != kCGLNoError) in CGLRenderContext()
140 CGLReleasePixelFormat(pixelFormat); in CGLRenderContext()
144 CGLReleasePixelFormat(pixelFormat); in CGLRenderContext()
/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.cpp103 const tcu::PixelFormat& pixelFormat) in verifyTexCompareResult() argument
108 …const tcu::Vec3 nonShadowThreshold = tcu::computeFixedPointThreshold(getBitsVec(pixelFormat)-1).sw… in verifyTexCompareResult()
124 sampleTexture(SurfaceAccess(reference, pixelFormat), clampedSource, texCoord, sampleParams); in verifyTexCompareResult()
131 sampleTexture(SurfaceAccess(reference, pixelFormat), src, texCoord, sampleParams); in verifyTexCompareResult()
362 const tcu::PixelFormat pixelFormat = m_context.getRenderTarget().getPixelFormat(); in iterate() local
372 texComparePrecision.resultBits = pixelFormat.redBits-1; in iterate()
375 &texCoord[0], sampleParams, texComparePrecision, lodPrecision, pixelFormat); in iterate()
386 &texCoord[0], sampleParams, texComparePrecision, lodPrecision, pixelFormat); in iterate()
652 const tcu::PixelFormat pixelFormat = m_context.getRenderTarget().getPixelFormat(); in iterate() local
662 texComparePrecision.resultBits = pixelFormat.redBits-1; in iterate()
[all …]
Des3fTextureFilteringTests.cpp299 const tcu::PixelFormat pixelFormat = m_renderCtx.getRenderTarget().getPixelFormat(); in iterate() local
300 …const tcu::IVec4 colorBits = max(getBitsVec(pixelFormat) - (isNearestOnly ? 1 : 2), tcu::IVec4(0… in iterate()
309 lookupPrecision.colorMask = getCompareMask(pixelFormat); in iterate()
312 &texCoord[0], refParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()
323 &texCoord[0], refParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()
612 const tcu::PixelFormat pixelFormat = m_renderCtx.getRenderTarget().getPixelFormat(); in iterate() local
613 …const tcu::IVec4 colorBits = max(getBitsVec(pixelFormat) - (isNearestOnly ? 1 : 2), tcu::IVec4(0… in iterate()
622 lookupPrecision.colorMask = getCompareMask(pixelFormat); in iterate()
625 &texCoord[0], sampleParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()
636 &texCoord[0], sampleParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()
[all …]
/external/deqp/modules/glshared/
DglsTextureTestUtil.hpp453 const tcu::PixelFormat& pixelFormat);
462 const tcu::PixelFormat& pixelFormat);
471 const tcu::PixelFormat& pixelFormat);
480 const tcu::PixelFormat& pixelFormat);
489 const tcu::PixelFormat& pixelFormat);
498 const tcu::PixelFormat& pixelFormat);
508 const tcu::PixelFormat& pixelFormat);
/external/webrtc/webrtc/modules/video_render/mac/
Dcocoa_render_view.mm23 self = [super initWithFrame:[self frame] pixelFormat:fmt];
43 self = [super initWithFrame:screenRect pixelFormat:fmt];
/external/libjpeg-turbo/java/
DTJBench.java87 static byte[] loadImage(String fileName, int[] w, int[] h, int pixelFormat) in loadImage() argument
95 int ps = TJ.getPixelSize(pixelFormat); in loadImage()
96 int rindex = TJ.getRedOffset(pixelFormat); in loadImage()
97 int gindex = TJ.getGreenOffset(pixelFormat); in loadImage()
98 int bindex = TJ.getBlueOffset(pixelFormat); in loadImage()
113 int pixelFormat) throws Exception { in saveImage() argument
116 int ps = TJ.getPixelSize(pixelFormat); in saveImage()
117 int rindex = TJ.getRedOffset(pixelFormat); in saveImage()
118 int gindex = TJ.getGreenOffset(pixelFormat); in saveImage()
119 int bindex = TJ.getBlueOffset(pixelFormat); in saveImage()
/external/deqp/framework/opengl/
DgluFboRenderContext.cpp214 tcu::PixelFormat pixelFormat; in createFramebuffer() local
234 pixelFormat = getPixelFormat(colorFormat); in createFramebuffer()
287 …m_renderTarget = tcu::RenderTarget(width, height, pixelFormat, depthBits, stencilBits, config.numS… in createFramebuffer()
/external/deqp/modules/gles2/functional/
Des2fTextureFilteringTests.cpp299 const tcu::PixelFormat pixelFormat = m_renderCtx.getRenderTarget().getPixelFormat(); in iterate() local
300 …const tcu::IVec4 colorBits = max(getBitsVec(pixelFormat) - (isNearestOnly ? 1 : 2), tcu::IVec4(0… in iterate()
309 lookupPrecision.colorMask = getCompareMask(pixelFormat); in iterate()
312 &texCoord[0], refParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()
585 const tcu::PixelFormat pixelFormat = m_renderCtx.getRenderTarget().getPixelFormat(); in iterate() local
586 …const tcu::IVec4 colorBits = max(getBitsVec(pixelFormat) - (isNearestOnly ? 1 : 2), tcu::IVec4(0… in iterate()
595 lookupPrecision.colorMask = getCompareMask(pixelFormat); in iterate()
598 &texCoord[0], sampleParams, lookupPrecision, lodPrecision, pixelFormat); in iterate()

123