Searched defs:colorType (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp121 static SkColorType colorTypeForScaledOutput(SkColorType colorType) { argument
122 switch (colorType) {
129 return colorType;
141 colorTypeForScaledOutput(bitmap->colorType()));
381 SkColorType colorType = colorTypeForScaledOutput(decodingBitmap.colorType()); local
386 colorType, decodingBitmap.alphaType()));
H A DBitmap.cpp52 if (kIndex_8_SkColorType != newInfo.colorType()) {
66 newInfo.colorType(), newInfo.alphaType(), &alphaType),
268 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) {
487 switch (bitmap.colorType()) {
655 switch (src.colorType()) {
714 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle); local
724 if (colorType == kARGB_4444_SkColorType) {
725 colorType = kN32_SkColorType;
729 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType));
791 SkColorType colorType local
944 const SkColorType colorType = (SkColorType)p->readInt32(); local
[all...]
H A DGraphics.cpp310 jint GraphicsJNI::colorTypeToLegacyBitmapConfig(SkColorType colorType) { argument
311 switch (colorType) {
/frameworks/base/core/jni/android/opengl/
H A Dutil.cpp652 static int checkFormat(SkColorType colorType, int format, int type) argument
654 switch(colorType) {
680 static int getInternalFormat(SkColorType colorType) argument
682 switch(colorType) {
698 static int getType(SkColorType colorType) argument
700 switch(colorType) {
721 return getInternalFormat(nativeBitmap.colorType());
729 return getType(nativeBitmap.colorType());
738 SkColorType colorType = bitmap.colorType(); local
785 SkColorType colorType = bitmap.colorType(); local
[all...]
/frameworks/base/tools/aapt/
H A DImages.cpp876 int *paletteEntries, bool *hasTransparency, int *colorType,
993 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel
1000 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color
1002 *colorType = PNG_COLOR_TYPE_GRAY_ALPHA; // 2 bytes per pixel
1006 *colorType = PNG_COLOR_TYPE_PALETTE;
1010 *colorType = isOpaque ? PNG_COLOR_TYPE_GRAY : PNG_COLOR_TYPE_GRAY_ALPHA;
1012 *colorType = isOpaque ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA;
1019 if (*colorType == PNG_COLOR_TYPE_PALETTE) {
1031 } 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, bool *hasTransparency, int *colorType, png_bytepp outRows) argument
[all...]
/frameworks/base/tools/aapt2/
H A DPng.cpp113 int colorType, bitDepth, interlaceType, compressionType; local
114 png_get_IHDR(readPtr, infoPtr, &outInfo->width, &outInfo->height, &bitDepth, &colorType,
117 if (colorType == PNG_COLOR_TYPE_PALETTE) {
121 if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) {
133 if (!(colorType & PNG_COLOR_MASK_ALPHA)) {
137 if (colorType == PNG_COLOR_TYPE_GRAY || colorType == PNG_COLOR_TYPE_GRAY_ALPHA) {
234 int *paletteEntries, bool *hasTransparency, int *colorType,
350 *colorType = PNG_COLOR_TYPE_GRAY; // 1 byte/pixel
357 *colorType
232 analyze_image(SourceLogger* logger, const PngInfo& imageInfo, int grayscaleTolerance, png_colorp rgbPalette, png_bytep alphaPalette, int *paletteEntries, bool *hasTransparency, int *colorType, png_bytepp outRows) argument
422 int colorType, bitDepth, interlaceType, compressionType; local
[all...]

Completed in 99 milliseconds