/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 42 * minSideLength is used to specify that minimal width or height of a 58 public static int computeSampleSize(int width, int height, argument 61 width, height, minSideLength, maxNumOfPixels); 118 int height = Math.round(bitmap.getHeight() * scale); 120 && height == bitmap.getHeight()) return bitmap; 121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap)); 159 int height = Math.round(scale * bitmap.getHeight()); 161 canvas.translate((size - width) / 2f, (size - height) / 2f);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | BasicTexture.java | 78 public void setSize(int width, int height) { argument 80 mHeight = height; 82 mTextureHeight = height > 0 ? Utils.nextPowerOf2(height) : 0; 112 // Returns the height rounded to the next power of 2.
|
H A D | GLCanvas.java | 27 // [x, x+width) * [y, y+height) 36 // who only want to draw on the GLCanvas. Both width and height must be 38 public abstract void setSize(int width, int height); argument 90 public abstract void fillRect(float x, float y, float width, float height, int color); argument 94 BasicTexture texture, int x, int y, int width, int height); 204 * Gets the bounds given by x, y, width, and height as well as the internal 212 * @param height The height of the input rectangle. 214 public abstract void getBounds(Rect bounds, int x, int y, int width, int height); argument 93 drawTexture( BasicTexture texture, int x, int y, int width, int height) argument
|
H A D | GLES20Canvas.java | 346 public void setSize(int width, int height) { argument 348 mHeight = height; 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 355 mScreenHeight = height; 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 486 public void drawRect(float x, float y, float width, float height, GLPaint paint) { argument 487 draw(GLES20.GL_LINE_LOOP, OFFSET_DRAW_RECT, COUNT_RECT_VERTEX, x, y, width, height, paint); 491 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 493 draw(type, offset, count, x, y, width, height, paint.getColor(), paint.getLineWidth()); 496 private void draw(int type, int offset, int count, float x, float y, float width, float height, argument 554 draw(ShaderParameter[] params, int type, int count, float x, float y, float width, float height) argument 566 setMatrix(ShaderParameter[] params, float x, float y, float width, float height) argument 575 fillRect(float x, float y, float width, float height, int color) argument 582 drawTexture(BasicTexture texture, int x, int y, int width, int height) argument 993 getBounds(Rect bounds, int x, int y, int width, int height) argument [all...] |
H A D | RawTexture.java | 29 public RawTexture(int width, int height, boolean opaque) { argument 31 setSize(width, height);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | BlockingGLTextureView.java | 67 int height) { 69 mRenderThread.setSize(width, height); 74 int height) { 75 mRenderThread.setSize(width, height); 353 public void setSize(int width, int height) { argument 357 mHeight = height; 66 onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) argument 73 onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) argument
|
H A D | TiledImageRenderer.java | 81 // a smaller scaled bitmap (The width and height of each scaled bitmap is 104 // The width and height of the full-sized bitmap 147 * the image size is (width, height), first take the intersection of (0, 148 * 0) - (width, height) and (x, y) - (x + tileSize, y + tileSize). If 235 public void setViewSize(int width, int height) { argument 237 mViewHeight = height; 370 int height = (int) Math.ceil(Math.max( 374 int top = (int) Math.floor(cY - height / (2f * scale)); 376 int bottom = (int) Math.ceil(top + height / scale); 701 // We need to override the width and height, s [all...] |
H A D | TiledImageView.java | 254 final int height = swap ? mRenderer.source.getImageWidth() 256 mTempRectF.set(0, 0, width, height); 260 int cy = height / 2; 263 int yoffset = Math.round((getHeight() - mTempRectF.height()) / 2 / scale); 293 public void onSurfaceChanged(GL10 gl, int width, int height) { argument 294 mCanvas.setSize(width, height); 295 mRenderer.image.setViewSize(width, height);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 61 protected static final String WALLPAPER_HEIGHT_KEY = "wallpaper.height"; 207 // As a ratio of screen height, the total distance we want the parallax effect to span 209 private static float wallpaperTravelToScreenWidthRatio(int width, int height) { argument 210 float aspectRatio = width / (float) height; 223 // formulas, where the coefficient on x is the aspect ratio (width/height): 421 defaultWallpaperSize.y / cropScale - cropRect.height(); 429 final int outHeight = (int) Math.round(cropRect.height() * cropScale); 628 if (roundedTrueCrop.width() <= 0 || roundedTrueCrop.height() <= 0) { 636 roundedTrueCrop.height() / mOutHeight)); 700 if (roundedTrueCrop.height() > fullSiz [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | RSTextureView.java | 68 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { argument 73 mRS.setSurfaceTexture(mSurfaceTexture, width, height); 81 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { argument 86 mRS.setSurfaceTexture(mSurfaceTexture, width, height);
|
H A D | RenderScript.java | 552 int width, int height, 557 int width, int height, 564 width, height, 588 int width, int height, int depth, 593 int width, int height, int depth, 599 dstMip, width, height, depth, 549 rsnAllocationData2D(long con, long dstAlloc, int dstXoff, int dstYoff, int dstMip, int dstFace, int width, int height, long srcAlloc, int srcXoff, int srcYoff, int srcMip, int srcFace) argument 555 nAllocationData2D(long dstAlloc, int dstXoff, int dstYoff, int dstMip, int dstFace, int width, int height, long srcAlloc, int srcXoff, int srcYoff, int srcMip, int srcFace) argument 585 rsnAllocationData3D(long con, long dstAlloc, int dstXoff, int dstYoff, int dstZoff, int dstMip, int width, int height, int depth, long srcAlloc, int srcXoff, int srcYoff, int srcZoff, int srcMip) argument 591 nAllocationData3D(long dstAlloc, int dstXoff, int dstYoff, int dstZoff, int dstMip, int width, int height, int depth, long srcAlloc, int srcXoff, int srcYoff, int srcZoff, int srcMip) argument
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 896 nContextSetSurface(JNIEnv *_env, jobject _this, jlong con, jint width, jint height, jobject wnd) argument 899 ALOGD("nContextSetSurface, con(%p), width(%i), height(%i), surface(%p)", (RsContext)con, 900 width, height, (Surface *)wnd); 910 rsContextSetSurface((RsContext)con, width, height, window); 1362 int h = bitmap.height(); 1447 jint width, jint height, 1453 " dstMip(%i), dstFace(%i), width(%i), height(%i)," 1456 width, height, (RsAllocation)srcAlloc, srcXoff, srcYoff, srcMip, srcFace); 1463 width, height, 1492 jint width, jint height, jin 1444 nAllocationData2D_alloc(JNIEnv *_env, jobject _this, jlong con, jlong dstAlloc, jint dstXoff, jint dstYoff, jint dstMip, jint dstFace, jint width, jint height, jlong srcAlloc, jint srcXoff, jint srcYoff, jint srcMip, jint srcFace) argument 1489 nAllocationData3D_alloc(JNIEnv *_env, jobject _this, jlong con, jlong dstAlloc, jint dstXoff, jint dstYoff, jint dstZoff, jint dstMip, jint width, jint height, jint depth, jlong srcAlloc, jint srcXoff, jint srcYoff, jint srcZoff, jint srcMip) argument [all...] |
/frameworks/base/native/android/ |
H A D | native_window.cpp | 62 int32_t height, int32_t format) { 65 err = native_window_set_buffers_user_dimensions(window, width, height); 68 if (width && height) { 61 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | ETC1.java | 86 public static native int getEncodedDataSize(int width, int height); argument 97 public static native void encodeImage(Buffer in, int width, int height, argument 110 int width, int height, int pixelSize, int stride); 116 * @param height the height of the image in pixels. 118 public static native void formatHeader(Buffer header, int width, int height); argument 133 * Read the image height from a PKM header 109 decodeImage(Buffer in, Buffer out, int width, int height, int pixelSize, int stride) argument
|
H A D | ETC1Util.java | 75 int height = texture.getHeight(); 79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, 85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height) 87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride); 88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border, 117 public ETC1Texture(int width, int height, ByteBuffer data) { argument 119 mHeight = height; 130 * Get the height of the texture in pixels. 154 int height = 0; 167 height 192 compressTexture(Buffer input, int width, int height, int pixelSize, int stride) argument [all...] |
H A D | GLES10.java | 414 // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) 421 int height, 427 // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) 435 int height, 441 // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) 450 int height, 454 // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 464 int height 1039 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 1045 int height, 416 glCompressedTexImage2D( int target, int level, int internalformat, int width, int height, int border, int imageSize, java.nio.Buffer data ) argument 429 glCompressedTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, java.nio.Buffer data ) argument 443 glCopyTexImage2D( int target, int level, int internalformat, int x, int y, int width, int height, int border ) argument 1041 glReadPixels( int x, int y, int width, int height, int format, int type, java.nio.Buffer pixels ) argument 1223 glTexImage2D( int target, int level, int internalformat, int width, int height, int border, int format, int type, java.nio.Buffer pixels ) argument 1253 glTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.Buffer pixels ) argument [all...] |
H A D | GLES20.java | 489 // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) 496 int height, 502 // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) 510 int height, 516 // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) 525 int height, 529 // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 539 int height 1314 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 1320 int height, 491 glCompressedTexImage2D( int target, int level, int internalformat, int width, int height, int border, int imageSize, java.nio.Buffer data ) argument 504 glCompressedTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, java.nio.Buffer data ) argument 518 glCopyTexImage2D( int target, int level, int internalformat, int x, int y, int width, int height, int border ) argument 1316 glReadPixels( int x, int y, int width, int height, int format, int type, java.nio.Buffer pixels ) argument 1432 glTexImage2D( int target, int level, int internalformat, int width, int height, int border, int format, int type, java.nio.Buffer pixels ) argument 1496 glTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.Buffer pixels ) argument [all...] |
H A D | GLES30.java | 366 // C function void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels ) 373 int height, 381 // C function void glTexImage3D ( GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, GLsizei offset ) 388 int height, 396 // C function void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels ) 405 int height, 412 // C function void glTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei offset ) 421 int height, 428 // C function void glCopyTexSubImage3D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 439 int height 368 glTexImage3D( int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, java.nio.Buffer pixels ) argument 383 glTexImage3D( int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, int offset ) argument 398 glTexSubImage3D( int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, java.nio.Buffer pixels ) argument 414 glTexSubImage3D( int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int offset ) argument 444 glCompressedTexImage3D( int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, java.nio.Buffer data ) argument 458 glCompressedTexImage3D( int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, int offset ) argument 472 glCompressedTexSubImage3D( int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, java.nio.Buffer data ) argument 488 glCompressedTexSubImage3D( int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, int offset ) argument 1779 glTexStorage3D( int target, int levels, int internalformat, int width, int height, int depth ) argument 1811 glReadPixels( int x, int y, int width, int height, int format, int type, int offset ) argument [all...] |
H A D | GLES31.java | 991 // C function void glTexStorage2DMultisample ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations ) 998 int height, 993 glTexStorage2DMultisample( int target, int samples, int internalformat, int width, int height, boolean fixedsamplelocations ) argument
|
H A D | GLES31Ext.java | 399 // C function void glTexStorage3DMultisampleOES ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations ) 406 int height, 401 glTexStorage3DMultisampleOES( int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations ) argument
|
H A D | GLES32.java | 536 // C function void glReadnPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data ) 542 int height, 773 // C function void glTexStorage3DMultisample ( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations ) 780 int height, 538 glReadnPixels( int x, int y, int width, int height, int format, int type, int bufSize, java.nio.Buffer data ) argument 775 glTexStorage3DMultisample( int target, int samples, int internalformat, int width, int height, int depth, boolean fixedsamplelocations ) argument
|
H A D | GLErrorWrapper.java | 168 int internalformat, int width, int height, int border, 172 height, border, imageSize, data); 177 int yoffset, int width, int height, int format, int imageSize, 181 height, format, imageSize, data); 186 int x, int y, int width, int height, int border) { 189 height, border); 194 int yoffset, int x, int y, int width, int height) { 197 height); 663 public void glReadPixels(int x, int y, int width, int height, int format, argument 666 mgl.glReadPixels(x, y, width, height, forma 167 glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) argument 176 glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data) argument 185 glCopyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) argument 193 glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) argument 706 glScissor(int x, int y, int width, int height) argument 779 glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) argument 812 glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) argument 840 glViewport(int x, int y, int width, int height) argument 872 glDrawTexfOES(float x, float y, float z, float width, float height) argument 891 glDrawTexiOES(int x, int y, int z, int width, int height) argument 909 glDrawTexsOES(short x, short y, short z, short width, short height) argument 928 glDrawTexxOES(int x, int y, int z, int width, int height) argument 1594 glRenderbufferStorageOES(int target, int internalformat, int width, int height) argument [all...] |
H A D | GLLogWrapper.java | 1339 int internalformat, int width, int height, int border, 1346 arg("height", height); 1353 height, border, imageSize, data); 1358 int yoffset, int width, int height, int format, int imageSize, 1366 arg("height", height); 1373 height, format, imageSize, data); 1378 int x, int y, int width, int height, int border) { 1386 arg("height", heigh 1338 glCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) argument 1357 glCompressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data) argument 1377 glCopyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) argument 1395 glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) argument 2251 glReadPixels(int x, int y, int width, int height, int format, int type, Buffer pixels) argument 2333 glScissor(int x, int y, int width, int height) argument 2463 glTexImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) argument 2527 glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) argument 2575 glViewport(int x, int y, int width, int height) argument 2626 glDrawTexfOES(float x, float y, float z, float width, float height) argument 2656 glDrawTexiOES(int x, int y, int z, int width, int height) argument 2685 glDrawTexsOES(short x, short y, short z, short width, short height) argument 2715 glDrawTexxOES(int x, int y, int z, int width, int height) argument 3774 glRenderbufferStorageOES(int target, int internalformat, int width, int height) argument [all...] |
H A D | GLSurfaceView.java | 727 * void onSurfaceChanged(GL10 gl, int width, int height) { 728 * gl.glViewport(0, 0, width, height); 730 * float ratio = (float) width / height; 739 * @param height 741 void onSurfaceChanged(GL10 gl, int width, int height); argument
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
H A D | GLImpl.java | 228 // C function void glCompressedTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data ) 235 int height, 241 // C function void glCompressedTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ) 249 int height, 255 // C function void glCopyTexImage2D ( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border ) 264 int height, 268 // C function void glCopyTexSubImage2D ( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height ) 278 int height 864 // C function void glReadPixels ( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ) 870 int height, 230 glCompressedTexImage2D( int target, int level, int internalformat, int width, int height, int border, int imageSize, java.nio.Buffer data ) argument 243 glCompressedTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, java.nio.Buffer data ) argument 257 glCopyTexImage2D( int target, int level, int internalformat, int x, int y, int width, int height, int border ) argument 866 glReadPixels( int x, int y, int width, int height, int format, int type, java.nio.Buffer pixels ) argument 1048 glTexImage2D( int target, int level, int internalformat, int width, int height, int border, int format, int type, java.nio.Buffer pixels ) argument 1078 glTexSubImage2D( int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, java.nio.Buffer pixels ) argument [all...] |