Home
last modified time | relevance | path

Searched refs:dk (Results 1 – 13 of 13) sorted by relevance

/frameworks/rs/cpp/
DElement.cpp226 RsDataType dt, RsDataKind dk, bool norm, uint32_t size) : in Element() argument
242 mKind = dk; in Element()
311 sp<const Element> Element::createPixel(RenderScript *rs, RsDataType dt, RsDataKind dk) { in createPixel() argument
312 if (!(dk == RS_KIND_PIXEL_L || in createPixel()
313 dk == RS_KIND_PIXEL_A || in createPixel()
314 dk == RS_KIND_PIXEL_LA || in createPixel()
315 dk == RS_KIND_PIXEL_RGB || in createPixel()
316 dk == RS_KIND_PIXEL_RGBA || in createPixel()
317 dk == RS_KIND_PIXEL_DEPTH)) { in createPixel()
327 if (dt == RS_TYPE_UNSIGNED_5_6_5 && dk != RS_KIND_PIXEL_RGB) { in createPixel()
[all …]
DElement.h161 Element(void *id, RenderScript *rs, RsDataType dt, RsDataKind dk, bool norm, uint32_t size);
168 static sp<const Element> createPixel(RenderScript *rs, RsDataType dt, RsDataKind dk);
/frameworks/base/graphics/java/android/renderscript/
DElement.java765 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
779 mKind = dk; in Element()
805 for (DataKind dk: DataKind.values()) { in updateFromNative()
806 if(dk.mID == dataBuffer[1]){ in updateFromNative()
807 mKind = dk; in updateFromNative()
839 DataKind dk = DataKind.USER; in createUser() local
842 int id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
843 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
877 DataKind dk = DataKind.USER; in createVector() local
879 int id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
[all …]
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
DElement.java726 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { in Element() argument
740 mKind = dk; in Element()
759 DataKind dk = DataKind.USER; in createUser() local
762 int id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
763 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
797 DataKind dk = DataKind.USER; in createVector() local
799 int id = rs.nElementCreate(dt.mID, dk.mID, norm, size); in createVector()
800 return new Element(id, rs, dt, dk, norm, size); in createVector()
822 public static Element createPixel(RenderScript rs, DataType dt, DataKind dk) { in createPixel() argument
823 if (!(dk == DataKind.PIXEL_L || in createPixel()
[all …]
/frameworks/rs/
DrsElement.h114 RsDataKind dk,
125 RsDataKind dk, in create() argument
128 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create()
DrsElement.cpp222 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, in createRef() argument
231 (ee->getComponent().getKind() == dk) && in createRef()
244 e->mComponent.set(dt, dk, isNorm, vecSize); in createRef()
386 RsDataKind dk, in rsi_ElementCreate() argument
389 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); in rsi_ElementCreate()
DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { in set() argument
31 mKind = dk; in set()
DrsComponent.h34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
/frameworks/support/renderscript/v8/rs_support/
DrsElement.h114 RsDataKind dk,
125 RsDataKind dk, in create() argument
128 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create()
DrsElement.cpp222 ObjectBaseRef<const Element> Element::createRef(Context *rsc, RsDataType dt, RsDataKind dk, in createRef() argument
231 (ee->getComponent().getKind() == dk) && in createRef()
244 e->mComponent.set(dt, dk, isNorm, vecSize); in createRef()
386 RsDataKind dk, in rsi_ElementCreate() argument
389 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); in rsi_ElementCreate()
DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { in set() argument
31 mKind = dk; in set()
DrsComponent.h34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
/frameworks/compile/libbcc/lib/Renderscript/runtime/
Drs_sample.c135 rs_data_kind dk = rsElementGetDataKind(elem); \
138 if (dk == RS_KIND_USER || (dt != RS_TYPE_UNSIGNED_8 && dt != RS_TYPE_UNSIGNED_5_6_5)) { \