/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_core.rsh Source File

- Overview
- Globals
- Structs

/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_core.rsh
Go to the documentation of this file.

    00001 /*
    00002  * Copyright (C) 2011 The Android Open Source Project
    00003  *
    00004  * Licensed under the Apache License, Version 2.0 (the "License");
    00005  * you may not use this file except in compliance with the License.
    00006  * You may obtain a copy of the License at
    00007  *
    00008  *      http://www.apache.org/licenses/LICENSE-2.0
    00009  *
    00010  * Unless required by applicable law or agreed to in writing, software
    00011  * distributed under the License is distributed on an "AS IS" BASIS,
    00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013  * See the License for the specific language governing permissions and
    00014  * limitations under the License.
    00015  */
    00016
    00024 #ifndef __RS_CORE_RSH__
    00025 #define __RS_CORE_RSH__
    00026
    00027 #define _RS_RUNTIME extern
    00028
    00029 #include "rs_types.rsh"
    00030 #include "rs_allocation.rsh"
    00031 #include "rs_atomic.rsh"
    00032 #include "rs_cl.rsh"
    00033 #include "rs_debug.rsh"
    00034 #include "rs_math.rsh"
    00035 #include "rs_matrix.rsh"
    00036 #include "rs_object.rsh"
    00037 #include "rs_quaternion.rsh"
    00038 #include "rs_time.rsh"
    00039
    00040
    00041
    00047 extern bool __attribute__((overloadable))
    00048     rsSendToClient(int cmdID);
    00052 extern bool __attribute__((overloadable))
    00053     rsSendToClient(int cmdID, const void *data, uint len);
    00058 extern void __attribute__((overloadable))
    00059     rsSendToClientBlocking(int cmdID);
    00063 extern void __attribute__((overloadable))
    00064     rsSendToClientBlocking(int cmdID, const void *data, uint len);
    00065
    00066
    00074 enum rs_for_each_strategy {
    00075     RS_FOR_EACH_STRATEGY_SERIAL,
    00076     RS_FOR_EACH_STRATEGY_DONT_CARE,
    00077     RS_FOR_EACH_STRATEGY_DST_LINEAR,
    00078     RS_FOR_EACH_STRATEGY_TILE_SMALL,
    00079     RS_FOR_EACH_STRATEGY_TILE_MEDIUM,
    00080     RS_FOR_EACH_STRATEGY_TILE_LARGE
    00081 };
    00082
    00083
    00088 typedef struct rs_script_call {
    00089     enum rs_for_each_strategy strategy;
    00090     uint32_t xStart;
    00091     uint32_t xEnd;
    00092     uint32_t yStart;
    00093     uint32_t yEnd;
    00094     uint32_t zStart;
    00095     uint32_t zEnd;
    00096     uint32_t arrayStart;
    00097     uint32_t arrayEnd;
    00098 } rs_script_call_t;
    00099
    00116 #if !defined(RS_VERSION) || (RS_VERSION < 14)
    00117 extern void __attribute__((overloadable))
    00118     rsForEach(rs_script script, rs_allocation input,
    00119               rs_allocation output, const void * usrData,
    00120               const rs_script_call_t *sc);
    00124 extern void __attribute__((overloadable))
    00125     rsForEach(rs_script script, rs_allocation input,
    00126               rs_allocation output, const void * usrData);
    00127 #else
    00128
    00147 extern void __attribute__((overloadable))
    00148     rsForEach(rs_script script, rs_allocation input, rs_allocation output,
    00149               const void * usrData, size_t usrDataLen, const rs_script_call_t *);
    00153 extern void __attribute__((overloadable))
    00154     rsForEach(rs_script script, rs_allocation input, rs_allocation output,
    00155               const void * usrData, size_t usrDataLen);
    00159 extern void __attribute__((overloadable))
    00160     rsForEach(rs_script script, rs_allocation input, rs_allocation output);
    00161 #endif
    00162
    00163
    00164
    00165 #undef _RS_RUNTIME
    00166
    00167 #endif