Searched refs:image (Results 1 - 25 of 208) sorted by relevance

123456789

/frameworks/av/media/libstagefright/omx/
H A DOMXUtils.cpp79 void MediaImage2::initFromV1(const MediaImage &image) { argument
82 if (image.mType != MediaImage::MEDIA_IMAGE_TYPE_YUV) {
87 for (size_t ix = 0; ix < image.mNumPlanes; ++ix) {
88 if (image.mPlane[ix].mHorizSubsampling > INT32_MAX
89 || image.mPlane[ix].mVertSubsampling > INT32_MAX) {
95 mType = (MediaImage2::Type)image.mType;
96 mNumPlanes = image.mNumPlanes;
97 mWidth = image.mWidth;
98 mHeight = image.mHeight;
99 mBitDepth = image
203 MediaImage2 &image = params.sMediaImage; local
[all...]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A Dip.rsh18 #pragma rs java_package_name(com.android.rs.image)
H A DImageProcessingTestRunner.java17 package com.android.rs.image;
19 import com.android.rs.image.ImageProcessingTest;
27 * adb shell am instrument -e iteration <n> -w com.android.rs.image/.ImageProcessingTestRunner
H A DBWFilter.java17 package com.android.rs.image;
H A DContrast.java17 package com.android.rs.image;
H A DExposure.java17 package com.android.rs.image;
H A DShadows.java17 package com.android.rs.image;
/frameworks/av/media/ndk/include/media/
H A DNdkImage.h50 * AImage is an opaque type that provides access to image generated by {@link AImageReader}.
76 * of the alpha channel bits are ignored (image is assumed to be opaque).
190 * 16 bits per pixel raw camera sensor image format, usually representing a single-channel
191 * Bayer-mosaic image.
194 * values of the raw pixel data, the color space of the image, and all other
195 * needed information to interpret a raw sensor image must be queried from
196 * the {@link ACameraDevice} which produced the image.</p>
201 * Private raw camera sensor image format, a single channel image with implementation depedent
204 * <p>AIMAGE_FORMAT_RAW_PRIVATE is a format for unprocessed raw image buffer
[all...]
/frameworks/base/core/java/android/widget/
H A DImageSwitcher.java27 * image is set on it. The views added to an ImageSwitcher must all be
54 * Sets a new image on the ImageSwitcher with the given resource id.
55 * This will set that image resource on the next ImageView in the switcher and will
64 ImageView image = (ImageView)this.getNextView();
65 image.setImageResource(resid);
70 * Sets a new image on the ImageSwitcher with the given Uri.
71 * This will set that image on the next ImageView in the switcher and will
74 * @param uri the Uri of an image
80 ImageView image = (ImageView)this.getNextView();
81 image
[all...]
/frameworks/base/media/java/android/media/
H A DImageWriter.java64 * even works if the image format of the ImageWriter is
69 * Attempting to access the planes of a private image, will return an
142 * The format specifies the image format of this ImageWriter. The format
266 * image buffer is accessible to the application only through the hardware
310 * filled the input image with data. This method then passes the filled
339 * @param image The Image to be queued back to ImageWriter for future
341 * @throws IllegalStateException if the image was already queued previously,
342 * or the image was aborted previously, or the input
348 public void queueInputImage(Image image) { argument
349 if (image
539 attachAndQueueInputImage(Image image) argument
628 abortImage(Image image) argument
655 isImageOwnedByMe(Image image) argument
888 nativeQueueInputImage(long nativeCtx, Image image, long timestampNs, int left, int top, int right, int bottom, int transform, int scalingMode) argument
896 cancelImage(long nativeCtx, Image image) argument
[all...]
/frameworks/support/work/integration-tests/testapp/src/main/java/androidx/work/integration/testapp/imageprocessing/
H A DImageCleanupWorker.java41 for (Image image : images) {
42 if (!TextUtils.isEmpty(image.mProcessedFilePath)) {
43 if (new File(image.mProcessedFilePath).delete()) {
44 Log.d(TAG, "Deleted : " + image.mProcessedFilePath);
46 Log.e(TAG, "Failed to delete : " + image.mProcessedFilePath);
49 Log.d(TAG, image.mOriginalAssetName + "was not processed");
H A DImageRecyclerViewAdapter.java64 mImageView = itemView.findViewById(R.id.image);
69 public void load(final Image image) { argument
70 if (TextUtils.isEmpty(image.mProcessedFilePath)) {
71 mTextView.setText(image.mOriginalAssetName);
79 Log.d(TAG, "Setting image to holder");
81 mTextView.setText(image.mOriginalAssetName);
91 Image image = images[0];
92 if (image == null) {
94 } else if (image.mImage == null) {
95 Log.d(TAG, "Loading image int
[all...]
H A DImageSetupWorker.java46 Image image = new Image();
47 image.mOriginalAssetName = uriString;
48 image.mIsProcessed = false;
49 TestDatabase.getInstance(getApplicationContext()).getImageDao().insert(image);
/frameworks/av/media/ndk/
H A DNdkImage.cpp64 LOG_ALWAYS_FATAL("%s: parent AImageReader closed without releasing image %p",
111 ALOGE("%s: image %p has been closed!", __FUNCTION__, this);
125 ALOGE("%s: image %p has been closed!", __FUNCTION__, this);
139 ALOGE("%s: image %p has been closed!", __FUNCTION__, this);
153 ALOGE("%s: image %p has been closed!", __FUNCTION__, this);
167 ALOGE("%s: image %p has been closed!", __FUNCTION__, this);
187 // Return immediately if the image has already been locked.
202 ALOGV("%s: Successfully locked the image %p.", __FUNCTION__, this);
220 // This image hasn't been locked yet, no need to unlock.
254 ALOGE("%s: image
612 AImage_delete(AImage* image) argument
619 AImage_deleteAsync(AImage* image, int releaseFenceFd) argument
634 AImage_getWidth(const AImage* image, int32_t* width) argument
645 AImage_getHeight(const AImage* image, int32_t* height) argument
656 AImage_getFormat(const AImage* image, int32_t* format) argument
667 AImage_getCropRect(const AImage* image, AImageCropRect* rect) argument
693 AImage_getTimestamp(const AImage* image, int64_t* timestampNs) argument
704 AImage_getNumberOfPlanes(const AImage* image, int32_t* numPlanes) argument
715 AImage_getPlanePixelStride( const AImage* image, int planeIdx, int32_t* pixelStride) argument
733 AImage_getPlaneRowStride( const AImage* image, int planeIdx, int32_t* rowStride) argument
751 AImage_getPlaneData( const AImage* image, int planeIdx, uint8_t** data, int* dataLength) argument
770 AImage_getHardwareBuffer( const AImage* image, AHardwareBuffer** buffer) argument
[all...]
H A DNdkImageReader.cpp351 AImage* image = *it; local
352 Mutex::Autolock _l(image->mLock);
353 releaseImageLocked(image, /*releaseFenceFd*/-1);
369 AImageReader::acquireImageLocked(/*out*/AImage** image, /*out*/int* acquireFenceFd) { argument
370 *image = nullptr;
378 // When the output paramter fence is not NULL, we are acquiring the image asynchronously.
388 ALOGE("%s: Acquire image failed with some unknown error: %s (%d)",
450 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp,
453 *image = new AImage(this, mFormat, mUsage, buffer, buffer->mTimestamp,
456 mAcquiredImages.push_back(*image);
484 releaseImageLocked(AImage* image, int releaseFenceFd) argument
548 acquireNextImage( AImage** image, int* acquireFenceFd) argument
554 acquireLatestImage( AImage** image, int* acquireFenceFd) argument
719 AImageReader_acquireNextImage(AImageReader* reader, AImage** image) argument
725 AImageReader_acquireLatestImage(AImageReader* reader, AImage** image) argument
731 AImageReader_acquireNextImageAsync( AImageReader* reader, AImage** image, int* acquireFenceFd) argument
743 AImageReader_acquireLatestImageAsync( AImageReader* reader, AImage** image, int* acquireFenceFd) argument
[all...]
/frameworks/base/tools/aapt/
H A DImages.cpp36 // This holds an image as 8bpp RGBA.
449 static void get_outline(image_info* image) argument
451 int midX = image->width / 2;
452 int midY = image->height / 2;
453 int endX = image->width - 2;
454 int endY = image->height - 2;
457 if (image->width > 4) {
458 find_max_opacity(image->rows, 1, midY, midX, -1, 1, 0, &image->outlineInsetsLeft);
459 find_max_opacity(image
541 do_9patch(const char* imageName, image_info* image) argument
[all...]
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaRecordingCanvas.cpp155 sk_sp<SkImage> image = bitmap.makeImage(&colorFilter); local
156 mRecorder.drawImage(image, left, top, bitmapPaint(paint, &tmpPaint, colorFilter));
157 // if image->unique() is true, then mRecorder.drawImage failed for some reason. It also means
158 // it is not safe to store a raw SkImage pointer, because the image object will be destroyed
160 if (!bitmap.isImmutable() && image.get() && !image->unique()) {
161 mDisplayList->mMutableImages.push_back(image.get());
171 sk_sp<SkImage> image = bitmap.makeImage(&colorFilter); local
172 mRecorder.drawImage(image, 0, 0, bitmapPaint(paint, &tmpPaint, colorFilter));
173 if (!bitmap.isImmutable() && image
186 sk_sp<SkImage> image = bitmap.makeImage(&colorFilter); local
221 sk_sp<SkImage> image = bitmap.makeImage(&colorFilter); local
[all...]
/frameworks/base/tools/aapt2/compile/
H A DPng.cpp263 // Scan the entire image and determine if:
269 printf("Initial image data:\n");
293 // Check if image is really grayscale
304 // Check if image is really opaque
315 // Check if image is really <= 256 colors
359 // Choose the best color type for the image.
385 diag->Note(DiagMessage() << "forcing image to gray (max deviation = "
393 // Perform postprocessing of the image or palette data based on the final
410 // If the image is gray or gray + alpha, compact the pixels into outRows
465 diag->Note(DiagMessage() << "writing image
886 getOutline(PngInfo* image) argument
976 do9Patch(PngInfo* image, std::string* outError) argument
[all...]
/frameworks/base/tests/Internal/src/android/app/
H A DWallpaperColorsTest.java53 Bitmap image = Bitmap.createBitmap(30, 30, Bitmap.Config.ARGB_8888);
54 Canvas canvas = new Canvas(image);
57 int hints = WallpaperColors.fromBitmap(image).getColorHints();
67 hints = WallpaperColors.fromBitmap(image).getColorHints();
78 supportsDarkText = (WallpaperColors.fromBitmap(image)
94 Bitmap image = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888);
95 WallpaperColors.fromBitmap(image);
98 canvas.drawBitmap(image, 0, 0, new Paint());
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DSurfaceHolderTarget.java17 package androidx.media.filterpacks.image;
101 .addInputPort("image", Signature.PORT_REQUIRED, imageType)
126 FrameImage2D image = getConnectedInputPort("image").pullFrame().asFrameImage2D();
131 renderGL(image);
133 renderCanvas(image);
141 * @param image the image to render
143 private void renderGL(FrameImage2D image) { argument
148 Rect frameRect = new Rect(0, 0, image
163 renderCanvas(FrameImage2D image) argument
[all...]
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/util/
H A DSerializableImage.java21 import java.awt.image.BufferedImage;
/frameworks/support/slices/builders/src/main/java/androidx/slice/builders/
H A DGridBuilder.java49 * Indicates that an image should be presented as an icon and it can be tinted.
56 * Indicates that an image should be presented in a smaller size and it shouldn't be tinted.
63 * Indicates that an image presented in a larger size and it shouldn't be tinted.
200 * would construct a cell with "First text", and image below it, and then "Second text" below
201 * the image.
210 * A cell can have at most two text items and one image.
293 * Adds an image to the cell that should be displayed as large as the cell allows.
294 * There can be at most one image, the first one added will be used, others will be ignored.
296 * @param image the image t
301 addLargeImage(@onNull Icon image) argument
318 addLargeImage(@ullable Icon image, boolean isLoading) argument
331 addImage(@onNull Icon image) argument
341 addImage(@ullable Icon image, boolean isLoading) argument
351 addImage(@onNull Icon image, @ListBuilder.ImageMode int imageMode) argument
361 addImage(@ullable Icon image, @ListBuilder.ImageMode int imageMode, boolean isLoading) argument
379 addImage(@onNull IconCompat image, @ListBuilder.ImageMode int imageMode) argument
401 addImage(@ullable IconCompat image, @ListBuilder.ImageMode int imageMode, boolean isLoading) argument
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/samples/simplecamera/
H A DIfElseFilterTest.java51 FrameImage2D image =
63 image.setBitmap(imageBitmap);
64 injectInputFrame("falseResult", image);
82 FrameImage2D image =
94 image.setBitmap(imageBitmap);
95 injectInputFrame("falseResult", image);
109 assertEquals(outputImage, image);
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
H A DImageUtils.java25 import java.awt.image.BufferedImage;
33 import static java.awt.image.BufferedImage.TYPE_INT_ARGB;
46 * Utilities related to image processing.
61 public static void requireSimilar(@NonNull String relativePath, @NonNull BufferedImage image) argument
63 int maxDimension = Math.max(image.getWidth(), image.getHeight());
65 BufferedImage thumbnail = scale(image, scale, scale);
88 BufferedImage image, double maxPercentDifferent) throws IOException {
97 int imageWidth = Math.min(goldenImage.getWidth(), image.getWidth());
98 int imageHeight = Math.min(goldenImage.getHeight(), image
87 assertImageSimilar(String relativePath, BufferedImage goldenImage, BufferedImage image, double maxPercentDifferent) argument
318 saveImageAndAppendMessage(@onNull BufferedImage image, @NonNull String initialMessage, @NonNull String relativePath) argument
[all...]
/frameworks/layoutlib/bridge/src/android/view/
H A DShadowPainter.java23 import java.awt.image.BufferedImage;
24 import java.awt.image.DataBufferInt;
33 * Adds a drop shadow to a semi-transparent image (of an arbitrary shape) and returns it as a
34 * new image. This method attempts to mimic the same visual characteristics as the rectangular
35 * shadow painting methods in this class, {@link #createRectangularDropShadow(java.awt.image.BufferedImage)}
36 * and {@link #createSmallRectangularDropShadow(java.awt.image.BufferedImage)}.
38 * If shadowSize is less or equals to 1, no shadow will be painted and the source image will be
41 * @param source the source image
46 * @return an image with the shadow painted in or the source image i
243 drawRectangleShadow(BufferedImage image, int x, int y, int width, int height) argument
264 drawSmallRectangleShadow(BufferedImage image, int x, int y, int width, int height) argument
[all...]

Completed in 473 milliseconds

123456789