android.renderscript
Class Allocation

java.lang.Object
  extended by android.renderscript.BaseObj
      extended by android.renderscript.Allocation
Direct Known Subclasses:
AllocationAdapter

public class Allocation
extends BaseObj


Nested Class Summary
static class Allocation.MipmapControl
           
 
Field Summary
static int USAGE_GRAPHICS_CONSTANTS
           
static int USAGE_GRAPHICS_RENDER_TARGET
           
static int USAGE_GRAPHICS_TEXTURE
           
static int USAGE_GRAPHICS_VERTEX
           
static int USAGE_SCRIPT
           
 
Method Summary
 void copy1DRangeFrom(int off, int count, Allocation data, int dataOff)
           
 void copy1DRangeFrom(int off, int count, byte[] d)
           
 void copy1DRangeFrom(int off, int count, float[] d)
           
 void copy1DRangeFrom(int off, int count, int[] d)
           
 void copy1DRangeFrom(int off, int count, short[] d)
           
 void copy1DRangeFromUnchecked(int off, int count, byte[] d)
           
 void copy1DRangeFromUnchecked(int off, int count, float[] d)
           
 void copy1DRangeFromUnchecked(int off, int count, int[] d)
           
 void copy1DRangeFromUnchecked(int off, int count, short[] d)
           
 void copy2DRangeFrom(int xoff, int yoff, Bitmap data)
           
 void copy2DRangeFrom(int xoff, int yoff, int w, int h, Allocation data, int dataXoff, int dataYoff)
           
 void copy2DRangeFrom(int xoff, int yoff, int w, int h, byte[] data)
           
 void copy2DRangeFrom(int xoff, int yoff, int w, int h, float[] data)
           
 void copy2DRangeFrom(int xoff, int yoff, int w, int h, int[] data)
           
 void copy2DRangeFrom(int xoff, int yoff, int w, int h, short[] data)
           
 void copyFrom(BaseObj[] d)
           
 void copyFrom(Bitmap b)
           
 void copyFrom(byte[] d)
           
 void copyFrom(float[] d)
           
 void copyFrom(int[] d)
           
 void copyFrom(short[] d)
           
 void copyFromUnchecked(byte[] d)
           
 void copyFromUnchecked(float[] d)
           
 void copyFromUnchecked(int[] d)
           
 void copyFromUnchecked(short[] d)
           
 void copyTo(Bitmap b)
           
 void copyTo(byte[] d)
           
 void copyTo(float[] d)
           
 void copyTo(int[] d)
           
 void copyTo(short[] d)
           
static Allocation createCubemapFromBitmap(RenderScript rs, Bitmap b)
           
static Allocation createCubemapFromBitmap(RenderScript rs, Bitmap b, Allocation.MipmapControl mips, int usage)
           
static Allocation createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg)
           
static Allocation createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, Allocation.MipmapControl mips, int usage)
           
static Allocation createFromBitmap(RenderScript rs, Bitmap b)
           
static Allocation createFromBitmap(RenderScript rs, Bitmap b, Allocation.MipmapControl mips, int usage)
           
static Allocation createFromBitmapResource(RenderScript rs, Resources res, int id)
           
static Allocation createFromBitmapResource(RenderScript rs, Resources res, int id, Allocation.MipmapControl mips, int usage)
           
static Allocation createFromString(RenderScript rs, String str, int usage)
           
static Allocation createSized(RenderScript rs, Element e, int count)
           
static Allocation createSized(RenderScript rs, Element e, int count, int usage)
           
static Allocation createTyped(RenderScript rs, Type type)
           
static Allocation createTyped(RenderScript rs, Type type, Allocation.MipmapControl mips, int usage)
           
static Allocation createTyped(RenderScript rs, Type type, int usage)
           
 void generateMipmaps()
           
 Type getType()
           
 void resize(int dimX)
           
 void setFromFieldPacker(int xoff, FieldPacker fp)
           
 void setFromFieldPacker(int xoff, int component_number, FieldPacker fp)
           
 void syncAll(int srcLocation)
           
 
Methods inherited from class android.renderscript.BaseObj
destroy, equals, finalize, getName, hashCode, setName
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USAGE_SCRIPT

public static final int USAGE_SCRIPT
See Also:
Constant Field Values

USAGE_GRAPHICS_TEXTURE

public static final int USAGE_GRAPHICS_TEXTURE
See Also:
Constant Field Values

USAGE_GRAPHICS_VERTEX

public static final int USAGE_GRAPHICS_VERTEX
See Also:
Constant Field Values

USAGE_GRAPHICS_CONSTANTS

public static final int USAGE_GRAPHICS_CONSTANTS
See Also:
Constant Field Values

USAGE_GRAPHICS_RENDER_TARGET

public static final int USAGE_GRAPHICS_RENDER_TARGET
See Also:
Constant Field Values
Method Detail

getType

public Type getType()

syncAll

public void syncAll(int srcLocation)

copyFrom

public void copyFrom(BaseObj[] d)

copyFromUnchecked

public void copyFromUnchecked(int[] d)

copyFromUnchecked

public void copyFromUnchecked(short[] d)

copyFromUnchecked

public void copyFromUnchecked(byte[] d)

copyFromUnchecked

public void copyFromUnchecked(float[] d)

copyFrom

public void copyFrom(int[] d)

copyFrom

public void copyFrom(short[] d)

copyFrom

public void copyFrom(byte[] d)

copyFrom

public void copyFrom(float[] d)

copyFrom

public void copyFrom(Bitmap b)

setFromFieldPacker

public void setFromFieldPacker(int xoff,
                               FieldPacker fp)

setFromFieldPacker

public void setFromFieldPacker(int xoff,
                               int component_number,
                               FieldPacker fp)

generateMipmaps

public void generateMipmaps()

copy1DRangeFromUnchecked

public void copy1DRangeFromUnchecked(int off,
                                     int count,
                                     int[] d)

copy1DRangeFromUnchecked

public void copy1DRangeFromUnchecked(int off,
                                     int count,
                                     short[] d)

copy1DRangeFromUnchecked

public void copy1DRangeFromUnchecked(int off,
                                     int count,
                                     byte[] d)

copy1DRangeFromUnchecked

public void copy1DRangeFromUnchecked(int off,
                                     int count,
                                     float[] d)

copy1DRangeFrom

public void copy1DRangeFrom(int off,
                            int count,
                            int[] d)

copy1DRangeFrom

public void copy1DRangeFrom(int off,
                            int count,
                            short[] d)

copy1DRangeFrom

public void copy1DRangeFrom(int off,
                            int count,
                            byte[] d)

copy1DRangeFrom

public void copy1DRangeFrom(int off,
                            int count,
                            float[] d)

copy1DRangeFrom

public void copy1DRangeFrom(int off,
                            int count,
                            Allocation data,
                            int dataOff)

copy2DRangeFrom

public void copy2DRangeFrom(int xoff,
                            int yoff,
                            int w,
                            int h,
                            byte[] data)

copy2DRangeFrom

public void copy2DRangeFrom(int xoff,
                            int yoff,
                            int w,
                            int h,
                            short[] data)

copy2DRangeFrom

public void copy2DRangeFrom(int xoff,
                            int yoff,
                            int w,
                            int h,
                            int[] data)

copy2DRangeFrom

public void copy2DRangeFrom(int xoff,
                            int yoff,
                            int w,
                            int h,
                            float[] data)

copy2DRangeFrom

public void copy2DRangeFrom(int xoff,
                            int yoff,
                            int w,
                            int h,
                            Allocation data,
                            int dataXoff,
                            int dataYoff)

copy2DRangeFrom

public void copy2DRangeFrom(int xoff,
                            int yoff,
                            Bitmap data)

copyTo

public void copyTo(Bitmap b)

copyTo

public void copyTo(byte[] d)

copyTo

public void copyTo(short[] d)

copyTo

public void copyTo(int[] d)

copyTo

public void copyTo(float[] d)

resize

public void resize(int dimX)

createTyped

public static Allocation createTyped(RenderScript rs,
                                     Type type,
                                     Allocation.MipmapControl mips,
                                     int usage)

createTyped

public static Allocation createTyped(RenderScript rs,
                                     Type type,
                                     int usage)

createTyped

public static Allocation createTyped(RenderScript rs,
                                     Type type)

createSized

public static Allocation createSized(RenderScript rs,
                                     Element e,
                                     int count,
                                     int usage)

createSized

public static Allocation createSized(RenderScript rs,
                                     Element e,
                                     int count)

createFromBitmap

public static Allocation createFromBitmap(RenderScript rs,
                                          Bitmap b,
                                          Allocation.MipmapControl mips,
                                          int usage)

createFromBitmap

public static Allocation createFromBitmap(RenderScript rs,
                                          Bitmap b)

createCubemapFromBitmap

public static Allocation createCubemapFromBitmap(RenderScript rs,
                                                 Bitmap b,
                                                 Allocation.MipmapControl mips,
                                                 int usage)

createCubemapFromBitmap

public static Allocation createCubemapFromBitmap(RenderScript rs,
                                                 Bitmap b)

createCubemapFromCubeFaces

public static Allocation createCubemapFromCubeFaces(RenderScript rs,
                                                    Bitmap xpos,
                                                    Bitmap xneg,
                                                    Bitmap ypos,
                                                    Bitmap yneg,
                                                    Bitmap zpos,
                                                    Bitmap zneg,
                                                    Allocation.MipmapControl mips,
                                                    int usage)

createCubemapFromCubeFaces

public static Allocation createCubemapFromCubeFaces(RenderScript rs,
                                                    Bitmap xpos,
                                                    Bitmap xneg,
                                                    Bitmap ypos,
                                                    Bitmap yneg,
                                                    Bitmap zpos,
                                                    Bitmap zneg)

createFromBitmapResource

public static Allocation createFromBitmapResource(RenderScript rs,
                                                  Resources res,
                                                  int id,
                                                  Allocation.MipmapControl mips,
                                                  int usage)

createFromBitmapResource

public static Allocation createFromBitmapResource(RenderScript rs,
                                                  Resources res,
                                                  int id)

createFromString

public static Allocation createFromString(RenderScript rs,
                                          String str,
                                          int usage)


Copyright © 2008-2012. All Rights Reserved.