Home
last modified time | relevance | path

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

12345678910>>...36

/frameworks/base/media/java/android/media/
DImageWriter.java292 public void queueInputImage(Image image) { in queueInputImage() argument
293 if (image == null) { in queueInputImage()
296 boolean ownedByMe = isImageOwnedByMe(image); in queueInputImage()
297 if (ownedByMe && !(((WriterSurfaceImage) image).mIsImageValid)) { in queueInputImage()
303 if (!(image.getOwner() instanceof ImageReader)) { in queueInputImage()
308 ImageReader prevOwner = (ImageReader) image.getOwner(); in queueInputImage()
314 if (image.getFormat() == ImageFormat.PRIVATE) { in queueInputImage()
315 prevOwner.detachImage(image); in queueInputImage()
316 attachAndQueueInputImage(image); in queueInputImage()
320 image.close(); in queueInputImage()
[all …]
DImageReader.java283 Image image = acquireNextImage(); in acquireLatestImage() local
284 if (image == null) { in acquireLatestImage()
291 Image result = image; in acquireLatestImage()
292 image = null; in acquireLatestImage()
295 image.close(); in acquireLatestImage()
296 image = next; in acquireLatestImage()
299 if (image != null) { in acquireLatestImage()
300 image.close(); in acquireLatestImage()
509 for (Image image : mAcquiredImages) { in close()
510 image.close(); in close()
[all …]
DImageUtils.java229 private static Size getEffectivePlaneSizeForImage(Image image, int planeIdx) { in getEffectivePlaneSizeForImage() argument
230 switch (image.getFormat()) { in getEffectivePlaneSizeForImage()
235 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
237 return new Size(image.getWidth() / 2, image.getHeight() / 2); in getEffectivePlaneSizeForImage()
241 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
243 return new Size(image.getWidth(), image.getHeight() / 2); in getEffectivePlaneSizeForImage()
256 return new Size(image.getWidth(), image.getHeight()); in getEffectivePlaneSizeForImage()
261 String.format("Invalid image format %d", image.getFormat())); in getEffectivePlaneSizeForImage()
/frameworks/base/tools/aapt2/compile/
DPng.cpp850 static void getOutline(PngInfo* image) { in getOutline() argument
851 int midX = image->width / 2; in getOutline()
852 int midY = image->height / 2; in getOutline()
853 int endX = image->width - 2; in getOutline()
854 int endY = image->height - 2; in getOutline()
857 if (image->width > 4) { in getOutline()
858 findMaxOpacity(image->rows.data(), 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft); in getOutline()
859 findMaxOpacity(image->rows.data(), endX, midY, midX, -1, -1, 0, in getOutline()
860 &image->outlineInsetsRight); in getOutline()
862 image->outlineInsetsLeft = 0; in getOutline()
[all …]
/frameworks/av/media/libstagefright/omx/
DOMXUtils.cpp71 void MediaImage2::initFromV1(const MediaImage &image) { in initFromV1() argument
74 if (image.mType != MediaImage::MEDIA_IMAGE_TYPE_YUV) { in initFromV1()
79 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) { in initFromV1()
80 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX in initFromV1()
81 || image.mPlane[ix].mVertSubsampling > INT32_MAX) { in initFromV1()
87 mType = (MediaImage2::Type)image.mType; in initFromV1()
88 mNumPlanes = image.mNumPlanes; in initFromV1()
89 mWidth = image.mWidth; in initFromV1()
90 mHeight = image.mHeight; in initFromV1()
91 mBitDepth = image.mBitDepth; in initFromV1()
[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/
DNdkImage.cpp501 void AImage_delete(AImage* image) { in AImage_delete() argument
503 if (image != nullptr) { in AImage_delete()
504 image->lockReader(); in AImage_delete()
505 image->close(); in AImage_delete()
506 image->unlockReader(); in AImage_delete()
507 if (!image->isClosed()) { in AImage_delete()
510 image->free(); in AImage_delete()
516 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width) { in AImage_getWidth() argument
518 if (image == nullptr || width == nullptr) { in AImage_getWidth()
520 __FUNCTION__, image, width); in AImage_getWidth()
[all …]
DNdkImageReader.cpp236 AImage* image = *it; in ~AImageReader() local
237 image->close(); in ~AImageReader()
253 AImageReader::acquireCpuConsumerImageLocked(/*out*/AImage** image) { in acquireCpuConsumerImageLocked() argument
254 *image = nullptr; in acquireCpuConsumerImageLocked()
329 *image = new AImage(this, mFormat, buffer, buffer->timestamp, in acquireCpuConsumerImageLocked()
332 *image = new AImage(this, mFormat, buffer, buffer->timestamp, in acquireCpuConsumerImageLocked()
335 mAcquiredImages.push_back(*image); in acquireCpuConsumerImageLocked()
357 AImageReader::releaseImageLocked(AImage* image) { in releaseImageLocked() argument
358 CpuConsumer::LockedBuffer* buffer = image->mBuffer; in releaseImageLocked()
361 ALOGW("AImage %p has no buffer!", image); in releaseImageLocked()
[all …]
/frameworks/av/include/ndk/
DNdkImage.h428 void AImage_delete(AImage* image);
442 media_status_t AImage_getWidth(const AImage* image, /*out*/int32_t* width);
456 media_status_t AImage_getHeight(const AImage* image, /*out*/int32_t* height);
472 media_status_t AImage_getFormat(const AImage* image, /*out*/int32_t* format);
489 media_status_t AImage_getCropRect(const AImage* image, /*out*/AImageCropRect* rect);
513 media_status_t AImage_getTimestamp(const AImage* image, /*out*/int64_t* timestampNs);
531 media_status_t AImage_getNumberOfPlanes(const AImage* image, /*out*/int32_t* numPlanes);
557 const AImage* image, int planeIdx, /*out*/int32_t* pixelStride);
582 const AImage* image, int planeIdx, /*out*/int32_t* rowStride);
604 const AImage* image, int planeIdx,
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
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
89 … assertEquals("Only TYPE_INT_ARGB image types are supported", TYPE_INT_ARGB, image.getType()); in assertImageSimilar()
99 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth()); in assertImageSimilar()
100 int imageHeight = Math.min(goldenImage.getHeight(), image.getHeight()); in assertImageSimilar()
119 int rgb = image.getRGB(x, y); in assertImageSimilar()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DShadowPainter.java23 import java.awt.image.BufferedImage;
24 import java.awt.image.DataBufferInt;
79 BufferedImage image; in createDropShadow() local
82 image = new BufferedImage(width + SHADOW_SIZE, height + SHADOW_SIZE, in createDropShadow()
85 Graphics2D g2 = image.createGraphics(); in createDropShadow()
86 g2.drawImage(image, shadowSize, shadowSize, null); in createDropShadow()
88 int dstWidth = image.getWidth(); in createDropShadow()
89 int dstHeight = image.getHeight(); in createDropShadow()
105 int[] dataBuffer = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); in createDropShadow()
171 return image; in createDropShadow()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java35 import java.awt.image.BufferedImage;
127 BufferedImage image = ImageIO.read(input); in createBitmap() local
128 if (image == null && input.exists()) { in createBitmap()
138 image = ImageIO.read(brokenFile); in createBitmap()
142 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap()
190 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) { in createBitmap() argument
191 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density); in createBitmap()
204 public static Bitmap createBitmap(BufferedImage image, Set<BitmapCreateFlags> createFlags, in createBitmap() argument
207 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888); in createBitmap()
256 BufferedImage image = new BufferedImage(width, height, imageType); in nativeCreate() local
[all …]
DRadialGradient_Delegate.java26 import java.awt.image.ColorModel;
111 java.awt.image.ColorModel colorModel, in createContext()
143 private final java.awt.image.ColorModel mColorModel;
148 java.awt.image.ColorModel colorModel) { in RadialGradientPaintContext()
159 public java.awt.image.ColorModel getColorModel() { in getColorModel()
164 public java.awt.image.Raster getRaster(int x, int y, int w, int h) { in getRaster()
165 java.awt.image.BufferedImage image = new java.awt.image.BufferedImage( in getRaster() local
196 image.setRGB(0 /*startX*/, 0 /*startY*/, w, h, data, 0 /*offset*/, w /*scansize*/); in getRaster()
198 return image.getRaster(); in getRaster()
DSweepGradient_Delegate.java101 java.awt.image.ColorModel colorModel, in createContext()
133 private final java.awt.image.ColorModel mColorModel;
138 java.awt.image.ColorModel colorModel) { in SweepGradientPaintContext()
149 public java.awt.image.ColorModel getColorModel() { in getColorModel()
154 public java.awt.image.Raster getRaster(int x, int y, int w, int h) { in getRaster()
155 java.awt.image.BufferedImage image = new java.awt.image.BufferedImage( in getRaster() local
202 image.setRGB(0 /*startX*/, 0 /*startY*/, w, h, data, 0 /*offset*/, w /*scansize*/); in getRaster()
204 return image.getRaster(); in getRaster()
DLinearGradient_Delegate.java26 import java.awt.image.ColorModel;
123 java.awt.image.ColorModel colorModel, in createContext()
155 private final java.awt.image.ColorModel mColorModel;
160 java.awt.image.ColorModel colorModel) { in LinearGradientPaintContext()
171 public java.awt.image.ColorModel getColorModel() { in getColorModel()
176 public java.awt.image.Raster getRaster(int x, int y, int w, int h) { in getRaster()
177 java.awt.image.BufferedImage image = new java.awt.image.BufferedImage( in getRaster() local
202 image.setRGB(0 /*startX*/, 0 /*startY*/, w, h, data, 0 /*offset*/, w /*scansize*/); in getRaster()
204 return image.getRaster(); in getRaster()
DBitmapShader_Delegate.java32 import java.awt.image.BufferedImage;
33 import java.awt.image.ColorModel;
34 import java.awt.image.Raster;
94 private BitmapShader_Delegate(BufferedImage image, in BitmapShader_Delegate() argument
96 mJavaPaint = new BitmapShaderPaint(image, tileModeX, tileModeY); in BitmapShader_Delegate()
104 BitmapShaderPaint(BufferedImage image, in BitmapShaderPaint() argument
106 mImage = image; in BitmapShaderPaint()
166 BufferedImage image = new BufferedImage( in getRaster() local
191 image.setRGB(0 /*startX*/, 0 /*startY*/, w, h, data, 0 /*offset*/, w /*scansize*/); in getRaster()
193 return image.getRaster(); in getRaster()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_util.c264 void h264bsdSetCurrImageMbPointers(image_t *image, u32 mbNum) in h264bsdSetCurrImageMbPointers() argument
271 width = image->width; in h264bsdSetCurrImageMbPointers()
272 height = image->height; in h264bsdSetCurrImageMbPointers()
279 image->luma = (u8*)(image->data + col * 16 + tmp * 256); in h264bsdSetCurrImageMbPointers()
280 image->cb = (u8*)(image->data + picSize * 256 + tmp * 64 + col * 8); in h264bsdSetCurrImageMbPointers()
281 image->cr = (u8*)(image->cb + picSize * 64); in h264bsdSetCurrImageMbPointers()
Dh264bsd_image.c80 void h264bsdWriteMacroblock(image_t *image, u8 *data) in h264bsdWriteMacroblock() argument
93 ASSERT(image); in h264bsdWriteMacroblock()
97 width = image->width; in h264bsdWriteMacroblock()
101 lum = (u32*)image->luma; in h264bsdWriteMacroblock()
102 cb = (u32*)image->cb; in h264bsdWriteMacroblock()
103 cr = (u32*)image->cr; in h264bsdWriteMacroblock()
171 void h264bsdWriteOutputBlocks(image_t *image, u32 mbNum, u8 *data, in h264bsdWriteOutputBlocks() argument
191 ASSERT(image); in h264bsdWriteOutputBlocks()
193 ASSERT(mbNum < image->width * image->height); in h264bsdWriteOutputBlocks()
197 picWidth = image->width; in h264bsdWriteOutputBlocks()
[all …]
/frameworks/base/core/java/android/widget/
DImageSwitcher.java38 ImageView image = (ImageView)this.getNextView(); in setImageResource() local
39 image.setImageResource(resid); in setImageResource()
45 ImageView image = (ImageView)this.getNextView(); in setImageURI() local
46 image.setImageURI(uri); in setImageURI()
52 ImageView image = (ImageView)this.getNextView(); in setImageDrawable() local
53 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/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java40 import java.awt.image.BufferedImage;
100 BufferedImage image = renderImage(hardwareConfig, d, context); in render() local
101 return Status.SUCCESS.createResult(image); in render()
150 BufferedImage image = getImage(w, h); in renderImage() local
153 Bitmap bitmap = Bitmap_Delegate.createBitmap(image, in renderImage()
162 return image; in renderImage()
166 BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); in getImage() local
167 Graphics2D gc = image.createGraphics(); in getImage()
176 return image; in getImage()
/frameworks/base/docs/html/training/printing/
Dphotos.jd16 <li><a href="#image">Print an Image</a></li>
26 >Android Support Library</a> provides a convenient function for enabling image printing using a
30 <p>This lesson shows you how to print an image using the v4 support library {@link
34 <h2 id="image">Print an Image</h2>
43 option sizes the image so that the whole image is shown within the printable area of the page.
46 option scales the image so that it fills the entire printable area of the page. Choosing this
47 setting means that some portion of the top and bottom, or left and right edges of the image is
52 setScaleMode()} keep the existing aspect ratio of the image intact. The following code example
76 image or cancel the action. If the user chooses to print the image, a print job is created and a
79 <p>If you want to include additional content in your printouts beyond just an image, you must
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp131 Image() : image(VK_NULL_HANDLE), dequeue_fence(-1), dequeued(false) {} in Image()
132 VkImage image; member
154 Swapchain::Image& image) { in ReleaseSwapchainImage() argument
155 ALOG_ASSERT(release_fence == -1 || image.dequeued, in ReleaseSwapchainImage()
159 if (image.dequeued) { in ReleaseSwapchainImage()
165 if (image.dequeue_fence >= 0) in ReleaseSwapchainImage()
166 close(image.dequeue_fence); in ReleaseSwapchainImage()
176 release_fence = image.dequeue_fence; in ReleaseSwapchainImage()
178 image.dequeue_fence = -1; in ReleaseSwapchainImage()
181 window->cancelBuffer(window, image.buffer.get(), release_fence); in ReleaseSwapchainImage()
[all …]
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp275 static BufferItem* Image_getBufferItem(JNIEnv* env, jobject image) in Image_getBufferItem() argument
278 env->GetLongField(image, gSurfaceImageClassInfo.mNativeBuffer)); in Image_getBufferItem()
424 static sp<Fence> Image_unlockIfLocked(JNIEnv* env, jobject image) { in Image_unlockIfLocked() argument
426 BufferItem* buffer = Image_getBufferItem(env, image); in Image_unlockIfLocked()
437 planes = env->GetObjectField(image, gSurfaceImageClassInfo.mPlanes); in Image_unlockIfLocked()
457 static void ImageReader_imageRelease(JNIEnv* env, jobject thiz, jobject image) in ImageReader_imageRelease() argument
467 BufferItem* buffer = Image_getBufferItem(env, image); in ImageReader_imageRelease()
473 sp<Fence> releaseFence = Image_unlockIfLocked(env, image); in ImageReader_imageRelease()
475 Image_setBufferItem(env, image, NULL); in ImageReader_imageRelease()
480 static jint ImageReader_imageSetup(JNIEnv* env, jobject thiz, jobject image) { in ImageReader_imageSetup() argument
[all …]

12345678910>>...36