/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 28 void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height) in rgba2yvu() argument 32 ImageType vimg = yimg + width*height; in rgba2yvu() 33 ImageType uimg = vimg + width*height; in rgba2yvu() 36 for (int ii = 0; ii < height; ii++) { in rgba2yvu() 73 void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height) in rgb2yvu() argument 77 ImageType vimg = yimg + width*height; in rgb2yvu() 78 ImageType uimg = vimg + width*height; in rgb2yvu() 81 for (int ii = 0; ii < height; ii++) { in rgb2yvu() 116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height) in rgb2gray() argument 121 ImageType out = ImageUtils::allocateImage(width, height, 1); in rgb2gray() [all …]
|
D | Pyramid.cpp | 28 real width, real height, real border) in allocatePyramidPacked() argument 31 int lines, size = calcStorage(width, height, border2, levels, &lines); in allocatePyramidPacked() 43 curr->height = height; in allocatePyramidPacked() 49 for (int j = height + border2; j--; y++, position += curr->pitch) { in allocatePyramidPacked() 54 height >>= 1; in allocatePyramidPacked() 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) in allocateImage() argument 66 calloc(sizeof(PyramidShort) + sizeof(short *) * (height + border2) + in allocateImage() 67 sizeof(short) * (width + border2) * (height + border2), 1); in allocateImage() 71 short *position = (short *) &y[height + border2]; in allocateImage() 73 img->height = height; in allocateImage() [all …]
|
D | Blend.cpp | 47 this->height = frame_height; in initialize() 64 …dShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned short) height, BORDER); in initialize() 65 …t::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER); in initialize() 66 …t::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER); in initialize() 142 double halfheight = height / 2.0; in runBlend() 164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect); in runBlend() 170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1); in runBlend() 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 246 "(%d, %d) vs (%d, %d)", width, height, Mwidth, Mheight); in runBlend() 259 memset(imgMos->Y.ptr[0], 255, (imgMos->Y.width * imgMos->Y.height)); in runBlend() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 28 void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height) in rgba2yvu() argument 32 ImageType vimg = yimg + width*height; in rgba2yvu() 33 ImageType uimg = vimg + width*height; in rgba2yvu() 36 for (int ii = 0; ii < height; ii++) { in rgba2yvu() 73 void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height) in rgb2yvu() argument 77 ImageType vimg = yimg + width*height; in rgb2yvu() 78 ImageType uimg = vimg + width*height; in rgb2yvu() 81 for (int ii = 0; ii < height; ii++) { in rgb2yvu() 116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height) in rgb2gray() argument 121 ImageType out = ImageUtils::allocateImage(width, height, 1); in rgb2gray() [all …]
|
D | Pyramid.cpp | 28 real width, real height, real border) in allocatePyramidPacked() argument 31 int lines, size = calcStorage(width, height, border2, levels, &lines); in allocatePyramidPacked() 43 curr->height = height; in allocatePyramidPacked() 49 for (int j = height + border2; j--; y++, position += curr->pitch) { in allocatePyramidPacked() 54 height >>= 1; in allocatePyramidPacked() 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) in allocateImage() argument 66 calloc(sizeof(PyramidShort) + sizeof(short *) * (height + border2) + in allocateImage() 67 sizeof(short) * (width + border2) * (height + border2), 1); in allocateImage() 71 short *position = (short *) &y[height + border2]; in allocateImage() 73 img->height = height; in allocateImage() [all …]
|
D | Blend.cpp | 47 this->height = frame_height; in initialize() 64 …dShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned short) height, BORDER); in initialize() 65 …t::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER); in initialize() 66 …t::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigned short) (height), BORDER); in initialize() 142 double halfheight = height / 2.0; in runBlend() 164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect); in runBlend() 170 FrameToMosaic(mb->trs, 0.0, mb->height-1.0, x1, y1); in runBlend() 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 246 "(%d, %d) vs (%d, %d)", width, height, Mwidth, Mheight); in runBlend() 259 memset(imgMos->Y.ptr[0], 255, (imgMos->Y.width * imgMos->Y.height)); in runBlend() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureLayoutHelper.java | 224 public void onNonDecorWindowSizeChanged(int width, int height, int rotation) { in onNonDecorWindowSizeChanged() argument 226 mWindowHeight = height; in onNonDecorWindowSizeChanged() 244 private PositionConfiguration getPositionConfiguration(int width, int height, in getPositionConfiguration() argument 246 boolean landscape = width > height; in getPositionConfiguration() 252 config.mPreviewRect.set(0, 0, width, height); in getPositionConfiguration() 255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height); in getPositionConfiguration() 257 config.mBottomBarRect.set(0, height - mBottomBarOptimalHeight, width, height); in getPositionConfiguration() 265 int longerEdge = Math.max(width, height); in getPositionConfiguration() 266 int shorterEdge = Math.min(width, height); in getPositionConfiguration() 282 … config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration() [all …]
|
D | Storage.java | 82 int height) { in addImage() argument 84 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage() 111 int height, String mimeType) { in addImage() argument 117 path, width, height, mimeType); in addImage() 139 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument 144 height, mimeType); in addImageToMediaStore() 163 String path, int width, int height, String mimeType) { in getContentValuesForData() argument 179 setImageSize(values, width, height); in getContentValuesForData() 195 public static Uri addPlaceholder(byte[] jpeg, int width, int height) { in addPlaceholder() argument 202 replacePlaceholder(uri, jpeg, width, height); in addPlaceholder() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | GLES11Canvas.java | 128 public void setSize(int width, int height) { in setSize() argument 129 Assert.assertTrue(width >= 0 && height >= 0); in setSize() 133 mScreenHeight = height; in setSize() 138 gl.glViewport(0, 0, width, height); in setSize() 141 GLU.gluOrtho2D(gl, 0, width, 0, height); in setSize() 150 Matrix.translateM(matrix, 0, 0, height, 0); in setSize() 177 public void drawRect(float x, float y, float width, float height, GLPaint paint) { in drawRect() argument 185 scale(width, height, 1); in drawRect() 213 public void fillRect(float x, float y, float width, float height, int color) { in fillRect() argument 219 scale(width, height, 1); in fillRect() [all …]
|
D | GLES20Canvas.java | 346 public void setSize(int width, int height) { in setSize() argument 348 mHeight = height; in setSize() 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); in setSize() 355 mScreenHeight = height; in setSize() 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); in setSize() 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { in drawRect() argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); in drawRect() 491 private void draw(int type, int offset, int count, float x, float y, float width, float height, in draw() argument 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); in draw() 496 private void draw(int type, int offset, int count, float x, float y, float width, float height, in draw() argument [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | DividedImageCanvas.java | 217 outDim.height = h; in getDesiredDimensions() 248 final int height = mHeight; in addOrClearDivisionImage() local 257 draw(mDivisionImages.get(0), 0, 0, width, height); in addOrClearDivisionImage() 264 draw(mDivisionImages.get(0), 0, 0, width / 2, height); in addOrClearDivisionImage() 267 draw(mDivisionImages.get(1), width / 2, 0, width, height); in addOrClearDivisionImage() 274 drawVerticalDivider(width, height); in addOrClearDivisionImage() 283 draw(mDivisionImages.get(0), 0, 0, width / 2, height); in addOrClearDivisionImage() 286 draw(mDivisionImages.get(1), width / 2, 0, width, height / 2); in addOrClearDivisionImage() 289 draw(mDivisionImages.get(2), width / 2, height / 2, width, height); in addOrClearDivisionImage() 296 drawVerticalDivider(width, height); in addOrClearDivisionImage() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AbstractSlotRenderer.java | 47 Texture content, int width, int height, int rotation) { in drawContent() argument 52 width = height = Math.min(width, height); in drawContent() 54 canvas.translate(width / 2, height / 2); in drawContent() 56 canvas.translate(-width / 2, -height / 2); in drawContent() 62 (float) height / content.getHeight()); in drawContent() 69 protected void drawVideoOverlay(GLCanvas canvas, int width, int height) { in drawVideoOverlay() argument 73 float scale = (float) height / v.getHeight(); in drawVideoOverlay() 78 int s = Math.min(width, height) / 6; in drawVideoOverlay() 79 mVideoPlayIcon.draw(canvas, (width - s) / 2, (height - s) / 2, s, s); in drawVideoOverlay() 82 protected void drawPanoramaIcon(GLCanvas canvas, int width, int height) { in drawPanoramaIcon() argument [all …]
|
D | AlbumSetSlotRenderer.java | 131 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height) { in renderSlot() argument 134 renderRequestFlags |= renderContent(canvas, entry, width, height); in renderSlot() 135 renderRequestFlags |= renderLabel(canvas, entry, width, height); in renderSlot() 136 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height); in renderSlot() 141 GLCanvas canvas, int index, AlbumSetEntry entry, int width, int height) { in renderOverlay() argument 144 int uncoveredHeight = height - mLabelSpec.labelBackgroundHeight; in renderOverlay() 151 drawPressedUpFrame(canvas, width, height); in renderOverlay() 158 drawPressedFrame(canvas, width, height); in renderOverlay() 161 drawSelectedFrame(canvas, width, height); in renderOverlay() 163 drawSelectedFrame(canvas, width, height); in renderOverlay() [all …]
|
D | TiledScreenNail.java | 62 public TiledScreenNail(int width, int height) { in TiledScreenNail() argument 63 setSize(width, height); in TiledScreenNail() 75 private void setSize(int width, int height) { in setSize() argument 76 if (width == 0 || height == 0) { in setSize() 78 height = sMaxSide * 3 / 4; in setSize() 80 float scale = Math.min(1, (float) sMaxSide / Math.max(width, height)); in setSize() 82 mHeight = Math.round(scale * height); in setSize() 114 public void updatePlaceholderSize(int width, int height) { in updatePlaceholderSize() argument 116 if (width == 0 || height == 0) return; in updatePlaceholderSize() 117 setSize(width, height); in updatePlaceholderSize() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 337 photoLayoutParams.height = mMaximumHeaderHeight; in initialize() 366 actionBarGradientLayoutParams.height in configureGradientViewHeights() 373 titleGradientLayoutParams.height = (int) ((mLargeTextView.getHeight() in configureGradientViewHeights() 686 toolbarLayoutParams.height = delta; in setToolbarHeight() 695 return mToolbar.getLayoutParams().height; in getToolbarHeight() 702 public void setHeaderHeight(int height) { in setHeaderHeight() argument 705 toolbarLayoutParams.height = height; in setHeaderHeight() 713 return mToolbar.getLayoutParams().height; in getHeaderHeight() 798 final int height = getHeight(); in draw() local 805 height + getMaximumScrollUpwards() - getScroll()); in draw() [all …]
|
/packages/apps/Camera/jni/ |
D | feature_mos_jni.cpp | 59 int width=0, height=0; variable 209 void YUV420toYVU24(ImageType yvu24, ImageType yuv420sp, int width, int height) in YUV420toYVU24() argument 211 int frameSize = width * height; in YUV420toYVU24() 217 for (int j = 0, yp = 0; j < height; j++) in YUV420toYVU24() 240 int height) in YUV420toYVU24_NEW() argument 242 int frameSize = width * height; in YUV420toYVU24_NEW() 250 for (int j = 0; j < height; j += 2) in YUV420toYVU24_NEW() 278 JNIEnv* env, jobject thiz, jint width, jint height) in Java_com_android_camera_Mosaic_allocateMosaicMemory() argument 281 tHeight[HR] = height; in Java_com_android_camera_Mosaic_allocateMosaicMemory() 283 tHeight[LR] = int(height / H2L_FACTOR); in Java_com_android_camera_Mosaic_allocateMosaicMemory() [all …]
|
/packages/apps/LegacyCamera/jni/ |
D | feature_mos_jni.cpp | 59 int width=0, height=0; variable 209 void YUV420toYVU24(ImageType yvu24, ImageType yuv420sp, int width, int height) in YUV420toYVU24() argument 211 int frameSize = width * height; in YUV420toYVU24() 217 for (int j = 0, yp = 0; j < height; j++) in YUV420toYVU24() 240 int height) in YUV420toYVU24_NEW() argument 242 int frameSize = width * height; in YUV420toYVU24_NEW() 250 for (int j = 0; j < height; j += 2) in YUV420toYVU24_NEW() 278 JNIEnv* env, jobject thiz, jint width, jint height) in Java_com_android_camera_panorama_Mosaic_allocateMosaicMemory() argument 281 tHeight[HR] = height; in Java_com_android_camera_panorama_Mosaic_allocateMosaicMemory() 283 tHeight[LR] = int(height / H2L_FACTOR); in Java_com_android_camera_panorama_Mosaic_allocateMosaicMemory() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 346 public void setSize(int width, int height) { in setSize() argument 348 mHeight = height; in setSize() 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); in setSize() 355 mScreenHeight = height; in setSize() 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); in setSize() 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { in drawRect() argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); in drawRect() 491 private void draw(int type, int offset, int count, float x, float y, float width, float height, in draw() argument 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); in draw() 496 private void draw(int type, int offset, int count, float x, float y, float width, float height, in draw() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
D | ExportDialog.java | 111 mOriginalBounds.height()); in onCreateView() 112 mRatio = mOriginalBounds.width() / (float) mOriginalBounds.height(); in onCreateView() 114 mHeightText.setText("" + mOriginalBounds.height()); in onCreateView() 116 mExportHeight = mOriginalBounds.height(); in onCreateView() 189 float originalArea = mCompressedBounds.width() * mCompressedBounds.height(); in updateSize() 206 int height = 1; in textChanged() local 220 height = (int) (width / mRatio); in textChanged() 222 mHeightText.setText("" + height); in textChanged() 228 height = Integer.parseInt(value); in textChanged() 229 if (height > mOriginalBounds.height()) { in textChanged() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | CameraScreenNail.java | 83 public void onDraw(GLCanvas canvas, int x, int y, int width, int height) { 84 CameraScreenNail.super.draw(canvas, x, y, width, height); 107 void onDraw(GLCanvas canvas, int x, int y, int width, int height); in onDraw() argument 313 public void directDraw(GLCanvas canvas, int x, int y, int width, int height) { in directDraw() argument 318 draw.onDraw(canvas, x, y, width, height); in directDraw() 333 public void draw(GLCanvas canvas, int x, int y, int width, int height) { in draw() argument 344 directDraw(canvas, x, y, width, height); in draw() 348 mSwitchAnimManager.setReviewDrawingSize(width, height); in draw() 360 height, mAnimTexture); in draw() 369 mCaptureAnimManager.startAnimation(x, y, width, height); in draw() [all …]
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | ScrollerView.java | 368 lp.height); in onMeasure() 377 int height = getMeasuredHeight(); in onMeasure() local 378 if (child.getMeasuredHeight() < height) { in onMeasure() 385 height -= mPaddingTop; in onMeasure() 386 height -= mPaddingBottom; in onMeasure() 388 height, MeasureSpec.EXACTLY); in onMeasure() 1060 int height = getHeight(); in pageScroll() local 1063 mTempRect.top = getScrollY() + height; in pageScroll() 1067 if (mTempRect.top + height > view.getBottom()) { in pageScroll() 1068 mTempRect.top = view.getBottom() - height; in pageScroll() [all …]
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 91 return Integer.compare(size2.width() * size2.height(), in add() 92 size.width() * size.height()); in add() 95 maxPixels = sizes.get(0).width() * sizes.get(0).height(); in add() 152 return size.width() * size.height(); in area() 226 Float aspectRatio = size.width() / (float) size.height(); in parseAvailableSizes() 260 return aspectRatio.width() + "x" + aspectRatio.height(); in aspectRatioDescription() 272 BigInteger height = BigInteger.valueOf(aspectRatio.height()); in reduce() local 273 BigInteger gcd = width.gcd(height); in reduce() 274 int numerator = Math.max(width.intValue(), height.intValue()) / gcd.intValue(); in reduce() 275 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue(); in reduce() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | GalleryThumbnailView.java | 143 float height = getMeasuredHeight() / portSpaces; in onMeasure() local 144 mLargeColumnWidth = (int) (height / ASPECT_RATIO); in onMeasure() 146 height = getMeasuredHeight() / portSpaces; in onMeasure() 147 mSmallColumnWidth = (int) (height / ASPECT_RATIO); in onMeasure() 157 final int height = b - t; in onLayout() local 158 mLeftEdge.setSize(width, height); in onLayout() 159 mRightEdge.setSize(width, height); in onLayout() 438 final int height = getHeight(); in recycleOffscreenViews() local 440 final int clearBelow = height; in recycleOffscreenViews() 568 final int height = getHeight() - getPaddingTop() - getPaddingBottom(); in draw() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/ |
D | StaggeredGridView.java | 283 public int height; field in StaggeredGridView.LayoutRecord 327 String result = "LayoutRecord{c=" + column + ", id=" + id + " h=" + height + in toString() 662 mWindowParams.height = WindowManager.LayoutParams.WRAP_CONTENT; in startDragging() 1249 final int height = getHeight(); in recycleOffscreenViews() local 1251 final int clearBelow = height + mItemMargin; in recycleOffscreenViews() 1345 rec.height = child.getHeight(); in recreateLayoutRecord() 1574 final int height = b - t; 1575 mTopEdge.setSize(width, height); 1576 mBottomEdge.setSize(width, height); 2119 if (lp.height == LayoutParams.WRAP_CONTENT) { [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 91 float height = mDrawRect.height(); in draw() local 93 mDrawRect.top + (height / 2), in draw() 111 int height = mResizeDrawableDiagonal.getIntrinsicHeight(); in draw() local 118 + (mDrawRect.height() / 2) - d - height / 2; in draw() 249 dy * (mCropRect.height() / r.height())); in handleMotion() 261 float yDelta = dy * (mCropRect.height() / r.height()); in handleMotion() 309 if (dy > 0F && r.height() + 2 * dy > mImageRect.height()) { in growBy() 310 float adjustment = (mImageRect.height() - r.height()) / 2F; in growBy() 327 if (r.height() < heightCap) { in growBy() 328 r.inset(0F, -(heightCap - r.height()) / 2F); in growBy() [all …]
|