Searched refs:Element (Results 1 - 25 of 314) sorted by last modified time

1234567891011>>

/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java47 * more complex Element types, the {@link #copyFromUnchecked} methods can be
84 private Element.DataType validateObjectIsPrimitiveArray(Object d, boolean checkType) {
99 return Element.DataType.SIGNED_64;
107 return Element.DataType.SIGNED_32;
115 return Element.DataType.SIGNED_16;
123 return Element.DataType.SIGNED_8;
130 return Element.DataType.FLOAT_32;
137 return Element.DataType.FLOAT_64;
247 * Get the {@link android.support.v8.renderscript.Element} of the {@link
250 * @return 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
717 Element(long id, RenderScript rs, Element[] e, String[] n, int[] as) { method in class:Element
734 Element(long id, RenderScript rs, DataType dt, DataKind dk, boolean norm, int size) { method in class:Element
753 Element(long id, RenderScript rs) { method in class:Element
[all...]
H A DRenderScript.java463 synchronized void nAllocationData1D(long id, int off, int mip, int count, Object d, int sizeBytes, Element.DataType dt,
506 int w, int h, Object d, int sizeBytes, Element.DataType dt,
541 int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt,
549 synchronized void nAllocationRead(long id, Object d, Element.DataType dt, int mSize, boolean usePadding) {
557 int sizeBytes, Element.DataType dt, int mSize, boolean usePadding) {
576 int w, int h, Object d, int sizeBytes, Element.DataType dt,
587 int w, int h, int depth, Object d, int sizeBytes, Element.DataType dt,
1043 Element mElement_U8;
1044 Element mElement_I8;
1045 Element mElement_U1
[all...]
H A DScript.java90 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) {
173 protected FieldID createFieldID(int slot, Element e) {
508 public void setVar(int index, FieldPacker v, Element e, int[] dims) {
535 protected Element mElement;
549 public Element getElement() {
H A DScriptIntrinsic3DLUT.java31 private Element mElement;
35 protected ScriptIntrinsic3DLUT(long id, RenderScript rs, Element e) {
41 * Supported elements types are {@link Element#U8_4}
46 * @param e Element type for intputs and outputs
50 public static ScriptIntrinsic3DLUT create(RenderScript rs, Element e) {
51 if (!e.isCompatible(Element.U8_4(rs))) {
52 throw new RSIllegalArgumentException("Element must be compatible with uchar4.");
70 * {@link android.support.v8.renderscript.Element} as the intrinsic.
H A DScriptIntrinsicBLAS.java198 id = rs.nScriptIntrinsicCreate(13, Element.U32(rs).getID(rs), mUseIncSupp);
282 static void validateGEMV(Element e, int TransA, Allocation A, Allocation X, int incX, Allocation Y, int incY) {
289 throw new RSRuntimeException("Called BLAS with wrong Element type");
320 * @param A The input allocation contains matrix A, supported elements type {@link Element#F32}.
321 * @param X The input allocation contains vector x, supported elements type {@link Element#F32}.
324 * @param Y The input allocation contains vector y, supported elements type {@link Element#F32}.
328 validateGEMV(Element.F32(mRS), TransA, A, X, incX, Y, incY);
352 * @param A The input allocation contains matrix A, supported elements type {@link Element#F64}.
353 * @param X The input allocation contains vector x, supported elements type {@link Element#F64}.
356 * @param Y The input allocation contains vector y, supported elements type {@link Element#F6
[all...]
H A DScriptIntrinsicBlend.java33 * Supported elements types are {@link Element#U8_4}
36 * @param e Element type for inputs and outputs
40 public static ScriptIntrinsicBlend create(RenderScript rs, Element e) {
55 if (!ain.getElement().isCompatible(Element.U8_4(mRS))) {
58 if (!aout.getElement().isCompatible(Element.U8_4(mRS))) {
H A DScriptIntrinsicBlur.java43 * Supported elements types are {@link Element#U8},
44 * {@link Element#U8_4}.
47 * @param e Element type for inputs and outputs
51 public static ScriptIntrinsicBlur create(RenderScript rs, Element e) {
52 if ((!e.isCompatible(Element.U8_4(rs))) && (!e.isCompatible(Element.U8(rs)))) {
H A DScriptIntrinsicColorMatrix.java25 * converting it to a {@link Element#F32_4}, multiplying the
28 * conversion back to {@link Element#U8_4}.
45 * Supported elements types are {@link Element#U8_4}
48 * @param e Element type for intputs and outputs
52 public static ScriptIntrinsicColorMatrix create(RenderScript rs, Element e) {
53 if (!e.isCompatible(Element.U8_4(rs))) {
225 if (!ain.getElement().isCompatible(Element.U8(mRS)) &&
226 !ain.getElement().isCompatible(Element.U8_2(mRS)) &&
227 !ain.getElement().isCompatible(Element.U8_3(mRS)) &&
228 !ain.getElement().isCompatible(Element
[all...]
H A DScriptIntrinsicConvolve3x3.java36 * Supported elements types are {@link Element#U8}, {@link
37 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4},
38 * {@link Element#F32}, {@link Element#F32_2}, {@link
39 * Element#F32_3}, and {@link Element#F32_4}.
49 * @param e Element type for intputs and outputs
53 public static ScriptIntrinsicConvolve3x3 create(RenderScript rs, Element
[all...]
H A DScriptIntrinsicConvolve5x5.java36 * Supported elements types are {@link Element#U8}, {@link
37 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4},
38 * {@link Element#F32}, {@link Element#F32_2}, {@link
39 * Element#F32_3}, and {@link Element#F32_4}.
51 * @param e Element type for intputs and outputs
55 public static ScriptIntrinsicConvolve5x5 create(RenderScript rs, Element
[all...]
H A DScriptIntrinsicHistogram.java40 * {@link Element#U8_4}, {@link Element#U8_3},
41 * {@link Element#U8_2}, {@link Element#U8}
44 * @param e Element type for inputs
48 public static ScriptIntrinsicHistogram create(RenderScript rs, Element e) {
49 if ((!e.isCompatible(Element.U8_4(rs))) &&
50 (!e.isCompatible(Element.U8_3(rs))) &&
51 (!e.isCompatible(Element.U8_2(rs))) &&
52 (!e.isCompatible(Element
[all...]
H A DScriptIntrinsicLUT.java25 * range of {@link Element#U8_4}.
40 * Supported elements types are {@link Element#U8_4}
45 * @param e Element type for intputs and outputs
49 public static ScriptIntrinsicLUT create(RenderScript rs, Element e) {
58 si.mTables = Allocation.createSized(rs, Element.U8(rs), 1024);
H A DScriptIntrinsicResize.java34 * Supported elements types are {@link Element#U8}, {@link
35 * Element#U8_2}, {@link Element#U8_3}, {@link Element#U8_4}
36 * {@link Element#F32}, {@link Element#F32_2}, {@link
37 * Element#F32_3}, {@link Element#F32_4}
63 Element e = ain.getElement();
64 if (!e.isCompatible(Element
[all...]
H A DScriptIntrinsicYuvToRGB.java39 * Supported elements types are {@link Element#U8_4}
42 * @param e Element type for output
46 public static ScriptIntrinsicYuvToRGB create(RenderScript rs, Element e) {
61 * Set the input yuv allocation, must be {@link Element#U8}.
H A DType.java26 * <p>A Type describes the {@link android.support.v8.renderscript.Element} and
31 * <p>A Type always includes an {@link android.support.v8.renderscript.Element}
62 Element mElement;
81 * @return Element
83 public Element getElement() {
205 * @param e The Element for the Type
210 static public Type createX(RenderScript rs, Element e, int dimX) {
228 * @param e The Element for the Type
234 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) {
253 * @param e The Element fo
[all...]
/frameworks/rs/api/
H A Drs_allocation_create.spec30 arg: rs_data_type data_type, "Data type of the Element"
34 the Element will be set to RS_KIND_USER and vector_width will be set to 1,
42 arg: rs_data_type data_type, "Data type of the Element"
47 Value of vector_width must be 2, 3 or 4. The data kind of the Element will
55 arg: rs_data_type data_type, "Data type of the Element"
56 arg: rs_data_kind data_kind, "Data kind of the Element"
60 vector_width of the Element will be set to 1, indicating non-vector.
78 arg: rs_element element, "Element to be associated with the Type"
85 summary: Creates an rs_type object with the specified Element and shape attributes
87 Creates an rs_type object with the specified Element an
[all...]
H A Drs_object_info.spec20 The functions below can be used to query the characteristics of an Allocation, Element,
46 An Element can specify a simple data types as found in C, e.g. an integer, float, or
58 Elements like <a href='http://developer.android.com/reference/android/renderscript/Element.html#F32_2(android.renderscript.RenderScript)'>F32_2</a>.
60 To create complex Elements, use the <a href='http://developer.android.com/reference/android/renderscript/Element.Builder.html'>Element.Builder</a> Java class.
128 ret: rs_element, "Element describing Allocation layout."
132 Get the Element object describing the type, kind, and other characteristics of a cell
161 This function can be used to check the Element returned by @rsElementGetSubElement()
170 summary: Size of an Element
172 Returns the size in bytes that an instantiation of this Element wil
[all...]
H A Drs_object_types.spec48 See <a href="http://developer.android.com/reference/android/renderscript/Element.html">android.renderscript.Element</a>.
121 value: RS_TYPE_NONE = 0, "Element is a complex type, i.e. a struct."
140 value: RS_TYPE_ELEMENT = 1000, "A handle to an Element."
152 summary: Element basic data type
173 summary: Element data kind
183 See the <a href='http://developer.android.com/reference/android/renderscript/Element.html#createPixel(android.renderscript.RenderScript,%20android.renderscript.Element.DataType, android.renderscript.Element.DataKind)'>Element
[all...]
/frameworks/rs/cpp/
H A DAllocation.cpp457 sp<Allocation> Allocation::createSized(sp<RS> rs, sp<const Element> e,
466 sp<Allocation> Allocation::createSized2D(sp<RS> rs, sp<const Element> e,
H A DAndroid.mk27 Element.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
178 Element::Element(void *id, android::RSC::sp<RS> rs, function in class:Element
217 Element::Element(void *id, android::RSC::sp<RS> rs) : function in class:Element
274 Element::Element(void *id, android::RSC::sp<RS> rs, function in class:Element
432 add(android::RSC::sp<const Element>e, const char * name, uint32_t arraySize) argument
[all...]
H A DScriptIntrinsicBLAS.cpp25 ScriptIntrinsicBLAS::ScriptIntrinsicBLAS(sp<RS> rs, sp<const Element> e)
31 return new ScriptIntrinsicBLAS(rs, Element::U32(rs));
175 static void validateGEMV(RS* mRS, sp<const Element> e, RsBlasTranspose TransA, sp<Allocation> A,
182 mRS->throwError(RS_ERROR_INVALID_ELEMENT, "Called BLAS with wrong Element type");
207 validateGEMV(mRS, Element::F32(mRS), TransA, A, X, incX, Y, incY);
218 validateGEMV(mRS, Element::F64(mRS), TransA, A, X, incX, Y, incY);
229 validateGEMV(mRS, Element::F32_2(mRS), TransA, A, X, incX, Y, incY);
240 validateGEMV(mRS, Element::F64_2(mRS), TransA, A, X, incX, Y, incY);
252 validateGEMV(mRS, Element::F32(mRS), TransA, A, X, incX, Y, incY);
268 validateGEMV(mRS, Element
[all...]
H A DScriptIntrinsics.cpp25 ScriptIntrinsic::ScriptIntrinsic(sp<RS> rs, int id, sp<const Element> e)
36 sp<ScriptIntrinsic3DLUT> ScriptIntrinsic3DLUT::create(sp<RS> rs, sp<const Element> e) {
37 if (e->isCompatible(Element::U8_4(rs)) == false) {
38 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic");
44 ScriptIntrinsic3DLUT::ScriptIntrinsic3DLUT(sp<RS> rs, sp<const Element> e)
70 sp<ScriptIntrinsicBlend> ScriptIntrinsicBlend::create(sp<RS> rs, sp<const Element> e) {
71 if (e->isCompatible(Element::U8_4(rs)) == false) {
72 rs->throwError(RS_ERROR_INVALID_ELEMENT, "Element not supported for intrinsic");
78 ScriptIntrinsicBlend::ScriptIntrinsicBlend(sp<RS> rs, sp<const Element> e)
205 sp<ScriptIntrinsicBlur> ScriptIntrinsicBlur::create(sp<RS> rs, sp<const Element>
[all...]
H A DType.cpp102 // Just create a new Element and update it from native.
103 sp<Element> e = new Element((void *)elementID, mRS);
110 sp<const Type> Type::create(sp<RS> rs, sp<const Element> e, uint32_t dimX, uint32_t dimY, uint32_t dimZ) {
127 Type::Builder::Builder(sp<RS> rs, sp<const Element> e) {
160 if (format != RS_YUV_NONE && !(mElement->isCompatible(Element::YUV(mRS)))) {

Completed in 1159 milliseconds

1234567891011>>