/external/webkit/WebCore/bindings/js/ |
JSImageDataCustom.cpp | 29 #include "ImageData.h" 39 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, ImageData* imageData) 41 if (!imageData) 44 DOMObject* wrapper = getCachedDOMObjectWrapper(exec, imageData); 48 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, ImageData, imageData); 52 wrapper->putDirect(dataName, new (exec) JSByteArray(exec, cpaStructure, imageData->data()->data(), &cpaClassInfo), DontDelete | ReadOnly); 53 exec->heap()->reportExtraMemoryCost(imageData->data()->length());
|
SerializedScriptValue.cpp | 32 #include "ImageData.h" 173 static PassRefPtr<SerializedImageData> create(const ImageData* imageData) 175 return adoptRef(new SerializedImageData(imageData)); 182 SerializedImageData(const ImageData* imageData) 183 : m_width(imageData->width()) 184 , m_height(imageData->height()) 186 WTF::ByteArray* array = imageData->data()->data(); 213 SerializedScriptValueData::SerializedScriptValueData(const ImageData* imageData [all...] |
/frameworks/base/libs/camera/ |
ICameraClient.cpp | 54 void dataCallback(int32_t msgType, const sp<IMemory>& imageData) 60 data.writeStrongBinder(imageData->asBinder()); 65 void dataCallbackTimestamp(nsecs_t timestamp, int32_t msgType, const sp<IMemory>& imageData) 72 data.writeStrongBinder(imageData->asBinder()); 98 sp<IMemory> imageData = interface_cast<IMemory>(data.readStrongBinder()); 99 dataCallback(msgType, imageData); 107 sp<IMemory> imageData = interface_cast<IMemory>(data.readStrongBinder()); 108 dataCallbackTimestamp(timestamp, msgType, imageData);
|
/external/webkit/WebCore/platform/graphics/filters/ |
FEColorMatrix.cpp | 31 #include "ImageData.h" 122 void effectType(const PassRefPtr<CanvasPixelArray>& srcPixelArray, PassRefPtr<ImageData>& imageData, const Vector<float>& values) 150 imageData->data()->set(pixelByteOffset, red); 151 imageData->data()->set(pixelByteOffset + 1, green); 152 imageData->data()->set(pixelByteOffset + 2, blue); 153 imageData->data()->set(pixelByteOffset + 3, alpha); 170 PassRefPtr<ImageData> imageData(resultImage()->getUnmultipliedImageData(imageRect)); 171 PassRefPtr<CanvasPixelArray> srcPixelArray(imageData->data()) [all...] |
FEBlend.cpp | 32 #include "ImageData.h" 121 RefPtr<ImageData> imageData = ImageData::create(imageRect.width(), imageRect.height()); 135 imageData->data()->set(pixelOffset + channel, result); 138 imageData->data()->set(pixelOffset + 3, alphaR); 141 resultImage()->putPremultipliedImageData(imageData.get(), imageRect, IntPoint());
|
FEComposite.cpp | 31 #include "ImageData.h" 160 RefPtr<ImageData> imageData(m_in2->resultImage()->getPremultipliedImageData(effectBDrawingRect)); 161 CanvasPixelArray* srcPixelArrayB(imageData->data()); 164 resultImage()->putPremultipliedImageData(imageData.get(), IntRect(IntPoint(), resultImage()->size()), IntPoint());
|
FEComponentTransfer.cpp | 32 #include "ImageData.h" 171 RefPtr<ImageData> imageData(m_in->resultImage()->getUnmultipliedImageData(drawingRect)); 172 CanvasPixelArray* srcPixelArray(imageData->data()); 177 imageData->data()->set(pixelOffset + channel, tables[channel][c]); 181 resultImage()->putUnmultipliedImageData(imageData.get(), IntRect(IntPoint(), resultImage()->size()), IntPoint());
|
/external/webkit/WebCore/platform/graphics/wince/ |
ImageBufferWince.cpp | 26 #include "ImageData.h" 102 template <bool premultiplied> PassRefPtr<ImageData> 105 PassRefPtr<ImageData> imageData = ImageData::create(rect.width(), rect.height()); 109 return imageData; 114 return imageData; 116 unsigned char* dst = imageData->data()->data()->data(); 117 memset(dst, 0, imageData->data()->data()->length()); 119 dst += ((sourceRect.y() - rect.y()) * imageData->width() + sourceRect.x() - rect.x()) * 4 [all...] |
/external/webkit/WebKitTools/DumpRenderTree/cg/ |
PixelDumpSupportCG.cpp | 60 RetainPtr<CFMutableDataRef> imageData(AdoptCF, CFDataCreateMutable(0, 0)); 61 RetainPtr<CGImageDestinationRef> imageDest(AdoptCF, CGImageDestinationCreateWithData(imageData.get(), kUTTypePNG, 1, 0)); 65 const UInt8* data = CFDataGetBytePtr(imageData.get()); 66 CFIndex dataLength = CFDataGetLength(imageData.get());
|
ImageDiffCG.cpp | 230 RetainPtr<CFMutableDataRef> imageData(AdoptCF, CFDataCreateMutable(0, 0)); 231 RetainPtr<CGImageDestinationRef> imageDest(AdoptCF, CGImageDestinationCreateWithData(imageData.get(), kUTTypePNG, 1, 0)); 234 printf("Content-Length: %lu\n", CFDataGetLength(imageData.get())); 235 fwrite(CFDataGetBytePtr(imageData.get()), 1, CFDataGetLength(imageData.get()), stdout);
|
/external/webkit/WebCore/svg/graphics/filters/ |
SVGFEDisplacementMap.cpp | 31 #include "ImageData.h" 103 RefPtr<ImageData> imageData = ImageData::create(imageRect.width(), imageRect.height()); 120 imageData->data()->set(dstIndex + channel, static_cast<unsigned char>(0)); 123 imageData->data()->set(dstIndex + channel, pixelValue); 129 resultImage()->putPremultipliedImageData(imageData.get(), imageRect, IntPoint());
|
SVGFEMorphology.cpp | 30 #include "ImageData.h" 101 RefPtr<ImageData> imageData = ImageData::create(imageRect.width(), imageRect.height()); 148 imageData->data()->set(y * effectWidth + 4 * x + channel, entireExtrema); 152 resultImage()->putPremultipliedImageData(imageData.get(), imageRect, IntPoint());
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapRegionDecoderTest.java | 139 byte[] imageData = obtainByteArray(RES_IDS[i]); 142 .newInstance(imageData, 0, imageData.length, false); 216 byte[] imageData = obtainByteArray(RES_IDS[i]); 218 .newInstance(imageData, 0, imageData.length, false); 219 Bitmap wholeImage = BitmapFactory.decodeByteArray(imageData, 220 0, imageData.length, opts);
|
/external/webkit/WebCore/platform/graphics/qt/ |
ImageDecoderQt.cpp | 75 QByteArray imageData = QByteArray::fromRawData(m_data->data(), m_data->size()); 77 m_buffer->setData(imageData);
|
ImageBufferQt.cpp | 33 #include "ImageData.h" 129 PassRefPtr<ImageData> getImageData(const IntRect& rect, const ImageBufferData& imageData, const IntSize& size) 131 PassRefPtr<ImageData> result = ImageData::create(rect.width(), rect.height()); 159 QImage image = imageData.m_pixmap.toImage(); 185 PassRefPtr<ImageData> ImageBuffer::getUnmultipliedImageData(const IntRect& rect) const 190 PassRefPtr<ImageData> ImageBuffer::getPremultipliedImageData(const IntRect& rect) const 196 void putImageData(ImageData*& source, const IntRect& sourceRect, const IntPoint& destPoint, ImageBufferData& data, const IntSize& size) 240 // ImageData stores the pixels in RGBA while QImage is ARG [all...] |
/external/webkit/WebCore/platform/graphics/cg/ |
ImageBufferCG.cpp | 34 #include "ImageData.h" 126 PassRefPtr<ImageData> getImageData(const IntRect& rect, const ImageBufferData& imageData, const IntSize& size) 128 PassRefPtr<ImageData> result = ImageData::create(rect.width(), rect.height()); 160 unsigned char* srcRows = reinterpret_cast<unsigned char*>(imageData.m_data) + originy * srcBytesPerRow + originx * 4; 180 PassRefPtr<ImageData> ImageBuffer::getUnmultipliedImageData(const IntRect& rect) const 185 PassRefPtr<ImageData> ImageBuffer::getPremultipliedImageData(const IntRect& rect) const 191 void putImageData(ImageData*& source, const IntRect& sourceRect, const IntPoint& destPoint, ImageBufferData& imageData, const IntSize& size [all...] |
/external/webkit/WebKit/qt/WebCoreSupport/ |
DragClientQt.cpp | 98 drag->setPixmap(qvariant_cast<QPixmap>(clipboardData->imageData()));
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/ |
ScreenShotDialog.java | 31 import org.eclipse.swt.graphics.ImageData; 242 ImageData imageData = new ImageData(mRawImage.width, mRawImage.height, 244 image = new Image(getParent().getDisplay(), imageData); 293 ImageData imageData = mImageLabel.getImage().getImageData(); 299 loader.data = new ImageData[] { imageData };
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/parts/ |
UiDocumentEditPart.java | 39 import org.eclipse.swt.graphics.ImageData; 84 ImageData imageData = new ImageData(image.getWidth(), image.getHeight(), 32, 87 imageData.setPixels(0, 0, data.length, data, 0); 89 mImage = new Image(display, imageData);
|
/external/webkit/WebCore/svg/ |
SVGMaskElement.cpp | 33 #include "ImageData.h" 238 RefPtr<ImageData> imageData(maskImage->getUnmultipliedImageData(maskImageRect)); 239 CanvasPixelArray* srcPixelArray(imageData->data()); 253 maskImage->putUnmultipliedImageData(imageData.get(), maskImageRect, IntPoint());
|
/external/webkit/WebCore/platform/graphics/win/ |
GraphicsContextCGWin.cpp | 120 RetainPtr<CFDataRef> imageData(AdoptCF, CFDataCreate(kCFAllocatorDefault, image->buffer(), image->bufferLength())); 121 RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithCFData(imageData.get()));
|
/external/webkit/WebCore/bindings/v8/custom/ |
V8CanvasRenderingContext2DCustom.cpp | 426 // * putImageData(ImageData, x, y) 427 // * putImageData(ImageData, x, y, dirtyX, dirtyY, dirtyWidth, dirtyHeight) 435 ImageData* imageData = 0; 441 if (V8DOMWrapper::isWrapperOfType(args[0], V8ClassIndex::IMAGEDATA)) 442 imageData = V8ImageData::toNative(v8::Handle<v8::Object>::Cast(args[0])); 447 context->putImageData(imageData, toFloat(args[1]), toFloat(args[2]), toFloat(args[3]), toFloat(args[4]), toFloat(args[5]), toFloat(args[6]), ec); 449 context->putImageData(imageData, toFloat(args[1]), toFloat(args[2]), ec);
|
/external/webkit/WebCore/loader/icon/ |
IconDatabase.cpp | 267 // If it's a new IconRecord object that doesn't have its imageData set yet, [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle1/ |
GraphicalLayoutEditor.java | 95 import org.eclipse.swt.graphics.ImageData; 659 * @return an ImageData containing the rendering or <code>null</code> if rendering failed. 661 public ImageData renderWidget(ViewElementDescriptor descriptor) { 738 ImageData imageData = new ImageData(width, height, 32, 741 imageData.setPixels(0, 0, imageDataBuffer.length, imageDataBuffer, 0); 743 return imageData; [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
LayoutCanvas.java | 67 import org.eclipse.swt.graphics.ImageData; 768 ImageData imageData = new ImageData(width, height, 32, 771 imageData.setPixels(0, 0, imageDataBuffer.length, imageDataBuffer, 0); 773 mImage = new Image(getDisplay(), imageData); [all...] |