HomeSort by relevance Sort by last modified time
    Searched full:colortype (Results 1 - 25 of 344) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/tools/
sk_tool_utils.cpp 16 return "unexpected colortype";
21 SkColorType colorType, SkAlphaType alphaType) {
26 info.fColorType = colorType;
sk_tool_utils.h 20 * the pixels are colorType + alphaType
  /external/chromium_org/third_party/skia/src/core/
SkImageInfo.cpp 16 static bool color_type_is_valid(SkColorType colorType) {
17 return (colorType >= 0) && (colorType <= kLastEnum_SkColorType);
42 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
44 switch (colorType) {
SkConfig8888.cpp 153 dstPI.fColorType = dstInfo.colorType();
159 srcPI.fColorType = srcInfo.colorType();
167 // If they agree on colorType and the alphaTypes are compatible, then we just memcpy.
169 if (srcInfo.colorType() == dstInfo.colorType()) {
170 switch (srcInfo.colorType()) {
193 if (kARGB_4444_SkColorType == dstInfo.colorType() &&
194 (kN32_SkColorType == srcInfo.colorType() || kIndex_8_SkColorType == srcInfo.colorType())) {
201 if (kIndex_8_SkColorType == srcInfo.colorType()) {
    [all...]
  /external/chromium_org/third_party/skia/src/opts/
SkTextureCompression_opts_none.cpp 11 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::Format fmt) {
SkTextureCompression_opts_arm.cpp 13 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::Format fmt) {
22 switch (colorType) {
SkTextureCompression_opts.h 15 SkTextureCompressorGetPlatformProc(SkColorType colorType, SkTextureCompressor::Format fmt);
  /external/skia/src/core/
SkImageGenerator.cpp 21 if (kUnknown_SkColorType == info.colorType()) {
31 if (kIndex_8_SkColorType == info.colorType()) {
52 SkASSERT(kIndex_8_SkColorType != info.colorType());
53 if (kIndex_8_SkColorType == info.colorType()) {
SkImageInfo.cpp 16 static bool color_type_is_valid(SkColorType colorType) {
17 return (colorType >= 0) && (colorType <= kLastEnum_SkColorType);
  /external/skia/dm/
DMBenchTask.cpp 25 SkColorType colorType)
29 , fColorType(colorType) {}
55 static void draw_raster(Benchmark* bench, SkColorType colorType) {
57 AllocatePixels(colorType, bench->getSize().x(), bench->getSize().y(), &bitmap);
  /external/chromium_org/third_party/skia/tools/
sk_tool_utils.cpp 31 return "unexpected colortype";
53 SkColorType colorType, SkAlphaType alphaType) {
57 const SkImageInfo info = SkImageInfo::Make(tmp.width(), tmp.height(), colorType, alphaType);
  /external/skia/src/image/
SkImagePriv.cpp 13 SkBitmap::Config SkColorTypeToBitmapConfig(SkColorType colorType) {
14 switch (colorType) {
53 if (kUnknown_SkColorType == info.colorType()) {
  /external/chromium_org/third_party/skia/src/gpu/
GrSurface.cpp 16 SkColorType colorType;
17 if (!GrPixelConfig2ColorType(this->config(), &colorType)) {
20 return SkImageInfo::Make(this->width(), this->height(), colorType, kPremul_SkAlphaType);
  /external/chromium_org/third_party/skia/src/image/
SkImagePriv.cpp 14 if (kUnknown_SkColorType == info.colorType()) {
  /external/chromium_org/third_party/skia/src/images/
SkDecodingImageGenerator.cpp 20 a.colorType() == b.colorType();
171 bool success = decoder->decode(fStream, &bitmap, info.colorType(),
179 SkASSERT(bitmap.canCopyTo(info.colorType()));
180 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator);
191 if (kIndex_8_SkColorType == info.colorType()) {
192 if (kIndex_8_SkColorType != bitmap.colorType()) {
227 if (kUnknown_SkColorType == bitmap.colorType()) {
233 if (opts.fUseRequestedColorType && (opts.fRequestedColorType != info.colorType())) {
235 SkASSERT(bitmap.colorType() != opts.fRequestedColorType)
    [all...]
SkImageDecoder_libbmp.cpp 126 SkColorType colorType = this->getPrefColorType(k32Bit_SrcDepth, false);
129 if (kARGB_4444_SkColorType != colorType && kRGB_565_SkColorType != colorType) {
130 colorType = kN32_SkColorType;
136 colorType, kOpaque_SkAlphaType));
  /external/chromium_org/third_party/skia/include/core/
SkImageInfo.h 127 * Return true if alphaType is supported by colorType. If there is a canonical
128 * alphaType for this colorType, return it in canonical.
130 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
167 * Sets colortype to the native ARGB32 type.
174 * Sets colortype to the native ARGB32 type, and the alphatype to premul.
181 * Sets colortype to the native ARGB32 type, and the alphatype to premul.
201 SkColorType colorType() const { return fColorType; }
213 * Return a new ImageInfo with the same colortype and alphatype as this info,
SkBitmap.h 40 and height, and a format (colortype), and a pointer to the actual pixels.
53 * Its colortype is set to kUnknown_SkColorType.
83 SkColorType colorType() const { return fInfo.colorType(); }
87 * Return the number of bytes per pixel based on the colortype. If the colortype is
94 * If the colortype is kUnknown_SkColorType, then 0 is returned.
129 * colortype, and the current alphaType is unchanged.
246 * the pixel size specified by info.colorType()) then false is returned
346 be allocated. Only used if colortype == kIndex_8_SkColorTyp
    [all...]
  /external/qemu/android/
loadpng.c 22 int bitdepth, colortype, imethod, cmethod, fmethod, i; local
67 png_get_IHDR(p, pi, &width, &height, &bitdepth, &colortype,
70 // width, height, bitdepth, colortype);
72 switch(colortype){
160 int bitdepth, colortype, imethod, cmethod, fmethod, i; local
199 png_get_IHDR(p, pi, &width, &height, &bitdepth, &colortype,
202 // width, height, bitdepth, colortype);
204 switch(colortype){
  /external/chromium_org/third_party/skia/tools/skpdiff/
SkDifferentPixelsMetric_cpu.cpp 25 baseline->colorType() != test->colorType()) {
30 SkASSERT(baseline->colorType() == test->colorType());
46 result->rgbDiffBitmap.allocPixels(SkImageInfo::Make(width, height, baseline->colorType(),
  /external/replicaisland/src/com/replica/replicaisland/
DebugSystem.java 55 public void drawShape(float x, float y, float width, float height, int shapeType, int colorType) {
70 Texture texture = getTexture(shapeType, colorType);
83 private final Texture getTexture(int shapeType, int colorType) {
86 switch (colorType) {
98 switch (colorType) {
  /external/skia/src/images/
SkImageDecoder_libbmp.cpp 126 SkColorType colorType = this->getPrefColorType(k32Bit_SrcDepth, false);
129 if (kARGB_4444_SkColorType != colorType && kRGB_565_SkColorType != colorType) {
130 colorType = kN32_SkColorType;
136 colorType, kOpaque_SkAlphaType));
SkDecodingImageGenerator.cpp 20 a.colorType() == b.colorType();
176 bool success = decoder->decode(fStream, &bitmap, info.colorType(),
184 SkASSERT(bitmap.canCopyTo(info.colorType()));
185 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator);
196 if (kIndex_8_SkColorType == info.colorType()) {
197 if (kIndex_8_SkColorType != bitmap.colorType()) {
232 if (kUnknown_SkColorType == bitmap.colorType()) {
238 if (opts.fUseRequestedColorType && (opts.fRequestedColorType != info.colorType())) {
240 SkASSERT(bitmap.colorType() != opts.fRequestedColorType)
    [all...]
  /external/skia/tests/
BitmapCopyTest.cpp 24 gColorTypeName[src.colorType()], src.isOpaque(),
25 gColorTypeName[dst.colorType()], dst.isOpaque());
38 if (canHaveAlpha(srcPremul.colorType()) && canHaveAlpha(dstColorType)) {
40 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
47 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
174 ERRORF(reporter, "%s [colortype = %s]", msg,
175 gColorTypeName[bm1.colorType()]);
228 // Relies on old behavior of extractSubset failing if colortype is unknown
229 if (kUnknown_SkColorType != bitmap.colorType() && bitmap.extractSubset(&subset, r)) {
302 REPORTER_ASSERT(reporter, dst.colorType() == gPairs[j].fColorType)
    [all...]
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 103 switch (bitmap.colorType()) {
263 switch (src.colorType()) {
320 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle);
330 if (colorType == kARGB_4444_SkColorType) {
331 colorType = kN32_SkColorType;
335 bitmap.setInfo(SkImageInfo::Make(width, height, colorType, kPremul_SkAlphaType));
393 SkColorType colorType = GraphicsJNI::legacyBitmapConfigToColorType(configHandle);
396 if (colorType == kARGB_4444_SkColorType) {
397 colorType = kN32_SkColorType;
400 if (width * height * SkColorTypeBytesPerPixel(colorType) > allocSize)
    [all...]

Completed in 595 milliseconds

1 2 3 4 5 6 7 8 91011>>