/frameworks/rs/ |
rsSampler.cpp | 25 Sampler::Sampler(Context *rsc) : ObjectBase(rsc) { 30 Sampler::Sampler(Context *rsc, 36 float aniso) : ObjectBase(rsc) { 71 void Sampler::serialize(Context *rsc, OStream *stream) const { 74 Sampler *Sampler::createFromStream(Context *rsc, IStream *stream) { 78 ObjectBaseRef<Sampler> Sampler::getSampler(Context *rsc, 87 for (uint32_t ct = 0; ct < rsc->mStateSampler.mAllSamplers.size(); ct++) { 88 Sampler *existing = rsc->mStateSampler.mAllSamplers[ct]; 101 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Sampler), 0) [all...] |
rsScript.cpp | 23 Script::Script(Context *rsc) : ObjectBase(rsc) { 108 void Script::callUpdateCacheObject(const Context *rsc, void *dstObj) const { 109 if (rsc->mHal.funcs.script.updateCachedObject != nullptr) { 110 rsc->mHal.funcs.script.updateCachedObject(rsc, this, (rs_script *)dstObj); 122 ScriptKernelID::ScriptKernelID(Context *rsc, Script *s, int slot, int sig) 123 : IDBase(rsc, s, slot) { 132 ScriptInvokeID::ScriptInvokeID(Context *rsc, Script *s, int slot) 133 : IDBase(rsc, s, slot) [all...] |
rsMesh.cpp | 24 Mesh::Mesh(Context *rsc) : ObjectBase(rsc) { 38 Mesh::Mesh(Context *rsc, 40 uint32_t primitivesCount) : ObjectBase(rsc) { 81 void Mesh::serialize(Context *rsc, OStream *stream) const { 89 mHal.state.vertexBuffers[vCount]->serialize(rsc, stream); 99 mHal.state.indexBuffers[pCount]->serialize(rsc, stream); 106 Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) { 122 Allocation *vertexAlloc = Allocation::createFromStream(rsc, stream); 141 Allocation *indexAlloc = Allocation::createFromStream(rsc, stream) [all...] |
rsObjectBase.h | 38 ObjectBase(Context *rsc); 59 static void zeroAllUserRef(Context *rsc); 60 static void freeAllChildren(Context *rsc); 61 static void dumpAll(Context *rsc); 64 virtual void serialize(Context *rsc, OStream *stream) const = 0; 67 static bool isValid(const Context *rsc, const ObjectBase *obj); 74 virtual void callUpdateCacheObject(const Context *rsc, void *dstObj) const;
|
rsScriptGroup.cpp | 29 ScriptGroup::ScriptGroup(Context *rsc) : ScriptGroupBase(rsc) { 210 ScriptGroup * ScriptGroup::create(Context *rsc, 225 ScriptGroup *sg = new ScriptGroup(rsc); 254 Allocation * alloc = Allocation::createAllocation(rsc, 266 if (rsc->mHal.funcs.scriptgroup.init) { 267 rsc->mHal.funcs.scriptgroup.init(rsc, sg); 273 void ScriptGroup::setInput(Context *rsc, ScriptKernelID *kid, Allocation *a) { 278 if (rsc->mHal.funcs.scriptgroup.setInput) [all...] |
rsObjectBase.cpp | 26 ObjectBase::ObjectBase(Context *rsc) { 29 mRSC = rsc; 39 rsAssert(rsc); 229 void ObjectBase::zeroAllUserRef(Context *rsc) { 235 const ObjectBase * o = rsc->mObjHead; 240 o = rsc->mObjHead; 250 dumpAll(rsc); 254 void ObjectBase::freeAllChildren(Context *rsc) { 260 ObjectBase * o = (ObjectBase *)rsc->mObjHead; 264 o = (ObjectBase *)rsc->mObjHead [all...] |
rsProgramStore.h | 62 virtual void serialize(Context *rsc, OStream *stream) const; 64 static ProgramStore *createFromStream(Context *rsc, IStream *stream); 88 void init(Context *rsc); 89 void deinit(Context *rsc);
|
rsSampler.h | 66 virtual void serialize(Context *rsc, OStream *stream) const; 68 static Sampler *createFromStream(Context *rsc, IStream *stream); 91 void init(Context *rsc) { 93 void deinit(Context *rsc) {
|
rsType.h | 104 virtual void serialize(Context *rsc, OStream *stream) const; 106 static Type *createFromStream(Context *rsc, IStream *stream); 108 ObjectBaseRef<Type> cloneAndResize1D(Context *rsc, uint32_t dimX) const; 109 ObjectBaseRef<Type> cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const; 111 static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e, 114 static Type* getType(Context *rsc, const Element *e, 116 ObjectBaseRef<Type> type = getTypeRef(rsc, e, params, len); 121 static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e, uint32_t dimX, uint32_t dimY = 0) { 126 return getTypeRef(rsc, e, &p, sizeof(p)); 131 virtual void callUpdateCacheObject(const Context *rsc, void *dstObj) const [all...] |
rsElement.h | 99 virtual void serialize(Context *rsc, OStream *stream) const; 101 static Element *createFromStream(Context *rsc, IStream *stream); 103 static ObjectBaseRef<const Element> createRef(Context *rsc, 108 static ObjectBaseRef<const Element> createRef(Context *rsc, size_t count, 114 static const Element* create(Context *rsc, 119 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); 123 static const Element* create(Context *rsc, size_t count, 128 ObjectBaseRef<const Element> elem = createRef(rsc, count, ein, nin, lengths, asin); 135 virtual void callUpdateCacheObject(const Context *rsc, void *dstObj) const;
|
rsApiFileA3D.cpp | 74 Context *rsc = static_cast<Context *>(con); local 75 FileA3D *fa3d = new FileA3D(rsc); 84 Context *rsc = static_cast<Context *>(con); local 86 FileA3D *fa3d = new FileA3D(rsc); 102 Context *rsc = static_cast<Context *>(con); local 107 fa3d = new FileA3D(rsc);
|
rsProgram.cpp | 25 Program::Program(Context *rsc, const char * shaderText, size_t shaderLength, 27 : ProgramBase(rsc) { 152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) { 157 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind allocation"); 163 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind allocation"); 181 void Program::bindTexture(Context *rsc, uint32_t slot, Allocation *a) { 184 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind texture"); 190 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind cubemap to 2d texture slot"); 200 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) { 203 rsc->setError(RS_ERROR_BAD_SHADER, "Cannot bind sampler") [all...] |
rsScriptGroup.h | 42 virtual void execute(Context *rsc); 82 static ScriptGroup * create(Context *rsc, 89 void setInput(Context *rsc, ScriptKernelID *kid, Allocation *a); 90 void setOutput(Context *rsc, ScriptKernelID *kid, Allocation *a);
|
/frameworks/rs/driver/ |
rsdGL.cpp | 152 void rsdGLShutdown(const Context *rsc) { 153 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 155 rsdGLSetSurface(rsc, 0, 0, nullptr); 177 void getConfigData(const Context *rsc, 204 if (rsc->mUserSurfaceConfig.alphaMin > 0) { 206 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin; 210 if (rsc->mUserSurfaceConfig.depthMin > 0) { 212 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin; 216 if (rsc->mDev->mForceSW) { 234 bool rsdGLInit(const Context *rsc) { [all...] |
rsdCore.cpp | 50 static void Shutdown(Context *rsc); 51 static void SetPriority(const Context *rsc, int32_t priority); 280 typedef void (*sAllocationDestroyFnPtr) (const Context *rsc, Allocation *alloc); 281 typedef void (*sAllocationIoSendFnPtr) (const Context *rsc, Allocation *alloc); 282 typedef void (*sAllocationSetSurfaceFnPtr) (const Context *rsc, Allocation *alloc, ANativeWindow *nw); 315 Context *rsc = (Context*) c; local 318 rsc->mHal.funcs.allocation.destroy = sAllocationDestroy; 319 rsc->mHal.funcs.allocation.ioSend = sAllocationIoSend; 320 rsc->mHal.funcs.allocation.setSurface = sAllocationSetSurface; 329 rsc->mHal.drv = dc [all...] |
rsdMeshObj.h | 43 bool init(const android::renderscript::Context *rsc); 49 void updateGLPrimitives(const android::renderscript::Context *rsc);
|
rsdProgramRaster.cpp | 35 void rsdProgramRasterSetActive(const Context *rsc, const ProgramRaster *pr) { 49 rsc->setError(RS_ERROR_FATAL_DRIVER, "Invalid cull type");
|
rsdSampler.cpp | 40 void rsdSamplerDestroy(const android::renderscript::Context *rsc, 44 void rsdSamplerUpdateCachedObject(const Context *rsc,
|
rsdRuntimeStubs.cpp | 135 static bool failIfInKernel(Context *rsc, const char *funcName) { 136 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 143 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); 155 Context *rsc = RsdCpuReference::getTlsContext(); local 157 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); 159 alloc->callUpdateCacheObject(rsc, &obj); 164 Context *rsc = RsdCpuReference::getTlsContext(); local 166 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); 173 alloc->callUpdateCacheObject(rsc, &obj); 179 Context *rsc = RsdCpuReference::getTlsContext() local 186 Context *rsc = RsdCpuReference::getTlsContext(); local 197 Context *rsc = RsdCpuReference::getTlsContext(); local 212 Context *rsc = RsdCpuReference::getTlsContext(); local 225 Context *rsc = RsdCpuReference::getTlsContext(); local 251 Context *rsc = RsdCpuReference::getTlsContext(); local 324 Context *rsc = RsdCpuReference::getTlsContext(); local 454 Context *rsc = RsdCpuReference::getTlsContext(); local 657 Context *rsc = RsdCpuReference::getTlsContext(); local 678 Context *rsc = RsdCpuReference::getTlsContext(); local 687 Context *rsc = RsdCpuReference::getTlsContext(); local 695 Context *rsc = RsdCpuReference::getTlsContext(); local 707 Context *rsc = RsdCpuReference::getTlsContext(); local 718 Context *rsc = RsdCpuReference::getTlsContext(); local 728 Context *rsc = RsdCpuReference::getTlsContext(); local 733 Context *rsc = RsdCpuReference::getTlsContext(); local 738 Context *rsc = RsdCpuReference::getTlsContext(); local 743 Context *rsc = RsdCpuReference::getTlsContext(); local 759 Context *rsc = RsdCpuReference::getTlsContext(); local 768 Context *rsc = RsdCpuReference::getTlsContext(); local 773 Context *rsc = RsdCpuReference::getTlsContext(); local 778 Context *rsc = RsdCpuReference::getTlsContext(); local 783 Context *rsc = RsdCpuReference::getTlsContext(); local 796 Context *rsc = RsdCpuReference::getTlsContext(); local 837 Context *rsc = RsdCpuReference::getTlsContext(); local 855 Context *rsc = RsdCpuReference::getTlsContext(); local 860 Context *rsc = RsdCpuReference::getTlsContext(); local 866 Context *rsc = RsdCpuReference::getTlsContext(); local 873 Context *rsc = RsdCpuReference::getTlsContext(); local 878 Context *rsc = RsdCpuReference::getTlsContext(); local 883 Context *rsc = RsdCpuReference::getTlsContext(); local 888 Context *rsc = RsdCpuReference::getTlsContext(); local 893 Context *rsc = RsdCpuReference::getTlsContext(); local 899 Context *rsc = RsdCpuReference::getTlsContext(); local 905 Context *rsc = RsdCpuReference::getTlsContext(); local 911 Context *rsc = RsdCpuReference::getTlsContext(); local 917 Context *rsc = RsdCpuReference::getTlsContext(); local 922 Context *rsc = RsdCpuReference::getTlsContext(); local 927 Context *rsc = RsdCpuReference::getTlsContext(); local 932 Context *rsc = RsdCpuReference::getTlsContext(); local 937 Context *rsc = RsdCpuReference::getTlsContext(); local 943 Context *rsc = RsdCpuReference::getTlsContext(); local 948 Context *rsc = RsdCpuReference::getTlsContext(); local 953 Context *rsc = RsdCpuReference::getTlsContext(); local 989 Context *rsc = RsdCpuReference::getTlsContext(); local 994 Context *rsc = RsdCpuReference::getTlsContext(); local 999 Context *rsc = RsdCpuReference::getTlsContext(); local 1006 Context *rsc = RsdCpuReference::getTlsContext(); local 1011 Context *rsc = RsdCpuReference::getTlsContext(); local 1017 Context *rsc = RsdCpuReference::getTlsContext(); local 1023 Context *rsc = RsdCpuReference::getTlsContext(); local 1028 Context *rsc = RsdCpuReference::getTlsContext(); local 1034 Context *rsc = RsdCpuReference::getTlsContext(); local 1040 Context *rsc = RsdCpuReference::getTlsContext(); local 1045 Context *rsc = RsdCpuReference::getTlsContext(); local 1050 Context *rsc = RsdCpuReference::getTlsContext(); local 1055 Context *rsc = RsdCpuReference::getTlsContext(); local 1060 Context *rsc = RsdCpuReference::getTlsContext(); local 1065 Context *rsc = RsdCpuReference::getTlsContext(); local 1070 Context *rsc = RsdCpuReference::getTlsContext(); local 1075 Context *rsc = RsdCpuReference::getTlsContext(); local 1080 Context *rsc = RsdCpuReference::getTlsContext(); local 1085 Context *rsc = RsdCpuReference::getTlsContext(); local [all...] |
rsdVertexArray.cpp | 82 void RsdVertexArray::setup(const Context *rsc) const { 84 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 88 rsdGLCheckError(rsc, "RsdVertexArray::setup start"); 98 rsdGLCheckError(rsc, "RsdVertexArray::setup disabled"); 101 if (rsc->props.mLogShadersAttr) { 117 rsdGLCheckError(rsc, "RsdVertexArray::setup done");
|
rsdFrameBufferObj.h | 29 void setActive(const android::renderscript::Context *rsc); 54 void checkError(const android::renderscript::Context *rsc);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterBorder.java | 83 public Drawable getDrawable(int rsc) { 84 Drawable drawable = mDrawables.get(rsc); 85 if (drawable == null && mResources != null && rsc != 0) { 86 drawable = new BitmapDrawable(mResources, BitmapFactory.decodeResource(mResources, rsc)); 87 mDrawables.put(rsc, drawable);
|
/frameworks/support/v8/renderscript/jni/ |
android_rscompat_usage_io_driver.cpp | 15 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) { 34 Context *rsc = (Context *)rscR; local 57 IoGetBuffer(rsc, alloc, nw); 71 extern "C" void rscAllocationDestroy(const Context *rsc, Allocation *alloc) { 96 extern "C" void rscAllocationIoSend(const Context *rsc, Allocation *alloc) { 106 IoGetBuffer(rsc, alloc, nw);
|
/external/iproute2/tc/ |
q_hfsc.c | 149 struct tc_service_curve rsc, fsc, usc; local 153 memset(&rsc, 0, sizeof(rsc)); 161 if (hfsc_get_sc(&argc, &argv, &rsc) < 0) { 175 if (hfsc_get_sc(&argc, &argv, &rsc) < 0) { 179 memcpy(&fsc, &rsc, sizeof(fsc)); 216 addattr_l(n, 1024, TCA_HFSC_RSC, &rsc, sizeof(rsc)); 241 struct tc_service_curve *rsc = NULL, *fsc = NULL, *usc = NULL; local 249 if (RTA_PAYLOAD(tb[TCA_HFSC_RSC]) < sizeof(*rsc)) [all...] |
/external/libutf/ |
NOTICE | 18 to Russ Cox <rsc@swtch.com>.
|