Home
last modified time | relevance | path

Searched refs:imageWidth (Results 1 – 19 of 19) 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.java492 private Rect computeImageBounds(int imageWidth, int imageHeight) { in computeImageBounds() argument
493 float scale = GeometryMathUtils.scale(imageWidth, imageHeight, in computeImageBounds()
496 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 = dummy; 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/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/services/Car/car-lib/src/android/car/navigation/
DCarNavigationInstrumentCluster.java77 int imageWidth, int imageHeight, int imageColorDepthBits) { in createCustomImageCluster() argument
80 imageWidth, imageHeight, imageColorDepthBits); in createCustomImageCluster()
139 int imageWidth, in CarNavigationInstrumentCluster() argument
144 mImageWidth = imageWidth; in CarNavigationInstrumentCluster()
/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.cpp256 void PCLmGenerator::writePDFGrammarTrailer(int imageWidth, int imageHeight) { in writePDFGrammarTrailer() argument
438 int PCLmGenerator::injectRLEStrip(ubyte *RLEBuffer, int numBytes, int imageWidth, int imageHeight, in injectRLEStrip() argument
472 sprintf(pOutStr, "/Width %d\n", imageWidth); in injectRLEStrip()
527 int PCLmGenerator::injectLZStrip(ubyte *LZBuffer, int numBytes, int imageWidth, int imageHeight, in injectLZStrip() argument
561 sprintf(pOutStr, "/Width %d\n", imageWidth); in injectLZStrip()
651 int PCLmGenerator::injectJPEG(char *jpeg_Buff, int imageWidth, int imageHeight, int numCompBytes, in injectJPEG() argument
687 sprintf(pOutStr, "/Width %d\n", imageWidth); in injectJPEG()
765 void PCLmGenerator::writePDFGrammarPage(int imageWidth, int imageHeight, int numStrips, in writePDFGrammarPage() argument
878 sprintf(str, "%d 0 0 %ld 0 %d cm\n", imageWidth * scaleFactor, in writePDFGrammarPage()
902 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.java983 public static Point resizeToFill(int imageWidth, int imageHeight, int imageRotation, in resizeToFill() argument
987 int savedWidth = imageWidth; in resizeToFill()
988 imageWidth = imageHeight; in resizeToFill()
998 if (imageWidth != 0 && imageHeight != 0) { in resizeToFill()
999 if (imageWidth * boundHeight > boundWidth * imageHeight) { in resizeToFill()
1000 p.y = imageHeight * p.x / imageWidth; in resizeToFill()
1002 p.x = imageWidth * p.y / imageHeight; in resizeToFill()
1006 + imageWidth + "|" + imageHeight + "|" + boundWidth + "|" in resizeToFill()
/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.java81 Context context, int imageWidth, int imageHeight, boolean expandTitleWhenFocused) { in RecordingCardView() argument
93 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.java258 int imageWidth = getResources().getDimensionPixelSize(R.dimen.dvr_details_poster_width);
264 imageWidth,
/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();