Home
last modified time | relevance | path

Searched refs:height (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DPhoto.java28 private int height; field in Photo
38 public static Photo create(int width, int height) { in create() argument
39 return new Photo(RendererUtils.createTexture(), width, height); in create()
42 private Photo(int texture, int width, int height) { in Photo() argument
45 this.height = height; in Photo()
53 return ((photo.width == width) && (photo.height == height)); in matchDimension()
56 public void changeDimension(int width, int height) { in changeDimension() argument
58 this.height = height; in changeDimension()
67 public int height() { in height() method in Photo
68 return height; in height()
[all …]
DPhotoView.java114 int height = (photo != null) ? photo.height() : 0; in setPhoto() local
117 changed = (photoBounds.width() != width) || (photoBounds.height() != height); in setPhoto()
119 photoBounds.set(0, 0, width, height); in setPhoto()
132 RendererUtils.setRenderToFit(renderContext, photo.width(), photo.height(), in updateSurface()
150 RendererUtils.setRenderToRotate(renderContext, photo.width(), photo.height(), in rotatePhoto()
158 RendererUtils.setRenderToFlip(renderContext, photo.width(), photo.height(), in flipPhoto()
186 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
188 viewHeight = height; in onSurfaceChanged()
DBitmapUtils.java64 Bitmap source, int x, int y, int width, int height, Matrix m) { in createBitmap() argument
71 bitmap = Bitmap.createBitmap(width, height, source.getConfig()); in createBitmap()
74 RectF rect = new RectF(0, 0, width, height); in createBitmap()
77 Math.round(rect.width()), Math.round(rect.height()), source.getConfig()); in createBitmap()
90 Rect srcBounds = new Rect(x, y, x + width, y + height); in createBitmap()
91 RectF dstBounds = new RectF(0, 0, width, height); in createBitmap()
148 private Bitmap decodeBitmap(Uri uri, int width, int height) { in decodeBitmap() argument
155 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height); in decodeBitmap()
157 Math.max(bounds.width() / height, bounds.height() / width)); in decodeBitmap()
181 (float) height / bitmap.getHeight()); in decodeBitmap()
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DImageUtils.cpp28 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 …]
DPyramid.cpp28 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 …]
DImageUtils.h62 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 …]
DMosaic.cpp56 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 …]
DMosaicTypes.h72 int width, height; variable
81 height = _height;
84 image = ImageUtils::allocateImage(width, height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS);
100 return (image + (width*height)); in getV()
108 return (image + (width*height*2)); in getU()
116 ImageType U = image + (width*height); in getV()
125 ImageType U = image + (width*height*2); in getU()
DAlignFeatures.cpp35 width = height = 0; in Align()
55 int Align::initialize(int width, int height, bool _quarter_res, float _thresh_still) in initialize() argument
64 int nrvert = height/60; // and vertical buckets for harris corner detection. in initialize()
82 reg.Init(width, height, motion_model_type, 20, linear_polish, quarter_res, in initialize()
88 this->height = height; in initialize()
90 imageGray = ImageUtils::allocateImage(width, height, 1); in initialize()
100 ImageUtils::rgb2gray(imageGray, imageRGB, width, height); in addFrameRGB()
109 ImageType *m_rows = ImageUtils::imageTypeToRowPointers(imageGray_, width, height); in addFrame()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DIconDrawer.java43 int height; field in IconDrawer.IconDimension
65 protected IconDimension drawIcon(GLCanvas canvas, int width, int height, in drawIcon() argument
70 IconDimension id = getIconDimension(icon, width, height); in drawIcon()
71 icon.draw(canvas, id.x, id.y, id.width, id.height); in drawIcon()
100 int height) { in getIconDimension() argument
104 id.height = Math.round(scale * icon.getHeight()); in getIconDimension()
106 id.y = (height + 1) / 2 - id.height; in getIconDimension()
111 boolean isPanorama, int x, int y, int width, int height) { in drawMediaTypeOverlay() argument
113 drawVideoOverlay(canvas, x, y, width, height); in drawMediaTypeOverlay()
116 drawPanoramaBorder(canvas, x, y, width, height); in drawMediaTypeOverlay()
[all …]
DGridDrawer.java49 int height, int rotation, Path path, in draw() argument
54 int y = -height / 2; in draw()
56 drawWithRotation(canvas, content, x, y, width, height, rotation); in draw()
60 width = height; in draw()
61 height = temp; in draw()
63 y = -height / 2; in draw()
66 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); in draw()
67 drawLabelBackground(canvas, width, height, labelBackgroundHeight); in draw()
68 drawIcon(canvas, width, height, dataSourceType); in draw()
70 drawImportLabel(canvas, width, height); in draw()
[all …]
DHighlightDrawer.java38 int height, int rotation, Path path, in draw() argument
42 int y = -height / 2; in draw()
44 drawWithRotation(canvas, content, x, y, width, height, rotation); in draw()
48 width = height; in draw()
49 height = temp; in draw()
51 y = -height / 2; in draw()
54 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); in draw()
55 drawLabelBackground(canvas, width, height, labelBackgroundHeight); in draw()
56 drawIcon(canvas, width, height, dataSourceType); in draw()
59 drawPressedFrame(canvas, x, y, width, height); in draw()
[all …]
DManageCacheDrawer.java59 int height, int rotation, Path path, in draw() argument
64 int y = -height / 2; in draw()
66 drawWithRotation(canvas, content, x, y, width, height, rotation); in draw()
70 width = height; in draw()
71 height = temp; in draw()
73 y = -height / 2; in draw()
76 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); in draw()
77 drawLabelBackground(canvas, width, height, labelBackgroundHeight); in draw()
78 drawIcon(canvas, width, height, dataSourceType); in draw()
80 width, height); in draw()
[all …]
DBoxBlurFilter.java61 int height = bitmap.getHeight(); in apply() local
62 int data[] = new int[width * height]; in apply()
63 bitmap.getPixels(data, 0, width, 0, 0, width, height); in apply()
64 int temp[] = new int[width * height]; in apply()
65 applyOneDimension(data, temp, width, height, horizontalMode); in apply()
66 applyOneDimension(temp, data, height, width, verticalMode); in apply()
67 bitmap.setPixels(data, 0, width, 0, 0, width, height); in apply()
71 int[] in, int[] out, int width, int height, int mode) { in applyOneDimension() argument
72 for (int y = 0, read = 0; y < height; ++y, read += width) { in applyOneDimension()
83 for (int x = 0, write = y; x < width; ++x, write += height) { in applyOneDimension()
DSelectionDrawer.java36 int width, int height, int rotation, Path path, in draw() argument
39 public abstract void drawFocus(GLCanvas canvas, int width, int height); in drawFocus() argument
41 public void draw(GLCanvas canvas, Texture content, int width, int height, in draw() argument
43 draw(canvas, content, width, height, rotation, path, in draw()
49 int x, int y, int width, int height, int rotation) { in drawWithRotation() argument
55 content.draw(canvas, x, y, width, height); in drawWithRotation()
63 int x, int y, int width, int height) { in drawFrame() argument
66 height + p.top + p.bottom); in drawFrame()
DIcon.java29 public Icon(Context context, int iconId, int width, int height) { in Icon() argument
30 this(context, new ResourceTexture(context, iconId), width, height); in Icon()
33 public Icon(Context context, BasicTexture icon, int width, int height) { in Icon() argument
36 mReqHeight = height; in Icon()
51 int height = getHeight() - p.top - p.bottom; in render() local
55 int yoffset = p.top + (height - mReqHeight) / 2; in render()
DStripDrawer.java51 int width, int height, int rotation, Path path, in draw() argument
56 int y = -height / 2; in draw()
58 drawWithRotation(canvas, content, x, y, width, height, rotation); in draw()
61 drawFrame(canvas, mFramePressed, x, y, width, height); in draw()
66 public void drawFocus(GLCanvas canvas, int width, int height) { in drawFocus() argument
68 int y = -height / 2; in drawFocus()
71 width + p.left + p.right, height + p.top + p.bottom); in drawFocus()
DGLCanvasImpl.java92 public void setSize(int width, int height) { in setSize() argument
93 Utils.assertTrue(width >= 0 && height >= 0); in setSize()
94 mHeight = height; in setSize()
97 gl.glViewport(0, 0, width, height); in setSize()
100 GLU.gluOrtho2D(gl, 0, width, 0, height); in setSize()
110 mClipRect.set(0, 0, width, height); in setSize()
111 gl.glScissor(0, 0, width, height); in setSize()
166 public void drawRect(float x, float y, float width, float height, GLPaint paint) { in drawRect() argument
175 scale(width, height, 1); in drawRect()
202 public void fillRect(float x, float y, float width, float height, int color) { in fillRect() argument
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
DImageUtils.java74 public static Bitmap scaleImage(String filename, int width, int height, int match) in scaleImage() argument
86 if (nativeWidth > width || nativeHeight > height) { in scaleImage()
88 float dy = ((float) nativeHeight) / ((float) height); in scaleImage()
96 scaledHeight = height; in scaleImage()
182 final int height = opt.outHeight; 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/Mms/src/com/android/mms/model/
DRegionModel.java31 int width, int height) { in RegionModel() argument
32 this(regionId, DEFAULT_FIT, left, top, width, height); in RegionModel()
36 int width, int height) { in RegionModel() argument
37 this(regionId, fit, left, top, width, height, null); in RegionModel()
41 int width, int height, String bgColor) { in RegionModel() argument
47 mHeight = height; in RegionModel()
128 public void setHeight(int height) { in setHeight() argument
129 mHeight = height; in setHeight()
/packages/apps/Phone/src/com/android/phone/
DBitmapUtils.java94 int height = source.getHeight(); in gaussianBlur() local
95 if (DBG) log("gaussianBlur(): input: " + width + " x " + height); in gaussianBlur()
98 int numPixels = width * height; in gaussianBlur()
103 source.getPixels(in, 0, width, 0, 0, width, height); in gaussianBlur()
112 gaussianBlurFilter(in, tmp, width, height); in gaussianBlur()
113 gaussianBlurFilter(tmp, in, width, height); in gaussianBlur()
116 Bitmap filtered = Bitmap.createBitmap(in, width, height, Bitmap.Config.ARGB_8888); in gaussianBlur()
121 private static void gaussianBlurFilter(int[] in, int[] out, int width, int height) { in gaussianBlurFilter() argument
128 for (int y = 0; y < height; ++y) { in gaussianBlurFilter()
148 outPos += height; in gaussianBlurFilter()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java123 int height = mOriginal.getHeight(); in getScaledBitmap() local
126 if (mForceCropToSquare && width != height) { in getScaledBitmap()
128 if (height > width) { in getScaledBitmap()
129 cropTop = (height - width) / 2; in getScaledBitmap()
130 height = width; in getScaledBitmap()
132 cropLeft = (width - height) / 2; in getScaledBitmap()
133 width = height; in getScaledBitmap()
136 float scaleFactor = ((float) maxDim) / Math.max(width, height); in getScaledBitmap()
142 mOriginal, cropLeft, cropTop, width, height, matrix, false); in getScaledBitmap()
/packages/apps/Camera/jni/
Dfeature_mos_jni.cpp59 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/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DBalloonHint.java141 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
239 int heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, in setBalloonSize()
286 int width, int height) { in startTimer() argument
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DAdaptableSlideViewInterface.java27 void setTextRegion(int left, int top, int width, int height); in setTextRegion() argument
31 void setImageRegion(int left, int top, int width, int height); in setImageRegion() argument
35 void setVideoRegion(int left, int top, int width, int height); in setVideoRegion() argument
43 void onSizeChanged(int width, int height); in onSizeChanged() argument

12345678910>>...12