Searched refs:colorType (Results 1 - 23 of 23) sorted by relevance

/frameworks/base/libs/hwui/
H A DTexture.cpp174 static void colorTypeToGlFormatAndType(SkColorType colorType, argument
176 switch (colorType) {
197 LOG_ALWAYS_FATAL("Unsupported bitmap colorType: %d", colorType);
228 colorTypeToGlFormatAndType(bitmap.colorType(), &format, &type);
237 if (CC_UNLIKELY(bitmap.colorType() == kARGB_4444_SkColorType
238 || bitmap.colorType() == kIndex_8_SkColorType)) {
H A DReadback.cpp62 switch (bitmap->colorType()) {
H A DBakedOpDispatcher.cpp76 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
181 if (firstOp.bitmap->colorType() == kAlpha_8_SkColorType) {
431 const int textureFillFlags = (op.bitmap->colorType() == kAlpha_8_SkColorType)
528 const int textureFillFlags = (op.bitmap->colorType() == kAlpha_8_SkColorType)
597 if (op.bitmap->colorType() == kAlpha_8_SkColorType) {
H A DLayerRenderer.cpp378 switch (bitmap->colorType()) {
H A DOpenGLRenderer.cpp1474 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
1498 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
1615 const int textureFillFlags = (bitmap->colorType() == kAlpha_8_SkColorType)
1643 if (bitmap->colorType() == kAlpha_8_SkColorType) {
1673 if (bitmap->colorType() == kAlpha_8_SkColorType) {
H A DFrameBuilder.cpp612 && op.bitmap->colorType() != kAlpha_8_SkColorType
H A DDisplayListOp.h694 (mBitmap->colorType() != kAlpha_8_SkColorType);
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp53 if (kIndex_8_SkColorType != newInfo.colorType()) {
67 newInfo.colorType(), newInfo.alphaType(), &alphaType),
262 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) {
481 switch (bitmap.colorType()) {
649 switch (src.colorType()) {
708 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle); local
718 if (colorType == kARGB_4444_SkColorType) {
719 colorType = kN32_SkColorType;
723 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType));
770 SkColorType dstCT = src.colorType();
803 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle); local
956 const SkColorType colorType = (SkColorType)p->readInt32(); local
[all...]
H A DBitmapRegionDecoder.cpp130 SkColorType colorType = kN32_SkColorType; local
138 colorType = GraphicsJNI::getNativeBitmapColorType(env, jconfig);
169 colorType = recycledBitmap->info().colorType();
179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) {
H A DBitmapFactory.cpp128 static SkColorType colorTypeForScaledOutput(SkColorType colorType) { argument
129 switch (colorType) {
136 return colorType;
148 colorTypeForScaledOutput(bitmap->colorType()));
175 if (info.colorType() == kUnknown_SkColorType) {
363 // Set the decode colorType. This is necessary because we can't always support
364 // the requested colorType.
479 SkColorType scaledColorType = colorTypeForScaledOutput(decodingBitmap.colorType());
H A DGraphics.cpp310 jint GraphicsJNI::colorTypeToLegacyBitmapConfig(SkColorType colorType) { argument
311 switch (colorType) {
489 if (info.colorType() == kUnknown_SkColorType) {
541 if (info.colorType() == kUnknown_SkColorType) {
584 if (info.colorType() == kUnknown_SkColorType) {
628 if (info.colorType() == kUnknown_SkColorType) {
699 if (mRecycledBitmap->info().colorType() != bitmap->colorType()) {
H A DGraphicsJNI.h70 static jint colorTypeToLegacyBitmapConfig(SkColorType colorType);
72 /** Return the corresponding native colorType from the java Config enum,
/frameworks/base/tools/aapt2/compile/
H A DPng.cpp111 int colorType, bitDepth, interlaceType, compressionType; local
112 png_get_IHDR(readPtr, infoPtr, &outInfo->width, &outInfo->height, &bitDepth, &colorType,
115 if (colorType == PNG_COLOR_TYPE_PALETTE) {
119 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) {
131 if (!(colorType & PNG_COLOR_MASK_ALPHA)) {
135 if (colorType == PNG_COLOR_TYPE_GRAY || colorType == PNG_COLOR_TYPE_GRAY_ALPHA) {
232 int *paletteEntries, bool *hasTransparency, int *colorType,
348 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel
355 *colorType
230 analyze_image(IDiagnostics* diag, const PngInfo& imageInfo, int grayscaleTolerance, png_colorp rgbPalette, png_bytep alphaPalette, int *paletteEntries, bool *hasTransparency, int *colorType, png_bytepp outRows) argument
420 int colorType, bitDepth, interlaceType, compressionType; local
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_TextureView.cpp75 SkColorType colorType = kUnknown_SkColorType; local
79 colorType = kN32_SkColorType;
83 colorType = kN32_SkColorType;
87 colorType = kRGB_565_SkColorType;
93 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType);
H A Dandroid_view_SurfaceControl.cpp154 SkColorType colorType; local
158 colorType = kRGBA_8888_SkColorType;
163 colorType = kRGBA_8888_SkColorType;
168 colorType = kRGB_565_SkColorType;
178 colorType, alphaType);
H A Dcom_google_android_gles_jni_EGLImpl.cpp296 pixmap.format = convertPixelFormat(nativeBitmap.colorType());
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp646 static int checkFormat(SkColorType colorType, int format, int type) argument
648 switch(colorType) {
674 static int getInternalFormat(SkColorType colorType) argument
676 switch(colorType) {
692 static int getType(SkColorType colorType) argument
694 switch(colorType) {
715 return getInternalFormat(nativeBitmap.colorType());
723 return getType(nativeBitmap.colorType());
732 SkColorType colorType = bitmap.colorType(); local
779 SkColorType colorType = bitmap.colorType(); local
[all...]
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp39 switch (bm.colorType()) {
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.h136 SkColorType colorType = kN32_SkColorType) {
139 colorType, kPremul_SkAlphaType);
/frameworks/base/tools/aapt/
H A DImages.cpp877 int *colorType, png_bytepp outRows)
1054 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel
1061 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color
1063 *colorType = PNG_COLOR_TYPE_GRAY_ALPHA; // 2 bytes per pixel
1067 *colorType = PNG_COLOR_TYPE_PALETTE;
1071 *colorType = isOpaque ? PNG_COLOR_TYPE_GRAY : PNG_COLOR_TYPE_GRAY_ALPHA;
1073 *colorType = isOpaque ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA;
1080 if (*colorType == PNG_COLOR_TYPE_PALETTE) {
1113 } else if (*colorType == PNG_COLOR_TYPE_GRAY || *colorType
874 analyze_image(const char *imageName, image_info &imageInfo, int grayscaleTolerance, png_colorp rgbPalette, png_bytep alphaPalette, int *paletteEntries, int *alphaPaletteEntries, bool *hasTransparency, int *colorType, png_bytepp outRows) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.cpp156 LOG_ALWAYS_FATAL_IF(bmp->colorType() != kRGBA_8888_SkColorType,
H A DNinePatchImpl.cpp35 switch (bitmap.colorType()) {
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp131 switch (bitmap.colorType()) {
194 switch (bitmap.colorType()) {

Completed in 399 milliseconds