Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 259) 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.java352 public void queueInputImage(Image image) { in queueInputImage() argument
353 if (image == null) { in queueInputImage()
356 boolean ownedByMe = isImageOwnedByMe(image); in queueInputImage()
357 if (ownedByMe && !(((WriterSurfaceImage) image).mIsImageValid)) { in queueInputImage()
363 if (!(image.getOwner() instanceof ImageReader)) { in queueInputImage()
368 ImageReader prevOwner = (ImageReader) image.getOwner(); in queueInputImage()
370 prevOwner.detachImage(image); in queueInputImage()
371 attachAndQueueInputImage(image); in queueInputImage()
375 image.close(); in queueInputImage()
379 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.cpp612 void AImage_delete(AImage* image) { in AImage_delete() argument
614 AImage_deleteAsync(image, -1); in AImage_delete()
619 void AImage_deleteAsync(AImage* image, int releaseFenceFd) { in AImage_deleteAsync() argument
621 if (image != nullptr) { in AImage_deleteAsync()
622 image->lockReader(); in AImage_deleteAsync()
623 image->close(releaseFenceFd); in AImage_deleteAsync()
624 image->unlockReader(); in AImage_deleteAsync()
625 if (!image->isClosed()) { in AImage_deleteAsync()
628 image->free(); in AImage_deleteAsync()
634 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) { in AImage_getWidth() argument
[all …]
DNdkImageReader.cpp368 AImage* image = *it; in ~AImageReader() local
369 Mutex::Autolock _l(image->mLock); in ~AImageReader()
371 releaseImageLocked(image, /*releaseFenceFd*/-1, /*clearCache*/false); in ~AImageReader()
397 AImageReader::acquireImageLocked(/*out*/AImage** image, /*out*/int* acquireFenceFd) { in acquireImageLocked() argument
398 *image = nullptr; in acquireImageLocked()
478 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
481 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp, in acquireImageLocked()
484 mAcquiredImages.push_back(*image); in acquireImageLocked()
512 AImageReader::releaseImageLocked(AImage* image, int releaseFenceFd, bool clearCache) { in releaseImageLocked() argument
513 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 …]
DPngCrunch.cpp483 bool WritePng(IAaptContext* context, const Image* image, in WritePng() argument
534 for (int32_t y = 0; y < image->height; y++) { in WritePng()
535 const uint8_t* row = image->rows[y]; in WritePng()
536 for (int32_t x = 0; x < image->width; x++) { in WritePng()
589 image->width, image->height, grayscale, convertible_to_grayscale, in WritePng()
621 png_set_IHDR(write_ptr, write_info_ptr, image->width, image->height, 8, in WritePng()
644 auto out_row = std::unique_ptr<png_byte[]>(new png_byte[image->width]); in WritePng()
646 for (int32_t y = 0; y < image->height; y++) { in WritePng()
647 png_const_bytep in_row = image->rows[y]; in WritePng()
648 for (int32_t x = 0; x < image->width; x++) { in WritePng()
[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.h575 void AImage_delete(AImage* image) __INTRODUCED_IN(24);
589 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) __INTRODUCED_IN(24);
603 media_status_t AImage_getHeight(const AImage* image, /*out*/int32_t* height) __INTRODUCED_IN(24);
619 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format) __INTRODUCED_IN(24);
636 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect) __INTRODUCED_IN…
660 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs) __INTRODUCED_I…
678 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes) __INTRODUCE…
706 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride) __INTRODUCED_IN(24);
733 const AImage* image, int planeIdx, /*out*/int32_t* rowStride) __INTRODUCED_IN(24);
757 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 …]
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()
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 …]
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/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()
733 void attachTo(ImageItem &image) const override { in attachTo()
734 image.hvcc = mHVCC; in attachTo()
766 void attachTo(ImageItem &image) const override { in attachTo()
767 image.rotation = mAngle * 90; in attachTo()
795 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/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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java41 import java.awt.image.BufferedImage;
103 BufferedImage image = renderImage(hardwareConfig, d, context); in render() local
104 return Status.SUCCESS.createResult(image); in render()
153 BufferedImage image = getImage(w, h); in renderImage() local
156 Bitmap bitmap = Bitmap_Delegate.createBitmap(image, in renderImage()
165 return image; in renderImage()
170 BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); in getImage() local
171 Graphics2D gc = image.createGraphics(); in getImage()
180 return image; in getImage()

1234567891011