public class ScriptIntrinsicHistogram extends ScriptIntrinsic
Script.Builder, Script.FieldBase, Script.FieldID, Script.InvokeID, Script.KernelID, Script.LaunchOptions
Modifier | Constructor and Description |
---|---|
protected |
ScriptIntrinsicHistogram(long id,
RenderScript rs) |
Modifier and Type | Method and Description |
---|---|
static ScriptIntrinsicHistogram |
create(RenderScript rs,
Element e)
Create an intrinsic for calculating the histogram of an uchar
or uchar4 image.
|
void |
forEach_Dot(Allocation ain)
Process an input buffer and place the histogram into the
output allocation.
|
void |
forEach_Dot(Allocation ain,
Script.LaunchOptions opt)
Process an input buffer and place the histogram into the
output allocation.
|
void |
forEach(Allocation ain)
Process an input buffer and place the histogram into the
output allocation.
|
void |
forEach(Allocation ain,
Script.LaunchOptions opt)
Process an input buffer and place the histogram into the
output allocation.
|
Script.FieldID |
getFieldID_Input()
Get a FieldID for the input field of this intrinsic.
|
Script.KernelID |
getKernelID_Separate()
Get a KernelID for this intrinsic kernel.
|
void |
setDotCoefficients(float r,
float g,
float b,
float a)
Set the coefficients used for the RGBA to Luminocity
calculation.
|
void |
setOutput(Allocation aout)
Set the output of the histogram. 32 bit integer types are
supported.
|
bindAllocation, createFieldID, createInvokeID, createKernelID, forEach, forEach, forEach, forEach, invoke, invoke, isIncSupp, reduce, setIncSupp, setTimeZone, setVar, setVar, setVar, setVar, setVar, setVar, setVar, setVar
protected ScriptIntrinsicHistogram(long id, RenderScript rs)
public static ScriptIntrinsicHistogram create(RenderScript rs, Element e)
Element.U8_4(android.support.v8.renderscript.RenderScript)
, Element.U8_3(android.support.v8.renderscript.RenderScript)
,
Element.U8_2(android.support.v8.renderscript.RenderScript)
, Element.U8(android.support.v8.renderscript.RenderScript)
rs
- The RenderScript contexte
- Element type for inputspublic void forEach(Allocation ain)
ain
- The input imagepublic void forEach(Allocation ain, Script.LaunchOptions opt)
ain
- The input imageopt
- LaunchOptions for clippingpublic void setDotCoefficients(float r, float g, float b, float a)
r
- Red coefficientg
- Green coefficientb
- Blue coefficienta
- Alpha coefficientpublic void setOutput(Allocation aout)
aout
- The output allocationpublic void forEach_Dot(Allocation ain)
ain
- The input imagepublic void forEach_Dot(Allocation ain, Script.LaunchOptions opt)
ain
- The input imageopt
- LaunchOptions for clippingpublic Script.KernelID getKernelID_Separate()
public Script.FieldID getFieldID_Input()