Home
last modified time | relevance | path

Searched refs:imageWidth (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageStraighten.java206 private void updateCurrentCrop(Matrix m, GeometryHolder h, RectF tmp, int imageWidth, in updateCurrentCrop() argument
208 tmp.set(0, 0, imageHeight, imageWidth); in updateCurrentCrop()
217 tmp.set(0, 0, imageHeight, imageWidth); in updateCurrentCrop()
219 ih = imageWidth; in updateCurrentCrop()
221 tmp.set(0, 0, imageWidth, imageHeight); in updateCurrentCrop()
222 iw = imageWidth; in updateCurrentCrop()
231 Matrix m1 = GeometryMathUtils.getFullGeometryToScreenMatrix(h, imageWidth, in updateCurrentCrop()
237 FilterCropRepresentation.findNormalizedCrop(mCrop, imageWidth, imageHeight); in updateCurrentCrop()
251 int imageWidth = image.getWidth(); in onDraw() local
257 Matrix m = GeometryMathUtils.getFullGeometryToScreenMatrix(mDrawHolder, imageWidth, in onDraw()
[all …]
DImageShow.java493 private Rect computeImageBounds(int imageWidth, int imageHeight) { in computeImageBounds() argument
494 float scale = GeometryMathUtils.scale(imageWidth, imageHeight, in computeImageBounds()
497 float w = imageWidth * scale; in computeImageBounds()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DCropView.java71 final float imageWidth = mRenderer.source.getImageWidth(); in getImageDims() local
74 imageDims[0] = imageWidth; in getImageDims()
86 final float imageWidth = imageDims[0]; in getEdgesHelper() local
96 rendererCenter[0] += imageWidth / 2; in getEdgesHelper()
100 float centerX = (width / 2f - rendererCenter[0] + (imageWidth - width) / 2f) in getEdgesHelper()
104 float leftEdge = centerX - imageWidth / 2f * scale; in getEdgesHelper()
105 float rightEdge = centerX + imageWidth / 2f * scale; in getEdgesHelper()
164 final float imageWidth = imageDims[0]; in updateMinScale() local
166 mMinScale = Math.max(w / imageWidth, h / imageHeight); in updateMinScale()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java90 public static Bitmap loadImageThumbnailFromStream(InputStream stream, int imageWidth, in loadImageThumbnailFromStream() argument
99 imageHeight = imageWidth; in loadImageThumbnailFromStream()
100 imageWidth = temp; in loadImageThumbnailFromStream()
105 int targetWidth = imageWidth; in loadImageThumbnailFromStream()
112 targetWidth = imageWidth / sampleSize; in loadImageThumbnailFromStream()
113 targetHeight = imageWidth / sampleSize; in loadImageThumbnailFromStream()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/inc/
DPCLmGenerator.h88 (int imageWidth, int imageHeight, int numStrips, colorSpaceDisposition destColorSpace);
98 int injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight,
104 int injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight,
110 int injectJPEG(char *jpeg_Buff, int imageWidth, int imageHeight, int numCompBytes,
136 void writePDFGrammarTrailer(int imageWidth, int imageHeight);
/packages/services/BuiltInPrintService/jni/plugins/
Dwprint_mupdf.c44 unsigned int imageWidth; in _mupdf_get_hdr() local
61 imageWidth = (unsigned int) (pageWidth * zoom); in _mupdf_get_hdr()
64 image_info->width = imageWidth; in _mupdf_get_hdr()
67 size = imageWidth * imageHeight * 3; in _mupdf_get_hdr()
77 result = pdf_render->renderPageStripe(pdf_render, image_info->decoder_data.page, imageWidth, in _mupdf_get_hdr()
/packages/services/Car/car-lib/src/android/car/navigation/
DCarNavigationInstrumentCluster.java83 int imageWidth, int imageHeight, int imageColorDepthBits) { in createCustomImageCluster() argument
86 imageWidth, imageHeight, imageColorDepthBits); in createCustomImageCluster()
146 int imageWidth, in CarNavigationInstrumentCluster() argument
151 mImageWidth = imageWidth; in CarNavigationInstrumentCluster()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java610 int imageWidth = mWidth; in canBeCompressed() local
626 imageWidth < widthLimitWithSlop && in canBeCompressed()
627 imageHeight * imageWidth < pixelLimit); in canBeCompressed()
645 + " w=" + imageWidth + " vs " + widthLimitWithSlop in canBeCompressed()
646 + " p=" + imageHeight * imageWidth + " vs " + pixelLimit); in canBeCompressed()
649 imageWidth = mWidth / sampleSize; in canBeCompressed()
651 imageWidth < widthLimitWithSlop && in canBeCompressed()
652 imageHeight * imageWidth < pixelLimit); in canBeCompressed()
659 + " w=" + imageWidth + " vs " + widthLimitWithSlop in canBeCompressed()
660 + " p=" + imageHeight * imageWidth + " vs " + pixelLimit); in canBeCompressed()
/packages/apps/Gallery/src/com/android/camera/
DGalleryPicker.java621 int imageWidth, int widthPadding, int imageHeight, in placeImage() argument
627 int xPos = (col * (imageWidth + widthPadding)) - offsetX; in placeImage()
643 int imageWidth = width; in makeMiniThumbBitmap() local
648 imageWidth = (imageWidth - padding) / 2; // 2 here because we show two in makeMiniThumbBitmap()
704 temp = Util.transform(m, temp, imageWidth, in makeMiniThumbBitmap()
708 Bitmap thumb = Bitmap.createBitmap(imageWidth, imageHeight, in makeMiniThumbBitmap()
714 mCellOutline.setBounds(0, 0, imageWidth, imageHeight); in makeMiniThumbBitmap()
717 placeImage(thumb, c, pdpaint, imageWidth, padding, imageHeight, in makeMiniThumbBitmap()
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
DgenPCLm.cpp255 void PCLmGenerator::writePDFGrammarTrailer(int imageWidth, int imageHeight) { in writePDFGrammarTrailer() argument
437 int PCLmGenerator::injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight, in injectRLEStrip() argument
471 sprintf(pOutStr, "/Width %d\n", imageWidth); in injectRLEStrip()
526 int PCLmGenerator::injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight, in injectLZStrip() argument
560 sprintf(pOutStr, "/Width %d\n", imageWidth); in injectLZStrip()
650 int PCLmGenerator::injectJPEG(char *jpeg_Buff, int imageWidth, int imageHeight, int numCompBytes, in injectJPEG() argument
686 sprintf(pOutStr, "/Width %d\n", imageWidth); in injectJPEG()
764 void PCLmGenerator::writePDFGrammarPage(int imageWidth, int imageHeight, int numStrips, in writePDFGrammarPage() argument
877 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
901 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskCompressImageToJpeg.java174 final int imageWidth; in run() local
186 imageWidth = 0; in run()
191 imageWidth = exifPixelXDimension; in run()
194 safeCrop = guaranteedSafeCrop(imageWidth, imageHeight, in run()
202 imageWidth, in run()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java988 public static Point resizeToFill(int imageWidth, int imageHeight, int imageRotation, in resizeToFill() argument
992 int savedWidth = imageWidth; in resizeToFill()
993 imageWidth = imageHeight; in resizeToFill()
1003 if (imageWidth != 0 && imageHeight != 0) { in resizeToFill()
1004 if (imageWidth * boundHeight > boundWidth * imageHeight) { in resizeToFill()
1005 p.y = imageHeight * p.x / imageWidth; in resizeToFill()
1007 p.x = imageWidth * p.y / imageHeight; in resizeToFill()
1011 + imageWidth + "|" + imageHeight + "|" + boundWidth + "|" in resizeToFill()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DFakeInstrumentClusterNavigation.java62 int imageWidth, in setCustomImageClusterInfo() argument
68 minIntervalMillis, imageWidth, imageHeight, imageColorDepthBits); in setCustomImageClusterInfo()
DCarNavigationStatusController.java32 int imageWidth, in setCustomImageClusterInfo() argument
/packages/apps/Messaging/jni/
DGifTranscoder.cpp411 int imageWidth, in fillRect() argument
418 ASSERT(left + width <= imageWidth, "Rectangle is outside image bounds"); in fillRect()
423 ColorARGB* renderPixel = getPixel(renderBuffer, imageWidth, x + left, y + top); in fillRect()
DGifTranscoder.h69 int imageWidth,
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DRecordingCardView.java84 Context context, int imageWidth, int imageHeight, boolean expandTitleWhenFocused) { in RecordingCardView() argument
96 mImageWidth = imageWidth; in RecordingCardView()
DDvrDetailsFragment.java181 int imageWidth = getResources().getDimensionPixelSize(R.dimen.dvr_details_poster_width); in onLoadLogoAndBackgroundImages() local
187 imageWidth, in onLoadLogoAndBackgroundImages() local
/packages/apps/TV/src/com/android/tv/ui/
DProgramDetailsFragment.java275 int imageWidth = getResources().getDimensionPixelSize(R.dimen.dvr_details_poster_width);
281 imageWidth,
/packages/apps/Settings/src/com/android/settings/accessibility/
DToggleFeaturePreferenceFragment.java383 final int imageWidth = drawable.getIntrinsicWidth(); in getDrawableFromUri() local
386 if ((imageWidth > AccessibilityUtil.getScreenWidthPixels(getPrefContext())) in getDrawableFromUri()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java1615 private static int gapToSide(int imageWidth, int viewWidth) { in gapToSide() argument
1616 return Math.max(0, (viewWidth - imageWidth) / 2); in gapToSide()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java2409 float imageWidth = imageData.getDimensions().getWidth();
2412 imageWidth = imageData.getDimensions().getHeight();
2414 float scale = imageWidth / curr.getWidth();
/packages/modules/NeuralNetworks/common/operations/
DGenerateProposals.cpp87 float imageWidth = imageInfoBase[1]; in bboxTransformFloat32() local
95 BoxEncodingCorner cliped = {.x1 = std::min(std::max(roiAfter.x1, 0.0f), imageWidth), in bboxTransformFloat32()
97 .x2 = std::min(std::max(roiAfter.x2, 0.0f), imageWidth), in bboxTransformFloat32()