Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 339) sorted by relevance

12345678910>>...14

/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp80 void MediaImage2::initFromV1(const MediaImage &image) { in initFromV1() argument
83 if (image.mType != MediaImage::MEDIA_IMAGE_TYPE_YUV) { in initFromV1()
88 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { in initFromV1()
89 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX in initFromV1()
90 || image.mPlane[ix].mVertSubsampling > INT32_MAX) { in initFromV1()
96 mType = (MediaImage2::Type)image.mType; in initFromV1()
97 mNumPlanes = image.mNumPlanes; in initFromV1()
98 mWidth = image.mWidth; in initFromV1()
99 mHeight = image.mHeight; in initFromV1()
100 mBitDepth = image.mBitDepth; in initFromV1()
[all …]
/frameworks/av/media/ndk/include/media/
DNdkImage.h578 void AImage_delete(AImage* image) __INTRODUCED_IN(24);
594 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) __INTRODUCED_IN(24);
610 media_status_t AImage_getHeight(const AImage* image, /*out*/int32_t* height) __INTRODUCED_IN(24);
628 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format) __INTRODUCED_IN(24);
647 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) __INTRODUCED_IN…
673 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs) __INTRODUCED_I…
693 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
723 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) __INTRODUCED_IN(24);
752 const AImage* image, int planeIdx, /*out*/int32_t* rowStride) __INTRODUCED_IN(24);
778 const AImage* image, int planeIdx,
[all …]
/frameworks/av/media/ndk/
DNdkImage.cpp669 void AImage_delete(AImage* image) { in AImage_delete() argument
671 AImage_deleteAsync(image, -1); in AImage_delete()
676 void AImage_deleteAsync(AImage* image, int releaseFenceFd) { in AImage_deleteAsync() argument
678 if (image != nullptr) { in AImage_deleteAsync()
679 image->lockReader(); in AImage_deleteAsync()
680 image->close(releaseFenceFd); in AImage_deleteAsync()
681 image->unlockReader(); in AImage_deleteAsync()
682 if (!image->isClosed()) { in AImage_deleteAsync()
685 image->free(); in AImage_deleteAsync()
691 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) { in AImage_getWidth() argument
[all …]
DNdkImageReader.cpp384 AImage* image = *it; in close() local
385 Mutex::Autolock _l(image->mLock); in close()
387 releaseImageLocked(image, /*releaseFenceFd*/-1, /*clearCache*/false); in close()
413 AImageReader::acquireImageLocked(/*out*/AImage** image, /*out*/int* acquireFenceFd) { in acquireImageLocked() argument
414 *image = nullptr; in acquireImageLocked()
494 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
497 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
500 mAcquiredImages.push_back(*image); in acquireImageLocked()
528 AImageReader::releaseImageLocked(AImage* image, int releaseFenceFd, bool clearCache) { in releaseImageLocked() argument
529 BufferItem* buffer = image->mBuffer; in releaseImageLocked()
[all …]
/frameworks/base/libs/androidfw/
DPng.cpp842 static void getOutline(PngInfo* image) { in getOutline() argument
843 int midX = image->width / 2; in getOutline()
844 int midY = image->height / 2; in getOutline()
845 int endX = image->width - 2; in getOutline()
846 int endY = image->height - 2; in getOutline()
849 if (image->width > 4) { in getOutline()
850 findMaxOpacity(image->rows.data(), 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft); in getOutline()
851 findMaxOpacity(image->rows.data(), endX, midY, midX, -1, -1, 0, &image->outlineInsetsRight); in getOutline()
853 image->outlineInsetsLeft = 0; in getOutline()
854 image->outlineInsetsRight = 0; in getOutline()
[all …]
/frameworks/base/tools/aapt/
DImages.cpp450 static void get_outline(image_info* image) in get_outline() argument
452 int midX = image->width / 2; in get_outline()
453 int midY = image->height / 2; in get_outline()
454 int endX = image->width - 2; in get_outline()
455 int endY = image->height - 2; in get_outline()
458 if (image->width > 4) { in get_outline()
459 find_max_opacity(image->rows, 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft); in get_outline()
460 find_max_opacity(image->rows, endX, midY, midX, -1, -1, 0, &image->outlineInsetsRight); in get_outline()
462 image->outlineInsetsLeft = 0; in get_outline()
463 image->outlineInsetsRight = 0; in get_outline()
[all …]
/frameworks/base/media/java/android/media/
DImageWriter.java496 public void queueInputImage(Image image) { in queueInputImage() argument
497 if (image == null) { in queueInputImage()
501 boolean ownedByMe = isImageOwnedByMe(image); in queueInputImage()
502 if (ownedByMe && !(((WriterSurfaceImage) image).mIsImageValid)) { in queueInputImage()
509 if ((image.getOwner() instanceof ImageReader)) { in queueInputImage()
510 ImageReader prevOwner = (ImageReader) image.getOwner(); in queueInputImage()
512 prevOwner.detachImage(image); in queueInputImage()
513 } else if (image.getOwner() != null) { in queueInputImage()
519 attachAndQueueInputImage(image); in queueInputImage()
523 image.close(); in queueInputImage()
[all …]
DImageUtils.java285 private static Size getEffectivePlaneSizeForImage(Image image, int planeIdx) { in getEffectivePlaneSizeForImage() argument
286 switch (image.getFormat()) { in getEffectivePlaneSizeForImage()
292 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
294 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage()
298 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
300 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage()
318 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
326 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java23 import java.awt.image.BufferedImage;
30 import static java.awt.image.BufferedImage.TYPE_INT_ARGB;
56 public static void requireSimilar(@NonNull String relativePath, @NonNull BufferedImage image) in requireSimilar() argument
61 message = saveImageAndAppendMessage(image, message, relativePath); in requireSimilar()
71 assertImageSimilar(relativePath, goldenImage, image, MAX_PERCENT_DIFFERENCE); in requireSimilar()
79 BufferedImage image, double maxPercentDifferent) throws IOException { in assertImageSimilar() argument
88 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth()); in assertImageSimilar()
89 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar()
108 int rgb = image.getRGB(x, y); in assertImageSimilar()
147 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar()
[all …]
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/
DAtfBufferedImage.java25 import java.awt.image.BufferedImage;
26 import java.awt.image.DataBufferInt;
27 import java.awt.image.WritableRaster;
34 import static java.awt.image.BufferedImage.TYPE_INT_ARGB;
57 @NotNull BufferedImage image, in AtfBufferedImage()
64 this(image, in AtfBufferedImage()
68 (int) (image.getWidth() * 1.0f / scaleX), in AtfBufferedImage()
69 (int) (image.getHeight() * 1.0f / scaleY), in AtfBufferedImage()
72 assert(image.getType() == TYPE_INT_ARGB); in AtfBufferedImage()
76 saveImage(image); in AtfBufferedImage()
[all …]
/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java55 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in whiteSurfaceColorHintsTest() local
56 Canvas canvas = new Canvas(image); in whiteSurfaceColorHintsTest()
59 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in whiteSurfaceColorHintsTest()
69 supportsDarkText = (WallpaperColors.fromBitmap(image) in whiteSurfaceColorHintsTest()
98 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in blackSurfaceColorHintsTest() local
99 Canvas canvas = new Canvas(image); in blackSurfaceColorHintsTest()
102 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in blackSurfaceColorHintsTest()
115 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in bitmapHintsTest() local
116 Canvas canvas = new Canvas(image); in bitmapHintsTest()
119 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in bitmapHintsTest()
[all …]
/frameworks/base/core/java/android/widget/
DImageSwitcher.java64 ImageView image = (ImageView)this.getNextView(); in setImageResource() local
65 image.setImageResource(resid); in setImageResource()
80 ImageView image = (ImageView)this.getNextView(); in setImageURI() local
81 image.setImageURI(uri); in setImageURI()
96 ImageView image = (ImageView)this.getNextView(); in setImageDrawable() local
97 image.setImageDrawable(drawable); in setImageDrawable()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DBlingyNotification.kt33 private val image: Bitmap? constant in com.android.test.silkfx.hdr.BlingyNotification
40 image = if (drawable is BitmapDrawable) {
49 val image = image ?: return super.onMeasure(widthMeasureSpec, heightMeasureSpec) in onMeasure() constant
58 var height = image.height * width / image.width in onMeasure()
87 val image = image ?: return in onDraw() constant
89 canvas.drawBitmap(image, null, bounds, null) in onDraw()
/frameworks/base/mime/java-res/
Dandroid.mime.types95 ?image/bmp bmp
96 ?image/gif gif
97 ?image/heic heic
98 ?image/heic-sequence heics
99 ?image/heif heif hif
100 ?image/heif-sequence heifs
101 ?image/avif avif
102 ?image/ico cur
103 ?image/webp webp
104 ?image/x-adobe-dng dng
[all …]
/frameworks/av/media/module/extractors/mp4/
DItemTable.cpp579 ImageItem &image = itemIdToItemMap.editValueAt(itemIndex); in apply() local
581 image.exifRefs.push_back(mItemId); in apply()
583 image.xmpRefs.push_back(mItemId); in apply()
707 void attachTo(ImageItem &image) const override { in attachTo()
708 image.width = mWidth; in attachTo()
709 image.height = mHeight; in attachTo()
750 void attachTo(ImageItem &image) const override { in attachTo()
751 image.hvcc = mHVCC; in attachTo()
783 void attachTo(ImageItem &image) const override { in attachTo()
784 image.av1c = mAv1c; in attachTo()
[all …]
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/
DImageWrapper.java54 public ImageWrapper(Image image) { in ImageWrapper() argument
55 mFormat = image.getFormat(); in ImageWrapper()
56 mWidth = image.getWidth(); in ImageWrapper()
57 mHeight = image.getHeight(); in ImageWrapper()
58 mTransform = image.getTransform(); in ImageWrapper()
59 mScalingMode = image.getScalingMode(); in ImageWrapper()
60 mTimestamp = image.getTimestamp(); in ImageWrapper()
61 if (image.getPlaneCount() <= 0) { in ImageWrapper()
62 mPlaneCount = image.getPlanes().length; in ImageWrapper()
64 mPlaneCount = image.getPlaneCount(); in ImageWrapper()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSurfaceHolderTarget.java17 package androidx.media.filterpacks.image;
126 FrameImage2D image = getConnectedInputPort("image").pullFrame().asFrameImage2D(); in onProcess() local
131 renderGL(image); in onProcess()
133 renderCanvas(image); in onProcess()
143 private void renderGL(FrameImage2D image) { in renderGL() argument
148 Rect frameRect = new Rect(0, 0, image.getWidth(), image.getHeight()); in renderGL()
151 mShader.process(image.lockTextureSource(), in renderGL()
155 image.unlock(); in renderGL()
163 private void renderCanvas(FrameImage2D image) { in renderCanvas() argument
165 Bitmap bitmap = image.toBitmap(); in renderCanvas()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DPlatform.java22 byte[] imageToByteArray(Object image); in imageToByteArray() argument
23 int getImageWidth(Object image); in getImageWidth() argument
24 int getImageHeight(Object image); in getImageHeight() argument
25 float[] pathToFloatArray(Object image); in pathToFloatArray() argument
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBitmapTest.java39 import java.awt.image.BufferedImage;
40 import java.awt.image.DataBufferInt;
106 BufferedImage image = new BufferedImage(bitmap.getWidth(), bitmap.getHeight(), in testImageDecoder() local
108 int[] imageData = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); in testImageDecoder()
109 bitmap.getPixels(imageData, 0, image.getWidth(), 0, 0, image.getWidth(), in testImageDecoder()
110 image.getHeight()); in testImageDecoder()
111 verify("bitmap_decoder.png", image); in testImageDecoder()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java41 import java.awt.image.BufferedImage;
42 import java.awt.image.DataBufferInt;
104 BufferedImage image = renderImage(hardwareConfig, d, context); in render() local
105 return Status.SUCCESS.createResult(image); in render()
160 BufferedImage image = new BufferedImage(bitmap.getWidth(), bitmap.getHeight(), in renderImage() local
162 int[] imageData = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); in renderImage()
163 bitmap.getPixels(imageData, 0, image.getWidth(), 0, 0, image.getWidth(), in renderImage()
164 image.getHeight()); in renderImage()
169 return image; in renderImage()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
DIfElseFilterTest.java51 FrameImage2D image = in testIfElseFilterTrue() local
63 image.setBitmap(imageBitmap); in testIfElseFilterTrue()
64 injectInputFrame("falseResult", image); in testIfElseFilterTrue()
82 FrameImage2D image = in testIfElseFilterFalse() local
94 image.setBitmap(imageBitmap); in testIfElseFilterFalse()
95 injectInputFrame("falseResult", image); in testIfElseFilterFalse()
109 assertEquals(outputImage, image); in testIfElseFilterFalse()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DRGBZ.java26 import com.android.rs.refocus.image.RangeInverseDepthTransform;
85 public RGBZ(Bitmap image, DepthImage depthImage) { in RGBZ() argument
86 preview = image; in RGBZ()
96 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in createFromBitmapDepthmap() local
97 if (image == null) { in createFromBitmapDepthmap()
101 return new RGBZ(image, depthImage); in createFromBitmapDepthmap()
107 Bitmap image = BitmapFactory.decodeStream(contentResolver.openInputStream(uriImage)); in createFromPFMDepthmap() local
108 if (image == null) { in createFromPFMDepthmap()
114 return new RGBZ(image, depthImage); in createFromPFMDepthmap()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaGpuPipeline.cpp120 for (SkImage* image : mutableImages) { in pinImages()
121 if (skgpu::ganesh::PinAsTexture(mRenderThread.getGrContext(), image)) { in pinImages()
122 mPinnedImages.emplace_back(sk_ref_sp(image)); in pinImages()
131 for (auto& image : mPinnedImages) { in unpinImages() local
132 skgpu::ganesh::UnpinTexture(mRenderThread.getGrContext(), image.get()); in unpinImages()
141 auto image = bitmap->makeImage(); in prepareToDraw() local
142 if (image.get()) { in prepareToDraw()
143 skgpu::ganesh::PinAsTexture(context, image.get()); in prepareToDraw()
144 skgpu::ganesh::UnpinTexture(context, image.get()); in prepareToDraw()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript21 rs_allocation image;
28 This takes a float2 polygon and an image and searches a best fit polygon in the image
30 int2 __attribute__((invoke_cpu)) findBestFit(rs_allocation poly, rs_allocation image) {
34 int width = rsAllocationGetDimX(image);
35 int height = rsAllocationGetDimY(image);
45 forEach_bordercorrelation(image);
50 void findRegion(rs_allocation coord, rs_allocation image) {
52 int width = rsAllocationGetDimX(image);
53 int height = rsAllocationGetDimY(image);
91 return convert_float3(rsGetElementAt_uchar4(image, in.x, in.y).xyz);
[all …]
/frameworks/base/config/
DREADME.md3 * boot-image-profile.txt: A list of methods from the boot classpath to be compiled by dex2oat.
8 * dirty-image-objects: List of objects in the boot image which are known to
9 become dirty. This helps binning objects in the image file.
10 * preloaded-classes: classes that will be allocated in the boot image, and

12345678910>>...14