/frameworks/rs/driver/ |
H A D | rsdVertexArray.cpp | 30 RsdVertexArray::RsdVertexArray(const Attrib *attribs, uint32_t numAttribs) { 55 const char *name) { 65 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { argument 81 void RsdVertexArray::setup(const Context *rsc) const { argument
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 28 Allocation::Allocation(Context *rsc, const Type *type, uint32_t usages, 42 Allocation::Allocation(Context *rsc, const Allocation *alloc, const Type *type) 61 Allocation * Allocation::createAllocationStrided(Context *rsc, const Type *type, uint32_t usages, 101 Allocation * Allocation::createAllocation(Context *rsc, const Type *type, uint32_t usages, 106 Allocation * Allocation::createAdapter(Context *rsc, const Allocation *alloc, const Type *type) { 126 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { 145 const Type *type = mHal.state.type; 172 void * Allocation::getPointer(const Contex 352 dumpLOGV(const char *prefix) const argument 366 getPackedSize() const argument 428 packVec3Allocation(Context *rsc, OStream *stream) const argument 442 serialize(Context *rsc, OStream *stream) const argument 512 sendDirty(const Context *rsc) const argument 521 incRefs(const void *ptr, size_t ct, size_t startOff) const argument 525 decRefs(const void *ptr, size_t ct, size_t startOff) const argument 532 callUpdateCacheObject(const Context *rsc, void *dstObj) const argument 648 hasSameDims(const Allocation *other) const argument [all...] |
H A D | rsAllocation.h | 46 const static int MAX_LOD = 16; 48 const static size_t kMinimumRSAlignment = 16; 50 const static uint32_t MAX_NUM_ALLOC = 16; 56 const Type * type; 74 const Allocation *baseAlloc; 111 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages, 114 static Allocation * createAllocationStrided(Context *rsc, const Type *, uint32_t usages, 117 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type); 123 const Typ argument 155 getClassId() const argument 158 getIsScript() const argument 161 getIsTexture() const argument 164 getIsRenderTarget() const argument 167 getIsBufferObject() const argument 177 getHasGraphicsMipmaps() const argument 194 getPointerUnchecked(uint32_t x, uint32_t y, uint32_t z = 0, uint32_t lod = 0, RsAllocationCubemapFace face = RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X, uint32_t a1 = 0, uint32_t a2 = 0, uint32_t a3 = 0, uint32_t a4 = 0) const argument [all...] |
H A D | rsAnimation.cpp | 24 void Animation::serialize(Context *rsc, OStream *stream) const { argument 48 const float *inValues, const float *outValues, 120 const float *inValues, 121 const float *outValues,
|
H A D | rsAnimation.h | 33 const float *inValues, const float *outValues, 37 float eval(float) const; 39 virtual void serialize(Context *rsc, OStream *stream) const; 40 virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_ANIMATION; } argument 48 float evalInRange(float) const; 52 const float *mValuesInput; 53 const float *mValuesOutput;
|
H A D | rsClosure.h | 23 const ScriptKernelID* kernelID, 25 const int numValues, 26 const ScriptFieldID** fieldIDs, 27 const int64_t* values, // Allocations or primitive (numeric) types 28 const int* sizes, // size for data type. -1 indicates an allocation. 29 const Closure** depClosures, 30 const ScriptFieldID** depFieldIDs); 32 const ScriptInvokeID* invokeID, 33 const void* params, 34 const size_ 42 serialize(Context *rsc, OStream *stream) const argument 44 getClassId() const argument [all...] |
H A D | rsComponent.cpp | 195 bool Component::isReference() const { argument 199 static const char * gTypeBasicStrings[] = { 221 static const char * gTypeObjStrings[] = { 234 static const char * gKindStrings[] = { 249 void Component::dumpLOGV(const char *prefix) const { argument 259 void Component::serialize(OStream *stream) const { argument
|
H A D | rsComponent.h | 36 void dumpLOGV(const char *prefix) const; 38 RsDataType getType() const {return mType;} argument 39 RsDataKind getKind() const {return mKind;} argument 40 bool getIsNormalized() const {return mNormalized;} argument 41 uint32_t getVectorSize() const {return mVectorSize;} argument 42 bool getIsFloat() const {return mIsFloat;} argument 43 bool getIsSigned() const {return mIsSigned;} argument 44 uint32_t getBits() const {return mBits;} argument 45 uint32_t getBitsUnpadded() const {retur argument [all...] |
H A D | rsContext.cpp | 115 uint64_t Context::getTime() const { argument 142 const uint64_t averageFramerateInterval = 1000 * 1000000; 200 static uint32_t getProp(const char *str) { 452 void Context::setCacheDir(const char * cacheDir_arg, uint32_t length) { 462 Context * Context::createContext(Device *dev, const RsSurfaceConfig *sc, 464 const char* vendorDriverName) { 491 bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { 589 uint32_t Context::getCurrentSurfaceWidth() const { argument 601 uint32_t Context::getCurrentSurfaceHeight() const { argument 680 void Context::assignName(ObjectBase *obj, const cha 703 sendMessageToClient(const void *data, RsMessageToClientType cmdID, uint32_t subID, size_t len, bool waitForSpace) const argument 722 setError(RsError e, const char *msg) const argument 735 dumpDebug() const argument [all...] |
H A D | rsContext.h | 55 if (!ObjectBase::isValid(rsc, (const ObjectBase *)o)) { \ 61 if (o && !ObjectBase::isValid(rsc, (const ObjectBase *)o)) { \ 82 static Context * createContext(Device *, const RsSurfaceConfig *sc, 85 const char* vendorDriverName = nullptr); 155 void assignName(ObjectBase *obj, const char *name, uint32_t len); 160 bool sendMessageToClient(const void *data, RsMessageToClientType cmdID, uint32_t subID, size_t len, bool waitForSpace) const; 167 ProgramFragment * getDefaultProgramFragment() const { argument 170 ProgramVertex * getDefaultProgramVertex() const { argument 173 ProgramStore * getDefaultProgramStore() const { argument 176 getDefaultProgramRaster() const argument 179 getDefaultFont() const argument 183 getWidth() const argument 184 getHeight() const argument 189 setWatchdogGL(const char *cmd, uint32_t line, const char *file) const argument 238 getDPI() const argument 241 getTargetSdkVersion() const argument 244 getContextType() const argument 253 getOptLevel() const argument [all...] |
H A D | rsElement.cpp | 43 void Element::preDestroy() const { argument 71 size_t Element::getSizeBits() const { argument 83 size_t Element::getSizeBitsUnpadded() const { argument 95 void Element::dumpLOGV(const char *prefix) const { argument 107 void Element::serialize(Context *rsc, OStream *stream) const { argument 131 const char *name = stream->loadString(); 145 const Element **subElems = new const Element *[fieldCount]; 146 const cha 350 incRefs(const void *ptr) const argument 372 decRefs(const void *ptr) const argument 394 callUpdateCacheObject(const Context *rsc, void *dstObj) const argument [all...] |
H A D | rsElement.h | 51 const Element **fields; 53 const char **fieldNames; 64 uint32_t getGLType() const; 65 uint32_t getGLFormat() const; 67 size_t getSizeBitsUnpadded() const; 68 size_t getSizeBytesUnpadded() const { argument 72 size_t getSizeBits() const; 73 size_t getSizeBytes() const { argument 77 size_t getFieldOffsetBits(uint32_t componentNumber) const { argument 80 size_t getFieldOffsetBytes(uint32_t componentNumber) const { argument 84 getFieldOffsetBytesUnpadded(uint32_t componentNumber) const argument 88 getFieldCount() const argument 89 getField(uint32_t idx) const argument 90 getFieldName(uint32_t idx) const argument 91 getFieldArraySize(uint32_t idx) const argument 93 getComponent() const argument 94 getType() const argument 95 getKind() const argument 96 getBits() const argument 97 getBitsUnpadded() const argument 98 getVectorSize() const argument 102 getClassId() const argument 138 getHasReferences() const argument [all...] |
H A D | rsFileA3D.cpp | 88 bool FileA3D::load(const void *data, size_t length) { 89 const uint8_t *localData = (const uint8_t *)data; 202 size_t FileA3D::getNumIndexEntries() const { argument 210 const FileA3D::A3DIndexEntry *FileA3D::getIndexEntry(size_t index) const { argument 296 bool FileA3D::writeFile(const char *filename) { 366 const uint64_t initialStreamSize = 256*1024;
|
H A D | rsFileA3D.h | 46 const char *mObjectName; 53 const char *getObjectName() const { argument 56 RsA3DClassID getType() const { argument 65 bool load(const void *data, size_t length); 67 size_t getNumIndexEntries() const; 68 const A3DIndexEntry* getIndexEntry(size_t index) const; 72 bool writeFile(const char *filename); 76 virtual void serialize(Context *rsc, OStream *stream) const { argument 78 getClassId() const argument [all...] |
H A D | rsFont.cpp | 40 bool Font::init(const char *name, float fontSize, uint32_t dpi, const void *data, uint32_t dataLen) { 49 error = FT_New_Memory_Face(mRSC->mStateFont.getLib(), (const FT_Byte*)data, dataLen, 0, &mFace); 76 void Font::preDestroy() const { argument 122 const uint8_t* cacheBuffer = state->mCacheBuffer; 160 void Font::renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, 295 Font * Font::create(Context *rsc, const char *name, float fontSize, uint32_t dpi, 296 const void *data, uint32_t dataLen) { 494 const char *shaderString = "varying vec2 varTex0;\n" 502 const cha 806 getFontColor(float *r, float *g, float *b, float *a) const argument [all...] |
H A D | rsFont.h | 69 virtual void serialize(Context *rsc, OStream *stream) const { argument 71 virtual RsA3DClassID getClassId() const { argument 75 static Font * create(Context *rsc, const char *name, float fontSize, uint32_t dpi, 76 const void *data = nullptr, uint32_t dataLen = 0); 85 void renderUTF(const char *text, uint32_t len, int32_t x, int32_t y, 115 const char *mFontName; 120 bool init(const char *name, float fontSize, uint32_t dpi, const void *data = nullptr, uint32_t dataLen = 0); 122 virtual void preDestroy() const; 148 void renderText(const cha [all...] |
H A D | rsList.h | 54 void push_back(const T& value) { 82 bool operator==(const iterator& other) const { argument 86 bool operator!=(const iterator& other) const { argument 90 const T& operator*() const { return *p; } argument 95 explicit iterator(const List* list_) : list(list_) {} 96 iterator(const List* list_, LinkedBuffer* buffer_, T* p_) : 102 const Lis 105 begin() const argument 107 end() const argument 109 empty() const argument 111 front() const argument 113 back() const argument 115 size() const argument [all...] |
H A D | rsMap.h | 55 ValueType& operator[](const KeyType& key) { 56 const size_t index = hash(key) & MAP_NUM_BUCKET_MASK; 103 bool operator==(const iterator& other) const { argument 108 bool operator!=(const iterator& other) const { argument 113 const MapEntry& operator*() const { argument 118 iterator(size_t index, LinkNode* n, const Map* m) : bucket_index(index), node(n), map(m) {} 123 const Ma 126 begin() const argument 137 end() const argument 143 find(const KeyType& key) const argument 158 hash(const KeyType& key) const argument [all...] |
H A D | rsMatrix2x2.h | 28 inline float get(uint32_t col, uint32_t row) const { argument 37 void load(const float *); 38 void load(const rs_matrix2x2 *); 40 void loadMultiply(const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs); 44 void multiply(const rs_matrix2x2 *rhs) {
|
H A D | rsMatrix3x3.h | 28 inline float get(uint32_t col, uint32_t row) const { argument 37 void load(const float *); 38 void load(const rs_matrix3x3 *); 40 void loadMultiply(const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs); 44 void multiply(const rs_matrix3x3 *rhs) {
|
H A D | rsMatrix4x4.cpp | 153 void Matrix4x4::load(const float *v) { 157 void Matrix4x4::load(const rs_matrix4x4 *v) { 161 void Matrix4x4::load(const rs_matrix3x3 *v) { 180 void Matrix4x4::load(const rs_matrix2x2 *v) { 213 const float len = x*x + y*y + z*z; 215 const float recipLen = 1.f / sqrtf(len); 220 const float nc = 1.0f - c; 221 const float xy = x * y; 222 const float yz = y * z; 223 const floa 307 vectorMultiply(float *out, const float *in) const argument 314 logv(const char *s) const argument [all...] |
H A D | rsMatrix4x4.h | 28 float get(uint32_t col, uint32_t row) const { argument 37 void load(const float *); 38 void load(const rs_matrix4x4 *); 39 void load(const rs_matrix3x3 *); 40 void load(const rs_matrix2x2 *); 45 void loadMultiply(const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs); 52 void vectorMultiply(float *v4out, const float *v3in) const; 58 void logv(const cha [all...] |
H A D | rsMesh.cpp | 81 void Mesh::serialize(Context *rsc, OStream *stream) const { argument 114 const char *name = stream->loadString(); 172 void Mesh::render(Context *rsc) const { argument 178 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { argument 192 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) const { argument 223 const Type *bufferType = mHal.state.vertexBuffers[ct]->getType(); 224 const Element *bufferElem = bufferType->getElement(); 232 const uint8_t *bp = (const uint8_t *)rsc->mHal.funcs.allocation.lock1D(
|
H A D | rsMesh.h | 62 virtual void serialize(Context *rsc, OStream *stream) const; 63 virtual RsA3DClassID getClassId() const { return RS_A3D_CLASS_ID_MESH; } argument 78 void render(Context *) const; 79 void renderPrimitive(Context *, uint32_t primIndex) const; 80 void renderPrimitiveRange(Context *, uint32_t primIndex, uint32_t start, uint32_t len) const;
|
H A D | rsObjectBase.cpp | 76 void ObjectBase::dumpLOGV(const char *op) const { argument 86 void ObjectBase::incUserRef() const { argument 93 void ObjectBase::incSysRef() const { argument 100 void ObjectBase::preDestroy() const { argument 107 bool ObjectBase::checkDelete(const ObjectBase *ref) { 130 bool ObjectBase::decUserRef() const { argument 149 bool ObjectBase::zeroUserRef() const { argument 161 bool ObjectBase::decSysRef() const { argument 176 void ObjectBase::setName(const cha 195 add() const argument 209 remove() const argument 308 callUpdateCacheObject(const Context *rsc, void *dstObj) const argument [all...] |