Home
last modified time | relevance | path

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

1234567891011

/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/base/media/java/android/media/
DImageWriter.java354 public void queueInputImage(Image image) { in queueInputImage() argument
355 if (image == null) { in queueInputImage()
358 boolean ownedByMe = isImageOwnedByMe(image); in queueInputImage()
359 if (ownedByMe && !(((WriterSurfaceImage) image).mIsImageValid)) { in queueInputImage()
365 if (!(image.getOwner() instanceof ImageReader)) { in queueInputImage()
370 ImageReader prevOwner = (ImageReader) image.getOwner(); in queueInputImage()
372 prevOwner.detachImage(image); in queueInputImage()
373 attachAndQueueInputImage(image); in queueInputImage()
377 image.close(); in queueInputImage()
381 Rect crop = image.getCropRect(); in queueInputImage()
[all …]
DImageUtils.java239 private static Size getEffectivePlaneSizeForImage(Image image, int planeIdx) { in getEffectivePlaneSizeForImage() argument
240 switch (image.getFormat()) { in getEffectivePlaneSizeForImage()
245 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
247 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage()
251 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
253 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage()
268 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
273 String.format("Invalid image format %d", image.getFormat())); in getEffectivePlaneSizeForImage()
DImageReader.java397 Image image = acquireNextImage(); in acquireLatestImage() local
398 if (image == null) { in acquireLatestImage()
405 Image result = image; in acquireLatestImage()
406 image = null; in acquireLatestImage()
409 image.close(); in acquireLatestImage()
410 image = next; in acquireLatestImage()
413 if (image != null) { in acquireLatestImage()
414 image.close(); in acquireLatestImage()
623 for (Image image : mAcquiredImages) { in close()
624 image.close(); in close()
[all …]
/frameworks/av/media/ndk/
DNdkImage.cpp598 void AImage_delete(AImage* image) { in AImage_delete() argument
600 AImage_deleteAsync(image, -1); in AImage_delete()
605 void AImage_deleteAsync(AImage* image, int releaseFenceFd) { in AImage_deleteAsync() argument
607 if (image != nullptr) { in AImage_deleteAsync()
608 image->lockReader(); in AImage_deleteAsync()
609 image->close(releaseFenceFd); in AImage_deleteAsync()
610 image->unlockReader(); in AImage_deleteAsync()
611 if (!image->isClosed()) { in AImage_deleteAsync()
614 image->free(); in AImage_deleteAsync()
620 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) { in AImage_getWidth() argument
[all …]
DNdkImageReader.cpp377 AImage* image = *it; in close() local
378 Mutex::Autolock _l(image->mLock); in close()
380 releaseImageLocked(image, /*releaseFenceFd*/-1, /*clearCache*/false); in close()
406 AImageReader::acquireImageLocked(/*out*/AImage** image, /*out*/int* acquireFenceFd) { in acquireImageLocked() argument
407 *image = nullptr; in acquireImageLocked()
487 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
490 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
493 mAcquiredImages.push_back(*image); in acquireImageLocked()
521 AImageReader::releaseImageLocked(AImage* image, int releaseFenceFd, bool clearCache) { in releaseImageLocked() argument
522 BufferItem* buffer = image->mBuffer; in releaseImageLocked()
[all …]
/frameworks/base/tools/aapt2/compile/
DPng.cpp887 static void getOutline(PngInfo* image) { in getOutline() argument
888 int midX = image->width / 2; in getOutline()
889 int midY = image->height / 2; in getOutline()
890 int endX = image->width - 2; in getOutline()
891 int endY = image->height - 2; in getOutline()
894 if (image->width > 4) { in getOutline()
895 findMaxOpacity(image->rows.data(), 1, midY, midX, -1, 1, 0, in getOutline()
896 &image->outlineInsetsLeft); in getOutline()
897 findMaxOpacity(image->rows.data(), endX, midY, midX, -1, -1, 0, in getOutline()
898 &image->outlineInsetsRight); in getOutline()
[all …]
/frameworks/base/tools/aapt/
DImages.cpp449 static void get_outline(image_info* image) in get_outline() argument
451 int midX = image->width / 2; in get_outline()
452 int midY = image->height / 2; in get_outline()
453 int endX = image->width - 2; in get_outline()
454 int endY = image->height - 2; in get_outline()
457 if (image->width > 4) { in get_outline()
458 find_max_opacity(image->rows, 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft); in get_outline()
459 find_max_opacity(image->rows, endX, midY, midX, -1, -1, 0, &image->outlineInsetsRight); in get_outline()
461 image->outlineInsetsLeft = 0; in get_outline()
462 image->outlineInsetsRight = 0; in get_outline()
[all …]
/frameworks/av/media/ndk/include/media/
DNdkImage.h577 void AImage_delete(AImage* image) __INTRODUCED_IN(24);
593 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) __INTRODUCED_IN(24);
609 media_status_t AImage_getHeight(const AImage* image, /*out*/int32_t* height) __INTRODUCED_IN(24);
627 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format) __INTRODUCED_IN(24);
646 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) __INTRODUCED_IN…
672 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs) __INTRODUCED_I…
692 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
722 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) __INTRODUCED_IN(24);
751 const AImage* image, int planeIdx, /*out*/int32_t* rowStride) __INTRODUCED_IN(24);
777 const AImage* image, int planeIdx,
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.cpp189 sk_sp<SkImage> image = bitmap.makeImage(); in drawBitmap() local
190 mRecorder.drawImage(image, left, top, filterBitmap(paint), bitmap.palette()); in drawBitmap()
194 if (!bitmap.isImmutable() && image.get() && !image->unique()) { in drawBitmap()
195 mDisplayList->mMutableImages.push_back(image.get()); in drawBitmap()
203 sk_sp<SkImage> image = bitmap.makeImage(); in drawBitmap() local
204 mRecorder.drawImage(image, 0, 0, filterBitmap(paint), bitmap.palette()); in drawBitmap()
205 if (!bitmap.isImmutable() && image.get() && !image->unique()) { in drawBitmap()
206 mDisplayList->mMutableImages.push_back(image.get()); in drawBitmap()
216 sk_sp<SkImage> image = bitmap.makeImage(); in drawBitmap() local
217 mRecorder.drawImageRect(image, srcRect, dstRect, filterBitmap(paint), in drawBitmap()
[all …]
/frameworks/layoutlib/bridge/src/android/view/
DShadowPainter.java23 import java.awt.image.BufferedImage;
24 import java.awt.image.DataBufferInt;
81 BufferedImage image; in createDropShadow() local
84 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, in createDropShadow()
87 Graphics2D g2 = image.createGraphics(); in createDropShadow()
88 g2.drawImage(image, shadowSize, shadowSize, null); in createDropShadow()
90 int dstWidth = image.getWidth(); in createDropShadow()
91 int dstHeight = image.getHeight(); in createDropShadow()
107 int[] dataBuffer = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); in createDropShadow()
173 return image; in createDropShadow()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java25 import java.awt.image.BufferedImage;
33 import static java.awt.image.BufferedImage.TYPE_INT_ARGB;
61 public static void requireSimilar(@NonNull String relativePath, @NonNull BufferedImage image) in requireSimilar() argument
63 int maxDimension = Math.max(image.getWidth(), image.getHeight()); in requireSimilar()
65 BufferedImage thumbnail = scale(image, scale, scale); in requireSimilar()
88 BufferedImage image, double maxPercentDifferent) throws IOException { in assertImageSimilar() argument
97 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth()); in assertImageSimilar()
98 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar()
117 int rgb = image.getRGB(x, y); in assertImageSimilar()
156 } else if (Math.abs(goldenImage.getWidth() - image.getWidth()) >= 2) { in assertImageSimilar()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java37 import java.awt.image.BufferedImage;
124 BufferedImage image = input == null ? null : ImageIO.read(input); in createBitmap() local
125 if (image == null) { in createBitmap()
138 image = ImageIO.read(stream); in createBitmap()
143 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap()
159 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap() argument
160 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
173 public static Bitmap createBitmap(BufferedImage image, Set<BitmapCreateFlags> createFlags, in createBitmap() argument
176 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap()
226 BufferedImage image = new BufferedImage(width, height, imageType); in nativeCreate() local
[all …]
DBaseCanvas_Delegate.java37 import java.awt.image.BufferedImage;
38 import java.awt.image.ColorModel;
39 import java.awt.image.DataBuffer;
89 BufferedImage image = bitmapDelegate.getImage(); in nDrawBitmap() local
90 float right = left + image.getWidth(); in nDrawBitmap()
91 float bottom = top + image.getHeight(); in nDrawBitmap()
94 0, 0, image.getWidth(), image.getHeight(), in nDrawBitmap()
119 final ImagePool.Image image = ImagePoolProvider.get().acquire(width, height, in nDrawBitmap() local
121 image.setRGB(0, 0, width, height, colors, offset, stride); in nDrawBitmap()
130 image.drawImage(graphics, (int) x, (int) y, null); in nDrawBitmap()
[all …]
DRadialGradient_Delegate.java26 import java.awt.image.ColorModel;
27 import java.awt.image.DataBufferInt;
28 import java.awt.image.Raster;
29 import java.awt.image.SampleModel;
108 java.awt.image.ColorModel colorModel, in createContext()
140 private final java.awt.image.ColorModel mColorModel;
145 java.awt.image.ColorModel colorModel) { in RadialGradientPaintContext()
156 public java.awt.image.ColorModel getColorModel() { in getColorModel()
161 public java.awt.image.Raster getRaster(int x, int y, int w, int h) { in getRaster()
DBitmapShader_Delegate.java32 import java.awt.image.BufferedImage;
33 import java.awt.image.ColorModel;
34 import java.awt.image.DataBufferInt;
35 import java.awt.image.Raster;
36 import java.awt.image.SampleModel;
96 private BitmapShader_Delegate(long matrix, BufferedImage image, in BitmapShader_Delegate() argument
99 mJavaPaint = new BitmapShaderPaint(image, tileModeX, tileModeY); in BitmapShader_Delegate()
107 BitmapShaderPaint(BufferedImage image, in BitmapShaderPaint() argument
109 mImage = image; in BitmapShaderPaint()
169 BufferedImage image = new BufferedImage( in getRaster() local
/frameworks/base/mime/java-res/
Dandroid.mime.types81 ?image/bmp bmp
82 ?image/heic heic
83 ?image/heic-sequence heics
84 ?image/heif heif hif
85 ?image/heif-sequence heifs
86 ?image/ico cur
87 ?image/webp webp
88 ?image/x-adobe-dng dng
89 ?image/x-fuji-raf raf
90 ?image/x-icon ico
[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/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/packages/SystemUI/res/raw/
Dimage_wallpaper_fragment_shader.glsl6 // The 85th percenile for the luminance histogram of the image (a value between 0 and 1).
7 // This value represents the point in histogram that includes 85% of the pixels of the image.
10 // Reveal is the animation value that goes from 1 (the image is hidden) to 0 (the image is visible).
30 * while the reveal > per85, it shows the luminance image (B&W image)
31 * then when moving passed that value, the image gets colored.
41 * Remaps image:
43 * That means that remaps black and white image pixel
48 * That means that remaps each image pixel color (rgb)
52 * - if reveal=0 => lower=0, diffuse=color image
53 * The image is shown as it is, colored.
/frameworks/av/media/extractors/mp4/
DItemTable.cpp573 ImageItem &image = itemIdToItemMap.editValueAt(itemIndex); in apply() local
574 image.cdscRefs.push_back(mItemId); in apply()
697 void attachTo(ImageItem &image) const override { in attachTo()
698 image.width = mWidth; in attachTo()
699 image.height = mHeight; in attachTo()
740 void attachTo(ImageItem &image) const override { in attachTo()
741 image.hvcc = mHVCC; in attachTo()
773 void attachTo(ImageItem &image) const override { in attachTo()
774 image.rotation = mAngle * 90; in attachTo()
802 void attachTo(ImageItem &image) const override { in attachTo()
[all …]
/frameworks/base/tests/Internal/src/android/app/
DWallpaperColorsTest.java54 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888); in colorHintsTest() local
55 Canvas canvas = new Canvas(image); in colorHintsTest()
58 int hints = WallpaperColors.fromBitmap(image).getColorHints(); in colorHintsTest()
68 hints = WallpaperColors.fromBitmap(image).getColorHints(); in colorHintsTest()
79 supportsDarkText = (WallpaperColors.fromBitmap(image) in colorHintsTest()
95 Bitmap image = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888); in wallpaperRecycleBitmapTest() local
96 WallpaperColors.fromBitmap(image); in wallpaperRecycleBitmapTest()
99 canvas.drawBitmap(image, 0, 0, new Paint()); in wallpaperRecycleBitmapTest()
/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/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/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 …]

1234567891011