/frameworks/base/media/mca/filterfw/native/core/ |
H A D | gl_frame.h | 46 // Initialize a GL frame to the given width, height, format. Also specify 48 bool Init(int width, int height); 54 bool InitWithTexture(GLint texture_id, int width, int height); 57 bool InitWithFbo(GLint fbo_id, int width, int height); 93 bool SetViewport(int x, int y, int width, int height); 130 void InitDimensions(int width, int height); 185 // The width, height and format of the frame
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | PorterDuffColorFilter_Delegate.java | 68 public void applyFilter(Graphics2D g, int width, int height) { argument 69 BufferedImage image = createFilterImage(width, height); 91 private BufferedImage createFilterImage(int width, int height) { argument 92 BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); 96 graphics.fillRect(0, 0, width, height);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 108 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, argument 116 mHeight = height; 135 * width/height values 138 void reinit(int width, int height, boolean requestPremultiplied) { argument 140 mHeight = height; 189 * <p>Modifies the bitmap to have a specified width, height, and {@link 219 public void reconfigure(int width, int height, Config config) { argument 221 if (width <= 0 || height <= 0) { 222 throw new IllegalArgumentException("width and height must be > 0"); 231 nativeReconfigure(mFinalizer.mNativeBitmap, width, height, confi 265 setHeight(int height) argument 376 checkWidthHeight(int width, int height) argument 652 createBitmap(Bitmap source, int x, int y, int width, int height) argument 680 createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter) argument 774 createBitmap(int width, int height, Config config) argument 789 createBitmap(DisplayMetrics display, int width, int height, Config config) argument 807 createBitmap(int width, int height, Config config, boolean hasAlpha) argument 826 createBitmap(DisplayMetrics display, int width, int height, Config config, boolean hasAlpha) argument 863 createBitmap(int colors[], int offset, int stride, int width, int height, Config config) argument 888 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument 927 createBitmap(int colors[], int width, int height, Config config) argument 948 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument 1379 getPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1419 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument 1493 setPixels(@olorInt int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1675 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument 1683 nativeReconfigure(long nativeBitmap, int width, int height, int config, int allocSize, boolean isPremultiplied) argument 1695 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument 1700 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 87 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 89 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 93 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 95 const float pathHeight = std::max(bounds.height(), 1.0f); 103 height = uint32_t(pathHeight + offset * 2.0 + 0.5); 106 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument 107 bitmap.allocPixels(SkImageInfo::MakeA8(width, height)); 124 float left, float top, float offset, uint32_t width, uint32_t height) { 125 initBitmap(bitmap, width, height); 189 const uint32_t size = texture->width * texture->height; 86 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 92 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 123 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 220 purgeCache(uint32_t width, uint32_t height) argument 241 uint32_t width, height; local 317 uint32_t width, height; local 445 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument 491 getOval(float width, float height, const SkPaint* paint) argument 514 getRect(float width, float height, const SkPaint* paint) argument 537 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument [all...] |
H A D | PathCache.h | 63 float offset, int width, int height, int generation) 69 this->height = height; 197 PathTexture* getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint); 199 PathTexture* getOval(float width, float height, const SkPaint* paint); 200 PathTexture* getRect(float width, float height, const SkPaint* paint); 201 PathTexture* getArc(float width, float height, float startAngle, float sweepAngle, 233 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 235 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 257 void purgeCache(uint32_t width, uint32_t height); 62 PathTexture(Caches& caches, float left, float top, float offset, int width, int height, int generation) argument 261 checkTextureSize(uint32_t width, uint32_t height) argument [all...] |
H A D | AssetAtlas.cpp | 45 mTexture->height = buffer->getHeight(); 117 const float height = float(mTexture->height); local 134 y / height, (y + pixelRef->info().height()) / height); 139 texture->height = pixelRef->info().height();
|
/frameworks/native/libs/ui/ |
H A D | GraphicBuffer.cpp | 49 height = 62 height = 78 height = static_cast<int>(inHeight); 91 height = buffer->height; 142 static_cast<int>(inHeight) == height && 159 if (static_cast<int>(inHeight) != height) return true; 174 height = static_cast<int>(inHeight); 184 const Rect lockBounds(width, height); 192 rect.top < 0 || rect.bottom > height) { [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GLToolbox.java | 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { argument 72 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { argument 78 GLES20.glReadPixels(0, 0, width, height, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); 103 public static void allocateTexturePixels(int texId, int target, int width, int height) { argument 104 setTexturePixels(texId, target, (ByteBuffer)null, width, height); 115 int width, int height) { 120 pixels = ByteBuffer.allocateDirect(width * height * 4); 122 GLES20.glTexImage2D(target, 0, GLES20.GL_RGBA, width, height, 0, 114 setTexturePixels(int texId, int target, ByteBuffer pixels, int width, int height) argument
|
/frameworks/base/libs/hwui/tests/ |
H A D | main.cpp | 68 virtual void createContent(int width, int height, DisplayListCanvas* renderer) = 0; 80 const int height = gDisplay.h; local 85 rootNode->mutateStagingProperties().setLeftTopRightBottom(0, 0, width, height); 95 proxy->setup(width, height, dp(800.0f), 255 * 0.075, 255 * 0.15); 101 animation.createContent(width, height, renderer); 130 void createContent(int width, int height, DisplayListCanvas* renderer) override { 135 for (int y = dp(16); y < (height - dp(116)); y += dp(116)) { 153 sp<RenderNode> createCard(int x, int y, int width, int height) { argument 155 node->mutateStagingProperties().setLeftTopRightBottom(x, y, x + width, y + height); 157 node->mutateStagingProperties().mutableOutline().setRoundRect(0, 0, width, height, d 194 createCard(int x, int y, int width, int height) argument 228 createCard(int x, int y, int width, int height) argument 277 createCard(int x, int y, int width, int height) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | pp_semaphore_luma.cpp | 37 height = luminance VOP height in pixels (int) 123 int height /* i */ 140 ypred <= ((height << 1) - (2*MB_SIZE))) 277 else if (nmvy > (height >> 3) - 1) 279 nmvy = (height >> 3) - 1; 300 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 3) - 1)) 332 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 3) - 1))
|
/frameworks/av/media/libstagefright/filters/ |
H A D | ColorConvert.cpp | 49 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, 53 for (int32_t i = 0; i < height; i++) { 71 uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, 75 for (int32_t i = 0; i < height; i++) { 94 uint8_t *src, int32_t width, int32_t height, uint32_t stride, 96 for (int32_t i = 0; i < height; ++i) { 48 convertYUV420spToARGB( uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, uint8_t *dest) argument 70 convertYUV420spToRGB888( uint8_t *pY, uint8_t *pUV, int32_t width, int32_t height, uint8_t *dest) argument 93 convertRGBAToARGB( uint8_t *src, int32_t width, int32_t height, uint32_t stride, uint8_t *dest) argument
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ImageUtils.java | 59 int height = bitmap.getHeight(); 63 if (height > COMPACT_BITMAP_SIZE || width > COMPACT_BITMAP_SIZE) { 75 (float) COMPACT_BITMAP_SIZE / height, 80 width = height = COMPACT_BITMAP_SIZE; 83 final int size = height*width; 85 bitmap.getPixels(mTempBuffer, 0, width, 0, 0, width, height);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Picture.cpp | 27 mHeight = src->height(); 40 Canvas* Picture::beginRecording(int width, int height) { argument 44 mHeight = height; 45 SkCanvas* canvas = mRecorder->beginRecording(width, height, NULL, 0); 62 int Picture::height() const { function in class:android::Picture 76 newPict->mHeight = cullRect.height();
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | sobeloperator.cpp | 42 void computeGradient(unsigned char* dataPtr, int width, int height, short* gxPtr, short* gyPtr) { argument 43 for (int i = 0; i < height; i++) { 49 const int below = (i < height - 1) ? curr + 4 * width : curr; 66 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, 78 int numPixels = width * height; 82 computeGradient(srcPtr, width, height, gxPtr, gyPtr); 65 Java_androidx_media_filterpacks_image_SobelFilter_sobelOperator( JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer, jobject magBuffer, jobject dirBuffer) argument
|
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/ |
H A D | ResourceModifiers.java | 109 final float height = mBitmap.getHeight() / 8.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 * 3, height * 2, 115 0.0f, height * [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/comm/src/ |
H A D | omxVCCOMM_LimitMVToRect.c | 67 * - the width or height of the bounding rectangle is less than 85 armRetArgErrIf((pRectVOPRef->height < (2* size)), OMX_Sts_BadArgErr); 90 (2*pRectVOPRef->y + pRectVOPRef->height - Ycoord - size));
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | SizeAreaComparator.java | 48 long area = width * size.height; 49 long area2 = width2 * size2.height;
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | InputConfiguration.java | 35 * Create an input configration with the width, height, and user-defined format. 42 * @param height Height of the input buffers. 49 public InputConfiguration(int width, int height, int format) { argument 51 mHeight = height; 65 * Get the height of this input configration. 67 * @return height of this input configuration. 120 * the width, height, and format, respectively.</p>
|
/frameworks/base/core/java/android/hardware/display/ |
H A D | VirtualDisplay.java | 89 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 D | IWallpaperEngine.aidl | 27 void setDesiredSize(int width, int height);
|
/frameworks/base/core/java/android/view/ |
H A D | GraphicBuffer.java | 73 * @param height The height 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 92 mHeight = height; 106 * Returns the height of this buffer in pixels. 271 int height = in.readInt(); 276 return new GraphicBuffer(width, height, forma 286 nCreateGraphicBuffer(int width, int height, int format, int usage) argument [all...] |
H A D | SurfaceHolder.java | 90 * @param height The new height of the surface. 93 int height); 162 * @param height The surface's height. 164 public void setFixedSize(int width, int height); argument 92 surfaceChanged(SurfaceHolder holder, int format, int width, int height) argument
|
/frameworks/base/graphics/java/android/graphics/drawable/shapes/ |
H A D | PathShape.java | 44 * @param stdHeight the standard height for the shape. Any changes to the 45 * height with resize() will result in a height scaled based 46 * on the new height divided by this height. 63 protected void onResize(float width, float height) { argument 65 mScaleY = height / mStdHeight;
|
H A D | RectShape.java | 48 protected void onResize(float width, float height) { argument 49 mRect.set(0, 0, width, height);
|
/frameworks/base/media/mca/effect/java/android/media/effect/ |
H A D | SizeChangeEffect.java | 41 public void apply(int inputTexId, int width, int height, int outputTexId) { argument 44 Frame inputFrame = frameFromTexture(inputTexId, width, height);
|