Searched refs:bitmapWidth (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/libs/hwui/
H A DPatchCache.h49 Patch* get(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
68 PatchDescription(): bitmapWidth(0), bitmapHeight(0), pixelWidth(0), pixelHeight(0),
72 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, argument
76 bitmapWidth(bitmapWidth), bitmapHeight(bitmapHeight),
103 uint32_t bitmapWidth; member in struct:android::uirenderer::PatchCache::PatchDescription
H A DPatchCache.cpp47 int deltaInt = lhs.bitmapWidth - rhs.bitmapWidth;
82 Patch* PatchCache::get(const uint32_t bitmapWidth, const uint32_t bitmapHeight, argument
104 const PatchDescription description(bitmapWidth, bitmapHeight,
116 width, height, pixelWidth, pixelHeight, bitmapWidth, bitmapHeight);
121 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight);
131 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight);
H A DPatch.h50 void updateVertices(const float bitmapWidth, const float bitmapHeight,
77 float width, float bitmapWidth, uint32_t& quadCount);
H A DPatch.cpp108 void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, argument
131 const float fixed = bitmapWidth - stretchSize;
178 bitmapWidth, quadCount);
197 bitmapWidth, quadCount);
218 float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) {
237 float u2 = fmax(0.0f, stepX - uOffset) / bitmapWidth;
238 u1 += uOffset / bitmapWidth;
252 u1 = stepX / bitmapWidth;
257 if (previousStepX != bitmapWidth) {
217 generateRow(TextureVertex*& vertex, float y1, float y2, float v1, float v2, float stretchX, float rescaleX, float width, float bitmapWidth, uint32_t& quadCount) argument
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DRedEyeFilter.java159 int bitmapWidth = mWidth / 2;
162 Bitmap redEyeBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
165 mRadius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(bitmapWidth, bitmapHeight));
168 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight,
172 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight,
/frameworks/base/media/java/android/media/videoeditor/
H A DMediaImageItem.java947 float bitmapWidth, bitmapHeight;
953 bitmapWidth = width;
963 bitmapWidth = (float)Math.floor(nativeWidth / dy);
965 bitmapWidth = (float)Math.ceil(nativeWidth / dy);
975 (float) nativeWidth / bitmapWidth,
982 bitmapWidth = width;
996 final Bitmap bitmap = Bitmap.createBitmap((int)bitmapWidth,
1002 new Rect(0, 0, (int)bitmapWidth,
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp186 const int bitmapWidth = bitmap.width(); local
196 int numFixedXPixelsRemaining = bitmapWidth - numStretchyXPixelsRemaining;
256 i <= numXDivs && src.fLeft < bitmapWidth;
260 src.fRight = bitmapWidth;
/frameworks/base/libs/hwui/font/
H A DFont.cpp205 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) {
218 for (uint32_t cacheY = startY, bitmapY = dstY * bitmapWidth; cacheY < endY;
219 cacheY += cacheWidth, bitmapY += bitmapWidth) {
204 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument

Completed in 141 milliseconds