Home
last modified time | relevance | path

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

12345678

/third_party/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 …]
/third_party/flutter/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/angle2/src/common/
Dandroid_util.cpp222 GLenum getPixelFormatInfo(int pixelFormat, bool *isYUV) in getPixelFormatInfo() argument
225 switch (pixelFormat) in getPixelFormatInfo()
265 WARN() << "Unknown pixelFormat: " << pixelFormat << ". Treating as RGB8"; in getPixelFormatInfo()
338 int *pixelFormat, in GetANativeWindowBufferProperties() argument
345 *pixelFormat = buffer->format; in GetANativeWindowBufferProperties()
349 GLenum NativePixelFormatToGLInternalFormat(int pixelFormat) in NativePixelFormatToGLInternalFormat() argument
352 return getPixelFormatInfo(pixelFormat, &isYuv); in NativePixelFormatToGLInternalFormat()
395 bool NativePixelFormatIsYUV(int pixelFormat) in NativePixelFormatIsYUV() argument
398 getPixelFormatInfo(pixelFormat, &isYuv); in NativePixelFormatIsYUV()
Dandroid_util.h45 int *pixelFormat,
47 GLenum NativePixelFormatToGLInternalFormat(int pixelFormat);
50 bool NativePixelFormatIsYUV(int pixelFormat);
/third_party/flutter/skia/third_party/externals/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()
609 int width, int pitch, int height, int pixelFormat, in tjCompress2() argument
622 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2()
627 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjCompress2()
650 if (setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags) == -1) in tjCompress2()
698 int pixelFormat, unsigned char **dstPlanes, in tjEncodeYUVPlanes() argument
721 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || !dstPlanes || in tjEncodeYUVPlanes()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Dturbojpeg.h755 int width, int pitch, int height, int pixelFormat,
1057 int width, int pitch, int height, int pixelFormat,
1118 int pixelFormat, unsigned char **dstPlanes,
1229 int width, int pitch, int height, int pixelFormat,
1393 int width, int pitch, int height, int pixelFormat,
1454 int height, int pixelFormat, int flags);
1603 int align, int *height, int *pixelFormat,
1640 int width, int pitch, int height, int pixelFormat,
1725 int pitch, int height, int pixelFormat,
Dturbojpeg.c269 int pixelFormat, int subsamp, int jpegQual, in setCompDefaults() argument
276 cinfo->in_color_space = pf2cs[pixelFormat]; in setCompDefaults()
277 cinfo->input_components = tjPixelSize[pixelFormat]; in setCompDefaults()
311 else if (pixelFormat == TJPF_CMYK) in setCompDefaults()
667 int width, int pitch, int height, int pixelFormat, in tjCompress2() argument
680 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2()
685 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjCompress2()
708 setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags); in tjCompress2()
758 int pixelFormat, unsigned char **dstPlanes, in tjEncodeYUVPlanes() argument
781 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || !dstPlanes || in tjEncodeYUVPlanes()
[all …]
/third_party/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,
1714 int pitch, int height, int pixelFormat,
Dturbojpeg.c237 static int setCompDefaults(struct jpeg_compress_struct *cinfo, int pixelFormat, in setCompDefaults() argument
245 cinfo->in_color_space = pf2cs[pixelFormat]; in setCompDefaults()
246 cinfo->input_components = tjPixelSize[pixelFormat]; in setCompDefaults()
280 else if (pixelFormat == TJPF_CMYK) in setCompDefaults()
638 int width, int pitch, int height, int pixelFormat, in tjCompress2() argument
651 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || jpegBuf == NULL || in tjCompress2()
656 if (pitch == 0) pitch = width * tjPixelSize[pixelFormat]; in tjCompress2()
679 if (setCompDefaults(cinfo, pixelFormat, jpegSubsamp, jpegQual, flags) == -1) in tjCompress2()
727 int pixelFormat, unsigned char **dstPlanes, in tjEncodeYUVPlanes() argument
750 pixelFormat < 0 || pixelFormat >= TJ_NUMPF || !dstPlanes || in tjEncodeYUVPlanes()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/android/
DNativeBufferImageSiblingAndroid.cpp23 int pixelFormat = 0; in initialize() local
27 &mSize.depth, &pixelFormat, &usage); in initialize()
28 mFormat = gl::Format(angle::android::NativePixelFormatToGLInternalFormat(pixelFormat)); in initialize()
29 mYUV = angle::android::NativePixelFormatIsYUV(pixelFormat); in initialize()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcConfigListWGL.cpp52 const int pixelFormat = *fmtIter; in getDefaultWglConfigList() local
53 …:wgl::PixelFormatInfo fmtInfo = wgl.getPixelFormatInfo(tmpWindow.getDeviceContext(), pixelFormat); in getDefaultWglConfigList()
80 …CONFIGTYPE_WGL, pixelFormat, SURFACETYPE_WINDOW, fmtInfo.redBits, fmtInfo.greenBits, fmtInfo.blueB… in getDefaultWglConfigList()
86 configList.configs.push_back(Config(CONFIGTYPE_WGL, pixelFormat, SURFACETYPE_WINDOW)); in getDefaultWglConfigList()
91 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()
/third_party/vk-gl-cts/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.hpp80 int pixelFormat; member in tcu::wgl::PixelFormatInfo
137 : pixelFormat (0) in PixelFormatInfo()
177 PixelFormatInfo getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const;
206 int pixelFormat,
DtcuWGL.cpp241 int pixelFormat = ChoosePixelFormat(tmpWindow.getDeviceContext(), &pixelFormatDesc); in Library() local
242 if (!SetPixelFormat(tmpWindow.getDeviceContext(), pixelFormat, &pixelFormatDesc)) in Library()
344 static void getPixelFormatAttribs (const Functions& wgl, HDC deviceCtx, int pixelFormat, int numAtt… in getPixelFormatAttribs() argument
348 if (!wgl.getPixelFormatAttribivARB(deviceCtx, pixelFormat, 0, numAttribs, &attribs[0], &values[0])) in getPixelFormatAttribs()
355 PixelFormatInfo Core::getPixelFormatInfo (HDC deviceCtx, int pixelFormat) const in getPixelFormatInfo()
387 …getPixelFormatAttribs(wgl, deviceCtx, pixelFormat, static_cast<int>(s_attribsToQuery.size()), s_at… in getPixelFormatInfo()
392 info.pixelFormat = pixelFormat; in getPixelFormatInfo()
425 int pixelFormat, in Context() argument
522 if (!DescribePixelFormat(deviceCtx, pixelFormat, sizeof(pixelFormatDesc), &pixelFormatDesc)) in Context()
525 if (!SetPixelFormat(deviceCtx, pixelFormat, &pixelFormatDesc)) in Context()
[all …]
/third_party/vk-gl-cts/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()
/third_party/skia/third_party/externals/angle2/util/windows/
DWGLWindow.cpp154 int pixelFormat = 0; in initializeGLWithResult() local
165 _wglChoosePixelFormatARB(mDeviceContext, &pixelFormatAttribs[0], nullptr, 1u, &pixelFormat, in initializeGLWithResult()
169 if (pixelFormat == 0 && configParams.colorSpace != EGL_COLORSPACE_LINEAR) in initializeGLWithResult()
176 if (pixelFormat == 0) in initializeGLWithResult()
178 pixelFormat = ChoosePixelFormat(mDeviceContext, &pixelFormatDescriptor); in initializeGLWithResult()
181 if (pixelFormat == 0) in initializeGLWithResult()
190 if (currentPixelFormat != pixelFormat) in initializeGLWithResult()
192 if (SetPixelFormat(mDeviceContext, pixelFormat, &pixelFormatDescriptor) != TRUE) in initializeGLWithResult()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/cgl/
DWindowSurfaceCGL.mm65 CGLPixelFormatObj pixelFormat = nullptr;
67 CGLChoosePixelFormat(attribs, &pixelFormat, &numFormats);
69 return pixelFormat;
72 - (CGLContextObj)copyCGLContextForPixelFormat:(CGLPixelFormatObj)pixelFormat
75 CGLCreateContext(pixelFormat, mDisplayContext, &context);
80 pixelFormat:(CGLPixelFormatObj)pixelFormat
100 pixelFormat:(CGLPixelFormatObj)pixelFormat
137 pixelFormat:pixelFormat
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dandroid_util.cpp205 int *pixelFormat) in GetANativeWindowBufferProperties() argument
211 *pixelFormat = buffer->format; in GetANativeWindowBufferProperties()
214 GLenum NativePixelFormatToGLInternalFormat(int pixelFormat) in NativePixelFormatToGLInternalFormat() argument
216 switch (pixelFormat) in NativePixelFormatToGLInternalFormat()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/cgl/
DWindowSurfaceCGL.mm69 CGLPixelFormatObj pixelFormat = nullptr;
71 CGLChoosePixelFormat(attribs, &pixelFormat, &numFormats);
73 return pixelFormat;
76 - (CGLContextObj)copyCGLContextForPixelFormat:(CGLPixelFormatObj)pixelFormat
79 CGLCreateContext(pixelFormat, mDisplayContext, &context);
84 pixelFormat:(CGLPixelFormatObj)pixelFormat
104 pixelFormat:(CGLPixelFormatObj)pixelFormat
141 pixelFormat:pixelFormat

12345678