Data Structures | Typedefs | Enumerations
/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_types.rsh File Reference
#include "stdbool.h"

Data Structures

struct  rs_element
 Opaque handle to a RenderScript element. More...
struct  rs_type
 Opaque handle to a RenderScript type. More...
struct  rs_allocation
 Opaque handle to a RenderScript allocation. More...
struct  rs_sampler
 Opaque handle to a RenderScript sampler object. More...
struct  rs_script
 Opaque handle to a RenderScript script object. More...
struct  rs_mesh
 Opaque handle to a RenderScript mesh object. More...
struct  rs_path
 Opaque handle to a RenderScript Path object. More...
struct  rs_program_fragment
 Opaque handle to a RenderScript ProgramFragment object. More...
struct  rs_program_vertex
 Opaque handle to a RenderScript ProgramVertex object. More...
struct  rs_program_raster
 Opaque handle to a RenderScript ProgramRaster object. More...
struct  rs_program_store
 Opaque handle to a RenderScript ProgramStore object. More...
struct  rs_font
 Opaque handle to a RenderScript font object. More...
struct  rs_matrix4x4
 4x4 float matrix More...
struct  rs_matrix3x3
 3x3 float matrix More...
struct  rs_matrix2x2
 2x2 float matrix More...

Typedefs

typedef char int8_t
typedef short int16_t
typedef int int32_t
typedef long long int64_t
typedef unsigned char uint8_t
typedef unsigned short uint16_t
typedef unsigned int uint32_t
typedef unsigned long long uint64_t
typedef uint8_t uchar
typedef uint16_t ushort
typedef uint32_t uint
typedef uint64_t ulong
typedef uint32_t size_t
typedef int32_t ssize_t
typedef float float2
typedef float float3
typedef float float4
typedef double double2
typedef double double3
typedef double double4
typedef uchar uchar2
typedef uchar uchar3
typedef uchar uchar4
typedef ushort ushort2
typedef ushort ushort3
typedef ushort ushort4
typedef uint uint2
typedef uint uint3
typedef uint uint4
typedef ulong ulong2
typedef ulong ulong3
typedef ulong ulong4
typedef char char2
typedef char char3
typedef char char4
typedef short short2
typedef short short3
typedef short short4
typedef int int2
typedef int int3
typedef int int4
typedef long long2
typedef long long3
typedef long long4
typedef float4 rs_quaternion

Enumerations

enum  rs_allocation_cubemap_face
 Enum for selecting cube map faces.
enum  rs_allocation_usage_type
 Bitfield to specify the usage types for an allocation. More...
enum  rs_primitive {
  RS_PRIMITIVE_POINT = 0, RS_PRIMITIVE_LINE = 1, RS_PRIMITIVE_LINE_STRIP = 2, RS_PRIMITIVE_TRIANGLE = 3,
  RS_PRIMITIVE_TRIANGLE_STRIP = 4, RS_PRIMITIVE_TRIANGLE_FAN = 5, RS_PRIMITIVE_INVALID = 100
}
enum  rs_data_type
 Enumeration for possible element data types. More...
enum  rs_data_kind
 Enumeration for possible element data kind. More...
enum  rs_depth_func {
  RS_DEPTH_FUNC_ALWAYS = 0, RS_DEPTH_FUNC_LESS = 1, RS_DEPTH_FUNC_LEQUAL = 2, RS_DEPTH_FUNC_GREATER = 3,
  RS_DEPTH_FUNC_GEQUAL = 4, RS_DEPTH_FUNC_EQUAL = 5, RS_DEPTH_FUNC_NOTEQUAL = 6, RS_DEPTH_FUNC_INVALID = 100
}

Detailed Description

Define the standard RenderScript types

Integers 8 bit: char, int8_t 16 bit: short, int16_t 32 bit: int, in32_t 64 bit: long, long long, int64_t

Unsigned Integers 8 bit: uchar, uint8_t 16 bit: ushort, uint16_t 32 bit: uint, uint32_t 64 bit: ulong, uint64_t

Floating point 32 bit: float 64 bit: double

Vectors of length 2, 3, and 4 are supported for all the types above.

Definition in file rs_types.rsh.


Typedef Documentation

typedef char char2

Vector version of the basic char type. Provides two char fields packed into a single 16 bit field with 16 bit alignment.

Definition at line 292 of file rs_types.rsh.

typedef char char3

Vector version of the basic char type. Provides three char fields packed into a single 32 bit field with 32 bit alignment.

Definition at line 297 of file rs_types.rsh.

typedef char char4

Vector version of the basic char type. Provides four char fields packed into a single 32 bit field with 32 bit alignment.

Definition at line 302 of file rs_types.rsh.

typedef double double2

Vector version of the basic double type. Provides two double fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 212 of file rs_types.rsh.

typedef double double3

Vector version of the basic double type. Provides three double fields packed into a single 256 bit field with 256 bit alignment.

Definition at line 217 of file rs_types.rsh.

typedef double double4

Vector version of the basic double type. Provides four double fields packed into a single 256 bit field with 256 bit alignment.

Definition at line 222 of file rs_types.rsh.

typedef float float2

Vector version of the basic float type. Provides two float fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 195 of file rs_types.rsh.

typedef float float3

Vector version of the basic float type. Provides three float fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 200 of file rs_types.rsh.

typedef float float4

Vector version of the basic float type. Provides four float fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 206 of file rs_types.rsh.

typedef short int16_t

16 bit integer type

Definition at line 67 of file rs_types.rsh.

typedef int int2

Vector version of the basic int type. Provides two int fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 324 of file rs_types.rsh.

typedef int int3

Vector version of the basic int type. Provides three int fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 329 of file rs_types.rsh.

typedef int int32_t

32 bit integer type

Definition at line 71 of file rs_types.rsh.

typedef int int4

Vector version of the basic int type. Provides two four fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 334 of file rs_types.rsh.

typedef long long int64_t

64 bit integer type

Definition at line 75 of file rs_types.rsh.

typedef char int8_t

8 bit integer type

Definition at line 63 of file rs_types.rsh.

typedef long long2

Vector version of the basic long type. Provides two long fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 340 of file rs_types.rsh.

typedef long long3

Vector version of the basic long type. Provides three long fields packed into a single 256 bit field with 256 bit alignment.

Definition at line 345 of file rs_types.rsh.

typedef long long4

Vector version of the basic long type. Provides four long fields packed into a single 256 bit field with 256 bit alignment.

Definition at line 350 of file rs_types.rsh.

quaternion type for use with the quaternion functions

Definition at line 383 of file rs_types.rsh.

typedef short short2

Vector version of the basic short type. Provides two short fields packed into a single 32 bit field with 32 bit alignment.

Definition at line 308 of file rs_types.rsh.

typedef short short3

Vector version of the basic short type. Provides three short fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 313 of file rs_types.rsh.

typedef short short4

Vector version of the basic short type. Provides four short fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 318 of file rs_types.rsh.

typedef uint32_t size_t

Typedef for unsigned int

Definition at line 111 of file rs_types.rsh.

typedef int32_t ssize_t

Typedef for int (use for 32-bit integers)

Definition at line 115 of file rs_types.rsh.

typedef uint8_t uchar

8 bit unsigned integer type

Definition at line 95 of file rs_types.rsh.

typedef uchar uchar2

Vector version of the basic uchar type. Provides two uchar fields packed into a single 16 bit field with 16 bit alignment.

Definition at line 228 of file rs_types.rsh.

typedef uchar uchar3

Vector version of the basic uchar type. Provides three uchar fields packed into a single 32 bit field with 32 bit alignment.

Definition at line 233 of file rs_types.rsh.

typedef uchar uchar4

Vector version of the basic uchar type. Provides four uchar fields packed into a single 32 bit field with 32 bit alignment.

Definition at line 238 of file rs_types.rsh.

typedef uint32_t uint

32 bit unsigned integer type

Definition at line 103 of file rs_types.rsh.

typedef unsigned short uint16_t

16 bit unsigned integer type

Definition at line 83 of file rs_types.rsh.

typedef uint uint2

Vector version of the basic uint type. Provides two uint fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 260 of file rs_types.rsh.

typedef uint uint3

Vector version of the basic uint type. Provides three uint fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 265 of file rs_types.rsh.

typedef unsigned int uint32_t

32 bit unsigned integer type

Definition at line 87 of file rs_types.rsh.

typedef uint uint4

Vector version of the basic uint type. Provides four uint fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 270 of file rs_types.rsh.

typedef unsigned long long uint64_t

64 bit unsigned integer type

Definition at line 91 of file rs_types.rsh.

typedef unsigned char uint8_t

8 bit unsigned integer type

Definition at line 79 of file rs_types.rsh.

typedef uint64_t ulong

Typedef for unsigned long (use for 64-bit unsigned integers)

Definition at line 107 of file rs_types.rsh.

typedef ulong ulong2

Vector version of the basic ulong type. Provides two ulong fields packed into a single 128 bit field with 128 bit alignment.

Definition at line 276 of file rs_types.rsh.

typedef ulong ulong3

Vector version of the basic ulong type. Provides three ulong fields packed into a single 256 bit field with 256 bit alignment.

Definition at line 281 of file rs_types.rsh.

typedef ulong ulong4

Vector version of the basic ulong type. Provides four ulong fields packed into a single 256 bit field with 256 bit alignment.

Definition at line 286 of file rs_types.rsh.

typedef uint16_t ushort

16 bit unsigned integer type

Definition at line 99 of file rs_types.rsh.

typedef ushort ushort2

Vector version of the basic ushort type. Provides two ushort fields packed into a single 32 bit field with 32 bit alignment.

Definition at line 244 of file rs_types.rsh.

typedef ushort ushort3

Vector version of the basic ushort type. Provides three ushort fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 249 of file rs_types.rsh.

typedef ushort ushort4

Vector version of the basic ushort type. Provides four ushort fields packed into a single 64 bit field with 64 bit alignment.

Definition at line 254 of file rs_types.rsh.


Enumeration Type Documentation

Bitfield to specify the usage types for an allocation.

These values are ORed together to specify which usages or memory spaces are relevant to an allocation or an operation on an allocation.

Definition at line 408 of file rs_types.rsh.

Enumeration for possible element data kind.

The special interpretation of the data if required. This is primarly useful for graphical data. USER indicates no special interpretation is expected. PIXEL is used in conjunction with the standard data types for representing texture formats.

Definition at line 524 of file rs_types.rsh.

Enumeration for possible element data types.

DataType represents the basic type information for a basic element. The naming convention follows. For numeric types it is FLOAT, SIGNED, or UNSIGNED followed by the _BITS where BITS is the size of the data. BOOLEAN is a true / false (1,0) represented in an 8 bit container. The UNSIGNED variants with multiple bit definitions are for packed graphical data formats and represent vectors with per vector member sizes which are treated as a single unit for packing and alignment purposes.

MATRIX the three matrix types contain FLOAT_32 elements and are treated as 32 bits for alignment purposes.

RS_* objects. 32 bit opaque handles.

Definition at line 478 of file rs_types.rsh.

Enumerator:
RS_DEPTH_FUNC_ALWAYS 

Always drawn

RS_DEPTH_FUNC_LESS 

Drawn if the incoming depth value is less than that in the depth buffer

RS_DEPTH_FUNC_LEQUAL 

Drawn if the incoming depth value is less or equal to that in the depth buffer

RS_DEPTH_FUNC_GREATER 

Drawn if the incoming depth value is greater than that in the depth buffer

RS_DEPTH_FUNC_GEQUAL 

Drawn if the incoming depth value is greater or equal to that in the depth buffer

RS_DEPTH_FUNC_EQUAL 

Drawn if the incoming depth value is equal to that in the depth buffer

RS_DEPTH_FUNC_NOTEQUAL 

Drawn if the incoming depth value is not equal to that in the depth buffer

RS_DEPTH_FUNC_INVALID 

Invalid depth function

Definition at line 538 of file rs_types.rsh.

Describes the way mesh vertex data is interpreted when rendering

Enumerator:
RS_PRIMITIVE_POINT 

Vertex data will be rendered as a series of points

RS_PRIMITIVE_LINE 

Vertex pairs will be rendered as lines

RS_PRIMITIVE_LINE_STRIP 

Vertex data will be rendered as a connected line strip

RS_PRIMITIVE_TRIANGLE 

Vertices will be rendered as individual triangles

RS_PRIMITIVE_TRIANGLE_STRIP 

Vertices will be rendered as a connected triangle strip defined by the first three vertices with each additional triangle defined by a new vertex

RS_PRIMITIVE_TRIANGLE_FAN 

Vertices will be rendered as a sequence of triangles that all share first vertex as the origin

RS_PRIMITIVE_INVALID 

Invalid primitive

Definition at line 425 of file rs_types.rsh.