Home
last modified time | relevance | path

Searched refs:bitmapHeight (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/
DPatchCache.h50 Patch* get(const float bitmapWidth, const float bitmapHeight,
69 PatchDescription(): bitmapWidth(0), bitmapHeight(0), pixelWidth(0), pixelHeight(0), in PatchDescription()
73 PatchDescription(const float bitmapWidth, const float bitmapHeight, in PatchDescription()
77 bitmapWidth(bitmapWidth), bitmapHeight(bitmapHeight), in PatchDescription()
85 LTE_FLOAT(bitmapHeight) { in LTE_FLOAT()
104 float bitmapHeight; member
DPatchCache.cpp53 Patch* PatchCache::get(const float bitmapWidth, const float bitmapHeight, in get() argument
75 const PatchDescription description(bitmapWidth, bitmapHeight, in get()
87 width, height, pixelWidth, pixelHeight, bitmapWidth, bitmapHeight); in get()
92 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get()
102 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get()
DPatch.cpp109 void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, in updateVertices() argument
144 const float fixed = bitmapHeight - stretchSize; in updateVertices()
169 float v2 = fmax(0.0f, stepY - vOffset) / bitmapHeight; in updateVertices()
170 v1 += vOffset / bitmapHeight; in updateVertices()
185 v1 = stepY / bitmapHeight; in updateVertices()
190 if (previousStepY != bitmapHeight) { in updateVertices()
DPatch.h51 void updateVertices(const float bitmapWidth, const float bitmapHeight,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DRedEyeFilter.java162 int bitmapHeight = mHeight / 2; in createRedEyeFrame() local
164 … Bitmap redEyeBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createRedEyeFrame()
167 mRadius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(bitmapWidth, bitmapHeight)); in createRedEyeFrame()
170 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight, in createRedEyeFrame()
174 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight, in createRedEyeFrame()
/frameworks/base/media/java/android/media/videoeditor/
DMediaImageItem.java947 float bitmapWidth, bitmapHeight; in scaleImage() local
956 bitmapHeight = (float)Math.ceil(nativeHeight / dx); in scaleImage()
958 bitmapHeight = (float)Math.floor(nativeHeight / dx); in scaleImage()
968 bitmapHeight = height; in scaleImage()
976 (float) nativeHeight / bitmapHeight)); in scaleImage()
983 bitmapHeight = height; in scaleImage()
997 (int)bitmapHeight, in scaleImage()
1003 (int)bitmapHeight), sResizePaint); in scaleImage()
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp187 const int bitmapHeight = bitmap.height(); in NinePatch_Draw() local
201 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining; in NinePatch_Draw()
230 j <= numYDivs && src.fTop < bitmapHeight; in NinePatch_Draw()
235 src.fBottom = bitmapHeight; in NinePatch_Draw()
/frameworks/base/core/java/android/text/
DTextLine.java241 float bitmapHeight = bm.getHeight(); in draw() local
242 float scale = -bmAscent / bitmapHeight; in draw()