/external/skia/src/core/ |
SkConvertPixels.cpp | 22 static inline bool can_memcpy(const SkImageInfo& dstInfo, const SkImageInfo& srcInfo) { 23 if (dstInfo.colorType() != srcInfo.colorType()) { 31 if (dstInfo.alphaType() != srcInfo.alphaType() && 33 kOpaque_SkAlphaType != srcInfo.alphaType()) 40 SkColorSpace::Equals(dstInfo.colorSpace(), srcInfo.colorSpace()); 56 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRB) { 58 const bool swapRB = dstInfo.colorType() != srcInfo.colorType(); 61 kUnpremul_SkAlphaType == srcInfo.alphaType()) 65 kPremul_SkAlphaType == srcInfo.alphaType()) { 91 static inline bool optimized_color_xform(const SkImageInfo& dstInfo, const SkImageInfo& srcInfo, [all...] |
SkConvertPixels.h | 17 const SkImageInfo& srcInfo, const void* srcPixels, size_t srcRowBytes,
|
SkPixmap.cpp | 87 const SkImageInfo srcInfo = fInfo.makeWH(rec.fInfo.width(), rec.fInfo.height()); 88 SkConvertPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, srcInfo, srcPixels, this->rowBytes(),
|
SkBitmapDevice.cpp | 153 bool SkBitmapDevice::onWritePixels(const SkImageInfo& srcInfo, const void* srcPixels, 160 if (fBitmap.writePixels(SkPixmap(srcInfo, srcPixels, srcRowBytes), x, y)) {
|
/external/skia/src/gpu/ |
GrSurfaceContext.cpp | 65 bool GrSurfaceContext::writePixels(const SkImageInfo& srcInfo, const void* srcBuffer, 73 GrPixelConfig config = SkImageInfo2GrPixelConfig(srcInfo, *fContext->caps()); 77 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) { 82 srcInfo.width(), srcInfo.height(), 83 config, srcInfo.colorSpace(),
|
GrSurfaceContext.h | 79 * Writes a rectangle of pixels [srcInfo, srcBuffer, srcRowbytes] into the 81 * @param srcInfo image info for the source pixels 90 bool writePixels(const SkImageInfo& srcInfo, const void* srcBuffer, size_t srcRowBytes,
|
GrResourceProvider.cpp | 139 SkImageInfo srcInfo; 141 if (make_info(desc.fWidth, desc.fHeight, desc.fConfig, &srcInfo)) { 148 if (sContext->writePixels(srcInfo, mipLevel.fPixels, mipLevel.fRowBytes, 0, 0)) {
|
/external/skia/src/images/ |
SkPngEncoder.cpp | 54 bool setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options); 56 bool writeInfo(const SkImageInfo& srcInfo); 57 void chooseProc(const SkImageInfo& srcInfo, SkTransferFunctionBehavior unpremulBehavior); 98 bool SkPngEncoderMgr::setHeader(const SkImageInfo& srcInfo, const SkPngEncoder::Options& options) { 106 switch (srcInfo.colorType()) { 108 SkASSERT(srcInfo.colorSpace() && srcInfo.colorSpace()->gammaIsLinear()); 114 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA; 121 SkASSERT(srcInfo.isOpaque()); 129 pngColorType = srcInfo.isOpaque() ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGB_ALPHA [all...] |
SkJpegEncoder.cpp | 39 bool setParams(const SkImageInfo& srcInfo, const SkJpegEncoder::Options& options); 69 bool SkJpegEncoderMgr::setParams(const SkImageInfo& srcInfo, const SkJpegEncoder::Options& options) 72 if (kUnpremul_SkAlphaType != srcInfo.alphaType() || 80 const bool isSRGBTransferFn = srcInfo.gammaCloseToSRGB() && 91 switch (srcInfo.colorType()) { 117 SkASSERT(srcInfo.isOpaque()); 122 if (!srcInfo.colorSpace() || !srcInfo.colorSpace()->gammaIsLinear() || 127 if (kUnpremul_SkAlphaType != srcInfo.alphaType() || 141 fCInfo.image_width = srcInfo.width() [all...] |
/external/skia/src/shaders/ |
SkBitmapProcShader.h | 19 static size_t ContextSize(const ContextRec&, const SkImageInfo& srcInfo);
|
SkBitmapProcShader.cpp | 161 static bool choose_linear_pipeline(const SkShaderBase::ContextRec& rec, const SkImageInfo& srcInfo) { 164 bool needsPremul = srcInfo.alphaType() == kUnpremul_SkAlphaType; 165 bool needsSwizzle = srcInfo.bytesPerPixel() == 4 && srcInfo.colorType() != kN32_SkColorType; 170 size_t SkBitmapProcLegacyShader::ContextSize(const ContextRec& rec, const SkImageInfo& srcInfo) {
|
/external/skia/src/codec/ |
SkMaskSwizzler.h | 29 const SkImageInfo& srcInfo,
|
SkWebpCodec.cpp | 401 const auto& srcInfo = this->getInfo(); 403 auto info = srcInfo; 415 SkASSERT(0 == index || (!options.fSubset && dstInfo.dimensions() == srcInfo.dimensions())); 437 SkASSERT(srcInfo.bounds().contains(frameRect)); 438 const bool frameIsSubset = frameRect != srcInfo.bounds(); 484 SkISize srcSize = options.fSubset ? options.fSubset->size() : srcInfo.dimensions(); 582 const auto srcAlpha = 0 == index ? srcInfo.alphaType() : alpha_type(frame.has_alpha);
|
SkCodecPriv.h | 290 static inline bool needs_color_xform(const SkImageInfo& dstInfo, const SkImageInfo& srcInfo, 301 bool srcDstNotEqual = !SkColorSpace::Equals(srcInfo.colorSpace(), dstInfo.colorSpace());
|
SkMaskSwizzler.cpp | 388 const SkImageInfo& srcInfo, SkMasks* masks, uint32_t bitsPerPixel, 397 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 413 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 438 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 454 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 479 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 495 if (kOpaque_SkAlphaType == srcInfo.alphaType()) {
|
SkGifCodec.cpp | 227 const auto srcInfo = this->getInfo().makeAlphaType(at); 228 if (!conversion_possible(dstInfo, srcInfo) ||
|
SkJpegCodec.cpp | 552 const SkImageInfo& srcInfo, bool hasColorSpaceXform) { 557 bool hasCMYKColorSpace = as_CSB(srcInfo.colorSpace())->onIsCMYK(); [all...] |
/hardware/interfaces/sensors/1.0/default/ |
convert.cpp | 186 const additional_info_event_t &srcInfo = src.additional_info; 190 srcInfo.type; 192 dstInfo->serial = srcInfo.serial; 194 CHECK_EQ(sizeof(dstInfo->u), sizeof(srcInfo.data_int32)); 195 memcpy(&dstInfo->u, srcInfo.data_int32, sizeof(srcInfo.data_int32)); 328 const ::android::hardware::sensors::V1_0::AdditionalInfo &srcInfo = 332 dstInfo->type = (int32_t)srcInfo.type; 333 dstInfo->serial = srcInfo.serial; 335 CHECK_EQ(sizeof(srcInfo.u), sizeof(dstInfo->data_int32)) [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
CopyJob.java | 271 DocumentInfo srcInfo; 273 srcInfo = mResolvedDocs.get(i); 276 "Copying " + srcInfo.displayName + " (" + srcInfo.derivedUri + ")" 281 if (mDstInfo.equals(srcInfo) || isDescendentOf(srcInfo, mDstInfo)) { 282 Log.e(TAG, "Skipping recursive copy of " + srcInfo.derivedUri); 283 onFileFailed(srcInfo); 285 processDocument(srcInfo, null, mDstInfo); 288 Log.e(TAG, "Failed to copy " + srcInfo.derivedUri, e) [all...] |
/external/skia/tests/ |
ReadPixelsTest.cpp | 536 const SkImageInfo& srcInfo) { 537 if (!SkImageInfoIsValidRenderingCS(srcInfo)) { 541 const void* srcPixels = five_reference_pixels(srcInfo.colorType()); 542 SkPixmap srcPixmap(srcInfo, srcPixels, srcInfo.minRowBytes()); 550 REPORTER_ASSERT(r, success == SkImageInfoValidConversion(dstInfo, srcInfo)); 553 if (kGray_8_SkColorType == srcInfo.colorType() &&
|
BitmapCopyTest.cpp | 162 const SkImageInfo srcInfo = SkImageInfo::MakeN32Premul(W, H); 166 srcBM.installPixels(srcInfo, srcPixels, rowBytes);
|
/external/javassist/src/main/javassist/bytecode/ |
AttributeInfo.java | 173 byte[] srcInfo = info; 176 newInfo[i] = srcInfo[i];
|
/external/javassist/src/main/javassist/ |
CtBehavior.java | 44 MethodInfo srcInfo = src.methodInfo; 65 // a stack map table is copied from srcInfo. 66 methodInfo = new MethodInfo(cp, srcInfo.getName(), srcInfo, map); 415 static void setBody0(CtClass srcClass, MethodInfo srcInfo, 425 CodeAttribute cattr = srcInfo.getCodeAttribute(); [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
FolderIcon.java | 322 final ShortcutInfo srcInfo, final DragView srcView, Rect dstRect, 336 onDrop(srcInfo, srcView, dstRect, scaleRelativeToDragLayer, 1, postAnimationRunnable, null);
|
/external/boringssl/src/util/ |
run_android_tests.go | 162 srcInfo, err := srcFile.Stat() 172 dstFile, err := os.OpenFile(dst, os.O_CREATE|os.O_WRONLY, srcInfo.Mode())
|