Searched refs:bitmapWidth (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/libs/hwui/ |
D | PatchCache.h | 50 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() 84 LTE_FLOAT(bitmapWidth) { in LTE_FLOAT() 103 float bitmapWidth;
|
D | PatchCache.cpp | 53 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()
|
D | Patch.cpp | 109 void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, in updateVertices() argument 133 const float fixed = bitmapWidth - stretchSize; in updateVertices() 178 bitmapWidth, quadCount); in updateVertices() 196 generateRow(vertex, y1, y2, v1, 1.0f, stretchX, right - left, bitmapWidth, quadCount); in updateVertices() 217 float stretchX, float width, float bitmapWidth, uint32_t& quadCount) { in generateRow() argument 236 float u2 = fmax(0.0f, stepX - uOffset) / bitmapWidth; in generateRow() 237 u1 += uOffset / bitmapWidth; in generateRow() 251 u1 = stepX / bitmapWidth; in generateRow() 256 if (previousStepX != bitmapWidth) { in generateRow()
|
D | Patch.h | 51 void updateVertices(const float bitmapWidth, const float bitmapHeight, 78 float v1, float v2, float stretchX, float width, float bitmapWidth,
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | RedEyeFilter.java | 161 int bitmapWidth = mWidth / 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/ |
D | MediaImageItem.java | 947 float bitmapWidth, bitmapHeight; in scaleImage() local 953 bitmapWidth = width; in scaleImage() 963 bitmapWidth = (float)Math.floor(nativeWidth / dy); in scaleImage() 965 bitmapWidth = (float)Math.ceil(nativeWidth / dy); in scaleImage() 975 (float) nativeWidth / bitmapWidth, in scaleImage() 982 bitmapWidth = width; in scaleImage() 996 final Bitmap bitmap = Bitmap.createBitmap((int)bitmapWidth, in scaleImage() 1002 new Rect(0, 0, (int)bitmapWidth, in scaleImage()
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatchImpl.cpp | 186 const int bitmapWidth = bitmap.width(); in NinePatch_Draw() local 196 int numFixedXPixelsRemaining = bitmapWidth - numStretchyXPixelsRemaining; in NinePatch_Draw() 256 i <= numXDivs && src.fLeft < bitmapWidth; in NinePatch_Draw() 260 src.fRight = bitmapWidth; in NinePatch_Draw()
|