Lines Matching defs:Allocation

44 class Allocation;
281 * from RenderScript kernels. An Allocation provides the backing store for a
284 * An Allocation also contains a set of usage flags that denote how the
285 * Allocation could be used. For example, an Allocation may have usage flags
288 * syncAll(int) in order to ensure that different users of the Allocation have
289 * a consistent view of memory. For example, in the case where an Allocation is
294 class Allocation : public BaseObj {
298 sp<Allocation> mAdaptedAllocation;
319 Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage);
344 * Propagate changes from one usage of the Allocation to other usages of the Allocation.
352 * Generate a mipmap chain. This is only valid if the Type of the Allocation
355 * the Allocation is also using other memory spaces, a call to
356 * syncAll(Allocation.USAGE_SCRIPT) is required.
361 * Copy an array into part of this Allocation.
369 * Copy part of an Allocation into part of this Allocation.
372 * @param[in] data Allocation from which to copy
375 void copy1DRangeFrom(uint32_t off, size_t count, sp<const Allocation> data, uint32_t dataOff);
378 * Copy an array into part of this Allocation.
386 * Copy entire array to an Allocation.
392 * Copy entire Allocation to an array.
398 * Copy from an array into a rectangular region in this Allocation. The
400 * @param[in] xoff X offset of region to update in this Allocation
401 * @param[in] yoff Y offset of region to update in this Allocation
410 * Copy from this Allocation into a rectangular region in an array. The
412 * @param[in] xoff X offset of region to copy from this Allocation
413 * @param[in] yoff Y offset of region to copy from this Allocation
422 * Copy from an Allocation into a rectangular region in this Allocation.
423 * @param[in] xoff X offset of region to update in this Allocation
424 * @param[in] yoff Y offset of region to update in this Allocation
427 * @param[in] data Allocation from which to copy
432 sp<const Allocation> data, uint32_t dataXoff, uint32_t dataYoff);
435 * Copy from a strided array into a rectangular region in this Allocation.
436 * @param[in] xoff X offset of region to update in this Allocation
437 * @param[in] yoff Y offset of region to update in this Allocation
447 * Copy from a strided array into this Allocation.
454 * Copy from a rectangular region in this Allocation into a strided array.
455 * @param[in] xoff X offset of region to update in this Allocation
456 * @param[in] yoff Y offset of region to update in this Allocation
466 * Copy this Allocation into a strided array.
474 * Copy from an array into a 3D region in this Allocation. The
476 * @param[in] xoff X offset of region to update in this Allocation
477 * @param[in] yoff Y offset of region to update in this Allocation
478 * @param[in] zoff Z offset of region to update in this Allocation
488 * Copy from an Allocation into a 3D region in this Allocation.
489 * @param[in] xoff X offset of region to update in this Allocation
490 * @param[in] yoff Y offset of region to update in this Allocation
491 * @param[in] zoff Z offset of region to update in this Allocation
495 * @param[in] data Allocation from which to copy
502 sp<const Allocation> data,
506 * Creates an Allocation for use by scripts with a given Type.
507 * @param[in] rs Context to which the Allocation will belong
508 * @param[in] type Type of the Allocation
509 * @param[in] mipmaps desired mipmap behavior for the Allocation
510 * @param[in] usage usage for the Allocation
511 * @return new Allocation
513 static sp<Allocation> createTyped(sp<RS> rs, sp<const Type> type,
517 * Creates an Allocation for use by scripts with a given Type and a backing pointer. For use
519 * @param[in] rs Context to which the Allocation will belong
520 * @param[in] type Type of the Allocation
521 * @param[in] mipmaps desired mipmap behavior for the Allocation
522 * @param[in] usage usage for the Allocation
523 * @param[in] pointer existing backing store to use for this Allocation if possible
524 * @return new Allocation
526 static sp<Allocation> createTyped(sp<RS> rs, sp<const Type> type,
530 * Creates an Allocation for use by scripts with a given Type with no mipmaps.
531 * @param[in] rs Context to which the Allocation will belong
532 * @param[in] type Type of the Allocation
533 * @param[in] usage usage for the Allocation
534 * @return new Allocation
536 static sp<Allocation> createTyped(sp<RS> rs, sp<const Type> type,
539 * Creates an Allocation with a specified number of given elements.
540 * @param[in] rs Context to which the Allocation will belong
541 * @param[in] e Element used in the Allocation
542 * @param[in] count Number of elements of the Allocation
543 * @param[in] usage usage for the Allocation
544 * @return new Allocation
546 static sp<Allocation> createSized(sp<RS> rs, sp<const Element> e, size_t count,
550 * Creates a 2D Allocation with a specified number of given elements.
551 * @param[in] rs Context to which the Allocation will belong
552 * @param[in] e Element used in the Allocation
553 * @param[in] x Width in Elements of the Allocation
554 * @param[in] y Height of the Allocation
555 * @param[in] usage usage for the Allocation
556 * @return new Allocation
558 static sp<Allocation> createSized2D(sp<RS> rs, sp<const Element> e,
566 * stride in bytes of a 2D Allocation
573 * An Element represents one item within an Allocation. An Element is roughly
585 * Sampler. Note that Allocation objects with DataKind USER cannot be used as
586 * input for a Sampler. In general, Allocation objects that are intended for
748 * Utility function for returning an Element containing a single Allocation.
1180 * A Type describes the Element and dimensions used for an Allocation or a
1193 * A Type also supports YUV format information to support an Allocation in a YUV
1198 friend class Allocation;
1218 * @return YUV format of the Allocation
1225 * Returns the Element of the Allocation.
1226 * @return YUV format of the Allocation
1233 * Returns the X dimension of the Allocation.
1241 * Returns the Y dimension of the Allocation.
1249 * Returns the Z dimension of the Allocation.
1257 * Returns true if the Allocation has mipmaps.
1258 * @return true if the Allocation has mipmaps
1265 * Returns true if the Allocation is a cube map
1266 * @return true if the Allocation is a cube map
1273 * Returns number of accessible Elements in the Allocation
1274 * @return number of accessible Elements in the Allocation
1281 * Returns size in bytes of all Elements in the Allocation
1282 * @return size in bytes of all Elements in the Allocation
1332 void forEach(uint32_t slot, sp<const Allocation> in, sp<const Allocation> out,
1334 void bindAllocation(sp<Allocation> va, uint32_t slot) const;
1363 sp<Allocation> mAllocation;
1376 sp<const Allocation> getAllocation() {
1427 * @param[in] ain input Allocation
1428 * @param[in] aout output Allocation
1430 void forEach(sp<Allocation> ain, sp<Allocation> aout);
1437 void setLUT(sp<Allocation> lut);
1456 * @param[in] in input Allocation
1457 * @param[in] out output Allocation
1459 void forEachClear(sp<Allocation> in, sp<Allocation> out);
1462 * @param[in] in input Allocation
1463 * @param[in] out output Allocation
1465 void forEachSrc(sp<Allocation> in, sp<Allocation> out);
1468 * @param[in] in input Allocation
1469 * @param[in] out output Allocation
1471 void forEachDst(sp<Allocation> in, sp<Allocation> out);
1474 * @param[in] in input Allocation
1475 * @param[in] out output Allocation
1477 void forEachSrcOver(sp<Allocation> in, sp<Allocation> out);
1480 * @param[in] in input Allocation
1481 * @param[in] out output Allocation
1483 void forEachDstOver(sp<Allocation> in, sp<Allocation> out);
1486 * @param[in] in input Allocation
1487 * @param[in] out output Allocation
1489 void forEachSrcIn(sp<Allocation> in, sp<Allocation> out);
1492 * @param[in] in input Allocation
1493 * @param[in] out output Allocation
1495 void forEachDstIn(sp<Allocation> in, sp<Allocation> out);
1498 * @param[in] in input Allocation
1499 * @param[in] out output Allocation
1501 void forEachSrcOut(sp<Allocation> in, sp<Allocation> out);
1504 * @param[in] in input Allocation
1505 * @param[in] out output Allocation
1507 void forEachDstOut(sp<Allocation> in, sp<Allocation> out);
1510 * @param[in] in input Allocation
1511 * @param[in] out output Allocation
1513 void forEachSrcAtop(sp<Allocation> in, sp<Allocation> out);
1516 * @param[in] in input Allocation
1517 * @param[in] out output Allocation
1519 void forEachDstAtop(sp<Allocation> in, sp<Allocation> out);
1522 * @param[in] in input Allocation
1523 * @param[in] out output Allocation
1525 void forEachXor(sp<Allocation> in, sp<Allocation> out);
1528 * @param[in] in input Allocation
1529 * @param[in] out output Allocation
1531 void forEachMultiply(sp<Allocation> in, sp<Allocation> out);
1534 * @param[in] in input Allocation
1535 * @param[in] out output Allocation
1537 void forEachAdd(sp<Allocation> in, sp<Allocation> out);
1540 * @param[in] in input Allocation
1541 * @param[in] out output Allocation
1543 void forEachSubtract(sp<Allocation> in, sp<Allocation> out);
1548 * radius to all elements of an Allocation.
1563 * @param[in] in input Allocation
1565 void setInput(sp<Allocation> in);
1568 * @param[in] output Allocation
1570 void forEach(sp<Allocation> out);
1598 * @param[in] in input Allocation
1599 * @param[out] out output Allocation
1601 void forEach(sp<Allocation> in, sp<Allocation> out);
1657 * @param[in] in input Allocation
1659 void setInput(sp<Allocation> in);
1662 * @param[in] out output Allocation
1664 void forEach(sp<Allocation> out);
1689 * @param[in] in input Allocation
1691 void setInput(sp<Allocation> in);
1694 * @param[in] out output Allocation
1696 void forEach(sp<Allocation> out);
1710 sp<Allocation> mOut;
1730 void setOutput(sp<Allocation> aout);
1755 void forEach(sp<Allocation> ain);
1766 void forEach_dot(sp<Allocation> ain);
1776 sp<Allocation> LUT;
1801 void forEach(sp<Allocation> ain, sp<Allocation> aout);
1837 * as a YUV element Allocation. The output is RGBA; the alpha channel
1860 void setInput(sp<Allocation> in);
1868 void forEach(sp<Allocation> out);
1877 * Any Allocation used with a Sampler must have been created with
1879 * Allocation that was not created with