/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 | ImageUtils.h | 62 static void rgb2yvu(ImageType out, ImageType in, int width, int height); 64 static void rgba2yvu(ImageType out, ImageType in, int width, int height); 76 static void yvu2rgb(ImageType out, ImageType in, int width, int height); 77 static void yvu2bgr(ImageType out, ImageType in, int width, int height); 91 static ImageType rgb2gray(ImageType in, int width, int height); 92 static ImageType rgb2gray(ImageType out, ImageType in, int width, int height); 97 static ImageType readBinaryPPM(const char *filename, int &width, int &height); 102 …static void writeBinaryPPM(ImageType image, const char *filename, int width, int height, int numCh… 107 static ImageType allocateImage(int width, int height, int numChannels, short int border = 0); 114 static ImageType *imageTypeToRowPointers(ImageType out, int width, int height); [all …]
|
D | Mosaic.cpp | 56 int Mosaic::initialize(int blendingType, int stripType, int width, int height, int nframes, bool qu… in initialize() argument 69 this->height = height; in initialize() 82 … frames[i] = new MosaicFrame(this->width,this->height,false); // Do no allocate memory for YUV data in initialize() 95 LOGV("Initialize %d %d", width, height); in initialize() 96 LOGV("Frame width %d,%d", width, height); in initialize() 100 aligner->initialize(width, height,quarter_res,thresh_still); in initialize() 107 blender->initialize(blendingType, stripType, width, height); in initialize() 123 …imageYVU = ImageUtils::allocateImage(this->width, this->height, ImageUtils::IMAGE_TYPE_NUM_CHANNEL… in addFrameRGB() 124 ImageUtils::rgb2yvu(imageYVU, imageRGB, width, height); in addFrameRGB() 132 frames[frames_size] = new MosaicFrame(this->width,this->height,false); in addFrame() [all …]
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | Size.java | 38 private final int height; field in Size 42 this.height = point.y; in Size() 48 this.height = size.getHeight(); in Size() 51 public Size(int width, int height) { in Size() argument 53 this.height = height; in Size() 57 return new Size(rectangle.width(), rectangle.height()); in of() 67 this.height = other.height; in Size() 72 this.height = size.height(); in Size() 80 return height; in getHeight() 87 public int height() { in height() method in Size [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 | TextureViewHelper.java | 106 int height = bottom - top; in onLayoutChange() local 108 if (mWidth != width || mHeight != height || mOrientation != rotation) { in onLayoutChange() 110 mHeight = height; in onLayoutChange() 205 float previewHeight = previewRect.height(); 279 RectF rotatedRect = new RectF(normalRect.width() / 2 - normalRect.height() / 2, 280 normalRect.height() / 2 - normalRect.width() / 2, 281 normalRect.width() / 2 + normalRect.height() / 2, 282 normalRect.height() / 2 + normalRect.width() / 2); 419 int height = (int) textureArea.height() / downsample; 420 Bitmap preview = mPreview.getBitmap(width, height); [all …]
|
D | MediaSaverImpl.java | 70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument 71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage() 77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l, in addImage() argument 85 width, height, orientation, mimeType, exif, mContentResolver, l); in addImage() 103 public void addImage(final byte[] data, String title, Location loc, int width, int height, in addImage() argument 105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l, in addImage() 142 private int width, height; field in MediaSaverImpl.ImageSaveTask 150 int width, int height, int orientation, String mimeType, in ImageSaveTask() argument 158 this.height = height; in ImageSaveTask() 173 if (width == 0 || height == 0) { in doInBackground() [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 | 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 …]
|
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 | AlbumSlotRenderer.java | 104 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height) { in renderSlot() argument 120 drawContent(canvas, content, width, height, entry.rotation); in renderSlot() 127 drawVideoOverlay(canvas, width, height); in renderSlot() 131 drawPanoramaIcon(canvas, width, height); in renderSlot() 134 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height); in renderSlot() 140 AlbumSlidingWindow.AlbumEntry entry, int width, int height) { in renderOverlay() argument 144 drawPressedUpFrame(canvas, width, height); in renderOverlay() 151 drawPressedFrame(canvas, width, height); in renderOverlay() 154 drawSelectedFrame(canvas, width, height); in renderOverlay() 156 drawSelectedFrame(canvas, width, height); in renderOverlay() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BitmapPool.java | 127 private int getPoolKey(final int width, final int height) { in getPoolKey() argument 128 if (width > MAX_SUPPORTED_IMAGE_DIMENSION || height > MAX_SUPPORTED_IMAGE_DIMENSION) { in getPoolKey() 131 return (width << 16) | height; in getPoolKey() 139 private Bitmap findPoolBitmap(final int width, final int height) { in findPoolBitmap() argument 140 final int poolKey = getPoolKey(width, height); in findPoolBitmap() 168 final int height) { in assignPoolBitmap() argument 172 optionsTmp.inBitmap = findPoolBitmap(width, height); in assignPoolBitmap() 188 final int width, final int height) { in decodeSampledBitmapFromResource() argument 192 Assert.isTrue(height > 0); in decodeSampledBitmapFromResource() 193 assignPoolBitmap(optionsTmp, width, height); in decodeSampledBitmapFromResource() [all …]
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | VideoCallFragment.java | 148 int width, int height) { in VideoCallSurface() argument 150 " width=" + width + " height=" + height); in VideoCallSurface() 153 mHeight = height; in VideoCallSurface() 207 int height) { in onSurfaceTextureAvailable() argument 217 + " height=" + height + " mSavedSurfaceTexture=" + mSavedSurfaceTexture); in onSurfaceTextureAvailable() 221 surfaceCreated = createSurface(width, height); in onSurfaceTextureAvailable() 252 int height) { in onSurfaceTextureSizeChanged() argument 370 public void setSurfaceDimensions(int width, int height) { in setSurfaceDimensions() argument 371 Log.d(this, "setSurfaceDimensions, width=" + width + " height=" + height); in setSurfaceDimensions() 373 mHeight = height; in setSurfaceDimensions() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | PoolableImageCache.java | 137 final int width, final int height) throws IOException { in decodeSampledBitmapFromInputStream() argument 138 if (width <= 0 || height <= 0) { in decodeSampledBitmapFromInputStream() 145 assignPoolBitmap(optionsTmp, width, height); in decodeSampledBitmapFromInputStream() 178 final int height) throws OutOfMemoryError, IOException { in decodeByteArray() argument 179 if (width <= 0 || height <= 0) { in decodeByteArray() 187 assignPoolBitmap(optionsTmp, width, height); in decodeByteArray() 257 private Bitmap getReusableBitmapFromPool(final int width, final int height) { in getReusableBitmapFromPool() argument 259 final int poolKey = getPoolKey(width, height); in getReusableBitmapFromPool() 344 public Bitmap createOrReuseBitmap(final int width, final int height) { in createOrReuseBitmap() argument 345 return createOrReuseBitmap(width, height, Color.TRANSPARENT); in createOrReuseBitmap() [all …]
|
D | AvatarGroupRequestDescriptor.java | 74 final float height = desiredHeight; in generateDestRectArray() local 76 final float halfHeight = height / 2F; in generateDestRectArray() 100 destArray[1] = new RectF(width - diameter, height - diameter, width, height); in generateDestRectArray() 132 final float radius = height / 4F; in generateDestRectArray() 133 final float imageTwoCenterY = height - radius; in generateDestRectArray() 140 destArray[1] = new RectF(0, halfHeight, halfWidth, height); in generateDestRectArray() 141 destArray[2] = new RectF(halfWidth, halfHeight, width, height); in generateDestRectArray() 153 destArray[2] = new RectF(0, halfHeight, halfWidth, height); in generateDestRectArray() 154 destArray[3] = new RectF(halfWidth, halfHeight, width, height); in generateDestRectArray()
|
/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/Launcher3/src/com/android/launcher3/util/ |
D | IconNormalizer.java | 80 int height = d.getIntrinsicHeight(); in getScale() local 81 if (width <= 0 || height <= 0) { in getScale() 83 height = height <= 0 || height > mMaxSize ? mMaxSize : height; in getScale() 84 } else if (width > mMaxSize || height > mMaxSize) { in getScale() 85 int max = Math.max(width, height); in getScale() 87 height = mMaxSize * height / max; in getScale() 91 d.setBounds(0, 0, width, height); in getScale() 115 for (int y = 0; y < height; y++) { in getScale() 153 for (int y = 0; y < height; y++) { in getScale() 171 float areaScale = area / (width * height); in getScale()
|
/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/Gallery2/src/com/android/photos/data/ |
D | GalleryBitmapPool.java | 71 private SparseArrayBitmapPool getPoolForDimensions(int width, int height) { in getPoolForDimensions() argument 72 int index = getPoolIndexForDimensions(width, height); in getPoolForDimensions() 80 private int getPoolIndexForDimensions(int width, int height) { in getPoolIndexForDimensions() argument 81 if (width <= 0 || height <= 0) { in getPoolIndexForDimensions() 84 if (width == height) { in getPoolIndexForDimensions() 88 if (width > height) { in getPoolIndexForDimensions() 89 min = height; in getPoolIndexForDimensions() 93 max = height; in getPoolIndexForDimensions() 127 public Bitmap get(int width, int height) { in get() argument 128 SparseArrayBitmapPool pool = getPoolForDimensions(width, height); in get() [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 …]
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 358 photoLayoutParams.height = mMaximumHeaderHeight; in initialize() 389 actionBarGradientLayoutParams.height = mActionBarSize; in configureGradientViewHeights() 396 titleGradientLayoutParams.height = (int) ((mTitleAndPhoneticNameView.getHeight() in configureGradientViewHeights() 753 toolbarLayoutParams.height = delta; in setToolbarHeight() 762 return mToolbar.getLayoutParams().height; in getToolbarHeight() 769 public void setHeaderHeight(int height) { in setHeaderHeight() argument 772 toolbarLayoutParams.height = height; in setHeaderHeight() 780 return mToolbar.getLayoutParams().height; in getHeaderHeight() 871 final int height = getHeight(); in draw() local 881 height + getMaximumScrollUpwards() - getScroll()); in draw() [all …]
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
D | ResolutionUtil.java | 109 return Integer.compare(size2.width() * size2.height(), in add() 110 size.width() * size.height()); in add() 113 maxPixels = sizes.get(0).width() * sizes.get(0).height(); in add() 170 return size.width() * size.height(); in area() 278 return aspectRatio.width() + "x" + aspectRatio.height(); in aspectRatioDescription() 290 BigInteger height = BigInteger.valueOf(aspectRatio.height()); in reduce() local 291 BigInteger gcd = width.gcd(height); in reduce() 292 int numerator = Math.max(width.intValue(), height.intValue()) / gcd.intValue(); in reduce() 293 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue(); in reduce() 318 float fuzzy = fuzzAspectRatio(size.width() / (float) size.height()); in getApproximateSize() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MediaPickerMessagePartData.java | 26 final Uri contentUri, final int width, final int height) { in MediaPickerMessagePartData() argument 27 this(startRect, null /* messageText */, contentType, contentUri, width, height); in MediaPickerMessagePartData() 31 final String contentType, final Uri contentUri, final int width, final int height) { in MediaPickerMessagePartData() argument 32 this(startRect, messageText, contentType, contentUri, width, height, in MediaPickerMessagePartData() 37 final Uri contentUri, final int width, final int height, in MediaPickerMessagePartData() argument 39 this(startRect, null /* messageText */, contentType, contentUri, width, height, in MediaPickerMessagePartData() 44 final String contentType, final Uri contentUri, final int width, final int height, in MediaPickerMessagePartData() argument 46 super(messageText, contentType, contentUri, width, height, onlySingleAttachment); in MediaPickerMessagePartData()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvViewUiManager.java | 451 (targetLayoutParams.height != LayoutParams.MATCH_PARENT) in setBackgroundColor() 452 && targetLayoutParams.height != decorViewHeight); in setBackgroundColor() 474 Log.d(TAG, "setTvViewPosition: w=" + layoutParams.width + " h=" + layoutParams.height in setTvViewPosition() 523 + layoutParams.height); in setTvViewPosition() 526 mTvView.setFixedSurfaceSize(layoutParams.width, layoutParams.height); in setTvViewPosition() 546 int height; in updatePipView() local 555 height = tvViewFrame.height; in updatePipView() 560 width = (int) (height * videoDisplayAspectRatio); in updatePipView() 572 int tvViewHeight = tvViewFrame.height; in updatePipView() 584 height = (int) (mResources.getDimensionPixelSize(R.dimen.pipview_small_size_height) in updatePipView() [all …]
|