Home
last modified time | relevance | path

Searched refs:imageInfo (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/tools/aapt/
DImages.cpp875 static void analyze_image(const char *imageName, image_info &imageInfo, int grayscaleTolerance, in analyze_image() argument
880 int w = imageInfo.width; in analyze_image()
881 int h = imageInfo.height; in analyze_image()
903 dump_image(w, h, imageInfo.rows, PNG_COLOR_TYPE_RGB_ALPHA); in analyze_image()
907 png_bytep row = imageInfo.rows[j]; in analyze_image()
1089 png_bytep row = imageInfo.rows[j]; in analyze_image()
1117 png_bytep row = imageInfo.rows[j]; in analyze_image()
1140 image_info& imageInfo, const Bundle* bundle) in write_png() argument
1152 png_bytepp outRows = (png_bytepp) malloc((int) imageInfo.height * sizeof(png_bytep)); in write_png()
1157 for (i = 0; i < (int) imageInfo.height; i++) { in write_png()
[all …]
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp120 static AndroidBitmapInfo getInfo(const SkImageInfo& imageInfo, uint32_t rowBytes, bool isHardware) { in getInfo() argument
122 info.width = imageInfo.width(); in getInfo()
123 info.height = imageInfo.height(); in getInfo()
125 info.format = getFormat(imageInfo); in getInfo()
126 info.flags = getInfoFlags(imageInfo, isHardware); in getInfo()
144 SkImageInfo imageInfo = GraphicsJNI::getBitmapInfo(env, bitmapObj, &rowBytes, &isHardware); in ABitmap_getInfoFromJava() local
145 return getInfo(imageInfo, rowBytes, isHardware); in ABitmap_getInfoFromJava()
283 auto imageInfo = in ABitmap_compress() local
288 if (!bitmap.installPixels(imageInfo, const_cast<void*>(pixels), info->stride)) { in ABitmap_compress()
Dandroid_canvas.cpp43 SkImageInfo imageInfo = uirenderer::ANativeWindowToImageInfo(*buffer, cs); in convert() local
44 size_t rowBytes = buffer->stride * imageInfo.bytesPerPixel(); in convert()
48 sk_sp<SkSurface> surface = SkSurface::MakeRasterDirect(imageInfo, buffer->bits, rowBytes); in convert()
51 outBitmap->setInfo(imageInfo, rowBytes); in convert()
/frameworks/av/services/camera/libcameraservice/api2/
DHeicCompositeStream.cpp1496 MediaImage2* imageInfo = reinterpret_cast<MediaImage2*>(imageData->data()); in copyOneYuvTile() local
1497 if (imageInfo->mType != MediaImage2::MEDIA_IMAGE_TYPE_YUV || in copyOneYuvTile()
1498 imageInfo->mBitDepth != 8 || in copyOneYuvTile()
1499 imageInfo->mBitDepthAllocated != 8 || in copyOneYuvTile()
1500 imageInfo->mNumPlanes != 3) { in copyOneYuvTile()
1503 imageInfo->mType, imageInfo->mBitDepth, in copyOneYuvTile()
1504 imageInfo->mBitDepthAllocated, imageInfo->mNumPlanes); in copyOneYuvTile()
1511 __FUNCTION__, imageInfo->mPlane[MediaImage2::U].mOffset, in copyOneYuvTile()
1512 imageInfo->mPlane[MediaImage2::V].mOffset, in copyOneYuvTile()
1513 imageInfo->mPlane[MediaImage2::U].mRowInc, in copyOneYuvTile()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaProfileRenderer.cpp37 return mCanvas->imageInfo().width(); in getViewportWidth()
41 return mCanvas->imageInfo().height(); in getViewportHeight()
DVkInteropFunctorDrawable.cpp77 SkImageInfo surfaceInfo = canvas->imageInfo(); in onDraw()
139 info.color_space_ptr = canvas->imageInfo().colorSpace(); in onDraw()
183 canvas->imageInfo().refColorSpace(), in onDraw()
DGLFunctorDrawable.cpp82 canvas->imageInfo().makeWH(clipBounds.width(), clipBounds.height()); in onDraw()
119 info.color_space_ptr = canvas->imageInfo().colorSpace(); in onDraw()
/frameworks/wilhelm/src/
Ddata.h112 XAImageStreamInformation imageInfo; member
/frameworks/base/tools/aapt2/compile/
DPng.cpp248 static void analyze_image(IDiagnostics* diag, const PngInfo& imageInfo, in analyze_image() argument
253 int w = imageInfo.width; in analyze_image()
254 int h = imageInfo.height; in analyze_image()
275 const png_byte* row = imageInfo.rows[j]; in analyze_image()
413 const png_byte* row = imageInfo.rows[j]; in analyze_image()
/frameworks/native/libs/renderengine/skia/debug/
DSkiaCapture.cpp134 SkRect::Make(state->offscreenRecorder->getRecordingCanvas()->imageInfo().dimensions()); in endOffscreenCapture()
/frameworks/native/libs/renderengine/skia/filters/
DBlurFilter.cpp89 SkImageInfo scaledInfo = input->imageInfo().makeWH(std::ceil(blurRect.width() * kInputScale), in generate()
/frameworks/wilhelm/src/itf/
DIStreamInformation.cpp128 *(XAImageStreamInformation *)info = streamInfo.imageInfo; in IStreamInformation_QueryStreamInformation()
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp99 return mCanvas->imageInfo().isOpaque(); in isOpaque()
103 return mCanvas->imageInfo().width(); in width()
107 return mCanvas->imageInfo().height(); in height()
DRecordingCanvas.cpp547 if (mLayerSurface == nullptr || c->imageInfo() != mLayerImageInfo) { in draw()
550 c->imageInfo().makeWH(deviceBounds.width(), deviceBounds.height()); in draw()
/frameworks/base/libs/hwui/jni/
DBitmap.cpp817 auto imageInfo = SkImageInfo::Make(width, height, colorType, alphaType, colorSpace); in Bitmap_createFromParcel() local
819 if (!validateImageInfo(imageInfo, rowBytes)) { in Bitmap_createFromParcel()
834 nativeBitmap = Bitmap::allocateHeapBitmap(allocationSize, imageInfo, rowBytes); in Bitmap_createFromParcel()
852 … Bitmap::createFrom(imageInfo, rowBytes, fd.release(), addr, size, !isMutable); in Bitmap_createFromParcel()
Dandroid_graphics_HardwareRenderer.cpp496 if (!bm.tryAllocPixels(img->imageInfo())) { in imageForCache()
/frameworks/base/libs/hwui/tests/unit/
DSkiaPipelineTests.cpp217 DeferLayer() : SkSurface_Base(T().imageInfo(), nullptr) {} in DeferLayer()
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp802 activeSurface = dstSurface->makeSurface(dstSurface->imageInfo()); in drawLayers()
865 dstCanvas->drawAnnotation(SkRect::Make(dstCanvas->imageInfo().dimensions()), in drawLayers()