Home
last modified time | relevance | path

Searched refs:img (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java250 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 …]
DTaskConvertImageToRGBPreview.java222 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 …]
DTaskCompressImageToJpeg.java86 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 …]
DTaskPreviewChainedJpeg.java63 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()
DTaskChainedCompressImageToJpeg.java51 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()
DTaskJpegEncode.java78 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()
DImageConsumer.java85 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
DImageTaskManager.java40 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/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.cpp26 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 …]
Ddb_feature_detection.cpp38 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 …]
Ddb_feature_detection.h72 …void DetectCorners(const float * const *img,double *x_coord,double *y_coord,int *nr_corners) const;
141 …virtual void DetectCorners(const unsigned char * const *img,double *x_coord,double *y_coord,int *n…
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java173 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/DevCamera/src/com/android/devcamera/
DApi2Camera.java617 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 …]
DBitmapUtility.java42 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/Car/Cluster/src/android/car/cluster/
DImageResolver.java71 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/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp33 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 …]
DImageUtils.cpp397 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()
DInterp.h46 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()
/packages/apps/Camera2/src/com/android/camera/one/v2/
DImageCaptureManager.java525 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());
DOneCameraZslImpl.java1014 private byte[] acquireJpegBytes(Image img, int degrees) { in acquireJpegBytes() argument
1017 if (img.getFormat() == ImageFormat.JPEG) { in acquireJpegBytes()
1018 Image.Plane plane0 = img.getPlanes()[0]; in acquireJpegBytes()
1025 } else if (img.getFormat() == ImageFormat.YUV_420_888) { in acquireJpegBytes()
1028 buffer = ByteBuffer.allocateDirect(img.getWidth() * img.getHeight() * 3); in acquireJpegBytes()
1032 new AndroidImageProxy(img), buffer, JPEG_QUALITY, in acquireJpegBytes()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java140 WidgetImageView img = mWidgetCell.getWidgetView(); in onLongClick() local
144 if (img.getBitmap() == null) { in onLongClick()
148 Rect bounds = img.getBitmapBounds(); in onLongClick()
149 bounds.offset(img.getLeft() - (int) mLastTouchPos.x, img.getTop() - (int) mLastTouchPos.y); in onLongClick()
153 img.getBitmap().getWidth(), img.getWidth()); in onLongClick()
/packages/apps/Gallery/src/com/android/camera/
DImageGallery.java181 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(
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c106 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java264 PrimaryImage img = PrimaryImage.getImage(); in onDraw() local
267 if ((img.getLoadedPreset() == null) in onDraw()
268 || (img.getLoadedPreset() != null in onDraw()
269 && img.getLoadedPreset().equals(img.getCurrentPreset()))) { in onDraw()
271 } else if (img.getLoadedPreset() != null) { in onDraw()
927 PrimaryImage img = PrimaryImage.getImage();
928 float scaleFactor = img.getScaleFactor();
938 scaleFactor = img.getScaleFactor();
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java423 Bitmap img = params[0]; in doInBackground() local
440 assert (img != null); in doInBackground()
441 Bitmap ret = getCroppedImage(img, mCrop, mPhoto); in doInBackground()

12