Searched refs:width (Results 126 - 150 of 1312) sorted by relevance

1234567891011>>

/frameworks/base/core/jni/android/graphics/
H A DPicture.cpp27 mWidth = src->width();
41 Canvas* Picture::beginRecording(int width, int height) { argument
44 mWidth = width;
46 SkCanvas* canvas = mRecorder->beginRecording(width, height, NULL, 0);
58 int Picture::width() const { function in class:android::Picture
76 newPict->mWidth = cullRect.width();
H A DBitmap.cpp400 typedef void (*FromColorProc)(void* dst, const SkColor src[], int width,
403 static void FromColor_D32(void* dst, const SkColor src[], int width, argument
407 for (int i = 0; i < width; i++) {
412 static void FromColor_D32_Raw(void* dst, const SkColor src[], int width, argument
419 memcpy(dst, src, width * sizeof(SkColor));
425 for (int i = 0; i < width; i++) {
432 static void FromColor_D565(void* dst, const SkColor src[], int width, argument
437 for (int stop = x + width; x < stop; x++) {
444 static void FromColor_D4444(void* dst, const SkColor src[], int width, argument
449 for (int stop = x + width;
456 FromColor_D4444_Raw(void* dst, const SkColor src[], int width, int x, int y) argument
472 FromColor_DA8(void* dst, const SkColor src[], int width, int x, int y) argument
498 SetPixels(JNIEnv* env, jintArray srcColors, int srcOffset, int srcStride, int x, int y, int width, int height, const SkBitmap& dstBitmap) argument
532 ToColor_S32_Alpha(SkColor dst[], const void* src, int width, SkColorTable*) argument
541 ToColor_S32_Raw(SkColor dst[], const void* src, int width, SkColorTable*) argument
552 ToColor_S32_Opaque(SkColor dst[], const void* src, int width, SkColorTable*) argument
563 ToColor_S4444_Alpha(SkColor dst[], const void* src, int width, SkColorTable*) argument
572 ToColor_S4444_Raw(SkColor dst[], const void* src, int width, SkColorTable*) argument
583 ToColor_S4444_Opaque(SkColor dst[], const void* src, int width, SkColorTable*) argument
594 ToColor_S565(SkColor dst[], const void* src, int width, SkColorTable*) argument
605 ToColor_SI8_Alpha(SkColor dst[], const void* src, int width, SkColorTable* ctable) argument
615 ToColor_SI8_Raw(SkColor dst[], const void* src, int width, SkColorTable* ctable) argument
627 ToColor_SI8_Opaque(SkColor dst[], const void* src, int width, SkColorTable* ctable) argument
639 ToColor_SA8(SkColor dst[], const void* src, int width, SkColorTable*) argument
706 Bitmap_creator(JNIEnv* env, jobject, jintArray jColors, jint offset, jint stride, jint width, jint height, jint configHandle, jboolean isMutable) argument
800 Bitmap_reconfigure(JNIEnv* env, jobject clazz, jlong bitmapHandle, jint width, jint height, jint configHandle, jint allocSize, jboolean requestPremul) argument
959 const int width = p->readInt32(); local
1210 Bitmap_getPixels(JNIEnv* env, jobject, jlong bitmapHandle, jintArray pixelArray, jint offset, jint stride, jint x, jint y, jint width, jint height) argument
1258 Bitmap_setPixels(JNIEnv* env, jobject, jlong bitmapHandle, jintArray pixelArray, jint offset, jint stride, jint x, jint y, jint width, jint height) argument
[all...]
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp97 const float width = float(mTexture->width()); local
114 x / width, (x + pixelRef->info().width()) / width,
119 texture->wrap(mTexture->id(), pixelRef->info().width(),
H A DTexture.h66 * Sets the width, height, and format of the texture along with allocating
67 * the texture ID. Does nothing if the width, height, and format are already
72 void resize(uint32_t width, uint32_t height, GLint format) { argument
73 upload(format, width, height, format, GL_UNSIGNED_BYTE, nullptr);
78 * also setting the appropriate width, height, and format. It is not necessary
88 void upload(GLint internalformat, uint32_t width, uint32_t height,
94 void wrap(GLuint id, uint32_t width, uint32_t height, GLint format);
100 uint32_t width() const { function in class:android::uirenderer::Texture
151 bool updateSize(uint32_t width, uint32_t height, GLint format);
H A DPathCache.cpp130 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
132 PathCache::computeBounds(bounds, paint, left, top, offset, width, height);
136 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
137 const float pathWidth = std::max(bounds.width(), 1.0f);
145 width = uint32_t(pathWidth + offset * 2.0 + 0.5);
149 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument
150 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
167 float left, float top, float offset, uint32_t width, uint32_t height) {
168 initBitmap(bitmap, width, height);
225 const uint32_t size = texture->width() * textur
129 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
135 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
166 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument
254 purgeCache(uint32_t width, uint32_t height) argument
275 uint32_t width, height; local
334 uint32_t width, height; local
461 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument
507 getOval(float width, float height, const SkPaint* paint) argument
530 getRect(float width, float height, const SkPaint* paint) argument
553 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument
[all...]
H A DGradientCache.cpp125 uint32_t width = 256 * (count - 1); local
129 // unless width is already a power of 2
130 if (!mHasNpot && (width & (width - 1)) != 0) {
131 width = 1 << (32 - __builtin_clz(width));
142 info.width = min(width, uint32_t(mMaxTextureSize));
157 const uint32_t size = info.width * 2 * bytesPerPixel();
161 ", size = %" PRIu32 ", mMaxSize = %" PRIu32 ", width
222 generateTexture(uint32_t* colors, float* positions, const uint32_t width, const uint32_t height, Texture* texture) argument
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DOffscreenBufferPool.h39 * texture.width/.height are actual allocated texture size. Texture will tend to be larger than the
40 * viewport bounds, since textures are always allocated with width / height as a multiple of 64, for
93 const uint32_t width, const uint32_t height);
96 const uint32_t width, const uint32_t height);
126 : width(OffscreenBuffer::computeIdealDimension(layerWidth))
131 , width(layer->texture.width())
150 uint32_t width = 0; member in struct:android::uirenderer::OffscreenBufferPool::Entry
/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp74 const int width = gDisplay.w; local
78 sp<RenderNode> rootNode = TestUtils::createNode(0, 0, width, height,
79 [&scene, width, height](RenderProperties& props, TestCanvas& canvas) {
81 scene->createContent(width, height, canvas);
89 float lightX = width / 2.0;
90 proxy->setup(width, height, dp(800.0f), 255 * 0.075, 255 * 0.15);
/frameworks/base/media/jni/
H A Dandroid_media_MediaMetadataRetriever.cpp193 static void rotate0(T* dst, const T* src, size_t width, size_t height) argument
195 memcpy(dst, src, width * height * sizeof(T));
199 static void rotate90(T* dst, const T* src, size_t width, size_t height) argument
202 for (size_t j = 0; j < width; ++j) {
203 dst[j * height + height - 1 - i] = src[i * width + j];
209 static void rotate180(T* dst, const T* src, size_t width, size_t height) argument
212 for (size_t j = 0; j < width; ++j) {
213 dst[(height - 1 - i) * width + width - 1 - j] = src[i * width
219 rotate270(T* dst, const T* src, size_t width, size_t height) argument
229 rotate(T *dst, const T *src, size_t width, size_t height, int angle) argument
277 uint32_t width, height; local
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherScrim.java58 float width = bounds.width() * OUTER_EXTENT;
61 canvas.scale(1, height / width);
62 canvas.drawRect(isLtr ? bounds.right - width : 0, 0,
63 isLtr ? bounds.right : bounds.left + width, width, mRadialGradientPaint);
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DFlowLayout.java37 final int width =
57 child.measure(MeasureSpec.makeMeasureSpec(width, MeasureSpec.AT_MOST),
62 if (x + childWidth > width) {
79 setMeasuredDimension(width, height);
93 final int width = r - l;
102 if (x + childWidth > width) {
/frameworks/av/media/ndk/
H A DNdkImage.cpp34 int32_t width, int32_t height, int32_t numPlanes) :
37 mWidth(width), mHeight(height), mNumPlanes(numPlanes) {
103 AImage::getWidth(int32_t* width) const {
104 if (width == nullptr) {
107 *width = -1;
112 *width = mWidth;
247 *rowStride = mBuffer->width;
271 // Single plane 16bpp bayer data. even width/height,
308 uint32_t width = mBuffer->width; local
32 AImage(AImageReader* reader, int32_t format, CpuConsumer::LockedBuffer* buffer, int64_t timestamp, int32_t width, int32_t height, int32_t numPlanes) argument
516 AImage_getWidth(const AImage* image, int32_t* width) argument
557 int32_t width = -1; local
[all...]
/frameworks/ex/framesequence/jni/
H A DFrameSequence_gif.cpp149 int transparent, int width) {
150 for (; width > 0; width--, src++, dst++) {
157 static void setLineColor(Color8888* dst, Color8888 color, int width) { argument
158 for (; width > 0; width--, dst++) {
191 const int width = mFrameSequence.getWidth(); local
194 mPreserveBuffer = new Color8888[width * height];
197 memcpy(mPreserveBuffer + width * y,
199 width *
148 copyLine(Color8888* dst, const unsigned char* src, const ColorMapObject* cmap, int transparent, int width) argument
204 const int width = mFrameSequence.getWidth(); local
232 const int width = mFrameSequence.getWidth(); local
[all...]
/frameworks/base/libs/hwui/utils/
H A DTestWindowContext.cpp64 mCpuConsumer->setDefaultBufferSize(mSize.width(), mSize.height());
67 mSize.width(), mSize.height());
77 (0, 0, mSize.width(), mSize.height());
87 float lightX = mSize.width() / 2.0f;
89 mProxy->setup(mSize.width(), mSize.height(), 800.0f,
93 mCanvas.reset(new android::uirenderer::RecordingCanvas(mSize.width(), mSize.height()));
95 mCanvas.reset(new android::uirenderer::DisplayListCanvas(mSize.width(), mSize.height()));
100 //mCanvas->reset(mSize.width(), mSize.height());
101 mCanvas->clipRect(0, 0, mSize.width(), mSize.height(),
119 SkImageInfo::Make(mSize.width(), mSiz
194 initialize(int width, int height) argument
[all...]
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
H A DResourceModifiers.java108 final float width = mBitmap.getWidth() / 8.0f;
112 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f,
113 0.0f, height, width, height, width * 2, height, width * 4, height,
114 0.0f, height * 2, width, height * 2, width * 2, height * 2, width *
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_chroma_hor_ver.s47 width RN 4 label
83 ;// u32 width, : 0xf8
96 LDR width, [sp, #0xf8] ;// width
102 CMP tmp1, width ;// x0+chromaPartWidth+1 > width
120 STMIA sp,{width,height,tmp1,tmp2,tmp3}
127 STMIA sp,{width,height,tmp1,tmp2,tmp3}
129 MLA ref, height, width, ref ;// ref += width * heigh
[all...]
/frameworks/av/include/ndk/
H A DNdkImageReader.h65 * @param width The default width in pixels of the Images that this reader will produce.
79 * <li>{@link AMEDIA_ERROR_INVALID_PARAMETER} if reader is NULL, or one or more of width,
86 int32_t width, int32_t height, int32_t format, int32_t maxImages,
116 * Query the default width of the {@link AImage} generated by this reader, in pixels.
118 * <p>The width may be overridden by the producer sending buffers to this reader's
119 * {@link ANativeWindow}. If so, the actual width of the images can be found using
123 * @param width the default width of the reader will be filled here if the method call succeeeds.
127 * <li>{@link AMEDIA_ERROR_INVALID_PARAMETER} if reader or width i
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/comm/src/
H A DomxVCCOMM_LimitMVToRect.c67 * - the width or height of the bounding rectangle is less than
84 armRetArgErrIf((pRectVOPRef->width < (2* size)), OMX_Sts_BadArgErr);
88 (2*pRectVOPRef->x + pRectVOPRef->width - Xcoord - size));
/frameworks/base/core/java/android/hardware/camera2/params/
H A DInputConfiguration.java35 * Create an input configration with the width, height, and user-defined format.
41 * @param width Width of the input buffers.
49 public InputConfiguration(int width, int height, int format) { argument
50 mWidth = width;
56 * Get the width of this input configration.
58 * @return width of this input configuration.
120 * the width, height, and format, respectively.</p>
/frameworks/base/core/java/android/hardware/display/
H A DVirtualDisplay.java89 public void resize(int width, int height, int densityDpi) { argument
90 mGlobal.resizeVirtualDisplay(mToken, width, height, densityDpi);
/frameworks/base/core/java/android/service/wallpaper/
H A DIWallpaperEngine.aidl27 void setDesiredSize(int width, int height);
/frameworks/base/core/java/android/view/
H A DDisplayListCanvas.java49 static DisplayListCanvas obtain(@NonNull RenderNode node, int width, int height) { argument
53 canvas = new DisplayListCanvas(width, height);
55 nResetDisplayListCanvas(canvas.mNativeCanvasWrapper, width, height);
58 canvas.mWidth = width;
92 private DisplayListCanvas(int width, int height) { argument
93 super(nCreateDisplayListCanvas(width, height));
97 private static native long nCreateDisplayListCanvas(int width, int height); argument
98 private static native void nResetDisplayListCanvas(long canvas, int width, int height); argument
H A DGraphicBuffer.java72 * @param width The width in pixels of the buffer
79 public static GraphicBuffer create(int width, int height, int format, int usage) { argument
80 long nativeObject = nCreateGraphicBuffer(width, height, format, usage);
82 return new GraphicBuffer(width, height, format, usage, nativeObject);
90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { argument
91 mWidth = width;
99 * Returns the width of this buffer in pixels.
270 int width = in.readInt();
276 return new GraphicBuffer(width, heigh
286 nCreateGraphicBuffer(int width, int height, int format, int usage) argument
[all...]
H A DSurfaceHolder.java89 * @param width The new width of the surface.
92 public void surfaceChanged(SurfaceHolder holder, int format, int width, argument
161 * @param width The surface's width.
164 public void setFixedSize(int width, int height); argument
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DPathShape.java41 * @param stdWidth the standard width for the shape. Any changes to the
42 * width with resize() will result in a width scaled based
43 * on the new width divided by this width.
63 protected void onResize(float width, float height) { argument
64 mScaleX = width / mStdWidth;

Completed in 704 milliseconds

1234567891011>>