rs.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. ContextDestroy {
  2. direct
  3. }
  4. ContextGetMessage {
  5. direct
  6. param void *data
  7. param size_t *receiveLen
  8. param uint32_t *usrID
  9. ret RsMessageToClientType
  10. }
  11. ContextPeekMessage {
  12. direct
  13. param size_t *receiveLen
  14. param uint32_t *usrID
  15. ret RsMessageToClientType
  16. }
  17. ContextSendMessage {
  18. param uint32_t id
  19. param const uint8_t *data
  20. }
  21. ContextInitToClient {
  22. direct
  23. }
  24. ContextDeinitToClient {
  25. direct
  26. }
  27. ContextSetCacheDir {
  28. direct
  29. param const char * cacheDir
  30. }
  31. TypeCreate {
  32. direct
  33. param RsElement e
  34. param uint32_t dimX
  35. param uint32_t dimY
  36. param uint32_t dimZ
  37. param bool mipmaps
  38. param bool faces
  39. param uint32_t yuv
  40. ret RsType
  41. }
  42. TypeCreate2 {
  43. direct
  44. param const RsTypeCreateParams *dat
  45. ret RsType
  46. }
  47. AllocationCreateTyped {
  48. direct
  49. param RsType vtype
  50. param RsAllocationMipmapControl mipmaps
  51. param uint32_t usages
  52. param uintptr_t ptr
  53. ret RsAllocation
  54. }
  55. AllocationCreateFromBitmap {
  56. direct
  57. param RsType vtype
  58. param RsAllocationMipmapControl mipmaps
  59. param const void *data
  60. param uint32_t usages
  61. ret RsAllocation
  62. }
  63. AllocationCubeCreateFromBitmap {
  64. direct
  65. param RsType vtype
  66. param RsAllocationMipmapControl mipmaps
  67. param const void *data
  68. param uint32_t usages
  69. ret RsAllocation
  70. }
  71. AllocationSetupBufferQueue {
  72. param RsAllocation alloc
  73. param uint32_t numAlloc
  74. sync
  75. }
  76. AllocationShareBufferQueue {
  77. param RsAllocation alloc1
  78. param RsAllocation alloc2
  79. sync
  80. }
  81. AllocationGetSurface {
  82. param RsAllocation alloc
  83. sync
  84. ret RsNativeWindow
  85. }
  86. AllocationSetSurface {
  87. param RsAllocation alloc
  88. param RsNativeWindow sur
  89. sync
  90. }
  91. AllocationAdapterCreate {
  92. direct
  93. param RsType vtype
  94. param RsAllocation baseAlloc
  95. ret RsAllocation
  96. }
  97. AllocationAdapterOffset {
  98. param RsAllocation alloc
  99. param const uint32_t *offsets
  100. }
  101. ContextFinish {
  102. sync
  103. }
  104. ContextDump {
  105. param int32_t bits
  106. }
  107. ContextSetPriority {
  108. param int32_t priority
  109. }
  110. ContextDestroyWorker {
  111. sync
  112. }
  113. AssignName {
  114. param RsObjectBase obj
  115. param const char *name
  116. }
  117. ObjDestroy {
  118. param RsAsyncVoidPtr objPtr
  119. handcodeApi
  120. }
  121. ElementCreate {
  122. direct
  123. param RsDataType mType
  124. param RsDataKind mKind
  125. param bool mNormalized
  126. param uint32_t mVectorSize
  127. ret RsElement
  128. }
  129. ElementCreate2 {
  130. direct
  131. param const RsElement * elements
  132. param const char ** names
  133. param const uint32_t * arraySize
  134. ret RsElement
  135. }
  136. AllocationCopyToBitmap {
  137. param RsAllocation alloc
  138. param void * data
  139. }
  140. AllocationGetPointer {
  141. param RsAllocation va
  142. param uint32_t lod
  143. param RsAllocationCubemapFace face
  144. param uint32_t z
  145. param uint32_t array
  146. param size_t *stride
  147. ret void *
  148. }
  149. Allocation1DData {
  150. param RsAllocation va
  151. param uint32_t xoff
  152. param uint32_t lod
  153. param uint32_t count
  154. param const void *data
  155. }
  156. Allocation1DElementData {
  157. param RsAllocation va
  158. param uint32_t x
  159. param uint32_t lod
  160. param const void *data
  161. param size_t comp_offset
  162. }
  163. AllocationElementData {
  164. param RsAllocation va
  165. param uint32_t x
  166. param uint32_t y
  167. param uint32_t z
  168. param uint32_t lod
  169. param const void *data
  170. param size_t comp_offset
  171. }
  172. Allocation2DData {
  173. param RsAllocation va
  174. param uint32_t xoff
  175. param uint32_t yoff
  176. param uint32_t lod
  177. param RsAllocationCubemapFace face
  178. param uint32_t w
  179. param uint32_t h
  180. param const void *data
  181. param size_t stride
  182. }
  183. Allocation3DData {
  184. param RsAllocation va
  185. param uint32_t xoff
  186. param uint32_t yoff
  187. param uint32_t zoff
  188. param uint32_t lod
  189. param uint32_t w
  190. param uint32_t h
  191. param uint32_t d
  192. param const void *data
  193. param size_t stride
  194. }
  195. AllocationGenerateMipmaps {
  196. param RsAllocation va
  197. }
  198. AllocationRead {
  199. param RsAllocation va
  200. param void * data
  201. }
  202. Allocation1DRead {
  203. param RsAllocation va
  204. param uint32_t xoff
  205. param uint32_t lod
  206. param uint32_t count
  207. param void *data
  208. }
  209. AllocationElementRead {
  210. param RsAllocation va
  211. param uint32_t x
  212. param uint32_t y
  213. param uint32_t z
  214. param uint32_t lod
  215. param void *data
  216. param size_t comp_offset
  217. }
  218. Allocation2DRead {
  219. param RsAllocation va
  220. param uint32_t xoff
  221. param uint32_t yoff
  222. param uint32_t lod
  223. param RsAllocationCubemapFace face
  224. param uint32_t w
  225. param uint32_t h
  226. param void *data
  227. param size_t stride
  228. }
  229. Allocation3DRead {
  230. param RsAllocation va
  231. param uint32_t xoff
  232. param uint32_t yoff
  233. param uint32_t zoff
  234. param uint32_t lod
  235. param uint32_t w
  236. param uint32_t h
  237. param uint32_t d
  238. param void *data
  239. param size_t stride
  240. }
  241. AllocationSyncAll {
  242. param RsAllocation va
  243. param RsAllocationUsageType src
  244. }
  245. AllocationResize1D {
  246. param RsAllocation va
  247. param uint32_t dimX
  248. }
  249. AllocationCopy2DRange {
  250. param RsAllocation dest
  251. param uint32_t destXoff
  252. param uint32_t destYoff
  253. param uint32_t destMip
  254. param uint32_t destFace
  255. param uint32_t width
  256. param uint32_t height
  257. param RsAllocation src
  258. param uint32_t srcXoff
  259. param uint32_t srcYoff
  260. param uint32_t srcMip
  261. param uint32_t srcFace
  262. }
  263. AllocationCopy3DRange {
  264. param RsAllocation dest
  265. param uint32_t destXoff
  266. param uint32_t destYoff
  267. param uint32_t destZoff
  268. param uint32_t destMip
  269. param uint32_t width
  270. param uint32_t height
  271. param uint32_t depth
  272. param RsAllocation src
  273. param uint32_t srcXoff
  274. param uint32_t srcYoff
  275. param uint32_t srcZoff
  276. param uint32_t srcMip
  277. }
  278. ClosureCreate {
  279. direct
  280. param RsScriptKernelID kernelID
  281. param RsAllocation returnValue
  282. param RsScriptFieldID * fieldIDs
  283. param const int64_t * values
  284. param const int * sizes
  285. param RsClosure * depClosures
  286. param RsScriptFieldID * depFieldIDs
  287. ret RsClosure
  288. }
  289. InvokeClosureCreate {
  290. direct
  291. param RsScriptInvokeID invokeID
  292. param const void * params
  293. param const RsScriptFieldID * fieldIDs
  294. param const int64_t * values
  295. param const int * sizes
  296. ret RsClosure
  297. }
  298. ClosureSetArg {
  299. param RsClosure closureID
  300. param uint32_t index
  301. param uintptr_t value
  302. param int valueSize
  303. }
  304. ClosureSetGlobal {
  305. param RsClosure closureID
  306. param RsScriptFieldID fieldID
  307. param int64_t value
  308. param int valueSize
  309. }
  310. SamplerCreate {
  311. direct
  312. param RsSamplerValue magFilter
  313. param RsSamplerValue minFilter
  314. param RsSamplerValue wrapS
  315. param RsSamplerValue wrapT
  316. param RsSamplerValue wrapR
  317. param float mAniso
  318. ret RsSampler
  319. }
  320. ScriptBindAllocation {
  321. param RsScript vtm
  322. param RsAllocation va
  323. param uint32_t slot
  324. }
  325. ScriptSetTimeZone {
  326. param RsScript s
  327. param const char * timeZone
  328. }
  329. ScriptInvokeIDCreate {
  330. param RsScript s
  331. param uint32_t slot
  332. ret RsScriptInvokeID
  333. }
  334. ScriptInvoke {
  335. param RsScript s
  336. param uint32_t slot
  337. }
  338. ScriptInvokeV {
  339. param RsScript s
  340. param uint32_t slot
  341. param const void * data
  342. }
  343. ScriptForEach {
  344. param RsScript s
  345. param uint32_t slot
  346. param RsAllocation ain
  347. param RsAllocation aout
  348. param const void * usr
  349. param const RsScriptCall * sc
  350. }
  351. ScriptForEachMulti {
  352. param RsScript s
  353. param uint32_t slot
  354. param RsAllocation * ains
  355. param RsAllocation aout
  356. param const void * usr
  357. param const RsScriptCall * sc
  358. }
  359. ScriptReduce {
  360. param RsScript s
  361. param uint32_t slot
  362. param RsAllocation * ains
  363. param RsAllocation aout
  364. param const RsScriptCall * sc
  365. }
  366. ScriptSetVarI {
  367. param RsScript s
  368. param uint32_t slot
  369. param int value
  370. }
  371. ScriptSetVarObj {
  372. param RsScript s
  373. param uint32_t slot
  374. param RsObjectBase value
  375. }
  376. ScriptSetVarJ {
  377. param RsScript s
  378. param uint32_t slot
  379. param int64_t value
  380. }
  381. ScriptSetVarF {
  382. param RsScript s
  383. param uint32_t slot
  384. param float value
  385. }
  386. ScriptSetVarD {
  387. param RsScript s
  388. param uint32_t slot
  389. param double value
  390. }
  391. ScriptSetVarV {
  392. param RsScript s
  393. param uint32_t slot
  394. param const void * data
  395. }
  396. ScriptGetVarV {
  397. param RsScript s
  398. param uint32_t slot
  399. param void * data
  400. sync
  401. }
  402. ScriptSetVarVE {
  403. param RsScript s
  404. param uint32_t slot
  405. param const void * data
  406. param RsElement e
  407. param const uint32_t * dims
  408. }
  409. ScriptCCreate {
  410. param const char * resName
  411. param const char * cacheDir
  412. param const char * text
  413. ret RsScript
  414. }
  415. ScriptIntrinsicCreate {
  416. param uint32_t id
  417. param RsElement eid
  418. ret RsScript
  419. }
  420. ScriptKernelIDCreate {
  421. direct
  422. param RsScript sid
  423. param int slot
  424. param int sig
  425. ret RsScriptKernelID
  426. }
  427. ScriptFieldIDCreate {
  428. direct
  429. param RsScript sid
  430. param int slot
  431. ret RsScriptFieldID
  432. }
  433. ScriptGroupCreate {
  434. direct
  435. param RsScriptKernelID * kernels
  436. param RsScriptKernelID * src
  437. param RsScriptKernelID * dstK
  438. param RsScriptFieldID * dstF
  439. param const RsType * type
  440. ret RsScriptGroup
  441. }
  442. ScriptGroupSetOutput {
  443. param RsScriptGroup group
  444. param RsScriptKernelID kernel
  445. param RsAllocation alloc
  446. }
  447. ScriptGroupSetInput {
  448. param RsScriptGroup group
  449. param RsScriptKernelID kernel
  450. param RsAllocation alloc
  451. }
  452. ScriptGroupExecute {
  453. param RsScriptGroup group
  454. }
  455. ScriptGroup2Create{
  456. direct
  457. param const char * name
  458. param const char * cacheDir
  459. param RsClosure * closures
  460. ret RsScriptGroup2
  461. }
  462. AllocationIoSend {
  463. param RsAllocation alloc
  464. }
  465. AllocationIoReceive {
  466. param RsAllocation alloc
  467. ret int64_t
  468. }