Searched refs:Element (Results 1 - 25 of 231) sorted by relevance

12345678910

/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DElementThunker.java23 class ElementThunker extends Element {
24 android.renderscript.Element mN;
26 android.renderscript.Element getNObj() {
46 static android.renderscript.Element.DataKind convertKind(DataKind cdk) {
49 return android.renderscript.Element.DataKind.USER;
51 return android.renderscript.Element.DataKind.PIXEL_L;
53 return android.renderscript.Element.DataKind.PIXEL_A;
55 return android.renderscript.Element.DataKind.PIXEL_LA;
57 return android.renderscript.Element.DataKind.PIXEL_RGB;
59 return android.renderscript.Element
[all...]
H A DElement.java24 * <p>An Element represents one item within an {@link
25 * android.support.v8.renderscript.Allocation}. An Element is roughly
40 * android.support.v8.renderscript.Element.DataType} and a {@link
41 * android.support.v8.renderscript.Element.DataKind}. The DataType encodes C
42 * type information of an Element, while the DataKind encodes how that Element
45 * DataKind {@link android.support.v8.renderscript.Element.DataKind#USER} cannot
50 * {@link android.support.v8.renderscript.Element#RGBA_8888} or {@link
51 * android.support.v8.renderscript#Element.A_8}.</p>
61 public class Element extend class in inherits:BaseObj
709 Element(int id, RenderScript rs, Element[] e, String[] n, int[] as) { method in class:Element
726 Element(int id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { method in class:Element
745 Element(int id, RenderScript rs) { method in class:Element
[all...]
H A DScriptIntrinsic3DLUT.java32 private Element mElement;
34 protected ScriptIntrinsic3DLUT(int id, RenderScript rs, Element e) {
40 * Supported elements types are {@link Element#U8_4}
45 * @param e Element type for intputs and outputs
49 public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e) {
56 if (!e.isCompatible(Element.U8_4(rs))) {
57 throw new RSIllegalArgumentException("Element must be compatible with uchar4.");
68 * {@link android.support.v8.renderscript.Element} as the intrinsic.
/frameworks/rs/driver/
H A DrsdElement.cpp25 bool rsdElementInit(const Context *, const Element *e) {
29 void rsdElementDestroy(const Context *rsc, const Element *e) {
33 const Element *element,
H A DrsdElement.h24 const android::renderscript::Element *);
27 const android::renderscript::Element *);
30 const android::renderscript::Element *,
/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicConvolve5x5.java32 * Supported elements types are {@link Element#U8}, {@link
33 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4},
34 * {@link Element#F32}, {@link Element#F32_2}, {@link
35 * Element#F32_3}, and {@link Element#F32_4}
47 * @param e Element type for intputs and outputs
51 public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element
[all...]
H A DScriptIntrinsicHistogram.java36 * {@link Element#U8_4}, {@link Element#U8_3},
37 * {@link Element#U8_2}, {@link Element#U8}
40 * @param e Element type for inputs
44 public static ScriptIntrinsicHistogram create(RenderScript rs, Element e) {
45 if ((!e.isCompatible(Element.U8_4(rs))) &&
46 (!e.isCompatible(Element.U8_3(rs))) &&
47 (!e.isCompatible(Element.U8_2(rs))) &&
48 (!e.isCompatible(Element
[all...]
H A DScriptIntrinsicConvolve3x3.java32 * Supported elements types are {@link Element#U8}, {@link
33 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4},
34 * {@link Element#F32}, {@link Element#F32_2}, {@link
35 * Element#F32_3}, and {@link Element#F32_4}
46 * @param e Element type for intputs and outputs
50 public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element
[all...]
H A DElement.java20 * <p>An Element represents one item within an {@link
21 * android.renderscript.Allocation}. An Element is roughly equivalent to a C
35 * android.renderscript.Element.DataType} and a {@link
36 * android.renderscript.Element.DataKind}. The DataType encodes C type
37 * information of an Element, while the DataKind encodes how that Element should
40 * android.renderscript.Element.DataKind#USER} cannot be used as input for a
44 * as {@link android.renderscript.Element#RGBA_8888} or {@link
45 * android.renderscript#Element.A_8}.</p>
53 public class Element extend class in inherits:BaseObj
767 Element(long id, RenderScript rs, Element[] e, String[] n, int[] as) { method in class:Element
784 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { method in class:Element
803 Element(long id, RenderScript rs) { method in class:Element
[all...]
H A DScriptIntrinsicResize.java30 * Supported elements types are {@link Element#U8}, {@link
31 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}
51 Element e = ain.getElement();
52 if (!e.isCompatible(Element.U8(mRS)) &&
53 !e.isCompatible(Element.U8_2(mRS)) &&
54 !e.isCompatible(Element.U8_3(mRS)) &&
55 !e.isCompatible(Element.U8_4(mRS))) {
78 * @param aout Output allocation. Element typ
[all...]
H A DScriptIntrinsicColorMatrix.java22 * If the element type is {@link Element.DataType#UNSIGNED_8},
23 * it is converted to {@link Element.DataType#FLOAT_32} and
25 * is less than four, a {@link Element#F32_4} is created by
28 * rsMatrixMultiply(), adding a {@link Element#F32_4}, and then
35 * Supported elements types are {@link Element#U8}, {@link
36 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4},
37 * {@link Element#F32}, {@link Element#F32_
[all...]
H A DScriptIntrinsic3DLUT.java29 private Element mElement;
31 private ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e) {
37 * Supported elements types are {@link Element#U8_4}
42 * @param e Element type for intputs and outputs
46 public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e) {
49 if (!e.isCompatible(Element.U8_4(rs))) {
50 throw new RSIllegalArgumentException("Element must be compatible with uchar4.");
59 * The lookup table must use the same {@link android.renderscript.Element} as the intrinsic.
H A DAllocation.java45 * more complex Element types, the {@link #copyFromUnchecked} methods can be
80 private Element.DataType validateObjectIsPrimitiveArray(Object d, boolean checkType) {
95 return Element.DataType.SIGNED_64;
103 return Element.DataType.SIGNED_32;
111 return Element.DataType.SIGNED_16;
119 return Element.DataType.SIGNED_8;
126 return Element.DataType.FLOAT_32;
133 return Element.DataType.FLOAT_64;
254 * Get the {@link android.renderscript.Element} of the {@link
257 * @return Element
[all...]
H A DRenderScript.java440 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt) {
474 int w, int h, Object d, int sizeBytes, Element.DataType dt) {
506 int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt) {
512 synchronized void nAllocationRead(long id, Object d, Element.DataType dt) {
520 int sizeBytes, Element.DataType dt) {
528 int w, int h, Object d, int sizeBytes, Element.DataType dt) {
864 Element mElement_U8;
865 Element mElement_I8;
866 Element mElement_U16;
867 Element mElement_I1
[all...]
/frameworks/base/sax/java/android/sax/
H A DElement.java30 public class Element { class
35 final Element parent;
38 ArrayList<Element> requiredChilden;
46 Element(Element parent, String uri, String localName, int depth) { method in class:Element
57 public Element getChild(String localName) {
64 public Element getChild(String uri, String localName) {
83 public Element requireChild(String localName) {
92 public Element requireChild(String uri, String localName) {
93 Element chil
[all...]
H A DRootElement.java47 * Element entry = root.getChild(ATOM_NAMESPACE, "entry");
66 public class RootElement extends Element {
101 Element current = null;
132 Element child = children.get(uri, localName);
142 Element root = RootElement.this;
147 + Element.toString(uri, localName), locator);
153 void start(Element e, Attributes attributes) {
180 Element current = this.current;
H A DChildren.java30 Element getOrCreate(Element parent, String uri, String localName) {
65 Element get(String uri, String localName) {
86 static class Child extends Element {
91 Child(Element parent, String uri, String localName, int depth,
/frameworks/rs/
H A DrsElement.h37 class Element : public ObjectBase { class in namespace:android::renderscript
49 const Element **fields;
87 const Element * getField(uint32_t idx) const {return mFields[idx].e.get();}
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,
109 const Element **,
114 static const Element* create(Context *rsc,
119 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize);
123 static const Element* creat
[all...]
H A DrsElement.cpp24 Element::Element(Context *rsc) : ObjectBase(rsc) { function in class:Element
33 Element::~Element() {
37 void Element::operator delete(void* ptr) {
39 Element *e = (Element*) ptr;
44 void Element::preDestroy() const {
53 void Element::clear() {
71 size_t Element
[all...]
/frameworks/rs/cpp/
H A DElement.cpp26 android::RSC::sp<const Element> Element::getSubElement(uint32_t index) {
28 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
38 const char * Element::getSubElementName(uint32_t index) {
40 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
50 size_t Element::getSubElementArraySize(uint32_t index) {
52 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
62 uint32_t Element::getSubElementOffsetBytes(uint32_t index) {
64 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Element contains no sub-elements");
75 #define CREATE_USER(N, T) android::RSC::sp<const Element> Elemen
170 Element::Element(void *id, android::RSC::sp<RS> rs, function in class:Element
244 Element::Element(void *id, android::RSC::sp<RS> rs, function in class:Element
366 add(android::RSC::sp< Element>e, std::string &name, uint32_t arraySize) argument
[all...]
H A DrsCppStructs.h42 class Element;
59 RS_ERROR_INVALID_ELEMENT = 3, ///< An invalid Element was passed to a function
174 sp<const Element> U8;
175 sp<const Element> U8_2;
176 sp<const Element> U8_3;
177 sp<const Element> U8_4;
178 sp<const Element> I8;
179 sp<const Element> I8_2;
180 sp<const Element> I8_3;
181 sp<const Element> I8_
592 class Element : public BaseObj { class in namespace:android::RSC
[all...]
H A DScriptIntrinsics.cpp25 ScriptIntrinsic::ScriptIntrinsic(sp<RS> rs, int id, sp<const Element> e)
35 sp<ScriptIntrinsic3DLUT> ScriptIntrinsic3DLUT::create(sp<RS> rs, sp<const Element> e) {
36 if (e->isCompatible(Element::U8_4(rs)) == false) {
37 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic");
43 ScriptIntrinsic3DLUT::ScriptIntrinsic3DLUT(sp<RS> rs, sp<const Element> e)
69 sp<ScriptIntrinsicBlend> ScriptIntrinsicBlend::create(sp<RS> rs, sp<const Element> e) {
70 if (e->isCompatible(Element::U8_4(rs)) == false) {
71 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic");
77 ScriptIntrinsicBlend::ScriptIntrinsicBlend(sp<RS> rs, sp<const Element> e)
206 sp<ScriptIntrinsicBlur> ScriptIntrinsicBlur::create(sp<RS> rs, sp<const Element>
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DColladaParser.java34 import org.w3c.dom.Element;
105 Element docEle = mDom.getDocumentElement();
109 Element l = (Element)nl.item(i);
117 Element c = (Element)nl.item(i);
125 Element img = (Element)nl.item(i);
133 Element e = (Element)n
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A DWhiteBalance.java22 import android.renderscript.Element;
32 mHist = ScriptIntrinsicHistogram.create(mRS, Element.U8_4(mRS));
33 mSums = Allocation.createSized(mRS, Element.I32_3(mRS), 256);
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_element.java22 import android.renderscript.Element.*;
23 import android.renderscript.Element.DataKind.*;
24 import android.renderscript.Element.DataType.*;
29 Element simpleElem;
30 Element complexElem;
72 super(rstc, "Element", ctx);
77 simpleElem = Element.F32_3(RS);

Completed in 481 milliseconds

12345678910