Home
last modified time | relevance | path

Searched refs:Spline (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterCurves.java21 import com.android.gallery3d.filtershow.imageshow.Spline;
45 Spline spline = mParameters.getSpline(curveIndex); in populateArray()
57 if (!mParameters.getSpline(Spline.RGB).isOriginal()) { in apply()
59 populateArray(rgbGradient, Spline.RGB); in apply()
65 if (!mParameters.getSpline(Spline.RED).isOriginal()) { in apply()
67 populateArray(redGradient, Spline.RED); in apply()
70 if (!mParameters.getSpline(Spline.GREEN).isOriginal()) { in apply()
72 populateArray(greenGradient, Spline.GREEN); in apply()
75 if (!mParameters.getSpline(Spline.BLUE).isOriginal()) { in apply()
77 populateArray(blueGradient, Spline.BLUE); in apply()
[all …]
DFilterCurvesRepresentation.java9 import com.android.gallery3d.filtershow.imageshow.Spline;
21 private Spline[] mSplines = new Spline[MAX_SPLINE_NUMBER];
55 Spline[] spline = new Spline[MAX_SPLINE_NUMBER]; in useParametersFrom()
57 Spline sp = representation.mSplines[i]; in useParametersFrom()
59 spline[i] = new Spline(sp); in useParametersFrom()
61 spline[i] = new Spline(); in useParametersFrom()
99 Spline spline = new Spline(); in reset()
105 mSplines[i] = new Spline(spline); in reset()
109 public void setSpline(int splineIndex, Spline s) { in setSpline()
113 public Spline getSpline(int splineIndex) { in getSpline()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCurves.java54 private int mCurrentCurveIndex = Spline.RGB;
156 private Spline getSpline(int index) { in getSpline()
193 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.RED) { in onDraw()
196 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.GREEN) { in onDraw()
199 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.BLUE) { in onDraw()
203 if (mCurrentCurveIndex == Spline.RGB) { in onDraw()
205 Spline spline = getSpline(i); in onDraw()
209 spline.draw(canvas, Spline.colorForCurve(i), getWidth(), in onDraw()
216 .draw(canvas, Spline.colorForCurve(mCurrentCurveIndex), getWidth(), getHeight(), in onDraw()
223 Spline spline = getSpline(mCurrentCurveIndex); in pickControlPoint()
[all …]
DSpline.java29 public class Spline { class
44 public Spline() { in Spline() method in Spline
48 public Spline(Spline spline) { in Spline() method in Spline
76 case Spline.RED: in colorForCurve()
86 public boolean sameValues(Spline other) { in sameValues()
433 public Spline copy() { in copy()
434 Spline spline = new Spline(); in copy()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java105 import com.android.gallery3d.filtershow.imageshow.Spline;
539 Spline.setCurveHandle(curveHandle, curveHandleSize); in setDefaultValues()
540 Spline.setCurveWidth((int) getPixelsFromDip(3)); in setDefaultValues()