/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() 37 for (int ij = 0; ij < width; ij++) { 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() 82 for (int ij = 0; ij < width; ij++) { 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 | Blend.cpp | 46 this->width = frame_width; in initialize() 64 …m_pFrameYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned s… in initialize() 65 …m_pFrameUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigne… in initialize() 66 …m_pFrameVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigne… in initialize() 141 double halfwidth = width / 2.0; in runBlend() 164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect); in runBlend() 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 172 FrameToMosaic(mb->trs, mb->width-1.0, 0.0, x3, y3); 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 …]
|
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() 42 curr->width = width; in allocatePyramidPacked() 45 curr->pitch = (real) (width + border2); in allocatePyramidPacked() 53 width >>= 1; in allocatePyramidPacked() 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) in allocateImage() argument 67 sizeof(short) * (width + border2) * (height + border2), 1); in allocateImage() 72 img->width = width; in allocateImage() 75 img->pitch = (real) (width + border2); in allocateImage() 96 unsigned int PyramidShort::calcStorage(real width, real height, real border2, int levels, int *li… in calcStorage() argument [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() 37 for (int ij = 0; ij < width; ij++) { 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() 82 for (int ij = 0; ij < width; ij++) { 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() 42 curr->width = width; in allocatePyramidPacked() 45 curr->pitch = (real) (width + border2); in allocatePyramidPacked() 53 width >>= 1; in allocatePyramidPacked() 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) in allocateImage() argument 67 sizeof(short) * (width + border2) * (height + border2), 1); in allocateImage() 72 img->width = width; in allocateImage() 75 img->pitch = (real) (width + border2); in allocateImage() 96 unsigned int PyramidShort::calcStorage(real width, real height, real border2, int levels, int *li… in calcStorage() argument [all …]
|
D | Blend.cpp | 46 this->width = frame_width; in initialize() 64 …m_pFrameYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned s… in initialize() 65 …m_pFrameUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigne… in initialize() 66 …m_pFrameVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigne… in initialize() 141 double halfwidth = width / 2.0; in runBlend() 164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect); in runBlend() 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 172 FrameToMosaic(mb->trs, mb->width-1.0, 0.0, x3, y3); 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/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() 37 for (int ij = 0; ij < width; ij++) { 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() 82 for (int ij = 0; ij < width; ij++) { 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 | Blend.cpp | 46 this->width = frame_width; in initialize() 64 …m_pFrameYPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevs, (unsigned short) width, (unsigned s… in initialize() 65 …m_pFrameUPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigne… in initialize() 66 …m_pFrameVPyr = PyramidShort::allocatePyramidPacked(m_wb.nlevsC, (unsigned short) (width), (unsigne… in initialize() 141 double halfwidth = width / 2.0; in runBlend() 164 FrameToMosaicRect(mb->width, mb->height, mb->trs, mb->brect); in runBlend() 171 FrameToMosaic(mb->trs, mb->width-1.0, mb->height-1.0, x2, y2); in runBlend() 172 FrameToMosaic(mb->trs, mb->width-1.0, 0.0, x3, y3); 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 …]
|
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() 42 curr->width = width; in allocatePyramidPacked() 45 curr->pitch = (real) (width + border2); in allocatePyramidPacked() 53 width >>= 1; in allocatePyramidPacked() 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) in allocateImage() argument 67 sizeof(short) * (width + border2) * (height + border2), 1); in allocateImage() 72 img->width = width; in allocateImage() 75 img->pitch = (real) (width + border2); in allocateImage() 96 unsigned int PyramidShort::calcStorage(real width, real height, real border2, int levels, int *li… in calcStorage() argument [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() 220 int uvp = frameSize + (j >> 1) * width; in YUV420toYVU24() 221 for (int i = 0; i < width; i++, yp++) in YUV420toYVU24() 239 void YUV420toYVU24_NEW(ImageType yvu24, ImageType yuv420sp, int width, in YUV420toYVU24_NEW() argument 242 int frameSize = width * height; in YUV420toYVU24_NEW() 253 int uvp = frameSize + (j >> 1) * width; in YUV420toYVU24_NEW() 254 ovp = yvu24 + frameSize + j * width; in YUV420toYVU24_NEW() 259 for (int i = 0; i < width; i += 2) in YUV420toYVU24_NEW() [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() 220 int uvp = frameSize + (j >> 1) * width; in YUV420toYVU24() 221 for (int i = 0; i < width; i++, yp++) in YUV420toYVU24() 239 void YUV420toYVU24_NEW(ImageType yvu24, ImageType yuv420sp, int width, in YUV420toYVU24_NEW() argument 242 int frameSize = width * height; in YUV420toYVU24_NEW() 253 int uvp = frameSize + (j >> 1) * width; in YUV420toYVU24_NEW() 254 ovp = yvu24 + frameSize + j * width; in YUV420toYVU24_NEW() 259 for (int i = 0; i < width; i += 2) in YUV420toYVU24_NEW() [all …]
|
/packages/apps/Camera2/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() 220 int uvp = frameSize + (j >> 1) * width; in YUV420toYVU24() 221 for (int i = 0; i < width; i++, yp++) in YUV420toYVU24() 239 void YUV420toYVU24_NEW(ImageType yvu24, ImageType yuv420sp, int width, in YUV420toYVU24_NEW() argument 242 int frameSize = width * height; in YUV420toYVU24_NEW() 253 int uvp = frameSize + (j >> 1) * width; in YUV420toYVU24_NEW() 254 ovp = yvu24 + frameSize + j * width; in YUV420toYVU24_NEW() 259 for (int i = 0; i < width; i += 2) in YUV420toYVU24_NEW() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
D | ImageUtils.java | 74 public static Bitmap scaleImage(String filename, int width, int height, int match) in scaleImage() argument 86 if (nativeWidth > width || nativeHeight > height) { in scaleImage() 87 float dx = ((float) nativeWidth) / ((float) width); in scaleImage() 95 scaledWidth = width; in scaleImage() 181 final int width = opt.outWidth; in rotateAndScaleImage() local 183 final int pixelCount = width * height; in rotateAndScaleImage() 246 String title, String subTitle, int width, int height) { in buildOverlayBitmap() argument 249 overlayBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); in buildOverlayBitmap() 260 Color.WHITE, title, subTitle, width, height); in buildOverlayBitmap() 266 Color.WHITE, title, subTitle, width, height); in buildOverlayBitmap() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | DividedImageCanvas.java | 216 outDim.width = w; in getDesiredDimensions() 247 final int width = mWidth; 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/glrenderer/ |
D | GLES11Canvas.java | 128 public void setSize(int width, int height) { in setSize() argument 129 Assert.assertTrue(width >= 0 && height >= 0); in setSize() 132 mScreenWidth = width; in setSize() 138 gl.glViewport(0, 0, width, height); in setSize() 141 GLU.gluOrtho2D(gl, 0, width, 0, height); 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() 266 private void textureRect(float x, float y, float width, float height) { in textureRect() argument [all …]
|
D | GLES20Canvas.java | 346 public void setSize(int width, int height) { in setSize() argument 347 mWidth = width; in setSize() 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); in setSize() 354 mScreenWidth = width; 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 499 draw(mDrawParameters, type, count, x, y, width, height); in draw() [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() 61 (float) width / content.getWidth(), in drawContent() 69 protected void drawVideoOverlay(GLCanvas canvas, int width, int height) { in drawVideoOverlay() argument 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 83 int iconSize = Math.min(width, height) / 6; in drawPanoramaIcon() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
D | ExportDialog.java | 110 mOriginalBounds = preset.finalGeometryRect(mOriginalBounds.width(), in onCreateView() 112 mRatio = mOriginalBounds.width() / (float) mOriginalBounds.height(); in onCreateView() 113 mWidthText.setText("" + mOriginalBounds.width()); in onCreateView() 115 mExportWidth = mOriginalBounds.width(); in onCreateView() 161 float scaleFactor = mExportWidth / (float) mOriginalBounds.width(); in onClick() 189 float originalArea = mCompressedBounds.width() * mCompressedBounds.height(); in updateSize() 205 int width = 1; in textChanged() local 211 width = Integer.parseInt(value); in textChanged() 212 if (width > mOriginalBounds.width()) { in textChanged() 213 width = mOriginalBounds.width(); in textChanged() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | VideoUI.java | 121 int width = right - left; 124 int w = width; 128 h = width; 130 if (mPreviewWidth != width || mPreviewHeight != height) { 131 mPreviewWidth = width; 133 onScreenSizeChanged(width, height, w, h); 245 public void setPreviewSize(int width, int height) { in setPreviewSize() argument 246 if (width == 0 || height == 0) { in setPreviewSize() 250 if (width > height) { in setPreviewSize() 251 mAspectRatio = (float) width / height; in setPreviewSize() [all …]
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | BalloonHint.java | 141 boolean textBold, int textColor, int width, int height) { in setBalloonConfig() argument 143 setBalloonSize(width, height); in setBalloonConfig() 157 public void setBalloonConfig(Drawable icon, int width, int height) { in setBalloonConfig() argument 159 setBalloonSize(width, height); in setBalloonConfig() 199 int width, int height) { in delayedUpdate() argument 207 + mParentLocationInWindow[1], width, height); in delayedUpdate() 210 locationInParent, width, height); in delayedUpdate() 236 private void setBalloonSize(int width, int height) { in setBalloonSize() argument 237 int widthMeasureSpec = MeasureSpec.makeMeasureSpec(width, in setBalloonSize() 286 int width, int height) { in startTimer() argument [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 346 public void setSize(int width, int height) { in setSize() argument 347 mWidth = width; in setSize() 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); in setSize() 354 mScreenWidth = width; 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 499 draw(mDrawParameters, type, count, x, y, width, height); in draw() [all …]
|
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/ |
D | FallRS.java | 83 public FallRS(int width, int height) { in FallRS() argument 84 super(width, height); in FallRS() 102 … addDrop(x + (mWorldState.rotate == 0 ? (mWorldState.width * mWorldState.xOffset) : 0), y); in onCommand() 111 final int width = worldState.width; in start() local 112 final int x = width / 4 + (int)(Math.random() * (width / 2)); in start() 114 addDrop(x + (mWorldState.rotate == 0 ? (width * worldState.xOffset) : 0), y); in start() 118 public void resize(int width, int height) { in resize() argument 119 super.resize(width, height); in resize() 121 mWorldState.width = width; in resize() 123 mWorldState.rotate = width > height ? 1 : 0; in resize() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 90 float width = mDrawRect.width(); in draw() local 92 path.addCircle(mDrawRect.left + (width / 2), in draw() 94 width / 2, in draw() 110 int width = mResizeDrawableDiagonal.getIntrinsicWidth(); in draw() local 114 * (mDrawRect.width() / 2D)); in draw() 116 + (mDrawRect.width() / 2) + d - width / 2; in draw() 189 int radius = mDrawRect.width() / 2; in getHit() 248 moveBy(dx * (mCropRect.width() / r.width()), in handleMotion() 260 float xDelta = dx * (mCropRect.width() / r.width()); in handleMotion() 302 if (dx > 0F && r.width() + 2 * dx > mImageRect.width()) { in growBy() [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() 359 mSwitchAnimManager.drawDarkPreview(canvas, x, y, width, in draw() 369 mCaptureAnimManager.startAnimation(x, y, width, height); in draw() [all …]
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | HorizontalScrollView.java | 308 int width = getMeasuredWidth(); in onMeasure() local 309 if (child.getMeasuredWidth() < width) { in onMeasure() 314 width -= mPaddingLeft; in onMeasure() 315 width -= mPaddingRight; in onMeasure() 316 int childWidthMeasureSpec = MeasureSpec.makeMeasureSpec(width, MeasureSpec.EXACTLY); in onMeasure() 935 int width = getWidth(); in pageScroll() local 938 mTempRect.left = getScrollX() + width; in pageScroll() 942 if (mTempRect.left + width > view.getRight()) { in pageScroll() 943 mTempRect.left = view.getRight() - width; in pageScroll() 947 mTempRect.left = getScrollX() - width; in pageScroll() [all …]
|