/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
D | ScriptIntrinsicBlend.java | 45 private void blend(int id, Allocation ain, Allocation aout) { in blend() 61 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear() 81 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc() 101 public void forEachDst(Allocation ain, Allocation aout) { in forEachDst() 120 public void forEachSrcOver(Allocation ain, Allocation aout) { in forEachSrcOver() 139 public void forEachDstOver(Allocation ain, Allocation aout) { in forEachDstOver() 158 public void forEachSrcIn(Allocation ain, Allocation aout) { in forEachSrcIn() 177 public void forEachDstIn(Allocation ain, Allocation aout) { in forEachDstIn() 196 public void forEachSrcOut(Allocation ain, Allocation aout) { in forEachSrcOut() 215 public void forEachDstOut(Allocation ain, Allocation aout) { in forEachDstOut() [all …]
|
/frameworks/base/graphics/java/android/renderscript/ |
D | ScriptIntrinsicBlend.java | 45 private void blend(int id, Allocation ain, Allocation aout) { in blend() 61 public void forEachClear(Allocation ain, Allocation aout) { in forEachClear() 81 public void forEachSrc(Allocation ain, Allocation aout) { in forEachSrc() 101 public void forEachDst(Allocation ain, Allocation aout) { in forEachDst() 120 public void forEachSrcOver(Allocation ain, Allocation aout) { in forEachSrcOver() 139 public void forEachDstOver(Allocation ain, Allocation aout) { in forEachDstOver() 158 public void forEachSrcIn(Allocation ain, Allocation aout) { in forEachSrcIn() 177 public void forEachDstIn(Allocation ain, Allocation aout) { in forEachDstIn() 196 public void forEachSrcOut(Allocation ain, Allocation aout) { in forEachSrcOut() 215 public void forEachDstOut(Allocation ain, Allocation aout) { in forEachDstOut() [all …]
|
D | Path.java | 38 Allocation mVertexBuffer; 39 Allocation mLoopBuffer; 44 Path(int id, RenderScript rs, Primitive p, Allocation vtx, Allocation loop, float q) { in Path() 52 public Allocation getVertexAllocation() { in getVertexAllocation() 56 public Allocation getLoopAllocation() { in getLoopAllocation() 69 … public static Path createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createStaticPath() 75 …h createStaticPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { in createStaticPath() 79 …public static Path createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx) { in createDynamicPath() 83 … createDynamicPath(RenderScript rs, Primitive p, float quality, Allocation vtx, Allocation loops) { in createDynamicPath()
|
D | Mesh.java | 89 Allocation[] mVertexBuffers; 90 Allocation[] mIndexBuffers; 114 public Allocation getVertexAllocation(int slot) { in getVertexAllocation() 137 public Allocation getIndexSetAllocation(int slot) { in getIndexSetAllocation() 163 mVertexBuffers = new Allocation[vtxCount]; in updateFromNative() 164 mIndexBuffers = new Allocation[idxCount]; in updateFromNative() 169 mVertexBuffers[i] = new Allocation(vtxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 176 mIndexBuffers[i] = new Allocation(idxIDs[i], mRS, null, Allocation.USAGE_SCRIPT); in updateFromNative() 356 Allocation[] vertexBuffers = new Allocation[mVertexTypeCount]; in create() 357 Allocation[] indexBuffers = new Allocation[mIndexTypes.size()]; in create() [all …]
|
/frameworks/rs/cpp/ |
D | Allocation.cpp | 30 void * Allocation::getIDSafe() const { in getIDSafe() 37 void Allocation::updateCacheInfo(sp<const Type> t) { in updateCacheInfo() 50 Allocation::Allocation(void *id, RenderScript *rs, sp<const Type> t, uint32_t usage) : in Allocation() function in Allocation 80 void Allocation::validateIsInt32() { in validateIsInt32() 88 void Allocation::validateIsInt16() { in validateIsInt16() 96 void Allocation::validateIsInt8() { in validateIsInt8() 104 void Allocation::validateIsFloat32() { in validateIsFloat32() 112 void Allocation::validateIsObject() { in validateIsObject() 129 void Allocation::updateFromNative() { in updateFromNative() 142 void Allocation::syncAll(RsAllocationUsageType srcLocation) { in syncAll() [all …]
|
/frameworks/rs/ |
D | rsAllocation.cpp | 28 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, in Allocation() function in Allocation 41 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, in createAllocation() 43 Allocation *a = new Allocation(rsc, type, usages, mc, ptr); in createAllocation() 54 void Allocation::updateCache() { in updateCache() 66 Allocation::~Allocation() { in ~Allocation() 72 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { in syncAll() 76 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() 91 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() 108 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, in data() 113 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, in read() [all …]
|
D | rs_hal.h | 31 class Allocation; variable 111 const Allocation * ain, 112 Allocation * aout, 132 Allocation *data); 141 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero); 142 void (*destroy)(const Context *rsc, Allocation *alloc); 144 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType, 146 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src); 147 void (*markDirty)(const Context *rsc, const Allocation *alloc); 149 int32_t (*initSurfaceTexture)(const Context *rsc, const Allocation *alloc); [all …]
|
D | rsFBOCache.h | 26 class Allocation; variable 36 void bindColorTarget(Context *rsc, Allocation *a, uint32_t slot); 37 void bindDepthTarget(Context *, Allocation *a); 47 Allocation **colorTargets; 49 Allocation *depthTarget; 56 ObjectBaseRef<Allocation> *mColorTargets; 57 ObjectBaseRef<Allocation> mDepthTarget;
|
/frameworks/rs/driver/ |
D | rsdAllocation.h | 59 } lod[android::renderscript::Allocation::MAX_LOD]; 72 android::renderscript::Allocation *alloc, 75 android::renderscript::Allocation *alloc); 78 const android::renderscript::Allocation *alloc, 81 const android::renderscript::Allocation *alloc, 84 const android::renderscript::Allocation *alloc); 86 const android::renderscript::Allocation *alloc); 88 android::renderscript::Allocation *alloc, ANativeWindow *nw); 90 android::renderscript::Allocation *alloc); 92 android::renderscript::Allocation *alloc); [all …]
|
/frameworks/support/renderscript/v8/rs_support/driver/ |
D | rsdAllocation.h | 59 } lod[android::renderscript::Allocation::MAX_LOD]; 69 android::renderscript::Allocation *alloc, 72 android::renderscript::Allocation *alloc); 75 const android::renderscript::Allocation *alloc, 78 const android::renderscript::Allocation *alloc, 81 const android::renderscript::Allocation *alloc); 84 const android::renderscript::Allocation *alloc, 88 const android::renderscript::Allocation *alloc, 93 const android::renderscript::Allocation *alloc, 99 const android::renderscript::Allocation *alloc, [all …]
|
D | rsdAllocation.cpp | 40 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc, in GetOffsetPtr() 52 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr, in Update2DTexture() 58 static void UploadToTexture(const Context *rsc, const Allocation *alloc) { in UploadToTexture() 61 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) { in AllocateRenderTarget() 64 static void UploadToBufferObject(const Context *rsc, const Allocation *alloc) { in UploadToBufferObject() 67 static size_t AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc, in AllocationBuildPointerTable() 79 size_t offsets[Allocation::MAX_LOD]; in AllocationBuildPointerTable() 116 bool rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) { in rsdAllocationInit() 174 void rsdAllocationDestroy(const Context *rsc, Allocation *alloc) { in rsdAllocationDestroy() 185 void rsdAllocationResize(const Context *rsc, const Allocation *alloc, in rsdAllocationResize() [all …]
|
/frameworks/support/renderscript/v8/rs_support/ |
D | rs_hal.h | 31 class Allocation; variable 110 const Allocation * ain, 111 Allocation * aout, 131 Allocation *data); 140 bool (*init)(const Context *rsc, Allocation *alloc, bool forceZero); 141 void (*destroy)(const Context *rsc, Allocation *alloc); 143 void (*resize)(const Context *rsc, const Allocation *alloc, const Type *newType, 145 void (*syncAll)(const Context *rsc, const Allocation *alloc, RsAllocationUsageType src); 146 void (*markDirty)(const Context *rsc, const Allocation *alloc); 148 int32_t (*initSurfaceTexture)(const Context *rsc, const Allocation *alloc); [all …]
|
D | rsAllocation.cpp | 25 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, in Allocation() function in Allocation 38 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, in createAllocation() 40 Allocation *a = new Allocation(rsc, type, usages, mc, ptr); in createAllocation() 51 void Allocation::updateCache() { in updateCache() 62 Allocation::~Allocation() { in ~Allocation() 67 void Allocation::syncAll(Context *rsc, RsAllocationUsageType src) { in syncAll() 71 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t lod, in data() 86 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemap… in data() 103 void Allocation::data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, in data() 108 void Allocation::read(Context *rsc, uint32_t xoff, uint32_t lod, in read() [all …]
|
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/ |
D | SurfaceTextureOpaqueRS.java | 35 private Allocation mSto; 36 private Allocation mSto2; 37 private Allocation mRto; 47 mSto = Allocation.createTyped(mRS, tb.create(), Allocation.USAGE_GRAPHICS_TEXTURE | in init() 48 Allocation.USAGE_IO_INPUT); in init() 49 mRto = Allocation.createTyped(mRS, tb.create(), Allocation.USAGE_GRAPHICS_RENDER_TARGET | in init() 50 Allocation.USAGE_IO_OUTPUT); in init() 51 mSto2 = Allocation.createTyped(mRS, tb.create(), Allocation.USAGE_GRAPHICS_TEXTURE | in init() 52 Allocation.USAGE_IO_INPUT); in init()
|
/frameworks/base/tests/RenderScriptTests/SampleTest/src/com/android/rs/sample/ |
D | SampleRSActivity.java | 26 import android.renderscript.Allocation; 43 private Allocation mOutPixelsAllocation; 46 TextureViewUpdater(Allocation outAlloc, Sampler sampler) { in TextureViewUpdater() 76 private Allocation mTwoByTwoAlloc; 77 private Allocation mCityAlloc; 98 mTwoByTwoAlloc = Allocation.createFromBitmap(mRS, mBitmapTwoByTwo, in onCreate() 99 Allocation.MipmapControl.MIPMAP_NONE, in onCreate() 100 Allocation.USAGE_SCRIPT); in onCreate() 102 mCityAlloc = Allocation.createFromBitmap(mRS, mBitmapCity, in onCreate() 103 Allocation.MipmapControl.MIPMAP_NONE, in onCreate() [all …]
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | FBOSyncRS.java | 54 private Allocation mGridImage; 55 private Allocation mOffscreen; 56 private Allocation mOffscreenDepth; 57 private Allocation mAllocPV; 58 private Allocation mReadBackTest; 61 private Allocation mTextAlloc; 118 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage() 119 … Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage() 120 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage() 126 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation() [all …]
|
D | FBOTestRS.java | 54 private Allocation mGridImage; 55 private Allocation mOffscreen; 56 private Allocation mOffscreenDepth; 57 private Allocation mAllocPV; 60 private Allocation mTextAlloc; 117 mGridImage = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, in loadImage() 118 … Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE, in loadImage() 119 Allocation.USAGE_GRAPHICS_TEXTURE); in loadImage() 125 mTextAlloc = Allocation.createFromString(mRS, allocString, Allocation.USAGE_SCRIPT); in initTextAllocation() 177 mOffscreen = Allocation.createTyped(mRS, in initRS() [all …]
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ |
D | TestBase.java | 28 import android.renderscript.Allocation; 45 protected Allocation mInPixelsAllocation; 46 protected Allocation mInPixelsAllocation2; 47 protected Allocation mOutPixelsAllocation; 99 mInPixelsAllocation = Allocation.createFromBitmap(mRS, b, in createBaseTest() 100 Allocation.MipmapControl.MIPMAP_NONE, in createBaseTest() 101 Allocation.USAGE_SCRIPT); in createBaseTest() 102 mInPixelsAllocation2 = Allocation.createFromBitmap(mRS, b2, in createBaseTest() 103 Allocation.MipmapControl.MIPMAP_NONE, in createBaseTest() 104 Allocation.USAGE_SCRIPT); in createBaseTest() [all …]
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
D | TestBase.java | 40 protected Allocation mInPixelsAllocation; 41 protected Allocation mInPixelsAllocation2; 42 protected Allocation mOutPixelsAllocation; 94 mInPixelsAllocation = Allocation.createFromBitmap(mRS, b, in createBaseTest() 95 Allocation.MipmapControl.MIPMAP_NONE, in createBaseTest() 96 Allocation.USAGE_SCRIPT); in createBaseTest() 97 mInPixelsAllocation2 = Allocation.createFromBitmap(mRS, b2, in createBaseTest() 98 Allocation.MipmapControl.MIPMAP_NONE, in createBaseTest() 99 Allocation.USAGE_SCRIPT); in createBaseTest() 100 mOutPixelsAllocation = Allocation.createFromBitmap(mRS, b, in createBaseTest() [all …]
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
D | UT_copy_test.java | 34 Allocation a1 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() 35 Allocation a2 = Allocation.createSized(rs, Element.F32_2(rs), 1024); in testFloat2() 58 Allocation a1 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() 59 Allocation a2 = Allocation.createSized(rs, Element.F32_3(rs), 1024); in testFloat3() 82 Allocation a1 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4() 83 Allocation a2 = Allocation.createSized(rs, Element.F32_4(rs), 1024); in testFloat4()
|
D | UT_alloc.java | 40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals() 45 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals() 48 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals() 51 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
|
D | UT_mesh.java | 35 Allocation vAlloc0 = Allocation.createSized(RS, Element.F32(RS), 10); in initializeGlobals() 36 Allocation vAlloc1 = Allocation.createSized(RS, Element.F32_2(RS), 10); in initializeGlobals() 38 Allocation iAlloc0 = Allocation.createSized(RS, Element.I16(RS), 10); in initializeGlobals() 39 Allocation iAlloc2 = Allocation.createSized(RS, Element.I16(RS), 10); in initializeGlobals()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | Scene.java | 271 Allocation drawableData = Allocation.createSized(rs, in addDrawables() 274 Allocation[] drawableAllocs = new Allocation[mRenderables.size()]; in addDrawables() 288 Allocation shaderData = Allocation.createSized(rs, Element.ALLOCATION(rs), in addShaders() 290 Allocation[] shaderAllocs = new Allocation[mVertexShaders.size()]; in addShaders() 300 Allocation shaderData = Allocation.createSized(rs, Element.ALLOCATION(rs), in addShaders() 302 Allocation[] shaderAllocs = new Allocation[mFragmentShaders.size()]; in addShaders() 334 Allocation opaqueBuffer = null; in initRS() 336 opaqueBuffer = Allocation.createSized(mRS, Element.U32(mRS), mRenderables.size()); in initRS() 338 Allocation transparentBuffer = null; in initRS() 340 transparentBuffer = Allocation.createSized(mRS, Element.U32(mRS), mRenderables.size()); in initRS() [all …]
|
D | SceneManager.java | 43 import android.renderscript.Allocation.MipmapControl; 54 HashMap<String, Allocation> mAllocationMap; 75 private Allocation mDefault2D; 76 private Allocation mDefaultCube; 85 private static Allocation getDefault(boolean isCube) { in getDefault() 99 Allocation.MipmapControl mip = Allocation.MipmapControl.MIPMAP_ON_SYNC_TO_TEXTURE; in getDefault() 100 int usage = Allocation.USAGE_GRAPHICS_TEXTURE; in getDefault() 101 Allocation defaultImage = Allocation.createTyped(rs, bitmapType, mip, usage); in getDefault() 108 static Allocation getDefaultTex2D() { in getDefaultTex2D() 118 static Allocation getDefaultTexCube() { in getDefaultTexCube() [all …]
|
/frameworks/base/tests/RenderScriptTests/tests_v14/src/com/android/rs/test/ |
D | UT_alloc.java | 40 Allocation A = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals() 45 Allocation AFaces = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals() 48 Allocation ALOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals() 51 Allocation AFacesLOD = Allocation.createTyped(RS, typeBuilder.create()); in initializeGlobals()
|