Home
last modified time | relevance | path

Searched refs:FilterRepresentation (Results 1 – 25 of 81) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DImagePreset.java34 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
57 private Vector<FilterRepresentation> mFilters = new Vector<FilterRepresentation>();
71 FilterRepresentation sourceRepresentation = source.mFilters.elementAt(i); in ImagePreset()
76 public Vector<FilterRepresentation> getFilters() { in getFilters()
80 public FilterRepresentation getFilterRepresentation(int position) { in getFilterRepresentation()
81 FilterRepresentation representation = null; in getFilterRepresentation()
96 public static boolean sameSerializationName(FilterRepresentation a, FilterRepresentation b) { in sameSerializationName()
103 public int getPositionForRepresentation(FilterRepresentation representation) { in getPositionForRepresentation()
112 private FilterRepresentation getFilterRepresentationForType(int type) { in getFilterRepresentationForType()
130 public FilterRepresentation getFilterRepresentationCopyFrom( in getFilterRepresentationCopyFrom()
[all …]
DCacheProcessing.java23 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
36 ArrayList<FilterRepresentation> representations;
40 representations = new ArrayList<FilterRepresentation>(); in CacheStep()
43 public void add(FilterRepresentation representation) { in add()
47 public boolean canMergeWith(FilterRepresentation representation) { in canMergeWith()
48 for (FilterRepresentation rep : representations) { in canMergeWith()
61 FilterRepresentation r1 = representations.get(i); in equals()
62 FilterRepresentation r2 = step.representations.get(i); in equals()
70 public static Vector<CacheStep> buildSteps(Vector<FilterRepresentation> filters) { in buildSteps()
74 FilterRepresentation representation = filters.elementAt(i); in buildSteps()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DBaseFiltersManager.java32 protected HashMap<String, FilterRepresentation> mRepresentationLookup = null;
35 protected ArrayList<FilterRepresentation> mLooks = new ArrayList<FilterRepresentation>();
36 protected ArrayList<FilterRepresentation> mBorders = new ArrayList<FilterRepresentation>();
37 protected ArrayList<FilterRepresentation> mTools = new ArrayList<FilterRepresentation>();
38 protected ArrayList<FilterRepresentation> mEffects = new ArrayList<FilterRepresentation>();
43 mRepresentationLookup = new HashMap<String, FilterRepresentation>(); in init()
52 FilterRepresentation rep = in init()
66 public void addRepresentation(FilterRepresentation rep) { in addRepresentation()
70 public FilterRepresentation createFilterFromName(String name) { in createFilterFromName()
85 public ImageFilter getFilterForRepresentation(FilterRepresentation representation) { in getFilterForRepresentation()
[all …]
DFilterRepresentation.java28 public class FilterRepresentation { class
52 public FilterRepresentation(String name) { in FilterRepresentation() method in FilterRepresentation
56 public FilterRepresentation copy(){ in copy()
57 FilterRepresentation representation = new FilterRepresentation(mName); in copy()
62 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
76 public boolean equals(FilterRepresentation representation) { in equals()
147 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
165 public boolean same(FilterRepresentation b) { in same()
273 public boolean canMergeWith(FilterRepresentation representation) { in canMergeWith()
274 if (getFilterType() == FilterRepresentation.TYPE_GEOMETRY in canMergeWith()
[all …]
DFilterFxRepresentation.java21 public class FilterFxRepresentation extends FilterRepresentation {
33 setFilterType(FilterRepresentation.TYPE_FX); in FilterFxRepresentation()
46 public FilterRepresentation copy() { in copy()
53 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
59 public synchronized void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
70 public boolean equals(FilterRepresentation representation) { in equals()
85 public boolean same(FilterRepresentation representation) { in same()
DFilterImageBorderRepresentation.java22 public class FilterImageBorderRepresentation extends FilterRepresentation {
29 setFilterType(FilterRepresentation.TYPE_BORDER); in FilterImageBorderRepresentation()
40 public FilterRepresentation copy() { in copy()
48 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
53 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
62 public boolean equals(FilterRepresentation representation) { in equals()
DFilterStraightenRepresentation.java28 public class FilterStraightenRepresentation extends FilterRepresentation {
42 setFilterType(FilterRepresentation.TYPE_GEOMETRY); in FilterStraightenRepresentation()
63 public boolean equals(FilterRepresentation rep) { in equals()
91 public FilterRepresentation copy() { in copy()
96 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
105 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
DFilterRotateRepresentation.java29 public class FilterRotateRepresentation extends FilterRepresentation {
69 setFilterType(FilterRepresentation.TYPE_GEOMETRY); in FilterRotateRepresentation()
123 public FilterRepresentation copy() { in copy()
128 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
137 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
161 public boolean equals(FilterRepresentation rep) { in equals()
DFilterPointRepresentation.java21 public abstract class FilterPointRepresentation extends FilterRepresentation {
28 setFilterType(FilterRepresentation.TYPE_NORMAL); in FilterPointRepresentation()
34 public abstract FilterRepresentation copy(); in copy()
37 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
67 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
DFilterMirrorRepresentation.java33 public class FilterMirrorRepresentation extends FilterRepresentation {
73 setFilterType(FilterRepresentation.TYPE_GEOMETRY); in FilterMirrorRepresentation()
90 public boolean equals(FilterRepresentation rep) { in equals()
155 public FilterRepresentation copy() { in copy()
160 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
169 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
DFilterCropRepresentation.java28 public class FilterCropRepresentation extends FilterRepresentation {
42 setFilterType(FilterRepresentation.TYPE_GEOMETRY); in FilterCropRepresentation()
63 public boolean equals(FilterRepresentation rep) { in equals()
120 public FilterRepresentation copy() { in copy()
125 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
134 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
DFilterColorBorderRepresentation.java31 public class FilterColorBorderRepresentation extends FilterRepresentation {
57 setFilterType(FilterRepresentation.TYPE_BORDER); in FilterColorBorderRepresentation()
78 public FilterRepresentation copy() { in copy()
86 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
91 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
103 public boolean equals(FilterRepresentation representation) { in equals()
DFilterTinyPlanetRepresentation.java33 setFilterType(FilterRepresentation.TYPE_TINYPLANET); in FilterTinyPlanetRepresentation()
41 public FilterRepresentation copy() { in copy()
48 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
54 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
82 public boolean equals(FilterRepresentation representation) { in equals()
DFilterChanSatRepresentation.java36 public class FilterChanSatRepresentation extends FilterRepresentation implements ParameterSet {
72 setFilterType(FilterRepresentation.TYPE_NORMAL); in FilterChanSatRepresentation()
85 public FilterRepresentation copy() { in copy()
92 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
97 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
108 public boolean equals(FilterRepresentation representation) { in equals()
DFilterVignetteRepresentation.java30 public class FilterVignetteRepresentation extends FilterRepresentation implements Oval {
63 setFilterType(FilterRepresentation.TYPE_VIGNETTE); in FilterVignetteRepresentation()
71 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
99 public FilterRepresentation copy() { in copy()
106 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
163 public boolean equals(FilterRepresentation representation) { in equals()
DFilterUserPresetRepresentation.java22 public class FilterUserPresetRepresentation extends FilterRepresentation {
30 setFilterType(FilterRepresentation.TYPE_FX); in FilterUserPresetRepresentation()
44 public FilterRepresentation copy(){ in copy()
45 FilterRepresentation representation = new FilterUserPresetRepresentation(getName(), in copy()
DFilterBasicRepresentation.java27 public class FilterBasicRepresentation extends FilterRepresentation implements ParameterInteger {
51 public FilterRepresentation copy() { in copy()
58 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters()
64 public void useParametersFrom(FilterRepresentation a) { in useParametersFrom()
76 public boolean equals(FilterRepresentation representation) { in equals()
DImageFilterWBalance.java32 public FilterRepresentation getDefaultRepresentation() { in getDefaultRepresentation()
33 FilterRepresentation representation = new FilterDirectRepresentation("WBalance"); in getDefaultRepresentation()
36 representation.setFilterType(FilterRepresentation.TYPE_WBALANCE); in getDefaultRepresentation()
46 public void useRepresentation(FilterRepresentation representation) { in useRepresentation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java32 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
253 public static GeometryHolder unpackGeometry(Collection<FilterRepresentation> geometry) { in unpackGeometry()
260 Collection<FilterRepresentation> geometry) { in unpackGeometry()
263 for (FilterRepresentation r : geometry) { in unpackGeometry()
280 public static void replaceInstances(Collection<FilterRepresentation> geometry, in replaceInstances()
281 FilterRepresentation rep) { in replaceInstances()
282 Iterator<FilterRepresentation> iter = geometry.iterator(); in replaceInstances()
284 FilterRepresentation r = iter.next(); in replaceInstances()
295 FilterRepresentation currentLocal) { in initializeHolder()
296 Collection<FilterRepresentation> geometry = MasterImage.getImage().getPreset() in initializeHolder()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditor.java37 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
59 protected FilterRepresentation mLocalRepresentation = null;
195 public FilterRepresentation getLocalRepresentation() { in getLocalRepresentation()
198FilterRepresentation filterRepresentation = MasterImage.getImage().getCurrentFilterRepresentation(… in getLocalRepresentation()
222 public void commitLocalRepresentation(FilterRepresentation rep) { in commitLocalRepresentation()
223 ArrayList<FilterRepresentation> filter = new ArrayList<FilterRepresentation>(1); in commitLocalRepresentation()
232 public void commitLocalRepresentation(Collection<FilterRepresentation> reps) { in commitLocalRepresentation()
267 FilterRepresentation representation = getLocalRepresentation(); in reflectCurrentFilter()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DAction.java37 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
44 private FilterRepresentation mRepresentation;
61 public Action(FilterShowActivity context, FilterRepresentation representation, int type, in Action()
69 public Action(FilterShowActivity context, FilterRepresentation representation, int type) { in Action()
80 public Action(FilterShowActivity context, FilterRepresentation representation) { in Action()
100 public FilterRepresentation getRepresentation() { in getRepresentation()
104 public void setRepresentation(FilterRepresentation representation) { in setRepresentation()
192 if (getRepresentation().getFilterType() == FilterRepresentation.TYPE_BORDER) { in available()
DCategoryAdapter.java27 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
154 public FilterRepresentation getTinyPlanet() { in getTinyPlanet()
202 FilterRepresentation rep = null; in reflectImagePreset()
204 int pos = preset.getPositionForType(FilterRepresentation.TYPE_FX); in reflectImagePreset()
209 int pos = preset.getPositionForType(FilterRepresentation.TYPE_BORDER); in reflectImagePreset()
216 FilterRepresentation itemRep = getItem(i).getRepresentation(); in reflectImagePreset()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/history/
DHistoryItem.java21 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
27 private FilterRepresentation mFilterRepresentation;
30 public HistoryItem(ImagePreset preset, FilterRepresentation representation) { in HistoryItem()
41 public FilterRepresentation getFilterRepresentation() { in getFilterRepresentation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
DFilterShowActivity.java97 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
302 public void loadEditorPanel(FilterRepresentation representation, in loadEditorPanel()
458 ArrayList<FilterRepresentation> filtersRepresentations = filtersManager.getEffects(); in fillEffects()
463 for (FilterRepresentation representation : filtersRepresentations) { in fillEffects()
473 ArrayList<FilterRepresentation> filtersRepresentations = filtersManager.getTools(); in fillTools()
479 for (FilterRepresentation representation : filtersRepresentations) { in fillTools()
486 FilterRepresentation representation = new FilterDrawRepresentation(); in fillTools()
560 ArrayList<FilterRepresentation> borders = filtersManager.getBorders(); in fillBorders()
563 FilterRepresentation filter = borders.get(i); in fillBorders()
574 for (FilterRepresentation representation : borders) { in fillBorders()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DState.java20 import com.android.gallery3d.filtershow.filters.FilterRepresentation;
25 private FilterRepresentation mFilterRepresentation;
71 public FilterRepresentation getFilterRepresentation() { in getFilterRepresentation()
75 public void setFilterRepresentation(FilterRepresentation filterRepresentation) { in setFilterRepresentation()

1234