Lines Matching defs:src

44         public void set(Matrix src) {
201 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) {
207 public boolean setPolyToPoly(float[] src, int srcIndex, float[] dst, int dstIndex,
232 * Create a matrix that is a (deep) copy of src
233 * @param src The matrix to copy into this matrix
235 public Matrix(Matrix src) {
236 native_instance = native_create(src != null ? src.native_instance : 0);
267 * (deep) copy the src matrix into this matrix. If src is null, reset this
270 public void set(Matrix src) {
271 if (src == null) {
274 native_set(native_instance, src.native_instance);
524 /** Controlls how the src rect should align into the dst rect for
529 * Scale in X and Y independently, so that src matches dst exactly.
530 * This may change the aspect ratio of the src.
534 * Compute a scale that will maintain the original src aspect ratio,
535 * but will also ensure that src fits entirely inside dst. At least one
541 * Compute a scale that will maintain the original src aspect ratio,
542 * but will also ensure that src fits entirely inside dst. At least one
547 * Compute a scale that will maintain the original src aspect ratio,
548 * but will also ensure that src fits entirely inside dst. At least one
566 * @param src the source rectangle to map from.
571 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) {
572 if (dst == null || src == null) {
575 return native_setRectToRect(native_instance, src, dst, stf.nativeInt);
579 private static void checkPointArrays(float[] src, int srcIndex,
586 srcStop > src.length || dstStop > dst.length) {
592 * Set the matrix such that the specified src points would map to the
596 * @param src The array of src [x,y] pairs (points)
597 * @param srcIndex Index of the first pair of src values
603 public boolean setPolyToPoly(float[] src, int srcIndex,
609 checkPointArrays(src, srcIndex, dst, dstIndex, pointCount);
610 return native_setPolyToPoly(native_instance, src, srcIndex,
624 * Apply this matrix to the array of 2D points specified by src, and write
630 * @param src The array of src points (x,y pairs)
631 * @param srcIndex The index of the first [x,y] pair of src floats
634 public void mapPoints(float[] dst, int dstIndex, float[] src, int srcIndex,
636 checkPointArrays(src, srcIndex, dst, dstIndex, pointCount);
637 native_mapPoints(native_instance, dst, dstIndex, src, srcIndex,
642 * Apply this matrix to the array of 2D vectors specified by src, and write
652 * @param src The array of src vectors (x,y pairs)
653 * @param srcIndex The index of the first [x,y] pair of src floats
656 public void mapVectors(float[] dst, int dstIndex, float[] src, int srcIndex,
658 checkPointArrays(src, srcIndex, dst, dstIndex, vectorCount);
659 native_mapPoints(native_instance, dst, dstIndex, src, srcIndex,
664 * Apply this matrix to the array of 2D points specified by src, and write
669 * @param src The array of src points (x,y pairs)
671 public void mapPoints(float[] dst, float[] src) {
672 if (dst.length != src.length) {
675 mapPoints(dst, 0, src, 0, dst.length >> 1);
679 * Apply this matrix to the array of 2D vectors specified by src, and write
687 * @param src The array of src vectors (x,y pairs)
689 public void mapVectors(float[] dst, float[] src) {
690 if (dst.length != src.length) {
693 mapVectors(dst, 0, src, 0, dst.length >> 1);
720 * Apply this matrix to the src rectangle, and write the transformed
722 * src, and then setting dst to the bounds of those points.
725 * @param src The original rectangle to be transformed.
728 public boolean mapRect(RectF dst, RectF src) {
729 if (dst == null || src == null) {
732 return native_mapRect(native_instance, dst, src);
901 RectF src, RectF dst, int stf);
903 float[] src, int srcIndex, float[] dst, int dstIndex, int pointCount);
907 float[] dst, int dstIndex, float[] src, int srcIndex,
910 RectF dst, RectF src);