/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/transforms/ |
H A D | TexImageTransform.java | 59 * @param width width of the texture 63 int xOffset, int yOffset, int width, int height) { 70 mWidth = width; 120 * Creates a texture of provided width and height. If the texture data file is provided, 124 * @param width width of texture 128 private String createTexture(File textureDataFile, int width, int height) throws IOException { argument 131 BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); 135 img.getRaster().setDataElements(0, 0, width, heigh 62 TexImageTransform(IGLPropertyAccessor accessor, File textureData, GLEnum format, int xOffset, int yOffset, int width, int height) argument 154 updateTextureData(String currentImagePath, File textureDataFile, int xOffset, int yOffset, int width, int height) argument 176 formatSourceData(byte[] subImageData, int width, int height) argument 194 addAlphaChannel(byte[] sourceData, int width, int height) argument 209 addRGBChannels(byte[] sourceData, int width, int height) argument 222 createRGBAFromLuminance(byte[] sourceData, int width, int height) argument 240 createRGBAFromLuminanceAlpha(byte[] sourceData, int width, int height) argument [all...] |
/sdk/emulator/opengl/host/libs/Translator/include/GLcommon/ |
H A D | etc1.h | 60 etc1_uint32 etc1_get_encoded_data_size(etc1_uint32 width, etc1_uint32 height); 69 int etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, 81 etc1_uint32 width, etc1_uint32 height, 90 void etc1_pkm_format_header(etc1_byte* pHeader, etc1_uint32 width, etc1_uint32 height); 96 // Read the image width from a PKM header
|
H A D | PaletteTexture.h | 23 unsigned char* uncompressTexture(GLenum internalformat,GLenum& formatOut,GLsizei width,GLsizei height,GLsizei imageSize, const GLvoid* data,GLint level);
|
H A D | TextureUtils.h | 27 GLenum internalformat, GLsizei width,
|
/sdk/emulator/opengl/tests/ut_renderer/ |
H A D | X11Windowing.h | 23 NativeWindowType createNativeWindow(NativeDisplayType _dpy, int width, int height);
|
H A D | RendererSurface.cpp | 63 int width = 0, height = 0; local 68 width = atoi(env); 74 if (width <= 160) 75 width = DEFAULT_WIDTH; 79 printf("%s: Using width=%d height=%d\n", __FUNCTION__, width, height); 86 NativeWindowType window = nw->createNativeWindow(nw->getNativeDisplay(), width, height);
|
H A D | NativeWindowing.h | 24 virtual NativeWindowType createNativeWindow(NativeDisplayType dpy, int width, int height) = 0;
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/laf/ |
H A D | UnifiedContentBorder.java | 28 public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { argument 30 g.drawLine(x, y, x + width, y); 32 g.drawLine(x, y + height - 2, x + width, y + height - 2); 34 g.drawLine(x, y + height - 1, x + width, y + height - 1);
|
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/ |
H A D | IImageFactory.java | 37 * @param width the width of the image 41 BufferedImage getImage(int width, int height); argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
H A D | ProtoBufUtils.java | 30 int width = glMsg.getFb().getWidth(); 33 if (width * height == 0) { 38 byte[] uncompressed = new byte[width * height * 4]; 42 assert size == width * height * 4 : "Unexpected image size after decompression."; 49 width, 55 byte[] alpha = new byte[width*height]; 56 for (int i = 0; i < width * height; i++) { 61 imageData = imageData.scaledTo(imageData.width, -imageData.height);
|
/sdk/emulator/opengl/host/libs/Translator/GLcommon/ |
H A D | TextureUtils.cpp | 43 GLenum internalformat, GLsizei width, 49 typedef void (GLAPIENTRY *glTexImage2DPtr_t ) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 59 GLsizei compressedSize = etc1_get_encoded_data_size(width, height); 63 const int32_t bpr = ((width * 3) + align) & ~align; 67 int res = etc1_decode_image((const etc1_byte*)data, pOut, width, height, 3, bpr); 69 glTexImage2DPtr(target,level,format,width,height,border,format,type,pOut); 87 !GLESvalidate::texImgDim(width,height,ctx->getMaxTexSize()+2),GL_INVALID_VALUE) 90 GLsizei tmpWidth = width; 96 unsigned char* uncompressed = uncompressTexture(internalformat,uncompressedFrmt,width,height,imageSize,data,i); 42 doCompressedTexImage2D(GLEScontext * ctx, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data, void * funcPtr) argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
H A D | SwtUtils.java | 136 int width = awtImage.getWidth(); 142 new ImageData(width, height, 32, getAwtPaletteData(awtImage.getType())); 159 byte[] alphaData = new byte[height * width]; 161 byte[] alphaRow = new byte[width]; 162 for (int x = 0; x < width; x++) { 173 System.arraycopy(alphaRow, 0, alphaData, y * width, width); 195 new BufferedImage(swtData.width, swtData.height, BufferedImage.TYPE_INT_ARGB); 203 for (int x = 0; x < swtData.width; x++) { 215 for (int x = 0; x < swtData.width; 325 createEmptyImage(Display display, int width, int height) argument 411 drawRectangleShadow(GC gc, int x, int y, int width, int height) argument [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/widgets/ |
H A D | ImageCanvas.java | 120 imageWidth = mImage.getBounds().width; 123 imageWidth = client.width; 129 mHorizontalScrollBar.setThumb(Math.min(imageWidth, client.width)); 132 int hPage = imageWidth - client.width; 154 mHorizontalScrollBar.setPageIncrement(clientArea.width); 172 scroll(destX, 0, 0, 0, imageBounds.width, imageBounds.height, false); 184 scroll(0, destY, 0, 0, imageBounds.width, imageBounds.height, false); 197 if (mFitToCanvas && rect.width > 0 && rect.height > 0) { 198 double sx = (double) client.width / (double) rect.width; 221 drawBorder(GC gc, int x, int y, int width, int height) argument [all...] |
/sdk/emulator/opengl/host/include/libOpenglRender/ |
H A D | render_api.h | 64 * width and height are the framebuffer dimensions that will be reported to the 77 DECL(int, initOpenGLRenderer, (int width, int height, char* addr, size_t addrLen)); 104 * width, height Dimensions of the image, in pixels. Rows are tightly 113 * type are always GL_RGBA and GL_UNSIGNED_BYTE, and the width and height will 116 typedef void (*OnPostFn)(void* context, int width, int height, int ydir, 125 * x,y,width,height are the dimensions of the rendering subwindow. 129 int x, int y, int width, int height, float zRot));
|
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/ |
H A D | CaptureRenderer.java | 39 d.width += node.marginLeft + node.marginRight; 54 int width = icon.getIconWidth(); 57 int x = (getWidth() - width) / 2; 69 width - node.paddingRight - node.paddingLeft, 74 g.drawLine(0, node.baseline, width, node.baseline); 80 node.marginLeft + width + node.marginRight,
|
/sdk/emulator/opengl/host/libs/Translator/EGL/ |
H A D | MacNative.h | 43 void* nsCreatePBuffer(GLenum target,GLenum format,int maxMip,int width,int height); 45 bool nsGetWinDims(void* win,unsigned int* width,unsigned int* height);
|
H A D | EglSurface.h | 41 void setDim(int width,int height){ m_width = width; m_height = height;}; argument 55 EGLint width, 59 m_width(width), 52 EglSurface(EglDisplay *dpy, ESurfaceType type, EglConfig* config, EGLint width, EGLint height) argument
|
H A D | EglPbufferSurface.h | 35 void getDim(EGLint* width,EGLint* height,EGLint* largest){ argument 36 *width = m_width;
|
/sdk/ninepatch/src/com/android/ninepatch/ |
H A D | NinePatchChunk.java | 158 float extra = r.width / data.mHorizontalPatchesSum; 159 int width = (int) (extra * hRemainder / hWeightSum); 161 hRemainder -= width; 162 g.drawImage(image, x, y, x + width, y + r.height, r.x, r.y, 163 r.x + r.width, r.y + r.height, null); 164 x += width; 167 g.drawImage(image, x, y, x + r.width, y + r.height, r.x, r.y, 168 r.x + r.width, r.y + r.height, null); 169 x += r.width; 177 float extra = r.width / dat [all...] |
H A D | GraphicsUtilities.java | 41 public static BufferedImage createCompatibleImage(int width, int height) { argument 42 return getGraphicsConfiguration().createCompatibleImage(width, height); 63 public static BufferedImage createCompatibleImage(BufferedImage image, int width, int height) { argument 64 return getGraphicsConfiguration().createCompatibleImage(width, height, 77 public static BufferedImage createTranslucentCompatibleImage(int width, int height) { argument 78 return getGraphicsConfiguration().createCompatibleImage(width, height,
|
/sdk/emulator/opengl/host/libs/libOpenglRender/ |
H A D | NativeSubWindow.h | 28 int x, int y,int width, int height);
|
/sdk/emulator/opengl/tests/translator_tests/MacCommon/ |
H A D | setup_gl.m | 20 void * createGLView(void *nsWindowPtr, int x, int y, int width, int height) 22 NSRect contentRect = NSMakeRect(x, y, width, height);
|
/sdk/assetstudio/src/com/android/assetstudiolib/ |
H A D | Util.java | 52 (int) Math.round(rect.width * scaleFactor), 57 * Creates a new ARGB {@link BufferedImage} of the given width and height. 59 * @param width The width of the new image. 63 public static BufferedImage newArgbBufferedImage(int width, int height) { argument 64 return new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); 68 * Smoothly scales the given {@link BufferedImage} to the given width and height using the 72 * @param width The destination width to scale to. 76 public static BufferedImage scaledImage(BufferedImage source, int width, in argument [all...] |
/sdk/draw9patch/src/com/android/draw9patch/graphics/ |
H A D | GraphicsUtilities.java | 35 public static BufferedImage createCompatibleImage(int width, int height) { argument 36 return getGraphicsConfiguration().createCompatibleImage(width, height); 57 public static BufferedImage createCompatibleImage(BufferedImage image, int width, int height) { argument 58 return getGraphicsConfiguration().createCompatibleImage(width, height, 71 public static BufferedImage createTranslucentCompatibleImage(int width, int height) { argument 72 return getGraphicsConfiguration().createCompatibleImage(width, height,
|
/sdk/draw9patch/src/com/android/draw9patch/ui/ |
H A D | ImageEditorPanel.java | 321 int width = image.getWidth(); 323 for (int i = 0; i < width; i++) { 338 pixel = image.getRGB(width - 1, i); 340 image.setRGB(width - 1, i, 0); 462 remainderHorizontal += rect.width; 485 horizontalPatchesSum += rect.width; 493 horizontalPatchesSum += rect.width; 587 float extra = r.width / horizontalPatchesSum; 588 int width = (int) (extra * hRemainder / hWeightSum); 590 hRemainder -= width; 1001 paintStripes(Graphics2D g, int width, int height) argument [all...] |