/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities.cpp | 26 float **img; in db_SetupImageReferences_f() local 28 img=new float* [h]; in db_SetupImageReferences_f() 31 img[i]=im+w*i; in db_SetupImageReferences_f() 33 return(img); in db_SetupImageReferences_f() 39 unsigned char **img; in db_SetupImageReferences_u() local 43 img=new unsigned char* [h]; in db_SetupImageReferences_u() 46 img[i]=im+w*i; in db_SetupImageReferences_u() 48 return(img); in db_SetupImageReferences_u() 52 float **img,*im; in db_AllocImage_f() local 55 img=db_SetupImageReferences_f(im,w,h); in db_AllocImage_f() [all …]
|
D | db_feature_detection.cpp | 38 float **img,*aim,*p; in db_AllocStrengthImage_f() local 53 img=new float* [h]; in db_AllocStrengthImage_f() 57 img[i]=aim+aw*i+1; in db_AllocStrengthImage_f() 60 return(img); in db_AllocStrengthImage_f() 63 void db_FreeStrengthImage_f(float *im,float **img,int h) in db_FreeStrengthImage_f() argument 66 delete [] img; in db_FreeStrengthImage_f() 71 inline void db_IxIyRow_f(float *Ix,float *Iy,const float * const *img,int i,int j,int chunk_width) in db_IxIyRow_f() argument 77 Ix[c]=img[i][j+c-1]-img[i][j+c+1]; in db_IxIyRow_f() 78 Iy[c]=img[i-1][j+c]-img[i+1][j+c]; in db_IxIyRow_f() 84 inline void db_IxIyRow_u(int *dxx,const unsigned char * const *img,int i,int j,int nc) in db_IxIyRow_u() argument [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageBackend.java | 250 public void releaseSemaphoreReference(final ImageToProcess img, Executor executor) { in releaseSemaphoreReference() argument 252 ImageReleaseProtocol protocol = mImageSemaphoreMap.get(img); in releaseSemaphoreReference() 268 mImageSemaphoreMap.remove(img); in releaseSemaphoreReference() 273 closeImageExecutorSafe(img, executor); in releaseSemaphoreReference() 284 mImageSemaphoreMap.put(img, protocol); in releaseSemaphoreReference() 301 public boolean appendTasks(ImageToProcess img, Set<TaskImageContainer> tasks) { in appendTasks() argument 304 int countImageRefs = numPropagatedImageReferences(img, tasks); in appendTasks() 306 if (img != null) { in appendTasks() 309 incrementSemaphoreReferenceCount(img, countImageRefs); in appendTasks() 326 public boolean appendTasks(ImageToProcess img, TaskImageContainer task) { in appendTasks() argument [all …]
|
D | TaskCompressImageToJpeg.java | 86 public int compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, in compressJpegFromYUV420Image() argument 88 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); in compressJpegFromYUV420Image() 109 ImageToProcess img = mImage; in run() local 123 switch (img.proxy.getFormat()) { in run() 132 ByteBuffer origBuffer = img.proxy.getPlanes().get(0).getBuffer(); in run() 180 addOrientation(img.rotation, exifDerivedRotation); in run() 188 safeCrop = guaranteedSafeCrop(img.proxy, in run() 189 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); in run() 195 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); in run() 204 img.proxy.getFormat(), safeCrop); in run() [all …]
|
D | TaskConvertImageToRGBPreview.java | 222 protected int[] colorInscribedDataCircleFromYuvImage(ImageProxy img, int subsample) { in colorInscribedDataCircleFromYuvImage() argument 223 Rect defaultCrop = new Rect(0, 0, img.getWidth(), img.getHeight()); in colorInscribedDataCircleFromYuvImage() 225 return colorInscribedDataCircleFromYuvImage(img, defaultCrop, subsample); in colorInscribedDataCircleFromYuvImage() 228 protected int[] colorInscribedDataCircleFromYuvImage(ImageProxy img, Rect crop, int subsample) { in colorInscribedDataCircleFromYuvImage() argument 229 crop = guaranteedSafeCrop(img, crop); in colorInscribedDataCircleFromYuvImage() 230 final List<ImageProxy.Plane> planeList = img.getPlanes(); in colorInscribedDataCircleFromYuvImage() 500 protected int[] colorSubSampleFromYuvImage(ImageProxy img, int subsample, in colorSubSampleFromYuvImage() argument 502 Rect defaultCrop = new Rect(0, 0, img.getWidth(), img.getHeight()); in colorSubSampleFromYuvImage() 504 return colorSubSampleFromYuvImage(img, defaultCrop, subsample, enableSquareInscribe); in colorSubSampleFromYuvImage() 540 protected int[] colorSubSampleFromYuvImage(ImageProxy img, Rect crop, int subsample, in colorSubSampleFromYuvImage() argument [all …]
|
D | TaskPreviewChainedJpeg.java | 63 ImageToProcess img = mImage; in run() local 64 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() 66 final TaskImage inputImage = calculateInputImage(img, safeCrop); in run() 70 final TaskImage resultImage = calculateResultImage(img, subsample); in run() 76 logWrapper("TIMER_END Rendering preview YUV buffer available, w=" + img.proxy.getWidth() in run() 77 / subsample + " h=" + img.proxy.getHeight() / subsample + " of subsample " in run() 80 convertedImage = runSelectedConversion(img.proxy, safeCrop, subsample); in run() 83 TaskImageContainer jpegTask = new TaskCompressImageToJpeg(img, mExecutor, in run() 85 mImageTaskManager.appendTasks(img, jpegTask); in run() 88 mImageTaskManager.releaseSemaphoreReference(img, mExecutor); in run()
|
D | TaskChainedCompressImageToJpeg.java | 51 ImageToProcess img = mImage; in run() local 52 Rect safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() 53 final List<ImageProxy.Plane> planeList = img.proxy.getPlanes(); in run() 55 final TaskImage inputImage = new TaskImage(mImage.rotation, img.proxy.getWidth(), in run() 56 img.proxy.getHeight(), img.proxy.getFormat(), safeCrop); in run() 57 final TaskImage resultImage = new TaskImage(mImage.rotation, img.proxy.getWidth(), in run() 58 img.proxy.getHeight(), ImageFormat.JPEG , safeCrop); in run() 74 dataCopy = convertYUV420ImageToPackedNV21(img.proxy); in run() 77 mImageTaskManager.releaseSemaphoreReference(img, mExecutor); in run()
|
D | TaskJpegEncode.java | 78 public byte[] convertYUV420ImageToPackedNV21(ImageProxy img) { in convertYUV420ImageToPackedNV21() argument 79 final List<ImageProxy.Plane> planeList = img.getPlanes(); in convertYUV420ImageToPackedNV21() 86 return convertYUV420ImageToPackedNV21(img, dataCopy); in convertYUV420ImageToPackedNV21() 100 public byte[] convertYUV420ImageToPackedNV21(ImageProxy img, byte[] dataCopy) { in convertYUV420ImageToPackedNV21() argument 102 final int w = img.getWidth(); in convertYUV420ImageToPackedNV21() 103 final int h = img.getHeight(); in convertYUV420ImageToPackedNV21() 104 final List<ImageProxy.Plane> planeList = img.getPlanes(); in convertYUV420ImageToPackedNV21()
|
D | ImageConsumer.java | 85 public boolean receiveImage(ImageToProcess img, Executor executor, in receiveImage() argument 126 public boolean receiveImage(ImageToProcess img, TaskImageContainer sharedTask, in receiveImage() argument 149 public boolean receiveImage(ImageToProcess img, TaskImageContainer sharedTask, in receiveImage() argument 173 public boolean receiveImage(ImageToProcess img, Set<TaskImageContainer> sharedTasks, in receiveImage() argument
|
D | ImageTaskManager.java | 40 public boolean appendTasks(ImageToProcess img, Set<TaskImageContainer> tasks); in appendTasks() argument 48 public boolean appendTasks(ImageToProcess img, TaskImageContainer task); in appendTasks() argument 62 public void releaseSemaphoreReference(final ImageToProcess img, Executor executor); in releaseSemaphoreReference() argument
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | JpegUtilNative.java | 173 public static int compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality) { in compressJpegFromYUV420Image() argument 174 return compressJpegFromYUV420Image(img, outBuf, quality, 0); in compressJpegFromYUV420Image() 188 public static int compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, in compressJpegFromYUV420Image() argument 190 return compressJpegFromYUV420Image(img, outBuf, quality, new Rect(0, 0, img.getWidth(), in compressJpegFromYUV420Image() 191 img.getHeight()), degrees); in compressJpegFromYUV420Image() 210 public static int compressJpegFromYUV420Image(ImageProxy img, ByteBuffer outBuf, int quality, in compressJpegFromYUV420Image() argument 222 Preconditions.checkState(img.getFormat() == ImageFormat.YUV_420_888, "Only " + in compressJpegFromYUV420Image() 223 "ImageFormat.YUV_420_888 is supported, found " + img.getFormat()); in compressJpegFromYUV420Image() 224 final List<ImageProxy.Plane> planeList = img.getPlanes(); in compressJpegFromYUV420Image() 245 cropLeft = Math.min(cropLeft, img.getWidth() - 1); in compressJpegFromYUV420Image() [all …]
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | ImageResolver.java | 56 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height) { in getBitmap() argument 57 return getBitmap(img, width, height, 1f); in getBitmap() 71 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height, in getBitmap() argument 75 img.getContentUri(), width, height)); in getBitmap() 80 Point adjusted = getAdjustedSize(img.getAspectRatio(), width, height); in getBitmap() 82 Log.e(TAG, "The provided image has no aspect ratio: " + img.getContentUri()); in getBitmap() 86 Uri uri = Uri.parse(img.getContentUri()); in getBitmap() 102 img.getContentUri(), width, height)); in getBitmap() 139 img -> img, in getBitmaps() 140 img -> getBitmap(img, width, height, offLanesAlpha))); in getBitmaps()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | ImageResolver.java | 71 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height) { in getBitmap() argument 72 return getBitmap(img, width, height, 1f); in getBitmap() 86 public CompletableFuture<Bitmap> getBitmap(@NonNull ImageReference img, int width, int height, in getBitmap() argument 90 img.getContentUri(), width, height)); in getBitmap() 95 Point adjusted = getAdjustedSize(img.getAspectRatio(), width, height); in getBitmap() 97 Log.e(TAG, "The provided image has no aspect ratio: " + img.getContentUri()); in getBitmap() 101 Uri uri = Uri.parse(img.getContentUri()); in getBitmap() 117 img.getContentUri(), width, height)); in getBitmap() 154 img -> img, in getBitmaps() 155 img -> getBitmap(img, width, height, offLanesAlpha))); in getBitmaps()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | Api2Camera.java | 617 Image img = reader.acquireLatestImage(); 618 if (img == null) { 625 mYuv1LastReceivedImage = img; 627 …ilable, Frame #=" + mYuv1ImageCounter + " w=" + img.getWidth() + " h=" + img.getHeight() + " time=… 638 Image img = reader.acquireLatestImage(); 639 if (img == null) { 643 Plane[] planes = img.getPlanes(); 654 img.close(); 663 Image img = reader.acquireLatestImage(); 664 if (img == null) { [all …]
|
D | BitmapUtility.java | 42 public static Bitmap bitmapFromYuvImage(Image img) { in bitmapFromYuvImage() argument 43 int w = img.getWidth(); in bitmapFromYuvImage() 44 int h = img.getHeight(); in bitmapFromYuvImage() 45 ByteBuffer buf0 = img.getPlanes()[0].getBuffer(); in bitmapFromYuvImage()
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Pyramid.cpp | 33 PyramidShort *img = (PyramidShort *) calloc(sizeof(PyramidShort) * levels in allocatePyramidPacked() local 37 if (img) { in allocatePyramidPacked() 39 ImageTypeShort *y = (ImageTypeShort *) &img[levels]; in allocatePyramidPacked() 41 for (last = (curr = img) + levels; curr < last; curr++) { in allocatePyramidPacked() 58 return img; in allocatePyramidPacked() 65 PyramidShort *img = (PyramidShort *) in allocateImage() local 69 if (img) { in allocateImage() 70 short **y = (short **) &img[1]; in allocateImage() 72 img->width = width; in allocateImage() 73 img->height = height; in allocateImage() [all …]
|
D | Interp.h | 46 inline double ciCalc(PyramidShort *img, int xi, int yi, double xfrac, double yfrac) in ciCalc() argument 51 ImageTypeShortBase *in = img->ptr[yi-1] + xi - 1; in ciCalc() 58 in += img->pitch; in ciCalc() 63 in += img->pitch; in ciCalc() 68 in += img->pitch; in ciCalc()
|
D | ImageUtils.cpp | 397 void YUVinfo::mapYUVInfoToImage(YUVinfo *img, unsigned char *position) in mapYUVInfoToImage() argument 400 for (i = 0; i < img->Y.height; i++, position += img->Y.width) in mapYUVInfoToImage() 401 img->Y.ptr[i] = position; in mapYUVInfoToImage() 402 for (i = 0; i < img->V.height; i++, position += img->V.width) in mapYUVInfoToImage() 403 img->V.ptr[i] = position; in mapYUVInfoToImage() 404 for (i = 0; i < img->U.height; i++, position += img->U.width) in mapYUVInfoToImage() 405 img->U.ptr[i] = position; in mapYUVInfoToImage()
|
/packages/modules/Gki/ |
D | Android.bp | 85 // Key to sign apex_payload.img 111 // Build GKI APEX 5.4-android12-unstable from $(PRODUCT_OUT)/boot.img. 117 product_out_path: "boot.img", 121 // Build GKI APEX 5.10-android12-unstable from $(PRODUCT_OUT)/boot.img. 127 product_out_path: "boot.img", 131 // Build GKI APEX 5.4-android12-unstable from $(PRODUCT_OUT)/boot-5.4.img 136 product_out_path: "boot-5.4.img", 139 // Build GKI APEX 5.10-android12-unstable from $(PRODUCT_OUT)/boot-5.10.img 144 product_out_path: "boot-5.10.img",
|
/packages/modules/Virtualization/microdroid/payload/ |
D | README.md | 62 $ mk_payload payload_config.json payload.img 64 payload.img 65 payload-footer.img 66 payload-header.img 67 payload-metadata.img 68 payload-filler-0.img 69 payload-filler-1.img
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | ImageCaptureManager.java | 525 final Image img = reader.acquireLatestImage(); 527 if (img != null) { 533 long timestamp = img.getTimestamp(); 535 boolean swapSuccess = doImageSwap(img); 540 img.close(); 704 CapturedImage img = toCapture.second; 705 callback.onImageCaptured(img.tryGetImage(), 706 img.tryGetMetadata());
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | AddItemActivity.java | 206 WidgetImageView img = mWidgetCell.getWidgetView(); in onLongClick() local 211 if (img.getDrawable() == null && appWidgetHostView == null) { in onLongClick() 234 bounds = img.getBitmapBounds(); in onLongClick() 235 bounds.offset(img.getLeft() - (int) mLastTouchPos.x, in onLongClick() 236 img.getTop() - (int) mLastTouchPos.y); in onLongClick() 238 img.getDrawable().getIntrinsicWidth(), img.getWidth()); in onLongClick()
|
/packages/modules/Virtualization/apex/ |
D | sign_virt_apex.py | 276 for img in images: 277 cmd.extend(['--include_descriptors_from_image', img]) 311 for part, img in partitions.items(): 313 RunCommand(args, ['img2simg', img, tmp_img]) 315 image_arg = '--image=%s=%s' % (part, img) 317 part, os.path.getsize(img))
|
/packages/apps/Gallery2/jni/filters/ |
D | redEyeMath.c | 106 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument 107 img[off + 2] = b; in stuff() 108 img[off + 1] = g; in stuff() 109 img[off] = r; in stuff()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageGallery.java | 181 IImage img = getCurrentImage(); 182 if (img == null) { 183 img = mAllImages.getImageAt(0); 184 if (img == null) { 188 Uri targetUri = img.fullSizeImageUri(); 277 private void launchCropperOrFinish(IImage img) { 280 long size = MenuHelper.getImageFileSize(img); 310 cropIntent.setData(img.fullSizeImageUri()); 318 Intent result = new Intent(null, img.fullSizeImageUri()); 321 Bitmap bitmap = img.fullSizeBitmap(
|