Added in API level 11
Deprecated in API level 31

BaseObj


open class BaseObj
Allocation

This class provides the primary method through which data is passed to and from RenderScript kernels.

Element

An Element represents one item within an .

Sampler

Sampler object that defines how Allocations can be read as textures within a kernel.

Script

The parent class for all executable scripts.

Script.FieldID

FieldID is an identifier for a Script + exported field pair.

Script.InvokeID

InvokeID is an identifier for an invoke function.

Script.KernelID

KernelID is an identifier for a Script + root function pair.

ScriptGroup

A group of kernels that are executed together with one execution call as if they were a single kernel

ScriptGroup.Closure

An opaque class for closures

Type

A Type describes the android.renderscript.Element and dimensions used for an or a parallel operation.

AllocationAdapter

Only intended for use by generated reflected code.

ScriptC

The superclass for all user-defined scripts.

ScriptIntrinsic

Base class for all Intrinsic scripts.

ScriptIntrinsic3DLUT

Intrinsic for converting RGB to RGBA by using a 3D lookup table.

ScriptIntrinsicBLAS

ScriptIntrinsicBLAS class provides high performance RenderScript APIs to BLAS.

ScriptIntrinsicBlend

Intrinsic kernels for blending two android.renderscript.Allocation objects.

ScriptIntrinsicBlur

Intrinsic Gausian blur filter.

ScriptIntrinsicColorMatrix

Intrinsic for applying a color matrix to allocations.

ScriptIntrinsicConvolve3x3

Intrinsic for applying a 3x3 convolve to an allocation.

ScriptIntrinsicConvolve5x5

Intrinsic for applying a 5x5 convolve to an allocation.

ScriptIntrinsicHistogram

Intrinsic Histogram filter.

ScriptIntrinsicLUT

Intrinsic for applying a per-channel lookup table.

ScriptIntrinsicResize

Intrinsic for performing a resize of a 2D allocation.

ScriptIntrinsicYuvToRGB

Intrinsic for converting an Android YUV buffer to RGB.


BaseObj is the base class for all RenderScript objects owned by a RS context. It is responsible for lifetime management and resource tracking. This class should not be used by a user application.

Summary

Public methods
open Unit

Frees any native resources associated with this object.

open Boolean
equals(other: Any?)

Compare the current BaseObj with another BaseObj for equality.

open String!

open Int

Calculates the hash code value for a BaseObj.

open Unit
setName(name: String!)

setName assigns a name to an object.

Protected methods
open Unit

Public methods

destroy

Added in API level 11
open fun destroy(): Unit

Deprecated: Deprecated in Java.

Frees any native resources associated with this object. The primary use is to force immediate cleanup of resources when it is believed the GC will not respond quickly enough.

equals

Added in API level 11
open fun equals(other: Any?): Boolean

Deprecated: Deprecated in Java.

Compare the current BaseObj with another BaseObj for equality.

Parameters
obj The object to check equality with.
Return
Boolean boolean

getName

Added in API level 14
Deprecated in API level 31
open fun getName(): String!

Deprecated: Deprecated in Java.

Return
String! name of the renderscript object

hashCode

Added in API level 11
open fun hashCode(): Int

Deprecated: Deprecated in Java.

Calculates the hash code value for a BaseObj.

Return
Int int

setName

Added in API level 11
open fun setName(name: String!): Unit

Deprecated: Deprecated in Java.

setName assigns a name to an object. This object can later be looked up by this name.

Parameters
name String!: The name to assign to the object.

Protected methods

finalize

Added in API level 11
protected open fun finalize(): Unit

Deprecated: Deprecated in Java.

Exceptions
java.lang.Throwable the Exception raised by this method