From dc6720f34bf5c1de7ff5001fddd1958e41926761 Mon Sep 17 00:00:00 2001 From: Robert Ly Date: Fri, 13 Jan 2012 09:38:44 -0800 Subject: docs: adding rs api docs Change-Id: Ib56ee177439e9c124d0ac4053ed4173f8a4be1aa --- docs/html/guide/guide_toc.cs | 4 + docs/html/guide/topics/renderscript/reference.jd | 18 + docs/html/reference/renderscript/annotated.html | 52 + docs/html/reference/renderscript/doxygen.css | 946 ++++++++++ docs/html/reference/renderscript/globals.html | 720 ++++++++ docs/html/reference/renderscript/globals_enum.html | 43 + docs/html/reference/renderscript/globals_func.html | 571 ++++++ docs/html/reference/renderscript/globals_type.html | 223 +++ docs/html/reference/renderscript/index.html | 33 + .../renderscript/rs__allocation_8rsh.html | 269 +++ .../renderscript/rs__allocation_8rsh_source.html | 102 ++ .../reference/renderscript/rs__atomic_8rsh.html | 38 + .../renderscript/rs__atomic_8rsh_source.html | 110 ++ docs/html/reference/renderscript/rs__cl_8rsh.html | 1938 ++++++++++++++++++++ .../reference/renderscript/rs__cl_8rsh_source.html | 475 +++++ .../html/reference/renderscript/rs__core_8rsh.html | 306 ++++ .../renderscript/rs__core_8rsh_source.html | 125 ++ .../reference/renderscript/rs__debug_8rsh.html | 459 +++++ .../renderscript/rs__debug_8rsh_source.html | 94 + .../reference/renderscript/rs__graphics_8rsh.html | 1347 ++++++++++++++ .../renderscript/rs__graphics_8rsh_source.html | 183 ++ .../html/reference/renderscript/rs__math_8rsh.html | 679 +++++++ .../renderscript/rs__math_8rsh_source.html | 174 ++ .../reference/renderscript/rs__matrix_8rsh.html | 1520 +++++++++++++++ .../renderscript/rs__matrix_8rsh_source.html | 173 ++ .../reference/renderscript/rs__object_8rsh.html | 791 ++++++++ .../renderscript/rs__object_8rsh_source.html | 126 ++ .../renderscript/rs__quaternion_8rsh.html | 556 ++++++ .../renderscript/rs__quaternion_8rsh_source.html | 211 +++ .../html/reference/renderscript/rs__time_8rsh.html | 194 ++ .../renderscript/rs__time_8rsh_source.html | 83 + .../reference/renderscript/rs__types_8rsh.html | 846 +++++++++ .../renderscript/rs__types_8rsh_source.html | 160 ++ .../renderscript/structrs__allocation.html | 45 + .../reference/renderscript/structrs__element.html | 45 + .../reference/renderscript/structrs__font.html | 45 + .../renderscript/structrs__matrix2x2.html | 45 + .../renderscript/structrs__matrix3x3.html | 45 + .../renderscript/structrs__matrix4x4.html | 45 + .../reference/renderscript/structrs__mesh.html | 45 + .../renderscript/structrs__program__fragment.html | 45 + .../renderscript/structrs__program__raster.html | 45 + .../renderscript/structrs__program__store.html | 45 + .../renderscript/structrs__program__vertex.html | 45 + .../reference/renderscript/structrs__sampler.html | 45 + .../reference/renderscript/structrs__script.html | 45 + .../renderscript/structrs__script__call.html | 41 + docs/html/reference/renderscript/structrs__tm.html | 75 + .../reference/renderscript/structrs__type.html | 45 + docs/html/reference/renderscript/tab_a.png | Bin 0 -> 140 bytes docs/html/reference/renderscript/tab_b.png | Bin 0 -> 178 bytes docs/html/reference/renderscript/tab_h.png | Bin 0 -> 192 bytes docs/html/reference/renderscript/tab_s.png | Bin 0 -> 189 bytes docs/html/reference/renderscript/tabs.css | 59 + 54 files changed, 14374 insertions(+) create mode 100644 docs/html/guide/topics/renderscript/reference.jd create mode 100644 docs/html/reference/renderscript/annotated.html create mode 100644 docs/html/reference/renderscript/doxygen.css create mode 100644 docs/html/reference/renderscript/globals.html create mode 100644 docs/html/reference/renderscript/globals_enum.html create mode 100644 docs/html/reference/renderscript/globals_func.html create mode 100644 docs/html/reference/renderscript/globals_type.html create mode 100644 docs/html/reference/renderscript/index.html create mode 100644 docs/html/reference/renderscript/rs__allocation_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__allocation_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__atomic_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__atomic_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__cl_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__cl_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__core_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__core_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__debug_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__debug_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__graphics_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__graphics_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__math_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__math_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__matrix_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__matrix_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__object_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__object_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__quaternion_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__quaternion_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__time_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__time_8rsh_source.html create mode 100644 docs/html/reference/renderscript/rs__types_8rsh.html create mode 100644 docs/html/reference/renderscript/rs__types_8rsh_source.html create mode 100644 docs/html/reference/renderscript/structrs__allocation.html create mode 100644 docs/html/reference/renderscript/structrs__element.html create mode 100644 docs/html/reference/renderscript/structrs__font.html create mode 100644 docs/html/reference/renderscript/structrs__matrix2x2.html create mode 100644 docs/html/reference/renderscript/structrs__matrix3x3.html create mode 100644 docs/html/reference/renderscript/structrs__matrix4x4.html create mode 100644 docs/html/reference/renderscript/structrs__mesh.html create mode 100644 docs/html/reference/renderscript/structrs__program__fragment.html create mode 100644 docs/html/reference/renderscript/structrs__program__raster.html create mode 100644 docs/html/reference/renderscript/structrs__program__store.html create mode 100644 docs/html/reference/renderscript/structrs__program__vertex.html create mode 100644 docs/html/reference/renderscript/structrs__sampler.html create mode 100644 docs/html/reference/renderscript/structrs__script.html create mode 100644 docs/html/reference/renderscript/structrs__script__call.html create mode 100644 docs/html/reference/renderscript/structrs__tm.html create mode 100644 docs/html/reference/renderscript/structrs__type.html create mode 100644 docs/html/reference/renderscript/tab_a.png create mode 100644 docs/html/reference/renderscript/tab_b.png create mode 100644 docs/html/reference/renderscript/tab_h.png create mode 100644 docs/html/reference/renderscript/tab_s.png create mode 100644 docs/html/reference/renderscript/tabs.css (limited to 'docs') diff --git a/docs/html/guide/guide_toc.cs b/docs/html/guide/guide_toc.cs index a9c4d30..3b1642f 100644 --- a/docs/html/guide/guide_toc.cs +++ b/docs/html/guide/guide_toc.cs @@ -282,6 +282,10 @@ Compute +
  • + Runtime API Reference + +
  • diff --git a/docs/html/guide/topics/renderscript/reference.jd b/docs/html/guide/topics/renderscript/reference.jd new file mode 100644 index 0000000..a0a9df2 --- /dev/null +++ b/docs/html/guide/topics/renderscript/reference.jd @@ -0,0 +1,18 @@ +page.title=Runtime API Reference +@jd:body + + + + + diff --git a/docs/html/reference/renderscript/annotated.html b/docs/html/reference/renderscript/annotated.html new file mode 100644 index 0000000..0425db2 --- /dev/null +++ b/docs/html/reference/renderscript/annotated.html @@ -0,0 +1,52 @@ + + + + + +Data Structures + + + + + + + +
    + + + + +
    +
    +
    +
    Data Structures
    +
    +
    +
    + + + + + + + + + + + + + + + + +
    rs_allocationOpaque handle to a Renderscript allocation
    rs_elementOpaque handle to a Renderscript element
    rs_fontOpaque handle to a Renderscript font object
    rs_matrix2x22x2 float matrix
    rs_matrix3x33x3 float matrix
    rs_matrix4x44x4 float matrix
    rs_meshOpaque handle to a Renderscript mesh object
    rs_program_fragmentOpaque handle to a Renderscript ProgramFragment object
    rs_program_rasterOpaque handle to a Renderscript ProgramRaster object
    rs_program_storeOpaque handle to a Renderscript ProgramStore object
    rs_program_vertexOpaque handle to a Renderscript ProgramVertex object
    rs_samplerOpaque handle to a Renderscript sampler object
    rs_scriptOpaque handle to a Renderscript script object
    rs_script_call
    rs_tm
    rs_typeOpaque handle to a Renderscript type
    +
    + + + diff --git a/docs/html/reference/renderscript/doxygen.css b/docs/html/reference/renderscript/doxygen.css new file mode 100644 index 0000000..22c7b5c --- /dev/null +++ b/docs/html/reference/renderscript/doxygen.css @@ -0,0 +1,946 @@ +/* The standard CSS for doxygen */ + +body, table, div, p, dl { + font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; + font-size: 12px; +} + +/* @group Heading Levels */ + +h1 { + font-size: 150%; +} + +.title { + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h2 { + font-size: 120%; +} + +h3 { + font-size: 100%; +} + +dt { + font-weight: bold; +} + +div.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; +} + +p.startli, p.startdd, p.starttd { + margin-top: 2px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.qindex, div.navtab{ + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; +} + +div.qindex, div.navpath { + width: 100%; + line-height: 140%; +} + +div.navtab { + margin-right: 15px; +} + +/* @group Link Styling */ + +a { + color: #3D578C; + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: #4665A2; +} + +a:hover { + text-decoration: underline; +} + +a.qindex { + font-weight: bold; +} + +a.qindexHL { + font-weight: bold; + background-color: #9CAFD4; + color: #ffffff; + border: 1px double #869DCA; +} + +.contents a.qindexHL:visited { + color: #ffffff; +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code { + color: #4665A2; +} + +a.codeRef { + color: #4665A2; +} + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +.fragment { + font-family: monospace, fixed; + font-size: 105%; +} + +pre.fragment { + border: 1px solid #C4CFE5; + background-color: #FBFCFD; + padding: 4px 6px; + margin: 4px 8px 4px 2px; + overflow: auto; + word-wrap: break-word; + font-size: 9pt; + line-height: 125%; +} + +div.ah { + background-color: black; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px; + padding: 0.2em; + border: solid thin #333; + border-radius: 0.5em; + -webkit-border-radius: .5em; + -moz-border-radius: .5em; + box-shadow: 2px 2px 3px #999; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); + background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + background-color: white; + color: black; + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 8px; + margin-right: 8px; +} + +td.indexkey { + background-color: #EBEFF6; + font-weight: bold; + border: 1px solid #C4CFE5; + margin: 2px 0px 2px 0; + padding: 2px 10px; +} + +td.indexvalue { + background-color: #EBEFF6; + border: 1px solid #C4CFE5; + padding: 2px 10px; + margin: 2px 0px; +} + +tr.memlist { + background-color: #EEF1F7; +} + +p.formulaDsp { + text-align: center; +} + +img.formulaDsp { + +} + +img.formulaInl { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; +} + +/* @group Code Colorization */ + +span.keyword { + color: #008000 +} + +span.keywordtype { + color: #604020 +} + +span.keywordflow { + color: #e08000 +} + +span.comment { + color: #800000 +} + +span.preprocessor { + color: #806020 +} + +span.stringliteral { + color: #002080 +} + +span.charliteral { + color: #008080 +} + +span.vhdldigit { + color: #ff00ff +} + +span.vhdlchar { + color: #000000 +} + +span.vhdlkeyword { + color: #700070 +} + +span.vhdllogic { + color: #ff0000 +} + +/* @end */ + +/* +.search { + color: #003399; + font-weight: bold; +} + +form.search { + margin-bottom: 0px; + margin-top: 0px; +} + +input.search { + font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #e8eef2; +} +*/ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid #A3B4D7; +} + +th.dirtab { + background: #EBEFF6; + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid #4A6AAA; +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: #F9FAFC; + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: #555; +} + +.memItemLeft, .memItemRight, .memTemplParams { + border-top: 1px solid #C4CFE5; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight { + width: 100%; +} + +.memTemplParams { + color: #4665A2; + white-space: nowrap; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtemplate { + font-size: 80%; + color: #4665A2; + font-weight: normal; + margin-left: 9px; +} + +.memnav { + background-color: #EBEFF6; + border: 1px solid #A3B4D7; + text-align: center; + margin: 2px; + margin-right: 15px; + padding: 2px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; +} + +.memname { + white-space: nowrap; + font-weight: bold; + margin-left: 6px; +} + +.memproto, dl.reflist dt { + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 6px 0px 6px 0px; + color: #253555; + font-weight: bold; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + /* opera specific markup */ + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 8px; + border-top-left-radius: 8px; + /* firefox specific markup */ + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + -moz-border-radius-topright: 8px; + -moz-border-radius-topleft: 8px; + /* webkit specific markup */ + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + -webkit-border-top-right-radius: 8px; + -webkit-border-top-left-radius: 8px; + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + padding: 2px 5px; + background-color: #FBFCFD; + border-top-width: 0; + /* opera specific markup */ + border-bottom-left-radius: 8px; + border-bottom-right-radius: 8px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 8px; + -moz-border-radius-bottomright: 8px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7); + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 8px; + -webkit-border-bottom-right-radius: 8px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7)); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; +} + +.paramname { + color: #602020; + white-space: nowrap; +} +.paramname em { + font-style: normal; +} + +.params, .retval, .exception, .tparams { + border-spacing: 6px 2px; +} + +.params .paramname, .retval .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir { + font-family: "courier new",courier,monospace; + vertical-align: top; +} + + + + +/* @end */ + +/* @group Directory (tree) */ + +/* for the tree view */ + +.ftvtree { + font-family: sans-serif; + margin: 0px; +} + +/* these are for tree view when used as main index */ + +.directory { + font-size: 9pt; + font-weight: bold; + margin: 5px; +} + +.directory h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +/* +The following two styles can be used to replace the root node title +with an image of your choice. Simply uncomment the next two styles, +specify the name of your image and be sure to set 'height' to the +proper pixel height of your image. +*/ + +/* +.directory h3.swap { + height: 61px; + background-repeat: no-repeat; + background-image: url("yourimage.gif"); +} +.directory h3.swap span { + display: none; +} +*/ + +.directory > h3 { + margin-top: 0; +} + +.directory p { + margin: 0px; + white-space: nowrap; +} + +.directory div { + display: none; + margin: 0px; +} + +.directory img { + vertical-align: -30%; +} + +/* these are for tree view when not used as main index */ + +.directory-alt { + font-size: 100%; + font-weight: bold; +} + +.directory-alt h3 { + margin: 0px; + margin-top: 1em; + font-size: 11pt; +} + +.directory-alt > h3 { + margin-top: 0; +} + +.directory-alt p { + margin: 0px; + white-space: nowrap; +} + +.directory-alt div { + display: none; + margin: 0px; +} + +.directory-alt img { + vertical-align: -30%; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; +} + +address { + font-style: normal; + color: #2A3D61; +} + +table.doxtable { + border-collapse:collapse; +} + +table.doxtable td, table.doxtable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; +} + +table.fieldtable { + width: 100%; + margin-bottom: 10px; + border: 1px solid #A8B8D9; + border-spacing: 0px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + -webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid #A8B8D9; + border-bottom: 1px solid #A8B8D9; + vertical-align: top; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid #A8B8D9; + width: 100%; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image:url('nav_f.png'); + background-repeat:repeat-x; + background-color: #E2E8F2; + font-size: 90%; + color: #253555; + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + -moz-border-radius-topleft: 4px; + -moz-border-radius-topright: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid #A8B8D9; +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: url('tab_b.png'); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image:url('tab_b.png'); + background-repeat:repeat-x; + height:30px; + line-height:30px; + color:#8AA0CC; + border:solid 1px #C2CDE4; + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:url('bc_s.png'); + background-repeat:no-repeat; + background-position:right; + color:#364D7C; +} + +.navpath li.navelem a +{ + height:32px; + display:block; + text-decoration: none; + outline: none; +} + +.navpath li.navelem a:hover +{ + color:#6884BD; +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color:#364D7C; + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +div.ingroups +{ + margin-left: 5px; + font-size: 8pt; + padding-left: 5px; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image:url('nav_h.png'); + background-repeat:repeat-x; + background-color: #F9FAFC; + margin: 0px; + border-bottom: 1px solid #C4CFE5; +} + +div.headertitle +{ + padding: 5px 5px 5px 7px; +} + +dl +{ + padding: 0 0 0 10px; +} + +dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug +{ + border-left:4px solid; + padding: 0 0 0 6px; +} + +dl.note +{ + border-color: #D0C000; +} + +dl.warning, dl.attention +{ + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant +{ + border-color: #00D000; +} + +dl.deprecated +{ + border-color: #505050; +} + +dl.todo +{ + border-color: #00C0E0; +} + +dl.test +{ + border-color: #3030E0; +} + +dl.bug +{ + border-color: #C08050; +} + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectname +{ + font: 300% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font: 120% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font: 50% Tahoma, Arial,sans-serif; + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid #5373B4; +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +div.zoom +{ + border: 1px solid #90A5CE; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:#334975; + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; +} + +dl.citelist dd { + margin:2px 0; + padding:5px 0; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } + pre.fragment + { + overflow: visible; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + } +} + diff --git a/docs/html/reference/renderscript/globals.html b/docs/html/reference/renderscript/globals.html new file mode 100644 index 0000000..f6fa413 --- /dev/null +++ b/docs/html/reference/renderscript/globals.html @@ -0,0 +1,720 @@ + + + + + +Members + + + + + + + +
    + + + + + + +
    +
    +
    + +

    - a -

    + + +

    - c -

    + + +

    - d -

    + + +

    - e -

    + + +

    - f -

    + + +

    - h -

    + + +

    - i -

    + + +

    - l -

    + + +

    - m -

    + + +

    - n -

    + + +

    - p -

    + + +

    - r -

    + + +

    - s -

    + + +

    - t -

    + + +

    - u -

    +
    + + + diff --git a/docs/html/reference/renderscript/globals_enum.html b/docs/html/reference/renderscript/globals_enum.html new file mode 100644 index 0000000..7301432 --- /dev/null +++ b/docs/html/reference/renderscript/globals_enum.html @@ -0,0 +1,43 @@ + + + + + +Members + + + + + + + +
    + + + + + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/globals_func.html b/docs/html/reference/renderscript/globals_func.html new file mode 100644 index 0000000..5886454 --- /dev/null +++ b/docs/html/reference/renderscript/globals_func.html @@ -0,0 +1,571 @@ + + + + + +Members + + + + + + + +
    + + + + + + +
    +
    +  + +

    - a -

    + + +

    - c -

    + + +

    - d -

    + + +

    - e -

    + + +

    - f -

    + + +

    - h -

    + + +

    - i -

    + + +

    - l -

    + + +

    - m -

    + + +

    - n -

    + + +

    - p -

    + + +

    - r -

    + + +

    - s -

    + + +

    - t -

    +
    + + + diff --git a/docs/html/reference/renderscript/globals_type.html b/docs/html/reference/renderscript/globals_type.html new file mode 100644 index 0000000..238a6c4 --- /dev/null +++ b/docs/html/reference/renderscript/globals_type.html @@ -0,0 +1,223 @@ + + + + + +Members + + + + + + + +
    + + + + + + +
    +
    +  + +

    - c -

    + + +

    - d -

    + + +

    - f -

    + + +

    - i -

    + + +

    - l -

    + + +

    - r -

    + + +

    - s -

    + + +

    - u -

    +
    + + + diff --git a/docs/html/reference/renderscript/index.html b/docs/html/reference/renderscript/index.html new file mode 100644 index 0000000..c4c057e --- /dev/null +++ b/docs/html/reference/renderscript/index.html @@ -0,0 +1,33 @@ + + + + + +Main Page + + + + + + + +
    + + + + +
    +
    +

    Renderscript is a high-performance runtime that provides graphics rendering and compute operations at the native level. Renderscript code is compiled on devices at runtime to allow platform-independence as well. This reference documentation describes the Renderscript runtime APIs, which you can utilize to write Renderscript code in C99. The Renderscript header files are automatically included for you, except for the rs_graphics.rsh header. If you are doing graphics rendering, include the graphics header file like this:

    +

    #include "rs_graphics.rsh"

    +

    To use Renderscript, you need to utilize the Renderscript runtime APIs documented here as well as the Android framework APIs for Renderscript. For documentation on the Android framework APIs, see the android.renderscript package reference. For more information on how to develop with Renderscript and how the runtime and Android framework APIs interact, see the Renderscript developer guide and the Renderscript samples.

    +
    + + + diff --git a/docs/html/reference/renderscript/rs__allocation_8rsh.html b/docs/html/reference/renderscript/rs__allocation_8rsh.html new file mode 100644 index 0000000..ca2663b --- /dev/null +++ b/docs/html/reference/renderscript/rs__allocation_8rsh.html @@ -0,0 +1,269 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_allocation.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_allocation.rsh File Reference
    +
    +
    + + + + + + + + + + + +

    +Functions

    rs_allocation rsGetAllocation (const void *)
    uint32_t rsAllocationGetDimX (rs_allocation)
    uint32_t rsAllocationGetDimY (rs_allocation)
    uint32_t rsAllocationGetDimZ (rs_allocation)
    uint32_t rsAllocationGetDimLOD (rs_allocation)
    uint32_t rsAllocationGetDimFaces (rs_allocation)
    const void * rsGetElementAt (rs_allocation, uint32_t x)
    const void * rsGetElementAt (rs_allocation, uint32_t x, uint32_t y)
    const void * rsGetElementAt (rs_allocation, uint32_t x, uint32_t y, uint32_t z)
    +

    Detailed Description

    +

    Allocation routines.

    + +

    Definition in file rs_allocation.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    uint32_t rsAllocationGetDimFaces (rs_allocation )
    +
    +
    +

    Query an allocation for the presence of more than one face.

    +
    Returns:
    uint32_t Returns 1 if more than one face is present, 0 otherwise.
    + +
    +
    + +
    +
    + + + + + + + + +
    uint32_t rsAllocationGetDimLOD (rs_allocation )
    +
    +
    +

    Query an allocation for the presence of more than one LOD.

    +
    Returns:
    uint32_t Returns 1 if more than one LOD is present, 0 otherwise.
    + +
    +
    + +
    +
    + + + + + + + + +
    uint32_t rsAllocationGetDimX (rs_allocation )
    +
    +
    +

    Query the dimension of an allocation.

    +
    Returns:
    uint32_t The X dimension of the allocation.
    + +
    +
    + +
    +
    + + + + + + + + +
    uint32_t rsAllocationGetDimY (rs_allocation )
    +
    +
    +

    Query the dimension of an allocation.

    +
    Returns:
    uint32_t The Y dimension of the allocation.
    + +
    +
    + +
    +
    + + + + + + + + +
    uint32_t rsAllocationGetDimZ (rs_allocation )
    +
    +
    +

    Query the dimension of an allocation.

    +
    Returns:
    uint32_t The Z dimension of the allocation.
    + +
    +
    + +
    +
    + + + + + + + + +
    rs_allocation rsGetAllocation (const void * )
    +
    +
    +

    Returns the Allocation for a given pointer. The pointer should point within a valid allocation. The results are undefined if the pointer is not from a valid allocation.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    const void* rsGetElementAt (rs_allocation ,
    uint32_t x 
    )
    +
    +
    +

    Extract a single element from an allocation.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    const void* rsGetElementAt (rs_allocation ,
    uint32_t x,
    uint32_t y 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    const void* rsGetElementAt (rs_allocation ,
    uint32_t x,
    uint32_t y,
    uint32_t z 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__allocation_8rsh_source.html b/docs/html/reference/renderscript/rs__allocation_8rsh_source.html new file mode 100644 index 0000000..0d1c167 --- /dev/null +++ b/docs/html/reference/renderscript/rs__allocation_8rsh_source.html @@ -0,0 +1,102 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_allocation.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_allocation.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 
    +00023 #ifndef __RS_ALLOCATION_RSH__
    +00024 #define __RS_ALLOCATION_RSH__
    +00025 
    +00031 extern rs_allocation __attribute__((overloadable))
    +00032     rsGetAllocation(const void *);
    +00033 
    +00039 extern uint32_t __attribute__((overloadable))
    +00040     rsAllocationGetDimX(rs_allocation);
    +00041 
    +00047 extern uint32_t __attribute__((overloadable))
    +00048     rsAllocationGetDimY(rs_allocation);
    +00049 
    +00055 extern uint32_t __attribute__((overloadable))
    +00056     rsAllocationGetDimZ(rs_allocation);
    +00057 
    +00063 extern uint32_t __attribute__((overloadable))
    +00064     rsAllocationGetDimLOD(rs_allocation);
    +00065 
    +00071 extern uint32_t __attribute__((overloadable))
    +00072     rsAllocationGetDimFaces(rs_allocation);
    +00073 
    +00074 #if (defined(RS_VERSION) && (RS_VERSION >= 14))
    +00075 
    +00089 extern void __attribute__((overloadable))
    +00090     rsAllocationCopy1DRange(rs_allocation dstAlloc,
    +00091                             uint32_t dstOff, uint32_t dstMip,
    +00092                             uint32_t count,
    +00093                             rs_allocation srcAlloc,
    +00094                             uint32_t srcOff, uint32_t srcMip);
    +00095 
    +00117 extern void __attribute__((overloadable))
    +00118     rsAllocationCopy2DRange(rs_allocation dstAlloc,
    +00119                             uint32_t dstXoff, uint32_t dstYoff,
    +00120                             uint32_t dstMip,
    +00121                             rs_allocation_cubemap_face dstFace,
    +00122                             uint32_t width, uint32_t height,
    +00123                             rs_allocation srcAlloc,
    +00124                             uint32_t srcXoff, uint32_t srcYoff,
    +00125                             uint32_t srcMip,
    +00126                             rs_allocation_cubemap_face srcFace);
    +00127 
    +00128 #endif //defined(RS_VERSION) && (RS_VERSION >= 14)
    +00129 
    +00133 extern const void * __attribute__((overloadable))
    +00134     rsGetElementAt(rs_allocation, uint32_t x);
    +00138 extern const void * __attribute__((overloadable))
    +00139     rsGetElementAt(rs_allocation, uint32_t x, uint32_t y);
    +00143 extern const void * __attribute__((overloadable))
    +00144     rsGetElementAt(rs_allocation, uint32_t x, uint32_t y, uint32_t z);
    +00145 
    +00146 #endif
    +00147 
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__atomic_8rsh.html b/docs/html/reference/renderscript/rs__atomic_8rsh.html new file mode 100644 index 0000000..3d0e97e --- /dev/null +++ b/docs/html/reference/renderscript/rs__atomic_8rsh.html @@ -0,0 +1,38 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_atomic.rsh File Reference + + + + + + + +
    + + + + +
    +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_atomic.rsh File Reference
    +
    +
    +

    Detailed Description

    +

    Atomic routines.

    + +

    Definition in file rs_atomic.rsh.

    +
    + + + diff --git a/docs/html/reference/renderscript/rs__atomic_8rsh_source.html b/docs/html/reference/renderscript/rs__atomic_8rsh_source.html new file mode 100644 index 0000000..a1400bd --- /dev/null +++ b/docs/html/reference/renderscript/rs__atomic_8rsh_source.html @@ -0,0 +1,110 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_atomic.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_atomic.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 
    +00023 #ifndef __RS_ATOMIC_RSH__
    +00024 #define __RS_ATOMIC_RSH__
    +00025 
    +00026 #if (defined(RS_VERSION) && (RS_VERSION >= 14))
    +00027 
    +00036 extern int32_t __attribute__((overloadable))
    +00037     rsAtomicInc(volatile int32_t* addr);
    +00046 extern uint32_t __attribute__((overloadable))
    +00047     rsAtomicInc(volatile uint32_t* addr);
    +00048 
    +00056 extern int32_t __attribute__((overloadable))
    +00057     rsAtomicDec(volatile int32_t* addr);
    +00065 extern uint32_t __attribute__((overloadable))
    +00066     rsAtomicDec(volatile uint32_t* addr);
    +00067 
    +00076 extern int32_t __attribute__((overloadable))
    +00077     rsAtomicAdd(volatile int32_t* addr, int32_t value);
    +00086 extern uint32_t __attribute__((overloadable))
    +00087     rsAtomicAdd(volatile uint32_t* addr, uint32_t value);
    +00088 
    +00097 extern int32_t __attribute__((overloadable))
    +00098     rsAtomicSub(volatile int32_t* addr, int32_t value);
    +00107 extern uint32_t __attribute__((overloadable))
    +00108     rsAtomicSub(volatile uint32_t* addr, uint32_t value);
    +00109 
    +00118 extern int32_t __attribute__((overloadable))
    +00119     rsAtomicAnd(volatile int32_t* addr, int32_t value);
    +00128 extern uint32_t __attribute__((overloadable))
    +00129     rsAtomicAnd(volatile uint32_t* addr, uint32_t value);
    +00130 
    +00139 extern int32_t __attribute__((overloadable))
    +00140     rsAtomicOr(volatile int32_t* addr, int32_t value);
    +00149 extern uint32_t __attribute__((overloadable))
    +00150     rsAtomicOr(volatile uint32_t* addr, uint32_t value);
    +00151 
    +00160 extern uint32_t __attribute__((overloadable))
    +00161     rsAtomicXor(volatile uint32_t* addr, uint32_t value);
    +00170 extern int32_t __attribute__((overloadable))
    +00171     rsAtomicXor(volatile int32_t* addr, int32_t value);
    +00172 
    +00182 extern uint32_t __attribute__((overloadable))
    +00183     rsAtomicMin(volatile uint32_t* addr, uint32_t value);
    +00193 extern int32_t __attribute__((overloadable))
    +00194     rsAtomicMin(volatile int32_t* addr, int32_t value);
    +00195 
    +00205 extern uint32_t __attribute__((overloadable))
    +00206     rsAtomicMax(volatile uint32_t* addr, uint32_t value);
    +00216 extern int32_t __attribute__((overloadable))
    +00217     rsAtomicMax(volatile int32_t* addr, int32_t value);
    +00218 
    +00230 extern int32_t __attribute__((overloadable))
    +00231     rsAtomicCas(volatile int32_t* addr, int32_t compareValue, int32_t newValue);
    +00232 
    +00244 extern uint32_t __attribute__((overloadable))
    +00245     rsAtomicCas(volatile uint32_t* addr, int32_t compareValue, int32_t newValue);
    +00246 
    +00247 #endif //defined(RS_VERSION) && (RS_VERSION >= 14)
    +00248 
    +00249 #endif
    +00250 
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__cl_8rsh.html b/docs/html/reference/renderscript/rs__cl_8rsh.html new file mode 100644 index 0000000..5c499e6 --- /dev/null +++ b/docs/html/reference/renderscript/rs__cl_8rsh.html @@ -0,0 +1,1938 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_cl.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_cl.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    float acos (float)
    float acosh (float)
    _RS_RUNTIME float acospi (float v)
    float asin (float)
    float asinh (float)
    _RS_RUNTIME float asinpi (float v)
    float atan (float)
    float atan2 (float y, float x)
    float atanh (float)
    _RS_RUNTIME float atanpi (float v)
    _RS_RUNTIME float atan2pi (float y, float x)
    float cbrt (float)
    float ceil (float)
    float copysign (float x, float y)
    float cos (float)
    float cosh (float)
    _RS_RUNTIME float cospi (float v)
    float erfc (float)
    float erf (float)
    float exp (float)
    float exp2 (float)
    float pow (float x, float y)
    _RS_RUNTIME float exp10 (float v)
    float expm1 (float)
    float fabs (float)
    float fdim (float, float)
    float floor (float)
    float fma (float a, float b, float c)
    float fmax (float x, float y)
    float fmin (float x, float y)
    float fmod (float x, float y)
    _RS_RUNTIME float fract (float v, float *iptr)
    float frexp (float v, int *iptr)
    float hypot (float x, float y)
    int ilogb (float)
    float ldexp (float x, int y)
    float lgamma (float)
    float lgamma (float x, int *y)
    float log (float)
    float log10 (float)
    _RS_RUNTIME float log2 (float v)
    float log1p (float v)
    float logb (float)
    float mad (float a, float b, float c)
    float modf (float x, float *iret)
    float nextafter (float x, float y)
    _RS_RUNTIME float pown (float v, int p)
    _RS_RUNTIME float powr (float v, float p)
    float remainder (float x, float y)
    float rint (float)
    _RS_RUNTIME float rootn (float v, int n)
    float round (float)
    float sqrt (float)
    _RS_RUNTIME float rsqrt (float v)
    float sin (float v)
    _RS_RUNTIME float sincos (float v, float *cosptr)
    float sinh (float)
    _RS_RUNTIME float sinpi (float v)
    float tan (float v)
    float tanh (float)
    _RS_RUNTIME float tanpi (float v)
    float tgamma (float)
    float trunc (float)
    _RS_RUNTIME float clamp (float amount, float low, float high)
    _RS_RUNTIME float degrees (float radians)
    _RS_RUNTIME float mix (float start, float stop, float amount)
    _RS_RUNTIME float radians (float degrees)
    _RS_RUNTIME float step (float edge, float v)
    _RS_RUNTIME float sign (float v)
    _RS_RUNTIME float3 cross (float3 lhs, float3 rhs)
    _RS_RUNTIME float dot (float lhs, float rhs)
    _RS_RUNTIME float length (float v)
    _RS_RUNTIME float distance (float lhs, float rhs)
    _RS_RUNTIME float normalize (float v)
    +

    Detailed Description

    +

    Basic math functions.

    + +

    Definition in file rs_cl.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    float acos (float )
    +
    +
    +

    Return the inverse cosine.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    float acosh (float )
    +
    +
    +

    Return the inverse hyperbolic cosine.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float acospi (float v)
    +
    +
    +

    Return the inverse cosine divided by PI.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    float asin (float )
    +
    +
    +

    Return the inverse sine.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    float asinh (float )
    +
    +
    +

    Return the inverse hyperbolic sine.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float asinpi (float v)
    +
    +
    +

    Return the inverse sine divided by PI.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    float atan (float )
    +
    +
    +

    Return the inverse tangent.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float atan2 (float y,
    float x 
    )
    +
    +
    +

    Return the inverse tangent of y / x.

    +

    Supports float, float2, float3, float4. Both arguments must be of the same type.

    +
    Parameters:
    + + + +
    y
    x
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float atan2pi (float y,
    float x 
    )
    +
    +
    +

    Return the inverse tangent of y / x, divided by PI.

    +

    Supports float, float2, float3, float4. Both arguments must be of the same type.

    +
    Parameters:
    + + + +
    y
    x
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    float atanh (float )
    +
    +
    +

    Return the inverse hyperbolic tangent.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float atanpi (float v)
    +
    +
    +

    Return the inverse tangent divided by PI.

    +

    Supports float, float2, float3, float4

    + +
    +
    + +
    +
    + + + + + + + + +
    float cbrt (float )
    +
    +
    +

    Return the cube root.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float ceil (float )
    +
    +
    +

    Return the smallest integer not less than a value.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float4 clamp (float amount,
    float low,
    float high 
    )
    +
    +
    +

    Return the minimum of two values.

    +

    Supports 1,2,3,4 components of uchar, char, ushort, short, uint, int, float. Return the maximum of two values.

    +

    Supports 1,2,3,4 components of uchar, char, ushort, short, uint, int, float. Clamp a value to a specified high and low bound.

    +
    Parameters:
    + + + + +
    amountvalue to be clamped. Supports 1,2,3,4 components
    lowLower bound, must be scalar or matching vector.
    highHigh bound, must match type of low
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float copysign (float x,
    float y 
    )
    +
    +
    +

    Copy the sign bit from y to x.

    +

    Supports float, float2, float3, float4. Both arguments must be of the same type.

    +
    Parameters:
    + + + +
    x
    y
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    float cos (float )
    +
    +
    +

    Return the cosine.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float cosh (float )
    +
    +
    +

    Return the hypebolic cosine.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float cospi (float v)
    +
    +
    +

    Return the cosine of the value * PI.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float4 cross (float3 lhs,
    float3 rhs 
    )
    +
    +
    +

    Compute the cross product of two vectors.

    +

    Supports 3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float degrees (float radians)
    +
    +
    +

    Convert from radians to degrees.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float distance (float lhs,
    float rhs 
    )
    +
    +
    +

    Compute the distance between two points.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float dot (float lhs,
    float rhs 
    )
    +
    +
    +

    Compute the dot product of two vectors.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float erf (float )
    +
    +
    +

    Return the error function.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float erfc (float )
    +
    +
    +

    Return the complementary error function.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float exp (float )
    +
    +
    +

    Return e ^ value.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float exp10 (float v)
    +
    +
    +

    Return 10 ^ value.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float exp2 (float )
    +
    +
    +

    Return 2 ^ value.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float expm1 (float )
    +
    +
    +

    Return (e ^ value) - 1.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    float fabs (float )
    +
    +
    +

    Return the absolute value of a value.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float fdim (float ,
    float  
    )
    +
    +
    +

    Return the positive difference between two values.

    +

    Supports float, float2, float3, float4. Both arguments must be of the same type.

    + +
    +
    + +
    +
    + + + + + + + + +
    float floor (float )
    +
    +
    +

    Return the smallest integer not greater than a value.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    float fma (float a,
    float b,
    float c 
    )
    +
    +
    +

    Return a*b + c.

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float fmax (float x,
    float y 
    )
    +
    +
    +

    Return (x < y ? y : x)

    +

    Supports float, float2, float3, float4.

    +
    Parameters:
    + + + +
    x,:may be float, float2, float3, float4
    y,:may be float or vector. If vector must match type of x.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float fmin (float x,
    float y 
    )
    +
    +
    +

    Return (x > y ? y : x)

    +
    Parameters:
    + + + +
    x,:may be float, float2, float3, float4
    y,:may be float or vector. If vector must match type of x.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float fmod (float x,
    float y 
    )
    +
    +
    +

    Return the remainder from x / y

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float fract (float v,
    float * iptr 
    )
    +
    +
    +

    Return fractional part of v

    +
    Parameters:
    + + +
    iptriptr[0] will be set to the floor of the input value. Supports float, float2, float3, float4.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float frexp (float v,
    int * iptr 
    )
    +
    +
    +

    Return the mantissa and place the exponent into iptr[0]

    +
    Parameters:
    + + + +
    vSupports float, float2, float3, float4.
    iptrMust have the same vector size as v.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float hypot (float x,
    float y 
    )
    +
    +
    +

    Return sqrt(x*x + y*y)

    +

    Supports float, float2, float3, float4.

    + +
    +
    + +
    +
    + + + + + + + + +
    int ilogb (float )
    +
    +
    +

    Return the integer exponent of a value

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float ldexp (float x,
    int y 
    )
    +
    +
    +

    Return (x * 2^y)

    +
    Parameters:
    + + + +
    xSupports 1,2,3,4 components
    ySupports single component or matching vector.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float length (float v)
    +
    +
    +

    Compute the length of a vector.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float lgamma (float )
    +
    +
    +

    Return the log gamma

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float lgamma (float x,
    int * y 
    )
    +
    +
    +

    Return the log gamma and sign

    +
    Parameters:
    + + + +
    xSupports 1,2,3,4 components
    ySupports matching vector.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    float log (float )
    +
    +
    +

    Return the natural logarithm

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float log10 (float )
    +
    +
    +

    Return the base 10 logarithm

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float log1p (float v)
    +
    +
    +

    Return the natural logarithm of (v + 1.0f)

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float log2 (float v)
    +
    +
    +

    Return the base 2 logarithm

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float logb (float )
    +
    +
    +

    Compute the exponent of the value.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    float mad (float a,
    float b,
    float c 
    )
    +
    +
    +

    Compute (a * b) + c

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float4 mix (float start,
    float stop,
    float amount 
    )
    +
    +
    +

    return start + ((stop - start) * amount);

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float modf (float x,
    float * iret 
    )
    +
    +
    +

    Return the integral and fractional components of a number Supports 1,2,3,4 components

    +
    Parameters:
    + + + +
    xSource value
    iretiret[0] will be set to the integral portion of the number.
    +
    +
    +
    Returns:
    The floating point portion of the value.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float nextafter (float x,
    float y 
    )
    +
    +
    +

    Return the next floating point number from x towards y.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float4 normalize (float v)
    +
    +
    +

    Normalize a vector.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float pow (float x,
    float y 
    )
    +
    +
    +

    Return x ^ y.

    +

    Supports float, float2, float3, float4. Both arguments must be of the same type.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float pown (float v,
    int p 
    )
    +
    +
    +

    Return (v ^ p).

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float powr (float v,
    float p 
    )
    +
    +
    +

    Return (v ^ p).

    +
    Parameters:
    + + +
    vmust be greater than 0.
    +
    +
    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float radians (float degrees)
    +
    +
    +

    Convert from degrees to radians.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float remainder (float x,
    float y 
    )
    +
    +
    +

    Return round x/y to the nearest integer then compute the remander.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float rint (float )
    +
    +
    +

    Round to the nearest integral value.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float rootn (float v,
    int n 
    )
    +
    +
    +

    Compute the Nth root of a value.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float round (float )
    +
    +
    +

    Round to the nearest integral value. Half values are rounded away from zero.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float rsqrt (float v)
    +
    +
    +

    Return (1 / sqrt(value)).

    +
    Parameters:
    + + +
    vThe incoming value in radians Supports 1,2,3,4 components
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float sign (float v)
    +
    +
    +

    if (v < 0) return -1.f; else if (v > 0) return 1.f; else return 0.f;

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float sin (float v)
    +
    +
    +

    Return the sine of a value specified in radians.

    +
    Parameters:
    + + +
    vThe incoming value in radians Supports 1,2,3,4 components
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float sincos (float v,
    float * cosptr 
    )
    +
    +
    +

    Return the sine and cosine of a value.

    +
    Returns:
    sine
    +
    Parameters:
    + + + +
    vThe incoming value in radians
    *cosptrcosptr[0] will be set to the cosine value.
    +
    +
    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float sinh (float )
    +
    +
    +

    Return the hyperbolic sine of a value specified in radians.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float sinpi (float v)
    +
    +
    +

    Return the sin(v * PI).

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float sqrt (float )
    +
    +
    +

    Return the square root of a value.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float4 step (float edge,
    float v 
    )
    +
    +
    +

    if (v < edge) return 0.f; else return 1.f;

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float tan (float v)
    +
    +
    +

    Return the tangent of a value.

    +

    Supports 1,2,3,4 components

    +
    Parameters:
    + + +
    vThe incoming value in radians
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    float tanh (float )
    +
    +
    +

    Return the hyperbolic tangent of a value.

    +

    Supports 1,2,3,4 components

    +
    Parameters:
    + + +
    vThe incoming value in radians
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float tanpi (float v)
    +
    +
    +

    Return tan(v * PI)

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float tgamma (float )
    +
    +
    +

    Compute the gamma function of a value.

    +

    Supports 1,2,3,4 components

    + +
    +
    + +
    +
    + + + + + + + + +
    float trunc (float )
    +
    +
    +

    Round to integral using truncation.

    +

    Supports 1,2,3,4 components

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__cl_8rsh_source.html b/docs/html/reference/renderscript/rs__cl_8rsh_source.html new file mode 100644 index 0000000..73ecdc6 --- /dev/null +++ b/docs/html/reference/renderscript/rs__cl_8rsh_source.html @@ -0,0 +1,475 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_cl.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_cl.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 
    +00023 #ifndef __RS_CL_RSH__
    +00024 #define __RS_CL_RSH__
    +00025 
    +00026 // Conversions
    +00027 #define CVT_FUNC_2(typeout, typein)                             \
    +00028 _RS_RUNTIME typeout##2 __attribute__((overloadable))             \
    +00029         convert_##typeout##2(typein##2 v);                      \
    +00030 _RS_RUNTIME typeout##3 __attribute__((overloadable))             \
    +00031         convert_##typeout##3(typein##3 v);                      \
    +00032 _RS_RUNTIME typeout##4 __attribute__((overloadable))             \
    +00033         convert_##typeout##4(typein##4 v);
    +00034 
    +00035 
    +00036 #define CVT_FUNC(type)  CVT_FUNC_2(type, uchar)     \
    +00037                         CVT_FUNC_2(type, char)      \
    +00038                         CVT_FUNC_2(type, ushort)    \
    +00039                         CVT_FUNC_2(type, short)     \
    +00040                         CVT_FUNC_2(type, uint)      \
    +00041                         CVT_FUNC_2(type, int)       \
    +00042                         CVT_FUNC_2(type, float)
    +00043 
    +00044 CVT_FUNC(char)
    +00045 CVT_FUNC(uchar)
    +00046 CVT_FUNC(short)
    +00047 CVT_FUNC(ushort)
    +00048 CVT_FUNC(int)
    +00049 CVT_FUNC(uint)
    +00050 CVT_FUNC(float)
    +00051 
    +00052 // Float ops, 6.11.2
    +00053 
    +00054 #define FN_FUNC_FN(fnc)                                         \
    +00055 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v);  \
    +00056 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v);  \
    +00057 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v);
    +00058 
    +00059 #define IN_FUNC_FN(fnc)                                         \
    +00060 _RS_RUNTIME int2 __attribute__((overloadable)) fnc(float2 v);    \
    +00061 _RS_RUNTIME int3 __attribute__((overloadable)) fnc(float3 v);    \
    +00062 _RS_RUNTIME int4 __attribute__((overloadable)) fnc(float4 v);
    +00063 
    +00064 #define FN_FUNC_FN_FN(fnc)                                                  \
    +00065 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2);  \
    +00066 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2);  \
    +00067 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2);
    +00068 
    +00069 #define FN_FUNC_FN_F(fnc)                                                   \
    +00070 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, float v2);   \
    +00071 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, float v2);   \
    +00072 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float v2);
    +00073 
    +00074 #define FN_FUNC_FN_IN(fnc)                                                  \
    +00075 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, int2 v2);    \
    +00076 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, int3 v2);    \
    +00077 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, int4 v2);    \
    +00078 
    +00079 #define FN_FUNC_FN_I(fnc)                                                   \
    +00080 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, int v2);     \
    +00081 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, int v2);     \
    +00082 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, int v2);
    +00083 
    +00084 #define FN_FUNC_FN_PFN(fnc)                     \
    +00085 _RS_RUNTIME float2 __attribute__((overloadable)) \
    +00086         fnc(float2 v1, float2 *v2);             \
    +00087 _RS_RUNTIME float3 __attribute__((overloadable)) \
    +00088         fnc(float3 v1, float3 *v2);             \
    +00089 _RS_RUNTIME float4 __attribute__((overloadable)) \
    +00090         fnc(float4 v1, float4 *v2);
    +00091 
    +00092 #define FN_FUNC_FN_PIN(fnc)                                                 \
    +00093 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, int2 *v2);   \
    +00094 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, int3 *v2);   \
    +00095 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, int4 *v2);
    +00096 
    +00097 #define FN_FUNC_FN_FN_FN(fnc)                   \
    +00098 _RS_RUNTIME float2 __attribute__((overloadable)) \
    +00099         fnc(float2 v1, float2 v2, float2 v3);   \
    +00100 _RS_RUNTIME float3 __attribute__((overloadable)) \
    +00101         fnc(float3 v1, float3 v2, float3 v3);   \
    +00102 _RS_RUNTIME float4 __attribute__((overloadable)) \
    +00103         fnc(float4 v1, float4 v2, float4 v3);
    +00104 
    +00105 #define FN_FUNC_FN_FN_PIN(fnc)                  \
    +00106 _RS_RUNTIME float2 __attribute__((overloadable)) \
    +00107         fnc(float2 v1, float2 v2, int2 *v3);    \
    +00108 _RS_RUNTIME float3 __attribute__((overloadable)) \
    +00109         fnc(float3 v1, float3 v2, int3 *v3);    \
    +00110 _RS_RUNTIME float4 __attribute__((overloadable)) \
    +00111         fnc(float4 v1, float4 v2, int4 *v3);
    +00112 
    +00113 
    +00119 extern float __attribute__((overloadable)) acos(float);
    +00120 FN_FUNC_FN(acos)
    +00121 
    +00127 extern float __attribute__((overloadable)) acosh(float);
    +00128 FN_FUNC_FN(acosh)
    +00129 
    +00135 _RS_RUNTIME float __attribute__((overloadable)) acospi(float v);
    +00136 FN_FUNC_FN(acospi)
    +00137 
    +00143 extern float __attribute__((overloadable)) asin(float);
    +00144 FN_FUNC_FN(asin)
    +00145 
    +00151 extern float __attribute__((overloadable)) asinh(float);
    +00152 FN_FUNC_FN(asinh)
    +00153 
    +00154 
    +00160 _RS_RUNTIME float __attribute__((overloadable)) asinpi(float v);
    +00161 FN_FUNC_FN(asinpi)
    +00162 
    +00168 extern float __attribute__((overloadable)) atan(float);
    +00169 FN_FUNC_FN(atan)
    +00170 
    +00180 extern float __attribute__((overloadable)) atan2(float y, float x);
    +00181 FN_FUNC_FN_FN(atan2)
    +00182 
    +00188 extern float __attribute__((overloadable)) atanh(float);
    +00189 FN_FUNC_FN(atanh)
    +00190 
    +00196 _RS_RUNTIME float __attribute__((overloadable)) atanpi(float v);
    +00197 FN_FUNC_FN(atanpi)
    +00198 
    +00208 _RS_RUNTIME float __attribute__((overloadable)) atan2pi(float y, float x);
    +00209 FN_FUNC_FN_FN(atan2pi)
    +00210 
    +00211 
    +00217 extern float __attribute__((overloadable)) cbrt(float);
    +00218 FN_FUNC_FN(cbrt)
    +00219 
    +00225 extern float __attribute__((overloadable)) ceil(float);
    +00226 FN_FUNC_FN(ceil)
    +00227 
    +00237 extern float __attribute__((overloadable)) copysign(float x, float y);
    +00238 FN_FUNC_FN_FN(copysign)
    +00239 
    +00245 extern float __attribute__((overloadable)) cos(float);
    +00246 FN_FUNC_FN(cos)
    +00247 
    +00253 extern float __attribute__((overloadable)) cosh(float);
    +00254 FN_FUNC_FN(cosh)
    +00255 
    +00261 _RS_RUNTIME float __attribute__((overloadable)) cospi(float v);
    +00262 FN_FUNC_FN(cospi)
    +00263 
    +00269 extern float __attribute__((overloadable)) erfc(float);
    +00270 FN_FUNC_FN(erfc)
    +00271 
    +00277 extern float __attribute__((overloadable)) erf(float);
    +00278 FN_FUNC_FN(erf)
    +00279 
    +00285 extern float __attribute__((overloadable)) exp(float);
    +00286 FN_FUNC_FN(exp)
    +00287 
    +00293 extern float __attribute__((overloadable)) exp2(float);
    +00294 FN_FUNC_FN(exp2)
    +00295 
    +00302 extern float __attribute__((overloadable)) pow(float x, float y);
    +00303 FN_FUNC_FN_FN(pow)
    +00304 
    +00310 _RS_RUNTIME float __attribute__((overloadable)) exp10(float v);
    +00311 FN_FUNC_FN(exp10)
    +00312 
    +00318 extern float __attribute__((overloadable)) expm1(float);
    +00319 FN_FUNC_FN(expm1)
    +00320 
    +00326 extern float __attribute__((overloadable)) fabs(float);
    +00327 FN_FUNC_FN(fabs)
    +00328 
    +00335 extern float __attribute__((overloadable)) fdim(float, float);
    +00336 FN_FUNC_FN_FN(fdim)
    +00337 
    +00343 extern float __attribute__((overloadable)) floor(float);
    +00344 FN_FUNC_FN(floor)
    +00345 
    +00351 extern float __attribute__((overloadable)) fma(float a, float b, float c);
    +00352 FN_FUNC_FN_FN_FN(fma)
    +00353 
    +00361 extern float __attribute__((overloadable)) fmax(float x, float y);
    +00362 FN_FUNC_FN_FN(fmax);
    +00363 FN_FUNC_FN_F(fmax);
    +00364 
    +00371 extern float __attribute__((overloadable)) fmin(float x, float y);
    +00372 FN_FUNC_FN_FN(fmin);
    +00373 FN_FUNC_FN_F(fmin);
    +00374 
    +00380 extern float __attribute__((overloadable)) fmod(float x, float y);
    +00381 FN_FUNC_FN_FN(fmod)
    +00382 
    +00383 
    +00390 _RS_RUNTIME float __attribute__((overloadable)) fract(float v, float *iptr);
    +00391 FN_FUNC_FN_PFN(fract)
    +00392 
    +00399 extern float __attribute__((overloadable)) frexp(float v, int *iptr);
    +00400 FN_FUNC_FN_PIN(frexp)
    +00401 
    +00407 extern float __attribute__((overloadable)) hypot(float x, float y);
    +00408 FN_FUNC_FN_FN(hypot)
    +00409 
    +00415 extern int __attribute__((overloadable)) ilogb(float);
    +00416 IN_FUNC_FN(ilogb)
    +00417 
    +00424 extern float __attribute__((overloadable)) ldexp(float x, int y);
    +00425 FN_FUNC_FN_IN(ldexp)
    +00426 FN_FUNC_FN_I(ldexp)
    +00427 
    +00433 extern float __attribute__((overloadable)) lgamma(float);
    +00434 FN_FUNC_FN(lgamma)
    +00435 
    +00442 extern float __attribute__((overloadable)) lgamma(float x, int* y);
    +00443 FN_FUNC_FN_PIN(lgamma)
    +00444 
    +00450 extern float __attribute__((overloadable)) log(float);
    +00451 FN_FUNC_FN(log)
    +00452 
    +00458 extern float __attribute__((overloadable)) log10(float);
    +00459 FN_FUNC_FN(log10)
    +00460 
    +00466 _RS_RUNTIME float __attribute__((overloadable)) log2(float v);
    +00467 FN_FUNC_FN(log2)
    +00468 
    +00474 extern float __attribute__((overloadable)) log1p(float v);
    +00475 FN_FUNC_FN(log1p)
    +00476 
    +00482 extern float __attribute__((overloadable)) logb(float);
    +00483 FN_FUNC_FN(logb)
    +00484 
    +00490 extern float __attribute__((overloadable)) mad(float a, float b, float c);
    +00491 FN_FUNC_FN_FN_FN(mad)
    +00492 
    +00501 extern float __attribute__((overloadable)) modf(float x, float *iret);
    +00502 FN_FUNC_FN_PFN(modf);
    +00503 
    +00504 //extern float __attribute__((overloadable)) nan(uint);
    +00505 
    +00511 extern float __attribute__((overloadable)) nextafter(float x, float y);
    +00512 FN_FUNC_FN_FN(nextafter)
    +00513 
    +00519 _RS_RUNTIME float __attribute__((overloadable)) pown(float v, int p);
    +00520 FN_FUNC_FN_IN(pown)
    +00521 
    +00528 _RS_RUNTIME float __attribute__((overloadable)) powr(float v, float p);
    +00529 FN_FUNC_FN_FN(powr)
    +00530 
    +00536 extern float __attribute__((overloadable)) remainder(float x, float y);
    +00537 FN_FUNC_FN_FN(remainder)
    +00538 
    +00539 // document once we know the precision of bionic
    +00540 extern float __attribute__((overloadable)) remquo(float, float, int *);
    +00541 FN_FUNC_FN_FN_PIN(remquo)
    +00542 
    +00548 extern float __attribute__((overloadable)) rint(float);
    +00549 FN_FUNC_FN(rint)
    +00550 
    +00556 _RS_RUNTIME float __attribute__((overloadable)) rootn(float v, int n);
    +00557 FN_FUNC_FN_IN(rootn)
    +00558 
    +00564 extern float __attribute__((overloadable)) round(float);
    +00565 FN_FUNC_FN(round)
    +00566 
    +00572 extern float __attribute__((overloadable)) sqrt(float);
    +00573 FN_FUNC_FN(sqrt)
    +00574 
    +00581 _RS_RUNTIME float __attribute__((overloadable)) rsqrt(float v);
    +00582 FN_FUNC_FN(rsqrt)
    +00583 
    +00590 extern float __attribute__((overloadable)) sin(float v);
    +00591 FN_FUNC_FN(sin)
    +00592 
    +00602 _RS_RUNTIME float __attribute__((overloadable)) sincos(float v, float *cosptr);
    +00603 FN_FUNC_FN_PFN(sincos);
    +00604 
    +00610 extern float __attribute__((overloadable)) sinh(float);
    +00611 FN_FUNC_FN(sinh)
    +00612 
    +00618 _RS_RUNTIME float __attribute__((overloadable)) sinpi(float v);
    +00619 FN_FUNC_FN(sinpi)
    +00620 
    +00627 extern float __attribute__((overloadable)) tan(float v);
    +00628 FN_FUNC_FN(tan)
    +00629 
    +00636 extern float __attribute__((overloadable)) tanh(float);
    +00637 FN_FUNC_FN(tanh)
    +00638 
    +00644 _RS_RUNTIME float __attribute__((overloadable)) tanpi(float v);
    +00645 FN_FUNC_FN(tanpi)
    +00646 
    +00652 extern float __attribute__((overloadable)) tgamma(float);
    +00653 FN_FUNC_FN(tgamma)
    +00654 
    +00660 extern float __attribute__((overloadable)) trunc(float);
    +00661 FN_FUNC_FN(trunc)
    +00662 
    +00663 
    +00664 #define XN_FUNC_YN(typeout, fnc, typein)                                \
    +00665 extern typeout __attribute__((overloadable)) fnc(typein);               \
    +00666 _RS_RUNTIME typeout##2 __attribute__((overloadable)) fnc(typein##2 v);   \
    +00667 _RS_RUNTIME typeout##3 __attribute__((overloadable)) fnc(typein##3 v);   \
    +00668 _RS_RUNTIME typeout##4 __attribute__((overloadable)) fnc(typein##4 v);
    +00669 
    +00670 #define UIN_FUNC_IN(fnc)          \
    +00671 XN_FUNC_YN(uchar, fnc, char)      \
    +00672 XN_FUNC_YN(ushort, fnc, short)    \
    +00673 XN_FUNC_YN(uint, fnc, int)
    +00674 
    +00675 #define IN_FUNC_IN(fnc)           \
    +00676 XN_FUNC_YN(uchar, fnc, uchar)     \
    +00677 XN_FUNC_YN(char, fnc, char)       \
    +00678 XN_FUNC_YN(ushort, fnc, ushort)   \
    +00679 XN_FUNC_YN(short, fnc, short)     \
    +00680 XN_FUNC_YN(uint, fnc, uint)       \
    +00681 XN_FUNC_YN(int, fnc, int)
    +00682 
    +00683 
    +00684 #define XN_FUNC_XN_XN_BODY(type, fnc, body)         \
    +00685 _RS_RUNTIME type __attribute__((overloadable))       \
    +00686         fnc(type v1, type v2);                      \
    +00687 _RS_RUNTIME type##2 __attribute__((overloadable))    \
    +00688         fnc(type##2 v1, type##2 v2);                \
    +00689 _RS_RUNTIME type##3 __attribute__((overloadable))    \
    +00690         fnc(type##3 v1, type##3 v2);                \
    +00691 _RS_RUNTIME type##4 __attribute__((overloadable))    \
    +00692         fnc(type##4 v1, type##4 v2);
    +00693 
    +00694 #define IN_FUNC_IN_IN_BODY(fnc, body) \
    +00695 XN_FUNC_XN_XN_BODY(uchar, fnc, body)  \
    +00696 XN_FUNC_XN_XN_BODY(char, fnc, body)   \
    +00697 XN_FUNC_XN_XN_BODY(ushort, fnc, body) \
    +00698 XN_FUNC_XN_XN_BODY(short, fnc, body)  \
    +00699 XN_FUNC_XN_XN_BODY(uint, fnc, body)   \
    +00700 XN_FUNC_XN_XN_BODY(int, fnc, body)    \
    +00701 XN_FUNC_XN_XN_BODY(float, fnc, body)
    +00702 
    +00703 UIN_FUNC_IN(abs)
    +00704 IN_FUNC_IN(clz)
    +00705 
    +00711 IN_FUNC_IN_IN_BODY(min, (v1 < v2 ? v1 : v2))
    +00712 FN_FUNC_FN_F(min)
    +00713 
    +00719 IN_FUNC_IN_IN_BODY(max, (v1 > v2 ? v1 : v2))
    +00720 FN_FUNC_FN_F(max)
    +00721 
    +00729 _RS_RUNTIME float __attribute__((overloadable)) clamp(float amount, float low, float high);
    +00730 _RS_RUNTIME float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
    +00731 _RS_RUNTIME float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high);
    +00732 _RS_RUNTIME float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high);
    +00733 _RS_RUNTIME float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high);
    +00734 _RS_RUNTIME float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high);
    +00735 _RS_RUNTIME float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high);
    +00736 
    +00742 _RS_RUNTIME float __attribute__((overloadable)) degrees(float radians);
    +00743 FN_FUNC_FN(degrees)
    +00744 
    +00750 _RS_RUNTIME float __attribute__((overloadable)) mix(float start, float stop, float amount);
    +00751 _RS_RUNTIME float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float2 amount);
    +00752 _RS_RUNTIME float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float3 amount);
    +00753 _RS_RUNTIME float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float4 amount);
    +00754 _RS_RUNTIME float2 __attribute__((overloadable)) mix(float2 start, float2 stop, float amount);
    +00755 _RS_RUNTIME float3 __attribute__((overloadable)) mix(float3 start, float3 stop, float amount);
    +00756 _RS_RUNTIME float4 __attribute__((overloadable)) mix(float4 start, float4 stop, float amount);
    +00757 
    +00763 _RS_RUNTIME float __attribute__((overloadable)) radians(float degrees);
    +00764 FN_FUNC_FN(radians)
    +00765 
    +00774 _RS_RUNTIME float __attribute__((overloadable)) step(float edge, float v);
    +00775 _RS_RUNTIME float2 __attribute__((overloadable)) step(float2 edge, float2 v);
    +00776 _RS_RUNTIME float3 __attribute__((overloadable)) step(float3 edge, float3 v);
    +00777 _RS_RUNTIME float4 __attribute__((overloadable)) step(float4 edge, float4 v);
    +00778 _RS_RUNTIME float2 __attribute__((overloadable)) step(float2 edge, float v);
    +00779 _RS_RUNTIME float3 __attribute__((overloadable)) step(float3 edge, float v);
    +00780 _RS_RUNTIME float4 __attribute__((overloadable)) step(float4 edge, float v);
    +00781 
    +00782 // not implemented
    +00783 extern float __attribute__((overloadable)) smoothstep(float, float, float);
    +00784 extern float2 __attribute__((overloadable)) smoothstep(float2, float2, float2);
    +00785 extern float3 __attribute__((overloadable)) smoothstep(float3, float3, float3);
    +00786 extern float4 __attribute__((overloadable)) smoothstep(float4, float4, float4);
    +00787 extern float2 __attribute__((overloadable)) smoothstep(float, float, float2);
    +00788 extern float3 __attribute__((overloadable)) smoothstep(float, float, float3);
    +00789 extern float4 __attribute__((overloadable)) smoothstep(float, float, float4);
    +00790 
    +00798 _RS_RUNTIME float __attribute__((overloadable)) sign(float v);
    +00799 FN_FUNC_FN(sign)
    +00800 
    +00806 _RS_RUNTIME float3 __attribute__((overloadable)) cross(float3 lhs, float3 rhs);
    +00807 _RS_RUNTIME float4 __attribute__((overloadable)) cross(float4 lhs, float4 rhs);
    +00808 
    +00814 _RS_RUNTIME float __attribute__((overloadable)) dot(float lhs, float rhs);
    +00815 _RS_RUNTIME float __attribute__((overloadable)) dot(float2 lhs, float2 rhs);
    +00816 _RS_RUNTIME float __attribute__((overloadable)) dot(float3 lhs, float3 rhs);
    +00817 _RS_RUNTIME float __attribute__((overloadable)) dot(float4 lhs, float4 rhs);
    +00818 
    +00824 _RS_RUNTIME float __attribute__((overloadable)) length(float v);
    +00825 _RS_RUNTIME float __attribute__((overloadable)) length(float2 v);
    +00826 _RS_RUNTIME float __attribute__((overloadable)) length(float3 v);
    +00827 _RS_RUNTIME float __attribute__((overloadable)) length(float4 v);
    +00828 
    +00834 _RS_RUNTIME float __attribute__((overloadable)) distance(float lhs, float rhs);
    +00835 _RS_RUNTIME float __attribute__((overloadable)) distance(float2 lhs, float2 rhs);
    +00836 _RS_RUNTIME float __attribute__((overloadable)) distance(float3 lhs, float3 rhs);
    +00837 _RS_RUNTIME float __attribute__((overloadable)) distance(float4 lhs, float4 rhs);
    +00838 
    +00844 _RS_RUNTIME float __attribute__((overloadable)) normalize(float v);
    +00845 _RS_RUNTIME float2 __attribute__((overloadable)) normalize(float2 v);
    +00846 _RS_RUNTIME float3 __attribute__((overloadable)) normalize(float3 v);
    +00847 _RS_RUNTIME float4 __attribute__((overloadable)) normalize(float4 v);
    +00848 
    +00849 #undef CVT_FUNC
    +00850 #undef CVT_FUNC_2
    +00851 #undef FN_FUNC_FN
    +00852 #undef IN_FUNC_FN
    +00853 #undef FN_FUNC_FN_FN
    +00854 #undef FN_FUNC_FN_F
    +00855 #undef FN_FUNC_FN_IN
    +00856 #undef FN_FUNC_FN_I
    +00857 #undef FN_FUNC_FN_PFN
    +00858 #undef FN_FUNC_FN_PIN
    +00859 #undef FN_FUNC_FN_FN_FN
    +00860 #undef FN_FUNC_FN_FN_PIN
    +00861 #undef XN_FUNC_YN
    +00862 #undef UIN_FUNC_IN
    +00863 #undef IN_FUNC_IN
    +00864 #undef XN_FUNC_XN_XN_BODY
    +00865 #undef IN_FUNC_IN_IN_BODY
    +00866 
    +00867 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__core_8rsh.html b/docs/html/reference/renderscript/rs__core_8rsh.html new file mode 100644 index 0000000..5a32e19 --- /dev/null +++ b/docs/html/reference/renderscript/rs__core_8rsh.html @@ -0,0 +1,306 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_core.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_core.rsh File Reference
    +
    +
    +
    #include "rs_types.rsh"
    +#include "rs_allocation.rsh"
    +#include "rs_atomic.rsh"
    +#include "rs_cl.rsh"
    +#include "rs_debug.rsh"
    +#include "rs_math.rsh"
    +#include "rs_matrix.rsh"
    +#include "rs_object.rsh"
    +#include "rs_quaternion.rsh"
    +#include "rs_time.rsh"
    +
    + + + + + + + + + + + + + +

    +Data Structures

    struct  rs_script_call

    +Typedefs

    typedef struct rs_script_call rs_script_call_t

    +Enumerations

    enum  rs_for_each_strategy

    +Functions

    bool rsSendToClient (int cmdID)
    bool rsSendToClient (int cmdID, const void *data, uint len)
    void rsSendToClientBlocking (int cmdID)
    void rsSendToClientBlocking (int cmdID, const void *data, uint len)
    void rsForEach (rs_script script, rs_allocation input, rs_allocation output, const void *usrData, const rs_script_call_t *sc)
    void rsForEach (rs_script script, rs_allocation input, rs_allocation output, const void *usrData)
    +

    Detailed Description

    +

    todo-jsams

    + +

    Definition in file rs_core.rsh.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef struct rs_script_call rs_script_call_t
    +
    +
    +

    Structure to provide extra information to a rsForEach call. Primarly used to restrict the call to a subset of cells in the allocation.

    + +
    +
    +

    Enumeration Type Documentation

    + +
    +
    + + + + +
    enum rs_for_each_strategy
    +
    +
    +

    Launch order hint for rsForEach calls. This provides a hint to the system to determine in which order the root function of the target is called with each cell of the allocation.

    +

    This is a hint and implementations may not obey the order.

    + +

    Definition at line 74 of file rs_core.rsh.

    + +
    +
    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsForEach (rs_script script,
    rs_allocation input,
    rs_allocation output,
    const void * usrData,
    const rs_script_call_tsc 
    )
    +
    +
    +

    Make a script to script call to launch work. One of the input or output is required to be a valid object. The input and output must be of the same dimensions. API 10-13

    +
    Parameters:
    + + + + + + +
    scriptThe target script to call
    inputThe allocation to source data from
    outputthe allocation to write date into
    usrDataThe user definied params to pass to the root script. May be NULL.
    scExtra control infomation used to select a sub-region of the allocation to be processed or suggest a walking strategy. May be NULL.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsForEach (rs_script script,
    rs_allocation input,
    rs_allocation output,
    const void * usrData 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsSendToClient (int cmdID)
    +
    +
    +

    Send a message back to the client. Will not block and returns true if the message was sendable and false if the fifo was full. A message ID is required. Data payload is optional.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    bool rsSendToClient (int cmdID,
    const void * data,
    uint len 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsSendToClientBlocking (int cmdID)
    +
    +
    +

    Send a message back to the client, blocking until the message is queued. A message ID is required. Data payload is optional.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsSendToClientBlocking (int cmdID,
    const void * data,
    uint len 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__core_8rsh_source.html b/docs/html/reference/renderscript/rs__core_8rsh_source.html new file mode 100644 index 0000000..fac83e0 --- /dev/null +++ b/docs/html/reference/renderscript/rs__core_8rsh_source.html @@ -0,0 +1,125 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_core.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /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
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__debug_8rsh.html b/docs/html/reference/renderscript/rs__debug_8rsh.html new file mode 100644 index 0000000..75ce9db --- /dev/null +++ b/docs/html/reference/renderscript/rs__debug_8rsh.html @@ -0,0 +1,459 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_debug.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_debug.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + + +

    +Functions

    void rsDebug (const char *, float)
    void rsDebug (const char *, float, float)
    void rsDebug (const char *, float, float, float)
    void rsDebug (const char *, float, float, float, float)
    void rsDebug (const char *, double)
    void rsDebug (const char *, const rs_matrix4x4 *)
    void rsDebug (const char *, const rs_matrix3x3 *)
    void rsDebug (const char *, const rs_matrix2x2 *)
    void rsDebug (const char *, int)
    void rsDebug (const char *, uint)
    void rsDebug (const char *, long)
    void rsDebug (const char *, unsigned long)
    void rsDebug (const char *, const void *)
    +

    Detailed Description

    +

    Utility debugging routines.

    +

    Routines intended to be used during application developement. These should not be used in shipping applications. All print a string and value pair to the standard log.

    + +

    Definition in file rs_debug.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME void rsDebug (const char * ,
    float  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    float ,
    float  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    float ,
    float ,
    float  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    float ,
    float ,
    float ,
    float  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    double  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    const rs_matrix4x4 
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    const rs_matrix3x3 
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    const rs_matrix2x2 
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    int  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    uint  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    long  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    unsigned long 
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsDebug (const char * ,
    const void *  
    )
    +
    +
    +

    Debug function. Prints a string and value to the log.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__debug_8rsh_source.html b/docs/html/reference/renderscript/rs__debug_8rsh_source.html new file mode 100644 index 0000000..b06e99c --- /dev/null +++ b/docs/html/reference/renderscript/rs__debug_8rsh_source.html @@ -0,0 +1,94 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_debug.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_debug.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 
    +00026 #ifndef __RS_DEBUG_RSH__
    +00027 #define __RS_DEBUG_RSH__
    +00028 
    +00029 
    +00030 
    +00034 extern void __attribute__((overloadable))
    +00035     rsDebug(const char *, float);
    +00039 extern void __attribute__((overloadable))
    +00040     rsDebug(const char *, float, float);
    +00044 extern void __attribute__((overloadable))
    +00045     rsDebug(const char *, float, float, float);
    +00049 extern void __attribute__((overloadable))
    +00050     rsDebug(const char *, float, float, float, float);
    +00054 extern void __attribute__((overloadable))
    +00055     rsDebug(const char *, double);
    +00059 extern void __attribute__((overloadable))
    +00060     rsDebug(const char *, const rs_matrix4x4 *);
    +00064 extern void __attribute__((overloadable))
    +00065     rsDebug(const char *, const rs_matrix3x3 *);
    +00069 extern void __attribute__((overloadable))
    +00070     rsDebug(const char *, const rs_matrix2x2 *);
    +00074 extern void __attribute__((overloadable))
    +00075     rsDebug(const char *, int);
    +00079 extern void __attribute__((overloadable))
    +00080     rsDebug(const char *, uint);
    +00084 extern void __attribute__((overloadable))
    +00085     rsDebug(const char *, long);
    +00089 extern void __attribute__((overloadable))
    +00090     rsDebug(const char *, unsigned long);
    +00094 extern void __attribute__((overloadable))
    +00095     rsDebug(const char *, long long);
    +00099 extern void __attribute__((overloadable))
    +00100     rsDebug(const char *, unsigned long long);
    +00104 extern void __attribute__((overloadable))
    +00105     rsDebug(const char *, const void *);
    +00106 #define RS_DEBUG(a) rsDebug(#a, a)
    +00107 #define RS_DEBUG_MARKER rsDebug(__FILE__, __LINE__)
    +00108 
    +00109 
    +00113 _RS_RUNTIME void __attribute__((overloadable)) rsDebug(const char *s, float2 v);
    +00117 _RS_RUNTIME void __attribute__((overloadable)) rsDebug(const char *s, float3 v);
    +00121 _RS_RUNTIME void __attribute__((overloadable)) rsDebug(const char *s, float4 v);
    +00122 
    +00123 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__graphics_8rsh.html b/docs/html/reference/renderscript/rs__graphics_8rsh.html new file mode 100644 index 0000000..8a17b30 --- /dev/null +++ b/docs/html/reference/renderscript/rs__graphics_8rsh.html @@ -0,0 +1,1347 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_graphics.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_graphics.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    void rsgBindProgramFragment (rs_program_fragment pf)
    void rsgBindProgramStore (rs_program_store ps)
    void rsgBindProgramVertex (rs_program_vertex pv)
    void rsgBindProgramRaster (rs_program_raster pr)
    void rsgBindSampler (rs_program_fragment, uint slot, rs_sampler)
    void rsgBindTexture (rs_program_fragment, uint slot, rs_allocation)
    void rsgProgramVertexLoadProjectionMatrix (const rs_matrix4x4 *proj)
    void rsgProgramVertexLoadModelMatrix (const rs_matrix4x4 *model)
    void rsgProgramVertexLoadTextureMatrix (const rs_matrix4x4 *tex)
    void rsgProgramVertexGetProjectionMatrix (rs_matrix4x4 *proj)
    void rsgProgramFragmentConstantColor (rs_program_fragment pf, float r, float g, float b, float a)
    uint rsgGetWidth (void)
    uint rsgGetHeight (void)
    void rsgAllocationSyncAll (rs_allocation alloc)
    void rsgDrawRect (float x1, float y1, float x2, float y2, float z)
    void rsgDrawQuad (float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)
    void rsgDrawQuadTexCoords (float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float x4, float y4, float z4, float u4, float v4)
    void rsgDrawSpriteScreenspace (float x, float y, float z, float w, float h)
    void rsgDrawMesh (rs_mesh ism)
    void rsgDrawMesh (rs_mesh ism, uint primitiveIndex)
    void rsgDrawMesh (rs_mesh ism, uint primitiveIndex, uint start, uint len)
    void rsgClearColor (float r, float g, float b, float a)
    void rsgClearDepth (float value)
    void rsgDrawText (const char *, int x, int y)
    void rsgDrawText (rs_allocation, int x, int y)
    void rsgBindFont (rs_font font)
    void rsgFontColor (float r, float g, float b, float a)
    void rsgMeasureText (const char *, int *left, int *right, int *top, int *bottom)
    void rsgMeasureText (rs_allocation, int *left, int *right, int *top, int *bottom)
    void rsgMeshComputeBoundingBox (rs_mesh mesh, float *minX, float *minY, float *minZ, float *maxX, float *maxY, float *maxZ)
    static __inline__ void rsgMeshComputeBoundingBox (rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax)
    +

    Detailed Description

    +

    Renderscript graphics API.

    +

    A set of graphics functions used by Renderscript.

    + +

    Definition in file rs_graphics.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    void rsgAllocationSyncAll (rs_allocation alloc)
    +
    +
    +

    Sync the contents of an allocation from its SCRIPT memory space to its HW memory spaces.

    +
    Parameters:
    + + +
    alloc
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgBindFont (rs_font font)
    +
    +
    +

    Binds the font object to be used for all subsequent font rendering calls

    +
    Parameters:
    + + +
    fontobject to bind
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgBindProgramFragment (rs_program_fragment pf)
    +
    +
    +

    Bind a new ProgramFragment to the rendering context.

    +
    Parameters:
    + + +
    pf
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgBindProgramRaster (rs_program_raster pr)
    +
    +
    +

    Bind a new ProgramRaster to the rendering context.

    +
    Parameters:
    + + +
    pr
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgBindProgramStore (rs_program_store ps)
    +
    +
    +

    Bind a new ProgramStore to the rendering context.

    +
    Parameters:
    + + +
    ps
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgBindProgramVertex (rs_program_vertex pv)
    +
    +
    +

    Bind a new ProgramVertex to the rendering context.

    +
    Parameters:
    + + +
    pv
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgBindSampler (rs_program_fragment ,
    uint slot,
    rs_sampler  
    )
    +
    +
    +

    Bind a new Sampler object to a ProgramFragment. The sampler will operate on the texture bound at the matching slot.

    +
    Parameters:
    + + +
    slot
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgBindTexture (rs_program_fragment ,
    uint slot,
    rs_allocation  
    )
    +
    +
    +

    Bind a new Allocation object to a ProgramFragment. The Allocation must be a valid texture for the Program. The sampling of the texture will be controled by the Sampler bound at the matching slot.

    +
    Parameters:
    + + +
    slot
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgClearColor (float r,
    float g,
    float b,
    float a 
    )
    +
    +
    +

    Clears the rendering surface to the specified color.

    +
    Parameters:
    + + + + + +
    r
    g
    b
    a
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgClearDepth (float value)
    +
    +
    +

    Clears the depth suface to the specified value.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgDrawMesh (rs_mesh ism)
    +
    +
    +

    Draw a mesh using the current context state. The whole mesh is rendered.

    +
    Parameters:
    + + +
    ism
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsgDrawMesh (rs_mesh ism,
    uint primitiveIndex 
    )
    +
    +
    +

    Draw part of a mesh using the current context state.

    +
    Parameters:
    + + + +
    ismmesh object to render
    primitiveIndexfor meshes that contain multiple primitive groups this parameter specifies the index of the group to draw.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawMesh (rs_mesh ism,
    uint primitiveIndex,
    uint start,
    uint len 
    )
    +
    +
    +

    Draw specified index range of part of a mesh using the current context state.

    +
    Parameters:
    + + + + + +
    ismmesh object to render
    primitiveIndexfor meshes that contain multiple primitive groups this parameter specifies the index of the group to draw.
    startstarting index in the range
    lennumber of indices to draw
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawQuad (float x1,
    float y1,
    float z1,
    float x2,
    float y2,
    float z2,
    float x3,
    float y3,
    float z3,
    float x4,
    float y4,
    float z4 
    )
    +
    +
    +

    Low performance utility function for drawing a simple quad. Not intended for drawing large quantities of geometry.

    +
    Parameters:
    + + + + + + + + + + + + + +
    x1
    y1
    z1
    x2
    y2
    z2
    x3
    y3
    z3
    x4
    y4
    z4
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawQuadTexCoords (float x1,
    float y1,
    float z1,
    float u1,
    float v1,
    float x2,
    float y2,
    float z2,
    float u2,
    float v2,
    float x3,
    float y3,
    float z3,
    float u3,
    float v3,
    float x4,
    float y4,
    float z4,
    float u4,
    float v4 
    )
    +
    +
    +

    Low performance utility function for drawing a textured quad. Not intended for drawing large quantities of geometry.

    +
    Parameters:
    + + + + + + + + + + + + + + + + + + + + + +
    x1
    y1
    z1
    u1
    v1
    x2
    y2
    z2
    u2
    v2
    x3
    y3
    z3
    u3
    v3
    x4
    y4
    z4
    u4
    v4
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawRect (float x1,
    float y1,
    float x2,
    float y2,
    float z 
    )
    +
    +
    +

    Low performance utility function for drawing a simple rectangle. Not intended for drawing large quantities of geometry.

    +
    Parameters:
    + + + + + + +
    x1
    y1
    x2
    y2
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawSpriteScreenspace (float x,
    float y,
    float z,
    float w,
    float h 
    )
    +
    +
    +

    Low performance function for drawing rectangles in screenspace. This function uses the default passthough ProgramVertex. Any bound ProgramVertex is ignored. This function has considerable overhead and should not be used for drawing in shipping applications.

    +
    Parameters:
    + + + + + + +
    x
    y
    z
    w
    h
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawText (const char * ,
    int x,
    int y 
    )
    +
    +
    +

    Draws text given a string and location

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgDrawText (rs_allocation ,
    int x,
    int y 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgFontColor (float r,
    float g,
    float b,
    float a 
    )
    +
    +
    +

    Sets the font color for all subsequent rendering calls

    +
    Parameters:
    + + + + + +
    rred component
    ggreen component
    bblue component
    aalpha component
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    uint rsgGetHeight (void )
    +
    +
    +

    Get the height of the current rendering surface.

    +
    Returns:
    uint
    + +
    +
    + +
    +
    + + + + + + + + +
    uint rsgGetWidth (void )
    +
    +
    +

    Get the width of the current rendering surface.

    +
    Returns:
    uint
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgMeasureText (const char * ,
    int * left,
    int * right,
    int * top,
    int * bottom 
    )
    +
    +
    +

    Returns the bounding box of the text relative to (0, 0) Any of left, right, top, bottom could be NULL

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgMeasureText (rs_allocation ,
    int * left,
    int * right,
    int * top,
    int * bottom 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgMeshComputeBoundingBox (rs_mesh mesh,
    float * minX,
    float * minY,
    float * minZ,
    float * maxX,
    float * maxY,
    float * maxZ 
    )
    +
    +
    +

    Computes an axis aligned bounding box of a mesh object

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    static __inline__ void rsgMeshComputeBoundingBox (rs_mesh mesh,
    float3bBoxMin,
    float3bBoxMax 
    ) [static]
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +

    Definition at line 380 of file rs_graphics.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsgProgramFragmentConstantColor (rs_program_fragment pf,
    float r,
    float g,
    float b,
    float a 
    )
    +
    +
    +

    Set the constant color for a fixed function emulation program.

    +
    Parameters:
    + + + + + + +
    pf
    r
    g
    b
    a
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgProgramVertexGetProjectionMatrix (rs_matrix4x4proj)
    +
    +
    +

    Get the projection matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error.

    +
    Parameters:
    + + +
    projmatrix to store the current projection matrix into
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgProgramVertexLoadModelMatrix (const rs_matrix4x4model)
    +
    +
    +

    Load the model matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error.

    +
    Parameters:
    + + +
    modelmodel matrix
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgProgramVertexLoadProjectionMatrix (const rs_matrix4x4proj)
    +
    +
    +

    Load the projection matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error.

    +
    Parameters:
    + + +
    projprojection matrix
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsgProgramVertexLoadTextureMatrix (const rs_matrix4x4tex)
    +
    +
    +

    Load the texture matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error.

    +
    Parameters:
    + + +
    textexture matrix
    +
    +
    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__graphics_8rsh_source.html b/docs/html/reference/renderscript/rs__graphics_8rsh_source.html new file mode 100644 index 0000000..b9ce0b7 --- /dev/null +++ b/docs/html/reference/renderscript/rs__graphics_8rsh_source.html @@ -0,0 +1,183 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_graphics.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_graphics.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 
    +00023 #ifndef __RS_GRAPHICS_RSH__
    +00024 #define __RS_GRAPHICS_RSH__
    +00025 #if (defined(RS_VERSION) && (RS_VERSION >= 14))
    +00026 
    +00031 extern void __attribute__((overloadable))
    +00032     rsgBindColorTarget(rs_allocation colorTarget, uint slot);
    +00033 
    +00038 extern void __attribute__((overloadable))
    +00039     rsgClearColorTarget(uint slot);
    +00040 
    +00045 extern void __attribute__((overloadable))
    +00046     rsgBindDepthTarget(rs_allocation depthTarget);
    +00047 
    +00051 extern void __attribute__((overloadable))
    +00052     rsgClearDepthTarget(void);
    +00053 
    +00058 extern void __attribute__((overloadable))
    +00059     rsgClearAllRenderTargets(void);
    +00060 
    +00064 extern uint __attribute__((overloadable))
    +00065     rsgFinish(void);
    +00066 
    +00067 #endif //defined(RS_VERSION) && (RS_VERSION >= 14)
    +00068 
    +00074 extern void __attribute__((overloadable))
    +00075     rsgBindProgramFragment(rs_program_fragment pf);
    +00076 
    +00082 extern void __attribute__((overloadable))
    +00083     rsgBindProgramStore(rs_program_store ps);
    +00084 
    +00090 extern void __attribute__((overloadable))
    +00091     rsgBindProgramVertex(rs_program_vertex pv);
    +00092 
    +00098 extern void __attribute__((overloadable))
    +00099     rsgBindProgramRaster(rs_program_raster pr);
    +00100 
    +00107 extern void __attribute__((overloadable))
    +00108     rsgBindSampler(rs_program_fragment, uint slot, rs_sampler);
    +00109 
    +00118 extern void __attribute__((overloadable))
    +00119     rsgBindTexture(rs_program_fragment, uint slot, rs_allocation);
    +00120 
    +00127 extern void __attribute__((overloadable))
    +00128     rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4 *proj);
    +00135 extern void __attribute__((overloadable))
    +00136     rsgProgramVertexLoadModelMatrix(const rs_matrix4x4 *model);
    +00143 extern void __attribute__((overloadable))
    +00144     rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4 *tex);
    +00151 extern void __attribute__((overloadable))
    +00152     rsgProgramVertexGetProjectionMatrix(rs_matrix4x4 *proj);
    +00153 
    +00163 extern void __attribute__((overloadable))
    +00164     rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a);
    +00165 
    +00171 extern uint __attribute__((overloadable))
    +00172     rsgGetWidth(void);
    +00173 
    +00179 extern uint __attribute__((overloadable))
    +00180     rsgGetHeight(void);
    +00181 
    +00182 
    +00189 extern void __attribute__((overloadable))
    +00190     rsgAllocationSyncAll(rs_allocation alloc);
    +00191 
    +00192 #if (defined(RS_VERSION) && (RS_VERSION >= 14))
    +00193 
    +00201 extern void __attribute__((overloadable))
    +00202     rsgAllocationSyncAll(rs_allocation alloc,
    +00203                          rs_allocation_usage_type source);
    +00204 
    +00205 #endif //defined(RS_VERSION) && (RS_VERSION >= 14)
    +00206 
    +00217 extern void __attribute__((overloadable))
    +00218     rsgDrawRect(float x1, float y1, float x2, float y2, float z);
    +00219 
    +00237 extern void __attribute__((overloadable))
    +00238     rsgDrawQuad(float x1, float y1, float z1,
    +00239                 float x2, float y2, float z2,
    +00240                 float x3, float y3, float z3,
    +00241                 float x4, float y4, float z4);
    +00242 
    +00243 
    +00269 extern void __attribute__((overloadable))
    +00270     rsgDrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1,
    +00271                          float x2, float y2, float z2, float u2, float v2,
    +00272                          float x3, float y3, float z3, float u3, float v3,
    +00273                          float x4, float y4, float z4, float u4, float v4);
    +00274 
    +00275 
    +00288 extern void __attribute__((overloadable))
    +00289     rsgDrawSpriteScreenspace(float x, float y, float z, float w, float h);
    +00290 
    +00297 extern void __attribute__((overloadable))
    +00298     rsgDrawMesh(rs_mesh ism);
    +00305 extern void __attribute__((overloadable))
    +00306     rsgDrawMesh(rs_mesh ism, uint primitiveIndex);
    +00315 extern void __attribute__((overloadable))
    +00316     rsgDrawMesh(rs_mesh ism, uint primitiveIndex, uint start, uint len);
    +00317 
    +00326 extern void __attribute__((overloadable))
    +00327     rsgClearColor(float r, float g, float b, float a);
    +00328 
    +00332 extern void __attribute__((overloadable))
    +00333     rsgClearDepth(float value);
    +00337 extern void __attribute__((overloadable))
    +00338     rsgDrawText(const char *, int x, int y);
    +00342 extern void __attribute__((overloadable))
    +00343     rsgDrawText(rs_allocation, int x, int y);
    +00348 extern void __attribute__((overloadable))
    +00349     rsgBindFont(rs_font font);
    +00357 extern void __attribute__((overloadable))
    +00358     rsgFontColor(float r, float g, float b, float a);
    +00363 extern void __attribute__((overloadable))
    +00364     rsgMeasureText(const char *, int *left, int *right, int *top, int *bottom);
    +00368 extern void __attribute__((overloadable))
    +00369     rsgMeasureText(rs_allocation, int *left, int *right, int *top, int *bottom);
    +00373 extern void __attribute__((overloadable))
    +00374     rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ,
    +00375                                                 float *maxX, float *maxY, float *maxZ);
    +00379 __inline__ static void __attribute__((overloadable, always_inline))
    +00380 rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) {
    +00381     float x1, y1, z1, x2, y2, z2;
    +00382     rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2);
    +00383     bBoxMin->x = x1;
    +00384     bBoxMin->y = y1;
    +00385     bBoxMin->z = z1;
    +00386     bBoxMax->x = x2;
    +00387     bBoxMax->y = y2;
    +00388     bBoxMax->z = z2;
    +00389 }
    +00390 
    +00391 #endif
    +00392 
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__math_8rsh.html b/docs/html/reference/renderscript/rs__math_8rsh.html new file mode 100644 index 0000000..9415c3a --- /dev/null +++ b/docs/html/reference/renderscript/rs__math_8rsh.html @@ -0,0 +1,679 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_math.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_math.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + +

    +Functions

    int rsRand (int max_value)
    int rsRand (int min_value, int max_value)
    float rsRand (float max_value)
    float rsRand (float min_value, float max_value)
    float rsFrac (float)
    _RS_RUNTIME uint rsClamp (uint amount, uint low, uint high)
    _RS_RUNTIME int rsClamp (int amount, int low, int high)
    _RS_RUNTIME ushort rsClamp (ushort amount, ushort low, ushort high)
    _RS_RUNTIME short rsClamp (short amount, short low, short high)
    _RS_RUNTIME uchar rsClamp (uchar amount, uchar low, uchar high)
    _RS_RUNTIME char rsClamp (char amount, char low, char high)
    static __inline__ void rsExtractFrustumPlanes (const rs_matrix4x4 *viewProj, float4 *left, float4 *right, float4 *top, float4 *bottom, float4 *near, float4 *far)
    static __inline__ bool rsIsSphereInFrustum (float4 *sphere, float4 *left, float4 *right, float4 *top, float4 *bottom, float4 *near, float4 *far)
    _RS_RUNTIME uchar4 rsPackColorTo8888 (float r, float g, float b)
    _RS_RUNTIME uchar4 rsPackColorTo8888 (float r, float g, float b, float a)
    _RS_RUNTIME uchar4 rsPackColorTo8888 (float3 color)
    _RS_RUNTIME float4 rsUnpackColor8888 (uchar4 c)
    +

    Detailed Description

    +

    todo-jsams

    + +

    Definition in file rs_math.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME uint rsClamp (uint amount,
    uint low,
    uint high 
    )
    +
    +
    +

    Clamp the value amount between low and high.

    +
    Parameters:
    + + + + +
    amountThe value to clamp
    low
    high
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME int rsClamp (int amount,
    int low,
    int high 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME ushort rsClamp (ushort amount,
    ushort low,
    ushort high 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME short rsClamp (short amount,
    short low,
    short high 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME uchar rsClamp (uchar amount,
    uchar low,
    uchar high 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME char rsClamp (char amount,
    char low,
    char high 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    static __inline__ void rsExtractFrustumPlanes (const rs_matrix4x4viewProj,
    float4left,
    float4right,
    float4top,
    float4bottom,
    float4near,
    float4far 
    ) [static]
    +
    +
    +

    Computes 6 frustum planes from the view projection matrix

    +
    Parameters:
    + + + + + + + + +
    viewProjmatrix to extract planes from
    leftplane
    rightplane
    topplane
    bottomplane
    nearplane
    farplane
    +
    +
    + +

    Definition at line 102 of file rs_math.rsh.

    + +
    +
    + +
    +
    + + + + + + + + +
    float rsFrac (float )
    +
    +
    +

    Returns the fractional part of a float

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    static __inline__ bool rsIsSphereInFrustum (float4sphere,
    float4left,
    float4right,
    float4top,
    float4bottom,
    float4near,
    float4far 
    ) [static]
    +
    +
    +

    Checks if a sphere is withing the 6 frustum planes

    +
    Parameters:
    + + + + + + + + +
    spherefloat4 representing the sphere
    leftplane
    rightplane
    topplane
    bottomplane
    nearplane
    farplane
    +
    +
    + +

    Definition at line 162 of file rs_math.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME uchar4 rsPackColorTo8888 (float r,
    float g,
    float b 
    )
    +
    +
    +

    Pack floating point (0-1) RGB values into a uchar4. The alpha component is set to 255 (1.0).

    +
    Parameters:
    + + + + +
    r
    g
    b
    +
    +
    +
    Returns:
    uchar4
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME uchar4 rsPackColorTo8888 (float r,
    float g,
    float b,
    float a 
    )
    +
    +
    +

    Pack floating point (0-1) RGBA values into a uchar4.

    +
    Parameters:
    + + + + + +
    r
    g
    b
    a
    +
    +
    +
    Returns:
    uchar4
    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME uchar4 rsPackColorTo8888 (float3 color)
    +
    +
    +

    Pack floating point (0-1) RGB values into a uchar4. The alpha component is set to 255 (1.0).

    +
    Parameters:
    + + +
    color
    +
    +
    +
    Returns:
    uchar4
    +

    Pack floating point (0-1) RGBA values into a uchar4.

    +
    Parameters:
    + + +
    color
    +
    +
    +
    Returns:
    uchar4
    + +
    +
    + +
    +
    + + + + + + + + +
    int rsRand (int max_value)
    +
    +
    +

    Return a random value between 0 (or min_value) and max_malue.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int rsRand (int min_value,
    int max_value 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    float rsRand (float max_value)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    float rsRand (float min_value,
    float max_value 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    _RS_RUNTIME float4 rsUnpackColor8888 (uchar4 c)
    +
    +
    +

    Unpack a uchar4 color to float4. The resulting float range will be (0-1).

    +
    Parameters:
    + + +
    c
    +
    +
    +
    Returns:
    float4
    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__math_8rsh_source.html b/docs/html/reference/renderscript/rs__math_8rsh_source.html new file mode 100644 index 0000000..c056994 --- /dev/null +++ b/docs/html/reference/renderscript/rs__math_8rsh_source.html @@ -0,0 +1,174 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_math.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_math.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_MATH_RSH__
    +00025 #define __RS_MATH_RSH__
    +00026 
    +00027 
    +00031 extern int __attribute__((overloadable))
    +00032     rsRand(int max_value);
    +00036 extern int __attribute__((overloadable))
    +00037     rsRand(int min_value, int max_value);
    +00041 extern float __attribute__((overloadable))
    +00042     rsRand(float max_value);
    +00046 extern float __attribute__((overloadable))
    +00047     rsRand(float min_value, float max_value);
    +00048 
    +00052 extern float __attribute__((overloadable))
    +00053     rsFrac(float);
    +00054 
    +00055 
    +00057 // int ops
    +00059 
    +00067 _RS_RUNTIME uint __attribute__((overloadable, always_inline)) rsClamp(uint amount, uint low, uint high);
    +00068 
    +00072 _RS_RUNTIME int __attribute__((overloadable, always_inline)) rsClamp(int amount, int low, int high);
    +00076 _RS_RUNTIME ushort __attribute__((overloadable, always_inline)) rsClamp(ushort amount, ushort low, ushort high);
    +00080 _RS_RUNTIME short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high);
    +00084 _RS_RUNTIME uchar __attribute__((overloadable, always_inline)) rsClamp(uchar amount, uchar low, uchar high);
    +00088 _RS_RUNTIME char __attribute__((overloadable, always_inline)) rsClamp(char amount, char low, char high);
    +00089 
    +00090 
    +00101 __inline__ static void __attribute__((overloadable, always_inline))
    +00102 rsExtractFrustumPlanes(const rs_matrix4x4 *viewProj,
    +00103                          float4 *left, float4 *right,
    +00104                          float4 *top, float4 *bottom,
    +00105                          float4 *near, float4 *far) {
    +00106     // x y z w = a b c d in the plane equation
    +00107     left->x = viewProj->m[3] + viewProj->m[0];
    +00108     left->y = viewProj->m[7] + viewProj->m[4];
    +00109     left->z = viewProj->m[11] + viewProj->m[8];
    +00110     left->w = viewProj->m[15] + viewProj->m[12];
    +00111 
    +00112     right->x = viewProj->m[3] - viewProj->m[0];
    +00113     right->y = viewProj->m[7] - viewProj->m[4];
    +00114     right->z = viewProj->m[11] - viewProj->m[8];
    +00115     right->w = viewProj->m[15] - viewProj->m[12];
    +00116 
    +00117     top->x = viewProj->m[3] - viewProj->m[1];
    +00118     top->y = viewProj->m[7] - viewProj->m[5];
    +00119     top->z = viewProj->m[11] - viewProj->m[9];
    +00120     top->w = viewProj->m[15] - viewProj->m[13];
    +00121 
    +00122     bottom->x = viewProj->m[3] + viewProj->m[1];
    +00123     bottom->y = viewProj->m[7] + viewProj->m[5];
    +00124     bottom->z = viewProj->m[11] + viewProj->m[9];
    +00125     bottom->w = viewProj->m[15] + viewProj->m[13];
    +00126 
    +00127     near->x = viewProj->m[3] + viewProj->m[2];
    +00128     near->y = viewProj->m[7] + viewProj->m[6];
    +00129     near->z = viewProj->m[11] + viewProj->m[10];
    +00130     near->w = viewProj->m[15] + viewProj->m[14];
    +00131 
    +00132     far->x = viewProj->m[3] - viewProj->m[2];
    +00133     far->y = viewProj->m[7] - viewProj->m[6];
    +00134     far->z = viewProj->m[11] - viewProj->m[10];
    +00135     far->w = viewProj->m[15] - viewProj->m[14];
    +00136 
    +00137     float len = length(left->xyz);
    +00138     *left /= len;
    +00139     len = length(right->xyz);
    +00140     *right /= len;
    +00141     len = length(top->xyz);
    +00142     *top /= len;
    +00143     len = length(bottom->xyz);
    +00144     *bottom /= len;
    +00145     len = length(near->xyz);
    +00146     *near /= len;
    +00147     len = length(far->xyz);
    +00148     *far /= len;
    +00149 }
    +00150 
    +00161 __inline__ static bool __attribute__((overloadable, always_inline))
    +00162 rsIsSphereInFrustum(float4 *sphere,
    +00163                       float4 *left, float4 *right,
    +00164                       float4 *top, float4 *bottom,
    +00165                       float4 *near, float4 *far) {
    +00166 
    +00167     float distToCenter = dot(left->xyz, sphere->xyz) + left->w;
    +00168     if (distToCenter < -sphere->w) {
    +00169         return false;
    +00170     }
    +00171     distToCenter = dot(right->xyz, sphere->xyz) + right->w;
    +00172     if (distToCenter < -sphere->w) {
    +00173         return false;
    +00174     }
    +00175     distToCenter = dot(top->xyz, sphere->xyz) + top->w;
    +00176     if (distToCenter < -sphere->w) {
    +00177         return false;
    +00178     }
    +00179     distToCenter = dot(bottom->xyz, sphere->xyz) + bottom->w;
    +00180     if (distToCenter < -sphere->w) {
    +00181         return false;
    +00182     }
    +00183     distToCenter = dot(near->xyz, sphere->xyz) + near->w;
    +00184     if (distToCenter < -sphere->w) {
    +00185         return false;
    +00186     }
    +00187     distToCenter = dot(far->xyz, sphere->xyz) + far->w;
    +00188     if (distToCenter < -sphere->w) {
    +00189         return false;
    +00190     }
    +00191     return true;
    +00192 }
    +00193 
    +00194 
    +00205 _RS_RUNTIME uchar4 __attribute__((overloadable)) rsPackColorTo8888(float r, float g, float b);
    +00206 
    +00217 _RS_RUNTIME uchar4 __attribute__((overloadable)) rsPackColorTo8888(float r, float g, float b, float a);
    +00218 
    +00227 _RS_RUNTIME uchar4 __attribute__((overloadable)) rsPackColorTo8888(float3 color);
    +00228 
    +00236 _RS_RUNTIME uchar4 __attribute__((overloadable)) rsPackColorTo8888(float4 color);
    +00237 
    +00245 _RS_RUNTIME float4 rsUnpackColor8888(uchar4 c);
    +00246 
    +00247 
    +00248 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__matrix_8rsh.html b/docs/html/reference/renderscript/rs__matrix_8rsh.html new file mode 100644 index 0000000..b956301 --- /dev/null +++ b/docs/html/reference/renderscript/rs__matrix_8rsh.html @@ -0,0 +1,1520 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_matrix.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_matrix.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    _RS_RUNTIME void rsMatrixSet (rs_matrix4x4 *m, uint32_t row, uint32_t col, float v)
    _RS_RUNTIME void rsMatrixSet (rs_matrix3x3 *m, uint32_t row, uint32_t col, float v)
    _RS_RUNTIME void rsMatrixSet (rs_matrix2x2 *m, uint32_t row, uint32_t col, float v)
    _RS_RUNTIME float rsMatrixGet (const rs_matrix4x4 *m, uint32_t row, uint32_t col)
    _RS_RUNTIME float rsMatrixGet (const rs_matrix3x3 *m, uint32_t row, uint32_t col)
    _RS_RUNTIME float rsMatrixGet (const rs_matrix2x2 *m, uint32_t row, uint32_t col)
    void rsMatrixLoadIdentity (rs_matrix4x4 *m)
    void rsMatrixLoadIdentity (rs_matrix3x3 *m)
    void rsMatrixLoadIdentity (rs_matrix2x2 *m)
    void rsMatrixLoad (rs_matrix4x4 *m, const float *v)
    void rsMatrixLoad (rs_matrix3x3 *m, const float *v)
    void rsMatrixLoad (rs_matrix2x2 *m, const float *v)
    void rsMatrixLoad (rs_matrix4x4 *m, const rs_matrix4x4 *v)
    void rsMatrixLoad (rs_matrix4x4 *m, const rs_matrix3x3 *v)
    void rsMatrixLoad (rs_matrix4x4 *m, const rs_matrix2x2 *v)
    void rsMatrixLoad (rs_matrix3x3 *m, const rs_matrix3x3 *v)
    void rsMatrixLoad (rs_matrix2x2 *m, const rs_matrix2x2 *v)
    void rsMatrixLoadRotate (rs_matrix4x4 *m, float rot, float x, float y, float z)
    void rsMatrixLoadScale (rs_matrix4x4 *m, float x, float y, float z)
    void rsMatrixLoadTranslate (rs_matrix4x4 *m, float x, float y, float z)
    void rsMatrixLoadMultiply (rs_matrix4x4 *m, const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs)
    void rsMatrixLoadMultiply (rs_matrix3x3 *m, const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs)
    void rsMatrixLoadMultiply (rs_matrix2x2 *m, const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs)
    void rsMatrixMultiply (rs_matrix4x4 *m, const rs_matrix4x4 *rhs)
    void rsMatrixMultiply (rs_matrix3x3 *m, const rs_matrix3x3 *rhs)
    void rsMatrixMultiply (rs_matrix2x2 *m, const rs_matrix2x2 *rhs)
    void rsMatrixRotate (rs_matrix4x4 *m, float rot, float x, float y, float z)
    void rsMatrixScale (rs_matrix4x4 *m, float x, float y, float z)
    void rsMatrixTranslate (rs_matrix4x4 *m, float x, float y, float z)
    void rsMatrixLoadOrtho (rs_matrix4x4 *m, float left, float right, float bottom, float top, float near, float far)
    void rsMatrixLoadFrustum (rs_matrix4x4 *m, float left, float right, float bottom, float top, float near, float far)
    void rsMatrixLoadPerspective (rs_matrix4x4 *m, float fovy, float aspect, float near, float far)
    _RS_RUNTIME float4 rsMatrixMultiply (rs_matrix4x4 *m, float4 in)
    _RS_RUNTIME float3 rsMatrixMultiply (rs_matrix3x3 *m, float3 in)
    _RS_RUNTIME float2 rsMatrixMultiply (rs_matrix2x2 *m, float2 in)
    bool rsMatrixInverse (rs_matrix4x4 *m)
    bool rsMatrixInverseTranspose (rs_matrix4x4 *m)
    void rsMatrixTranspose (rs_matrix4x4 *m)
    void rsMatrixTranspose (rs_matrix3x3 *m)
    void rsMatrixTranspose (rs_matrix2x2 *m)
    +

    Detailed Description

    +

    Matrix routines.

    + +

    Definition in file rs_matrix.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float rsMatrixGet (const rs_matrix4x4m,
    uint32_t row,
    uint32_t col 
    )
    +
    +
    +

    Get one element of a matrix.

    +
    Parameters:
    + + + + +
    mThe matrix to read from
    row
    col
    +
    +
    +
    Returns:
    float
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float rsMatrixGet (const rs_matrix3x3m,
    uint32_t row,
    uint32_t col 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float rsMatrixGet (const rs_matrix2x2m,
    uint32_t row,
    uint32_t col 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsMatrixInverse (rs_matrix4x4m)
    +
    +
    +

    Returns true if the matrix was successfully inversed

    +
    Parameters:
    + + +
    m
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsMatrixInverseTranspose (rs_matrix4x4m)
    +
    +
    +

    Returns true if the matrix was successfully inversed and transposed.

    +
    Parameters:
    + + +
    m
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix4x4m,
    const float * v 
    )
    +
    +
    +

    Set the elements of a matrix from an array of floats.

    +
    Parameters:
    + + +
    m
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix3x3m,
    const float * v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix2x2m,
    const float * v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix4x4m,
    const rs_matrix4x4v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix4x4m,
    const rs_matrix3x3v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix4x4m,
    const rs_matrix2x2v 
    )
    +
    +
    +

    Set the elements of a matrix from another matrix.

    +
    Parameters:
    + + +
    m
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix3x3m,
    const rs_matrix3x3v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoad (rs_matrix2x2m,
    const rs_matrix2x2v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadFrustum (rs_matrix4x4m,
    float left,
    float right,
    float bottom,
    float top,
    float near,
    float far 
    )
    +
    +
    +

    Load an Frustum projection matrix constructed from the 6 planes

    +
    Parameters:
    + + + + + + + + +
    m
    left
    right
    bottom
    top
    near
    far
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsMatrixLoadIdentity (rs_matrix4x4m)
    +
    +
    +

    Set the elements of a matrix to the identity matrix.

    +
    Parameters:
    + + +
    m
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsMatrixLoadIdentity (rs_matrix3x3m)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsMatrixLoadIdentity (rs_matrix2x2m)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadMultiply (rs_matrix4x4m,
    const rs_matrix4x4lhs,
    const rs_matrix4x4rhs 
    )
    +
    +
    +

    Multiply two matrix (lhs, rhs) and place the result in m.

    +
    Parameters:
    + + + + +
    m
    lhs
    rhs
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadMultiply (rs_matrix3x3m,
    const rs_matrix3x3lhs,
    const rs_matrix3x3rhs 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadMultiply (rs_matrix2x2m,
    const rs_matrix2x2lhs,
    const rs_matrix2x2rhs 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadOrtho (rs_matrix4x4m,
    float left,
    float right,
    float bottom,
    float top,
    float near,
    float far 
    )
    +
    +
    +

    Load an Ortho projection matrix constructed from the 6 planes

    +
    Parameters:
    + + + + + + + + +
    m
    left
    right
    bottom
    top
    near
    far
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadPerspective (rs_matrix4x4m,
    float fovy,
    float aspect,
    float near,
    float far 
    )
    +
    +
    +

    Load an perspective projection matrix constructed from the 6 planes

    +
    Parameters:
    + + + + + + +
    m
    fovyField of view, in degrees along the Y axis.
    aspectRatio of x / y.
    near
    far
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadRotate (rs_matrix4x4m,
    float rot,
    float x,
    float y,
    float z 
    )
    +
    +
    +

    Load a rotation matrix.

    +
    Parameters:
    + + + + + + +
    m
    rot
    x
    y
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadScale (rs_matrix4x4m,
    float x,
    float y,
    float z 
    )
    +
    +
    +

    Load a scale matrix.

    +
    Parameters:
    + + + + + +
    m
    x
    y
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixLoadTranslate (rs_matrix4x4m,
    float x,
    float y,
    float z 
    )
    +
    +
    +

    Load a translation matrix.

    +
    Parameters:
    + + + + + +
    m
    x
    y
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixMultiply (rs_matrix4x4m,
    const rs_matrix4x4rhs 
    )
    +
    +
    +

    Multiply the matrix m by rhs and place the result back into m.

    +
    Parameters:
    + + + +
    m(lhs)
    rhs
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixMultiply (rs_matrix3x3m,
    const rs_matrix3x3rhs 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsMatrixMultiply (rs_matrix2x2m,
    const rs_matrix2x2rhs 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float4 rsMatrixMultiply (rs_matrix4x4m,
    float4 in 
    )
    +
    +
    +

    Multiply a vector by a matrix and return the result vector. API version 10-13

    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float3 rsMatrixMultiply (rs_matrix3x3m,
    float3 in 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME float2 rsMatrixMultiply (rs_matrix2x2m,
    float2 in 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixRotate (rs_matrix4x4m,
    float rot,
    float x,
    float y,
    float z 
    )
    +
    +
    +

    Multiple matrix m with a rotation matrix

    +
    Parameters:
    + + + + + + +
    m
    rot
    x
    y
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixScale (rs_matrix4x4m,
    float x,
    float y,
    float z 
    )
    +
    +
    +

    Multiple matrix m with a scale matrix

    +
    Parameters:
    + + + + + +
    m
    x
    y
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME void rsMatrixSet (rs_matrix4x4m,
    uint32_t row,
    uint32_t col,
    float v 
    )
    +
    +
    +

    Set one element of a matrix.

    +
    Parameters:
    + + + + + +
    mThe matrix to be set
    row
    col
    v
    +
    +
    +
    Returns:
    void
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME void rsMatrixSet (rs_matrix3x3m,
    uint32_t row,
    uint32_t col,
    float v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    _RS_RUNTIME void rsMatrixSet (rs_matrix2x2m,
    uint32_t row,
    uint32_t col,
    float v 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    void rsMatrixTranslate (rs_matrix4x4m,
    float x,
    float y,
    float z 
    )
    +
    +
    +

    Multiple matrix m with a translation matrix

    +
    Parameters:
    + + + + + +
    m
    x
    y
    z
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsMatrixTranspose (rs_matrix4x4m)
    +
    +
    +

    Transpose the matrix m.

    +
    Parameters:
    + + +
    m
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsMatrixTranspose (rs_matrix3x3m)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsMatrixTranspose (rs_matrix2x2m)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__matrix_8rsh_source.html b/docs/html/reference/renderscript/rs__matrix_8rsh_source.html new file mode 100644 index 0000000..531a3e3 --- /dev/null +++ b/docs/html/reference/renderscript/rs__matrix_8rsh_source.html @@ -0,0 +1,173 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_matrix.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_matrix.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 
    +00023 #ifndef __RS_MATRIX_RSH__
    +00024 #define __RS_MATRIX_RSH__
    +00025 
    +00036 _RS_RUNTIME void __attribute__((overloadable))
    +00037 rsMatrixSet(rs_matrix4x4 *m, uint32_t row, uint32_t col, float v);
    +00041 _RS_RUNTIME void __attribute__((overloadable))
    +00042 rsMatrixSet(rs_matrix3x3 *m, uint32_t row, uint32_t col, float v);
    +00046 _RS_RUNTIME void __attribute__((overloadable))
    +00047 rsMatrixSet(rs_matrix2x2 *m, uint32_t row, uint32_t col, float v);
    +00048 
    +00058 _RS_RUNTIME float __attribute__((overloadable))
    +00059 rsMatrixGet(const rs_matrix4x4 *m, uint32_t row, uint32_t col);
    +00063 _RS_RUNTIME float __attribute__((overloadable))
    +00064 rsMatrixGet(const rs_matrix3x3 *m, uint32_t row, uint32_t col);
    +00068 _RS_RUNTIME float __attribute__((overloadable))
    +00069 rsMatrixGet(const rs_matrix2x2 *m, uint32_t row, uint32_t col);
    +00070 
    +00076 extern void __attribute__((overloadable)) rsMatrixLoadIdentity(rs_matrix4x4 *m);
    +00080 extern void __attribute__((overloadable)) rsMatrixLoadIdentity(rs_matrix3x3 *m);
    +00084 extern void __attribute__((overloadable)) rsMatrixLoadIdentity(rs_matrix2x2 *m);
    +00085 
    +00091 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix4x4 *m, const float *v);
    +00095 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix3x3 *m, const float *v);
    +00099 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix2x2 *m, const float *v);
    +00103 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix4x4 *m, const rs_matrix4x4 *v);
    +00107 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix4x4 *m, const rs_matrix3x3 *v);
    +00108 
    +00114 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix4x4 *m, const rs_matrix2x2 *v);
    +00118 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix3x3 *m, const rs_matrix3x3 *v);
    +00122 extern void __attribute__((overloadable)) rsMatrixLoad(rs_matrix2x2 *m, const rs_matrix2x2 *v);
    +00123 
    +00133 extern void __attribute__((overloadable))
    +00134 rsMatrixLoadRotate(rs_matrix4x4 *m, float rot, float x, float y, float z);
    +00135 
    +00144 extern void __attribute__((overloadable))
    +00145 rsMatrixLoadScale(rs_matrix4x4 *m, float x, float y, float z);
    +00146 
    +00155 extern void __attribute__((overloadable))
    +00156 rsMatrixLoadTranslate(rs_matrix4x4 *m, float x, float y, float z);
    +00157 
    +00165 extern void __attribute__((overloadable))
    +00166 rsMatrixLoadMultiply(rs_matrix4x4 *m, const rs_matrix4x4 *lhs, const rs_matrix4x4 *rhs);
    +00170 extern void __attribute__((overloadable))
    +00171 rsMatrixLoadMultiply(rs_matrix3x3 *m, const rs_matrix3x3 *lhs, const rs_matrix3x3 *rhs);
    +00175 extern void __attribute__((overloadable))
    +00176 rsMatrixLoadMultiply(rs_matrix2x2 *m, const rs_matrix2x2 *lhs, const rs_matrix2x2 *rhs);
    +00177 
    +00184 extern void __attribute__((overloadable))
    +00185 rsMatrixMultiply(rs_matrix4x4 *m, const rs_matrix4x4 *rhs);
    +00189 extern void __attribute__((overloadable))
    +00190 rsMatrixMultiply(rs_matrix3x3 *m, const rs_matrix3x3 *rhs);
    +00194 extern void __attribute__((overloadable))
    +00195 rsMatrixMultiply(rs_matrix2x2 *m, const rs_matrix2x2 *rhs);
    +00196 
    +00206 extern void __attribute__((overloadable))
    +00207 rsMatrixRotate(rs_matrix4x4 *m, float rot, float x, float y, float z);
    +00208 
    +00217 extern void __attribute__((overloadable))
    +00218 rsMatrixScale(rs_matrix4x4 *m, float x, float y, float z);
    +00219 
    +00228 extern void __attribute__((overloadable))
    +00229 rsMatrixTranslate(rs_matrix4x4 *m, float x, float y, float z);
    +00230 
    +00242 extern void __attribute__((overloadable))
    +00243 rsMatrixLoadOrtho(rs_matrix4x4 *m, float left, float right, float bottom, float top, float near, float far);
    +00244 
    +00256 extern void __attribute__((overloadable))
    +00257 rsMatrixLoadFrustum(rs_matrix4x4 *m, float left, float right, float bottom, float top, float near, float far);
    +00258 
    +00268 extern void __attribute__((overloadable))
    +00269 rsMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
    +00270 
    +00271 #if !defined(RS_VERSION) || (RS_VERSION < 14)
    +00272 
    +00276 _RS_RUNTIME float4 __attribute__((overloadable))
    +00277 rsMatrixMultiply(rs_matrix4x4 *m, float4 in);
    +00278 
    +00282 _RS_RUNTIME float4 __attribute__((overloadable))
    +00283 rsMatrixMultiply(rs_matrix4x4 *m, float3 in);
    +00284 
    +00288 _RS_RUNTIME float4 __attribute__((overloadable))
    +00289 rsMatrixMultiply(rs_matrix4x4 *m, float2 in);
    +00290 
    +00294 _RS_RUNTIME float3 __attribute__((overloadable))
    +00295 rsMatrixMultiply(rs_matrix3x3 *m, float3 in);
    +00296 
    +00300 _RS_RUNTIME float3 __attribute__((overloadable))
    +00301 rsMatrixMultiply(rs_matrix3x3 *m, float2 in);
    +00302 
    +00306 _RS_RUNTIME float2 __attribute__((overloadable))
    +00307 rsMatrixMultiply(rs_matrix2x2 *m, float2 in);
    +00308 #else
    +00309 
    +00313 _RS_RUNTIME float4 __attribute__((overloadable))
    +00314 rsMatrixMultiply(const rs_matrix4x4 *m, float4 in);
    +00315 
    +00319 _RS_RUNTIME float4 __attribute__((overloadable))
    +00320 rsMatrixMultiply(const rs_matrix4x4 *m, float3 in);
    +00321 
    +00325 _RS_RUNTIME float4 __attribute__((overloadable))
    +00326 rsMatrixMultiply(const rs_matrix4x4 *m, float2 in);
    +00327 
    +00331 _RS_RUNTIME float3 __attribute__((overloadable))
    +00332 rsMatrixMultiply(const rs_matrix3x3 *m, float3 in);
    +00333 
    +00337 _RS_RUNTIME float3 __attribute__((overloadable))
    +00338 rsMatrixMultiply(const rs_matrix3x3 *m, float2 in);
    +00339 
    +00343 _RS_RUNTIME float2 __attribute__((overloadable))
    +00344 rsMatrixMultiply(const rs_matrix2x2 *m, float2 in);
    +00345 #endif
    +00346 
    +00347 
    +00353 extern bool __attribute__((overloadable)) rsMatrixInverse(rs_matrix4x4 *m);
    +00354 
    +00360 extern bool __attribute__((overloadable)) rsMatrixInverseTranspose(rs_matrix4x4 *m);
    +00361 
    +00367 extern void __attribute__((overloadable)) rsMatrixTranspose(rs_matrix4x4 *m);
    +00371 extern void __attribute__((overloadable)) rsMatrixTranspose(rs_matrix3x3 *m);
    +00375 extern void __attribute__((overloadable)) rsMatrixTranspose(rs_matrix2x2 *m);
    +00376 
    +00377 
    +00378 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__object_8rsh.html b/docs/html/reference/renderscript/rs__object_8rsh.html new file mode 100644 index 0000000..464e7e5 --- /dev/null +++ b/docs/html/reference/renderscript/rs__object_8rsh.html @@ -0,0 +1,791 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_object.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_object.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Functions

    void rsSetObject (rs_element *dst, rs_element src)
    void rsSetObject (rs_type *dst, rs_type src)
    void rsSetObject (rs_allocation *dst, rs_allocation src)
    void rsSetObject (rs_sampler *dst, rs_sampler src)
    void rsSetObject (rs_script *dst, rs_script src)
    void rsSetObject (rs_mesh *dst, rs_mesh src)
    void rsSetObject (rs_program_fragment *dst, rs_program_fragment src)
    void rsSetObject (rs_program_vertex *dst, rs_program_vertex src)
    void rsSetObject (rs_program_raster *dst, rs_program_raster src)
    void rsSetObject (rs_program_store *dst, rs_program_store src)
    void rsSetObject (rs_font *dst, rs_font src)
    void rsClearObject (rs_element *dst)
    void rsClearObject (rs_type *dst)
    void rsClearObject (rs_allocation *dst)
    void rsClearObject (rs_sampler *dst)
    void rsClearObject (rs_script *dst)
    void rsClearObject (rs_mesh *dst)
    void rsClearObject (rs_program_fragment *dst)
    void rsClearObject (rs_program_vertex *dst)
    void rsClearObject (rs_program_raster *dst)
    void rsClearObject (rs_program_store *dst)
    void rsClearObject (rs_font *dst)
    bool rsIsObject (rs_element)
    bool rsIsObject (rs_type)
    bool rsIsObject (rs_allocation)
    bool rsIsObject (rs_sampler)
    bool rsIsObject (rs_script)
    bool rsIsObject (rs_mesh)
    bool rsIsObject (rs_program_fragment)
    bool rsIsObject (rs_program_vertex)
    bool rsIsObject (rs_program_raster)
    bool rsIsObject (rs_program_store)
    bool rsIsObject (rs_font)
    +

    Detailed Description

    +

    Object routines.

    + +

    Definition in file rs_object.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_elementdst)
    +
    +
    +

    Sets the object to NULL.

    +
    Returns:
    bool
    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_typedst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_allocationdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_samplerdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_scriptdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_meshdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_program_fragmentdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_program_vertexdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_program_rasterdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_program_storedst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    void rsClearObject (rs_fontdst)
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_element )
    +
    +
    +

    Tests if the object is valid. Returns true if the object is valid, false if it is NULL.

    +
    Returns:
    bool
    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_type )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_allocation )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_sampler )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_script )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_mesh )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_program_fragment )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_program_vertex )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_program_raster )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_program_store )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + +
    bool rsIsObject (rs_font )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_elementdst,
    rs_element src 
    )
    +
    +
    +

    Copy reference to the specified object.

    +
    Parameters:
    + + + +
    dst
    src
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_typedst,
    rs_type src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_allocationdst,
    rs_allocation src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_samplerdst,
    rs_sampler src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_scriptdst,
    rs_script src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_meshdst,
    rs_mesh src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_program_fragmentdst,
    rs_program_fragment src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_program_vertexdst,
    rs_program_vertex src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_program_rasterdst,
    rs_program_raster src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_program_storedst,
    rs_program_store src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    void rsSetObject (rs_fontdst,
    rs_font src 
    )
    +
    +
    +

    This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__object_8rsh_source.html b/docs/html/reference/renderscript/rs__object_8rsh_source.html new file mode 100644 index 0000000..0f9b488 --- /dev/null +++ b/docs/html/reference/renderscript/rs__object_8rsh_source.html @@ -0,0 +1,126 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_object.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_object.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 
    +00023 #ifndef __RS_OBJECT_RSH__
    +00024 #define __RS_OBJECT_RSH__
    +00025 
    +00026 
    +00033 extern void __attribute__((overloadable))
    +00034     rsSetObject(rs_element *dst, rs_element src);
    +00038 extern void __attribute__((overloadable))
    +00039     rsSetObject(rs_type *dst, rs_type src);
    +00043 extern void __attribute__((overloadable))
    +00044     rsSetObject(rs_allocation *dst, rs_allocation src);
    +00048 extern void __attribute__((overloadable))
    +00049     rsSetObject(rs_sampler *dst, rs_sampler src);
    +00053 extern void __attribute__((overloadable))
    +00054     rsSetObject(rs_script *dst, rs_script src);
    +00058 extern void __attribute__((overloadable))
    +00059     rsSetObject(rs_mesh *dst, rs_mesh src);
    +00063 extern void __attribute__((overloadable))
    +00064     rsSetObject(rs_program_fragment *dst, rs_program_fragment src);
    +00068 extern void __attribute__((overloadable))
    +00069     rsSetObject(rs_program_vertex *dst, rs_program_vertex src);
    +00073 extern void __attribute__((overloadable))
    +00074     rsSetObject(rs_program_raster *dst, rs_program_raster src);
    +00078 extern void __attribute__((overloadable))
    +00079     rsSetObject(rs_program_store *dst, rs_program_store src);
    +00083 extern void __attribute__((overloadable))
    +00084     rsSetObject(rs_font *dst, rs_font src);
    +00085 
    +00091 extern void __attribute__((overloadable))
    +00092     rsClearObject(rs_element *dst);
    +00096 extern void __attribute__((overloadable))
    +00097     rsClearObject(rs_type *dst);
    +00101 extern void __attribute__((overloadable))
    +00102     rsClearObject(rs_allocation *dst);
    +00106 extern void __attribute__((overloadable))
    +00107     rsClearObject(rs_sampler *dst);
    +00111 extern void __attribute__((overloadable))
    +00112     rsClearObject(rs_script *dst);
    +00116 extern void __attribute__((overloadable))
    +00117     rsClearObject(rs_mesh *dst);
    +00121 extern void __attribute__((overloadable))
    +00122     rsClearObject(rs_program_fragment *dst);
    +00126 extern void __attribute__((overloadable))
    +00127     rsClearObject(rs_program_vertex *dst);
    +00131 extern void __attribute__((overloadable))
    +00132     rsClearObject(rs_program_raster *dst);
    +00136 extern void __attribute__((overloadable))
    +00137     rsClearObject(rs_program_store *dst);
    +00141 extern void __attribute__((overloadable))
    +00142     rsClearObject(rs_font *dst);
    +00143 
    +00144 
    +00145 
    +00152 extern bool __attribute__((overloadable))
    +00153     rsIsObject(rs_element);
    +00157 extern bool __attribute__((overloadable))
    +00158     rsIsObject(rs_type);
    +00162 extern bool __attribute__((overloadable))
    +00163     rsIsObject(rs_allocation);
    +00167 extern bool __attribute__((overloadable))
    +00168     rsIsObject(rs_sampler);
    +00172 extern bool __attribute__((overloadable))
    +00173     rsIsObject(rs_script);
    +00177 extern bool __attribute__((overloadable))
    +00178     rsIsObject(rs_mesh);
    +00182 extern bool __attribute__((overloadable))
    +00183     rsIsObject(rs_program_fragment);
    +00187 extern bool __attribute__((overloadable))
    +00188     rsIsObject(rs_program_vertex);
    +00192 extern bool __attribute__((overloadable))
    +00193     rsIsObject(rs_program_raster);
    +00197 extern bool __attribute__((overloadable))
    +00198     rsIsObject(rs_program_store);
    +00202 extern bool __attribute__((overloadable))
    +00203     rsIsObject(rs_font);
    +00204 
    +00205 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__quaternion_8rsh.html b/docs/html/reference/renderscript/rs__quaternion_8rsh.html new file mode 100644 index 0000000..bd6979c --- /dev/null +++ b/docs/html/reference/renderscript/rs__quaternion_8rsh.html @@ -0,0 +1,556 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_quaternion.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_quaternion.rsh File Reference
    +
    +
    + + + + + + + + + + + + + + +

    +Functions

    static void rsQuaternionSet (rs_quaternion *q, float w, float x, float y, float z)
    static void rsQuaternionSet (rs_quaternion *q, const rs_quaternion *rhs)
    static void rsQuaternionMultiply (rs_quaternion *q, float s)
    static void rsQuaternionAdd (rs_quaternion *q, const rs_quaternion *rhs)
    static void rsQuaternionLoadRotateUnit (rs_quaternion *q, float rot, float x, float y, float z)
    static void rsQuaternionLoadRotate (rs_quaternion *q, float rot, float x, float y, float z)
    static void rsQuaternionConjugate (rs_quaternion *q)
    static float rsQuaternionDot (const rs_quaternion *q0, const rs_quaternion *q1)
    static void rsQuaternionNormalize (rs_quaternion *q)
    static void rsQuaternionMultiply (rs_quaternion *q, const rs_quaternion *rhs)
    static void rsQuaternionSlerp (rs_quaternion *q, const rs_quaternion *q0, const rs_quaternion *q1, float t)
    static void rsQuaternionGetMatrixUnit (rs_matrix4x4 *m, const rs_quaternion *q)
    +

    Detailed Description

    +

    Quaternion routines.

    + +

    Definition in file rs_quaternion.rsh.

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionAdd (rs_quaternionq,
    const rs_quaternionrhs 
    ) [static]
    +
    +
    +

    Add two quaternions

    +
    Parameters:
    + + + +
    qdestination quaternion to add to
    rshright hand side quaternion to add
    +
    +
    + +

    Definition at line 74 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + +
    static void rsQuaternionConjugate (rs_quaternionq) [static]
    +
    +
    +

    Conjugates the quaternion

    +
    Parameters:
    + + +
    qquaternion to conjugate
    +
    +
    + +

    Definition at line 127 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    static float rsQuaternionDot (const rs_quaternionq0,
    const rs_quaternionq1 
    ) [static]
    +
    +
    +

    Dot product of two quaternions

    +
    Parameters:
    + + + +
    q0first quaternion
    q1second quaternion
    +
    +
    +
    Returns:
    dot product between q0 and q1
    + +

    Definition at line 140 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionGetMatrixUnit (rs_matrix4x4m,
    const rs_quaternionq 
    ) [static]
    +
    +
    +

    Computes rotation matrix from the normalized quaternion

    +
    Parameters:
    + + + +
    mresulting matrix
    pnormalized quaternion
    +
    +
    + +

    Definition at line 228 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionLoadRotate (rs_quaternionq,
    float rot,
    float x,
    float y,
    float z 
    ) [static]
    +
    +
    +

    Loads a quaternion that represents a rotation about an arbitrary vector (doesn't have to be unit)

    +
    Parameters:
    + + + + + + +
    qquaternion to set
    rotangle to rotate by
    xcomponent of a vector
    ycomponent of a vector
    xcomponent of a vector
    +
    +
    + +

    Definition at line 111 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionLoadRotateUnit (rs_quaternionq,
    float rot,
    float x,
    float y,
    float z 
    ) [static]
    +
    +
    +

    Loads a quaternion that represents a rotation about an arbitrary unit vector

    +
    Parameters:
    + + + + + + +
    qquaternion to set
    rotangle to rotate by
    xcomponent of a vector
    ycomponent of a vector
    xcomponent of a vector
    +
    +
    + +

    Definition at line 90 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionMultiply (rs_quaternionq,
    float s 
    ) [static]
    +
    +
    +

    Multiply quaternion by a scalar

    +
    Parameters:
    + + + +
    qquaternion to multiply
    sscalar
    +
    +
    + +

    Definition at line 61 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionMultiply (rs_quaternionq,
    const rs_quaternionrhs 
    ) [static]
    +
    +
    +

    Multiply quaternion by another quaternion

    +
    Parameters:
    + + + +
    qdestination quaternion
    rhsright hand side quaternion to multiply by
    +
    +
    + +

    Definition at line 163 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + +
    static void rsQuaternionNormalize (rs_quaternionq) [static]
    +
    +
    +

    Normalizes the quaternion

    +
    Parameters:
    + + +
    qquaternion to normalize
    +
    +
    + +

    Definition at line 149 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionSet (rs_quaternionq,
    float w,
    float x,
    float y,
    float z 
    ) [static]
    +
    +
    +

    Set the quaternion components

    +
    Parameters:
    + + + + + +
    wcomponent
    xcomponent
    ycomponent
    zcomponent
    +
    +
    + +

    Definition at line 35 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionSet (rs_quaternionq,
    const rs_quaternionrhs 
    ) [static]
    +
    +
    +

    Set the quaternion from another quaternion

    +
    Parameters:
    + + + +
    qdestination quaternion
    rhssource quaternion
    +
    +
    + +

    Definition at line 48 of file rs_quaternion.rsh.

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    static void rsQuaternionSlerp (rs_quaternionq,
    const rs_quaternionq0,
    const rs_quaternionq1,
    float t 
    ) [static]
    +
    +
    +

    Performs spherical linear interpolation between two quaternions

    +
    Parameters:
    + + + + + +
    qresult quaternion from interpolation
    q0first param
    q1second param
    thow much to interpolate by
    +
    +
    + +

    Definition at line 182 of file rs_quaternion.rsh.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__quaternion_8rsh_source.html b/docs/html/reference/renderscript/rs__quaternion_8rsh_source.html new file mode 100644 index 0000000..c08565a --- /dev/null +++ b/docs/html/reference/renderscript/rs__quaternion_8rsh_source.html @@ -0,0 +1,211 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_quaternion.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_quaternion.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 
    +00023 #ifndef __RS_QUATERNION_RSH__
    +00024 #define __RS_QUATERNION_RSH__
    +00025 
    +00026 
    +00034 static void __attribute__((overloadable))
    +00035 rsQuaternionSet(rs_quaternion *q, float w, float x, float y, float z) {
    +00036     q->w = w;
    +00037     q->x = x;
    +00038     q->y = y;
    +00039     q->z = z;
    +00040 }
    +00041 
    +00047 static void __attribute__((overloadable))
    +00048 rsQuaternionSet(rs_quaternion *q, const rs_quaternion *rhs) {
    +00049     q->w = rhs->w;
    +00050     q->x = rhs->x;
    +00051     q->y = rhs->y;
    +00052     q->z = rhs->z;
    +00053 }
    +00054 
    +00060 static void __attribute__((overloadable))
    +00061 rsQuaternionMultiply(rs_quaternion *q, float s) {
    +00062     q->w *= s;
    +00063     q->x *= s;
    +00064     q->y *= s;
    +00065     q->z *= s;
    +00066 }
    +00067 
    +00073 static void
    +00074 rsQuaternionAdd(rs_quaternion *q, const rs_quaternion *rhs) {
    +00075     q->w *= rhs->w;
    +00076     q->x *= rhs->x;
    +00077     q->y *= rhs->y;
    +00078     q->z *= rhs->z;
    +00079 }
    +00080 
    +00089 static void
    +00090 rsQuaternionLoadRotateUnit(rs_quaternion *q, float rot, float x, float y, float z) {
    +00091     rot *= (float)(M_PI / 180.0f) * 0.5f;
    +00092     float c = cos(rot);
    +00093     float s = sin(rot);
    +00094 
    +00095     q->w = c;
    +00096     q->x = x * s;
    +00097     q->y = y * s;
    +00098     q->z = z * s;
    +00099 }
    +00100 
    +00110 static void
    +00111 rsQuaternionLoadRotate(rs_quaternion *q, float rot, float x, float y, float z) {
    +00112     const float len = x*x + y*y + z*z;
    +00113     if (len != 1) {
    +00114         const float recipLen = 1.f / sqrt(len);
    +00115         x *= recipLen;
    +00116         y *= recipLen;
    +00117         z *= recipLen;
    +00118     }
    +00119     rsQuaternionLoadRotateUnit(q, rot, x, y, z);
    +00120 }
    +00121 
    +00126 static void
    +00127 rsQuaternionConjugate(rs_quaternion *q) {
    +00128     q->x = -q->x;
    +00129     q->y = -q->y;
    +00130     q->z = -q->z;
    +00131 }
    +00132 
    +00139 static float
    +00140 rsQuaternionDot(const rs_quaternion *q0, const rs_quaternion *q1) {
    +00141     return q0->w*q1->w + q0->x*q1->x + q0->y*q1->y + q0->z*q1->z;
    +00142 }
    +00143 
    +00148 static void
    +00149 rsQuaternionNormalize(rs_quaternion *q) {
    +00150     const float len = rsQuaternionDot(q, q);
    +00151     if (len != 1) {
    +00152         const float recipLen = 1.f / sqrt(len);
    +00153         rsQuaternionMultiply(q, recipLen);
    +00154     }
    +00155 }
    +00156 
    +00162 static void __attribute__((overloadable))
    +00163 rsQuaternionMultiply(rs_quaternion *q, const rs_quaternion *rhs) {
    +00164     rs_quaternion qtmp;
    +00165     rsQuaternionSet(&qtmp, q);
    +00166 
    +00167     q->w = qtmp.w*rhs->w - qtmp.x*rhs->x - qtmp.y*rhs->y - qtmp.z*rhs->z;
    +00168     q->x = qtmp.w*rhs->x + qtmp.x*rhs->w + qtmp.y*rhs->z - qtmp.z*rhs->y;
    +00169     q->y = qtmp.w*rhs->y + qtmp.y*rhs->w + qtmp.z*rhs->x - qtmp.x*rhs->z;
    +00170     q->z = qtmp.w*rhs->z + qtmp.z*rhs->w + qtmp.x*rhs->y - qtmp.y*rhs->x;
    +00171     rsQuaternionNormalize(q);
    +00172 }
    +00173 
    +00181 static void
    +00182 rsQuaternionSlerp(rs_quaternion *q, const rs_quaternion *q0, const rs_quaternion *q1, float t) {
    +00183     if (t <= 0.0f) {
    +00184         rsQuaternionSet(q, q0);
    +00185         return;
    +00186     }
    +00187     if (t >= 1.0f) {
    +00188         rsQuaternionSet(q, q1);
    +00189         return;
    +00190     }
    +00191 
    +00192     rs_quaternion tempq0, tempq1;
    +00193     rsQuaternionSet(&tempq0, q0);
    +00194     rsQuaternionSet(&tempq1, q1);
    +00195 
    +00196     float angle = rsQuaternionDot(q0, q1);
    +00197     if (angle < 0) {
    +00198         rsQuaternionMultiply(&tempq0, -1.0f);
    +00199         angle *= -1.0f;
    +00200     }
    +00201 
    +00202     float scale, invScale;
    +00203     if (angle + 1.0f > 0.05f) {
    +00204         if (1.0f - angle >= 0.05f) {
    +00205             float theta = acos(angle);
    +00206             float invSinTheta = 1.0f / sin(theta);
    +00207             scale = sin(theta * (1.0f - t)) * invSinTheta;
    +00208             invScale = sin(theta * t) * invSinTheta;
    +00209         } else {
    +00210             scale = 1.0f - t;
    +00211             invScale = t;
    +00212         }
    +00213     } else {
    +00214         rsQuaternionSet(&tempq1, tempq0.z, -tempq0.y, tempq0.x, -tempq0.w);
    +00215         scale = sin(M_PI * (0.5f - t));
    +00216         invScale = sin(M_PI * t);
    +00217     }
    +00218 
    +00219     rsQuaternionSet(q, tempq0.w*scale + tempq1.w*invScale, tempq0.x*scale + tempq1.x*invScale,
    +00220                         tempq0.y*scale + tempq1.y*invScale, tempq0.z*scale + tempq1.z*invScale);
    +00221 }
    +00222 
    +00228 static void rsQuaternionGetMatrixUnit(rs_matrix4x4 *m, const rs_quaternion *q) {
    +00229     float xx = q->x * q->x;
    +00230     float xy = q->x * q->y;
    +00231     float xz = q->x * q->z;
    +00232     float xw = q->x * q->w;
    +00233     float yy = q->y * q->y;
    +00234     float yz = q->y * q->z;
    +00235     float yw = q->y * q->w;
    +00236     float zz = q->z * q->z;
    +00237     float zw = q->z * q->w;
    +00238 
    +00239     m->m[0]  = 1.0f - 2.0f * ( yy + zz );
    +00240     m->m[4]  =        2.0f * ( xy - zw );
    +00241     m->m[8]  =        2.0f * ( xz + yw );
    +00242     m->m[1]  =        2.0f * ( xy + zw );
    +00243     m->m[5]  = 1.0f - 2.0f * ( xx + zz );
    +00244     m->m[9]  =        2.0f * ( yz - xw );
    +00245     m->m[2]  =        2.0f * ( xz - yw );
    +00246     m->m[6]  =        2.0f * ( yz + xw );
    +00247     m->m[10] = 1.0f - 2.0f * ( xx + yy );
    +00248     m->m[3]  = m->m[7] = m->m[11] = m->m[12] = m->m[13] = m->m[14] = 0.0f;
    +00249     m->m[15] = 1.0f;
    +00250 }
    +00251 
    +00252 #endif
    +00253 
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__time_8rsh.html b/docs/html/reference/renderscript/rs__time_8rsh.html new file mode 100644 index 0000000..34ac9cd --- /dev/null +++ b/docs/html/reference/renderscript/rs__time_8rsh.html @@ -0,0 +1,194 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_time.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_time.rsh File Reference
    +
    +
    + + + + + + + + + + + +

    +Data Structures

    struct  rs_tm

    +Typedefs

    typedef int rs_time_t

    +Functions

    rs_time_t rsTime (rs_time_t *timer)
    rs_tmrsLocaltime (rs_tm *local, const rs_time_t *timer)
    int64_t rsUptimeMillis (void)
    int64_t rsUptimeNanos (void)
    float rsGetDt (void)
    +

    Detailed Description

    +

    Renderscript time routines.

    +

    This file contains Renderscript functions relating to time and date manipulation.

    + +

    Definition in file rs_time.rsh.

    +

    Typedef Documentation

    + +
    +
    + + + + +
    typedef int rs_time_t
    +
    +
    +

    Calendar time interpreted as seconds elapsed since the Epoch (00:00:00 on January 1, 1970, Coordinated Universal Time (UTC)).

    + +

    Definition at line 31 of file rs_time.rsh.

    + +
    +
    +

    Function Documentation

    + +
    +
    + + + + + + + + +
    float rsGetDt (void )
    +
    +
    +

    Returns the time in seconds since this function was last called in this script.

    +
    Returns:
    Time in seconds.
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    rs_tm* rsLocaltime (rs_tmlocal,
    const rs_time_ttimer 
    )
    +
    +
    +

    Converts the time specified by timer into broken-down time and stores it in local. This function also returns a pointer to local. If local is NULL, this function does nothing and returns NULL.

    +
    Parameters:
    + + + +
    localBroken-down time.
    timerInput time as calendar time.
    +
    +
    +
    Returns:
    Pointer to broken-down time (same as input local).
    + +
    +
    + +
    +
    + + + + + + + + +
    rs_time_t rsTime (rs_time_ttimer)
    +
    +
    +

    Returns the number of seconds since the Epoch (00:00:00 UTC, January 1, 1970). If timer is non-NULL, the result is also stored in the memory pointed to by this variable. If an error occurs, a value of -1 is returned.

    +
    Parameters:
    + + +
    timerLocation to also store the returned calendar time.
    +
    +
    +
    Returns:
    Seconds since the Epoch.
    + +
    +
    + +
    +
    + + + + + + + + +
    int64_t rsUptimeMillis (void )
    +
    +
    +

    Returns the current system clock (uptime) in milliseconds.

    +
    Returns:
    Uptime in milliseconds.
    + +
    +
    + +
    +
    + + + + + + + + +
    int64_t rsUptimeNanos (void )
    +
    +
    +

    Returns the current system clock (uptime) in nanoseconds.

    +
    Returns:
    Uptime in nanoseconds.
    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__time_8rsh_source.html b/docs/html/reference/renderscript/rs__time_8rsh_source.html new file mode 100644 index 0000000..1c5c74b --- /dev/null +++ b/docs/html/reference/renderscript/rs__time_8rsh_source.html @@ -0,0 +1,83 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_time.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_time.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_TIME_RSH__
    +00025 #define __RS_TIME_RSH__
    +00026 
    +00031 typedef int rs_time_t;
    +00032 
    +00049 typedef struct {
    +00050     int tm_sec;     
    +00051     int tm_min;     
    +00052     int tm_hour;    
    +00053     int tm_mday;    
    +00054     int tm_mon;     
    +00055     int tm_year;    
    +00056     int tm_wday;    
    +00057     int tm_yday;    
    +00058     int tm_isdst;   
    +00059 } rs_tm;
    +00060 
    +00070 extern rs_time_t __attribute__((overloadable))
    +00071     rsTime(rs_time_t *timer);
    +00072 
    +00083 extern rs_tm * __attribute__((overloadable))
    +00084     rsLocaltime(rs_tm *local, const rs_time_t *timer);
    +00085 
    +00091 extern int64_t __attribute__((overloadable))
    +00092     rsUptimeMillis(void);
    +00093 
    +00099 extern int64_t __attribute__((overloadable))
    +00100     rsUptimeNanos(void);
    +00101 
    +00108 extern float __attribute__((overloadable))
    +00109     rsGetDt(void);
    +00110 
    +00111 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__types_8rsh.html b/docs/html/reference/renderscript/rs__types_8rsh.html new file mode 100644 index 0000000..bd601f2 --- /dev/null +++ b/docs/html/reference/renderscript/rs__types_8rsh.html @@ -0,0 +1,846 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_types.rsh File Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    /src/ics-mr1/frameworks/base/libs/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_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
    +

    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 273 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 278 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 283 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 193 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 198 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 203 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 176 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 181 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 187 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef short int16_t
    +
    +
    +

    16 bit integer type

    + +

    Definition at line 54 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 305 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 310 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef int int32_t
    +
    +
    +

    32 bit integer type

    + +

    Definition at line 58 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 315 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef long long int64_t
    +
    +
    +

    64 bit integer type

    + +

    Definition at line 62 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef char int8_t
    +
    +
    +

    8 bit integer type

    + +

    Definition at line 50 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 321 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 326 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 331 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef float4 rs_quaternion
    +
    +
    +

    quaternion type for use with the quaternion functions

    + +

    Definition at line 364 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 289 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 294 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 299 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef uint32_t size_t
    +
    +
    +

    Typedef for unsigned int

    + +

    Definition at line 98 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef int32_t ssize_t
    +
    +
    +

    Typedef for int (use for 32-bit integers)

    + +

    Definition at line 102 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef uint8_t uchar
    +
    +
    +

    8 bit unsigned integer type

    + +

    Definition at line 82 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 209 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 214 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 219 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef uint32_t uint
    +
    +
    +

    32 bit unsigned integer type

    + +

    Definition at line 90 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef unsigned short uint16_t
    +
    +
    +

    16 bit unsigned integer type

    + +

    Definition at line 70 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 241 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 246 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef unsigned int uint32_t
    +
    +
    +

    32 bit unsigned integer type

    + +

    Definition at line 74 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 251 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef unsigned long long uint64_t
    +
    +
    +

    64 bit unsigned integer type

    + +

    Definition at line 78 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef unsigned char uint8_t
    +
    +
    +

    8 bit unsigned integer type

    + +

    Definition at line 66 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef uint64_t ulong
    +
    +
    +

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

    + +

    Definition at line 94 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 257 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 262 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 267 of file rs_types.rsh.

    + +
    +
    + +
    +
    + + + + +
    typedef uint16_t ushort
    +
    +
    +

    16 bit unsigned integer type

    + +

    Definition at line 86 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 225 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 230 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 235 of file rs_types.rsh.

    + +
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/rs__types_8rsh_source.html b/docs/html/reference/renderscript/rs__types_8rsh_source.html new file mode 100644 index 0000000..96c55e1 --- /dev/null +++ b/docs/html/reference/renderscript/rs__types_8rsh_source.html @@ -0,0 +1,160 @@ + + + + + +/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_types.rsh Source File + + + + + + + +
    + + + + +
    +
    +
    /src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_types.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 
    +00041 #ifndef __RS_TYPES_RSH__
    +00042 #define __RS_TYPES_RSH__
    +00043 
    +00044 #define M_PI        3.14159265358979323846264338327950288f   /* pi */
    +00045 
    +00046 #include "stdbool.h"
    +00050 typedef char int8_t;
    +00054 typedef short int16_t;
    +00058 typedef int int32_t;
    +00062 typedef long long int64_t;
    +00066 typedef unsigned char uint8_t;
    +00070 typedef unsigned short uint16_t;
    +00074 typedef unsigned int uint32_t;
    +00078 typedef unsigned long long uint64_t;
    +00082 typedef uint8_t uchar;
    +00086 typedef uint16_t ushort;
    +00090 typedef uint32_t uint;
    +00094 typedef uint64_t ulong;
    +00098 typedef uint32_t size_t;
    +00102 typedef int32_t ssize_t;
    +00103 
    +00109 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_element;
    +00115 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_type;
    +00121 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_allocation;
    +00127 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_sampler;
    +00133 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_script;
    +00139 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_mesh;
    +00145 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_program_fragment;
    +00151 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_program_vertex;
    +00157 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_program_raster;
    +00163 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_program_store;
    +00169 typedef struct { const int* const p; } __attribute__((packed, aligned(4))) rs_font;
    +00170 
    +00176 typedef float float2 __attribute__((ext_vector_type(2)));
    +00181 typedef float float3 __attribute__((ext_vector_type(3)));
    +00187 typedef float float4 __attribute__((ext_vector_type(4)));
    +00188 
    +00193 typedef double double2 __attribute__((ext_vector_type(2)));
    +00198 typedef double double3 __attribute__((ext_vector_type(3)));
    +00203 typedef double double4 __attribute__((ext_vector_type(4)));
    +00204 
    +00209 typedef uchar uchar2 __attribute__((ext_vector_type(2)));
    +00214 typedef uchar uchar3 __attribute__((ext_vector_type(3)));
    +00219 typedef uchar uchar4 __attribute__((ext_vector_type(4)));
    +00220 
    +00225 typedef ushort ushort2 __attribute__((ext_vector_type(2)));
    +00230 typedef ushort ushort3 __attribute__((ext_vector_type(3)));
    +00235 typedef ushort ushort4 __attribute__((ext_vector_type(4)));
    +00236 
    +00241 typedef uint uint2 __attribute__((ext_vector_type(2)));
    +00246 typedef uint uint3 __attribute__((ext_vector_type(3)));
    +00251 typedef uint uint4 __attribute__((ext_vector_type(4)));
    +00252 
    +00257 typedef ulong ulong2 __attribute__((ext_vector_type(2)));
    +00262 typedef ulong ulong3 __attribute__((ext_vector_type(3)));
    +00267 typedef ulong ulong4 __attribute__((ext_vector_type(4)));
    +00268 
    +00273 typedef char char2 __attribute__((ext_vector_type(2)));
    +00278 typedef char char3 __attribute__((ext_vector_type(3)));
    +00283 typedef char char4 __attribute__((ext_vector_type(4)));
    +00284 
    +00289 typedef short short2 __attribute__((ext_vector_type(2)));
    +00294 typedef short short3 __attribute__((ext_vector_type(3)));
    +00299 typedef short short4 __attribute__((ext_vector_type(4)));
    +00300 
    +00305 typedef int int2 __attribute__((ext_vector_type(2)));
    +00310 typedef int int3 __attribute__((ext_vector_type(3)));
    +00315 typedef int int4 __attribute__((ext_vector_type(4)));
    +00316 
    +00321 typedef long long2 __attribute__((ext_vector_type(2)));
    +00326 typedef long long3 __attribute__((ext_vector_type(3)));
    +00331 typedef long long4 __attribute__((ext_vector_type(4)));
    +00332 
    +00339 typedef struct {
    +00340     float m[16];
    +00341 } rs_matrix4x4;
    +00348 typedef struct {
    +00349     float m[9];
    +00350 } rs_matrix3x3;
    +00357 typedef struct {
    +00358     float m[4];
    +00359 } rs_matrix2x2;
    +00360 
    +00364 typedef float4 rs_quaternion;
    +00365 
    +00366 #define RS_PACKED __attribute__((packed, aligned(4)))
    +00367 #define NULL ((const void *)0)
    +00368 
    +00369 #if (defined(RS_VERSION) && (RS_VERSION >= 14))
    +00370 
    +00374 typedef enum {
    +00375     RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X = 0,
    +00376     RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_X = 1,
    +00377     RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_Y = 2,
    +00378     RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_Y = 3,
    +00379     RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_Z = 4,
    +00380     RS_ALLOCATION_CUBEMAP_FACE_NEGATIVE_Z = 5
    +00381 } rs_allocation_cubemap_face;
    +00382 
    +00389 typedef enum {
    +00390     RS_ALLOCATION_USAGE_SCRIPT = 0x0001,
    +00391     RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE = 0x0002,
    +00392     RS_ALLOCATION_USAGE_GRAPHICS_VERTEX = 0x0004,
    +00393     RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS = 0x0008,
    +00394     RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET = 0x0010
    +00395 } rs_allocation_usage_type;
    +00396 
    +00397 #endif //defined(RS_VERSION) && (RS_VERSION >= 14)
    +00398 
    +00399 #endif
    +
    +
    + + + diff --git a/docs/html/reference/renderscript/structrs__allocation.html b/docs/html/reference/renderscript/structrs__allocation.html new file mode 100644 index 0000000..b166fdd --- /dev/null +++ b/docs/html/reference/renderscript/structrs__allocation.html @@ -0,0 +1,45 @@ + + + + + +rs_allocation Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_allocation Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript allocation. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript allocation.

    +

    See: android.renderscript.Allocation

    + +

    Definition at line 121 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__element.html b/docs/html/reference/renderscript/structrs__element.html new file mode 100644 index 0000000..79cd090 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__element.html @@ -0,0 +1,45 @@ + + + + + +rs_element Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_element Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript element. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript element.

    +

    See: android.renderscript.Element

    + +

    Definition at line 109 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__font.html b/docs/html/reference/renderscript/structrs__font.html new file mode 100644 index 0000000..83eb649 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__font.html @@ -0,0 +1,45 @@ + + + + + +rs_font Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_font Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript font object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript font object.

    +

    See: android.renderscript.Font

    + +

    Definition at line 169 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__matrix2x2.html b/docs/html/reference/renderscript/structrs__matrix2x2.html new file mode 100644 index 0000000..8789066 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__matrix2x2.html @@ -0,0 +1,45 @@ + + + + + +rs_matrix2x2 Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_matrix2x2 Struct Reference
    +
    +
    + +

    2x2 float matrix + More...

    +

    Detailed Description

    +

    2x2 float matrix

    +

    Native holder for RS matrix. Elements are stored in the array at the location [row*2 + col]

    + +

    Definition at line 357 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__matrix3x3.html b/docs/html/reference/renderscript/structrs__matrix3x3.html new file mode 100644 index 0000000..2b036df --- /dev/null +++ b/docs/html/reference/renderscript/structrs__matrix3x3.html @@ -0,0 +1,45 @@ + + + + + +rs_matrix3x3 Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_matrix3x3 Struct Reference
    +
    +
    + +

    3x3 float matrix + More...

    +

    Detailed Description

    +

    3x3 float matrix

    +

    Native holder for RS matrix. Elements are stored in the array at the location [row*3 + col]

    + +

    Definition at line 348 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__matrix4x4.html b/docs/html/reference/renderscript/structrs__matrix4x4.html new file mode 100644 index 0000000..c696108 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__matrix4x4.html @@ -0,0 +1,45 @@ + + + + + +rs_matrix4x4 Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_matrix4x4 Struct Reference
    +
    +
    + +

    4x4 float matrix + More...

    +

    Detailed Description

    +

    4x4 float matrix

    +

    Native holder for RS matrix. Elements are stored in the array at the location [row*4 + col]

    + +

    Definition at line 339 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__mesh.html b/docs/html/reference/renderscript/structrs__mesh.html new file mode 100644 index 0000000..6f58a54 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__mesh.html @@ -0,0 +1,45 @@ + + + + + +rs_mesh Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_mesh Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript mesh object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript mesh object.

    +

    See: android.renderscript.Mesh

    + +

    Definition at line 139 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__program__fragment.html b/docs/html/reference/renderscript/structrs__program__fragment.html new file mode 100644 index 0000000..ed8eae7 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__program__fragment.html @@ -0,0 +1,45 @@ + + + + + +rs_program_fragment Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_program_fragment Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript ProgramFragment object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript ProgramFragment object.

    +

    See: android.renderscript.ProgramFragment

    + +

    Definition at line 145 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__program__raster.html b/docs/html/reference/renderscript/structrs__program__raster.html new file mode 100644 index 0000000..a914854 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__program__raster.html @@ -0,0 +1,45 @@ + + + + + +rs_program_raster Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_program_raster Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript ProgramRaster object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript ProgramRaster object.

    +

    See: android.renderscript.ProgramRaster

    + +

    Definition at line 157 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__program__store.html b/docs/html/reference/renderscript/structrs__program__store.html new file mode 100644 index 0000000..6ecfece --- /dev/null +++ b/docs/html/reference/renderscript/structrs__program__store.html @@ -0,0 +1,45 @@ + + + + + +rs_program_store Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_program_store Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript ProgramStore object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript ProgramStore object.

    +

    See: android.renderscript.ProgramStore

    + +

    Definition at line 163 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__program__vertex.html b/docs/html/reference/renderscript/structrs__program__vertex.html new file mode 100644 index 0000000..2b145a3 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__program__vertex.html @@ -0,0 +1,45 @@ + + + + + +rs_program_vertex Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_program_vertex Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript ProgramVertex object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript ProgramVertex object.

    +

    See: android.renderscript.ProgramVertex

    + +

    Definition at line 151 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__sampler.html b/docs/html/reference/renderscript/structrs__sampler.html new file mode 100644 index 0000000..58ea0de --- /dev/null +++ b/docs/html/reference/renderscript/structrs__sampler.html @@ -0,0 +1,45 @@ + + + + + +rs_sampler Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_sampler Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript sampler object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript sampler object.

    +

    See: android.renderscript.Sampler

    + +

    Definition at line 127 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__script.html b/docs/html/reference/renderscript/structrs__script.html new file mode 100644 index 0000000..0946635 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__script.html @@ -0,0 +1,45 @@ + + + + + +rs_script Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_script Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript script object. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript script object.

    +

    See: android.renderscript.ScriptC

    + +

    Definition at line 133 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__script__call.html b/docs/html/reference/renderscript/structrs__script__call.html new file mode 100644 index 0000000..9ba0681 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__script__call.html @@ -0,0 +1,41 @@ + + + + + +rs_script_call Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_script_call Struct Reference
    +
    +
    +

    Detailed Description

    +

    Structure to provide extra information to a rsForEach call. Primarly used to restrict the call to a subset of cells in the allocation.

    + +

    Definition at line 88 of file rs_core.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__tm.html b/docs/html/reference/renderscript/structrs__tm.html new file mode 100644 index 0000000..80f8fe9 --- /dev/null +++ b/docs/html/reference/renderscript/structrs__tm.html @@ -0,0 +1,75 @@ + + + + + +rs_tm Struct Reference + + + + + + + +
    + + + + +
    +
    + +
    +
    rs_tm Struct Reference
    +
    +
    + + + + + + + + + + + + + + + + + + + + +

    +Data Fields

    +int tm_sec
     seconds
    +int tm_min
     minutes
    +int tm_hour
     hours
    +int tm_mday
     day of the month
    +int tm_mon
     month
    +int tm_year
     year
    +int tm_wday
     day of the week
    +int tm_yday
     day of the year
    +int tm_isdst
     daylight savings time
    +

    Detailed Description

    +

    Data structure for broken-down time components.

    +

    tm_sec - Seconds after the minute. This ranges from 0 to 59, but possibly up to 60 for leap seconds. tm_min - Minutes after the hour. This ranges from 0 to 59. tm_hour - Hours past midnight. This ranges from 0 to 23. tm_mday - Day of the month. This ranges from 1 to 31. tm_mon - Months since January. This ranges from 0 to 11. tm_year - Years since 1900. tm_wday - Days since Sunday. This ranges from 0 to 6. tm_yday - Days since January 1. This ranges from 0 to 365. tm_isdst - Flag to indicate whether daylight saving time is in effect. The value is positive if it is in effect, zero if it is not, and negative if the information is not available.

    + +

    Definition at line 49 of file rs_time.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/structrs__type.html b/docs/html/reference/renderscript/structrs__type.html new file mode 100644 index 0000000..f8eec3e --- /dev/null +++ b/docs/html/reference/renderscript/structrs__type.html @@ -0,0 +1,45 @@ + + + + + +rs_type Struct Reference + + + + + + + +
    + + + + +
    +
    +
    +
    rs_type Struct Reference
    +
    +
    + +

    Opaque handle to a Renderscript type. + More...

    +

    Detailed Description

    +

    Opaque handle to a Renderscript type.

    +

    See: android.renderscript.Type

    + +

    Definition at line 115 of file rs_types.rsh.

    +

    The documentation for this struct was generated from the following file: +
    + + + diff --git a/docs/html/reference/renderscript/tab_a.png b/docs/html/reference/renderscript/tab_a.png new file mode 100644 index 0000000..2d99ef2 Binary files /dev/null and b/docs/html/reference/renderscript/tab_a.png differ diff --git a/docs/html/reference/renderscript/tab_b.png b/docs/html/reference/renderscript/tab_b.png new file mode 100644 index 0000000..b2c3d2b Binary files /dev/null and b/docs/html/reference/renderscript/tab_b.png differ diff --git a/docs/html/reference/renderscript/tab_h.png b/docs/html/reference/renderscript/tab_h.png new file mode 100644 index 0000000..c11f48f Binary files /dev/null and b/docs/html/reference/renderscript/tab_h.png differ diff --git a/docs/html/reference/renderscript/tab_s.png b/docs/html/reference/renderscript/tab_s.png new file mode 100644 index 0000000..978943a Binary files /dev/null and b/docs/html/reference/renderscript/tab_s.png differ diff --git a/docs/html/reference/renderscript/tabs.css b/docs/html/reference/renderscript/tabs.css new file mode 100644 index 0000000..2192056 --- /dev/null +++ b/docs/html/reference/renderscript/tabs.css @@ -0,0 +1,59 @@ +.tabs, .tabs2, .tabs3 { + background-image: url('tab_b.png'); + width: 100%; + z-index: 101; + font-size: 13px; +} + +.tabs2 { + font-size: 10px; +} +.tabs3 { + font-size: 9px; +} + +.tablist { + margin: 0; + padding: 0; + display: table; +} + +.tablist li { + float: left; + display: table-cell; + background-image: url('tab_b.png'); + line-height: 36px; + list-style: none; +} + +.tablist a { + display: block; + padding: 0 20px; + font-weight: bold; + background-image:url('tab_s.png'); + background-repeat:no-repeat; + background-position:right; + color: #283A5D; + text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); + text-decoration: none; + outline: none; +} + +.tabs3 .tablist a { + padding: 0 10px; +} + +.tablist a:hover { + background-image: url('tab_h.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); + text-decoration: none; +} + +.tablist li.current a { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} -- cgit v1.1