/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ImagePreset.java | 81 FilterRepresentation representation = null; in getFilterRepresentation() local 83 representation = mFilters.elementAt(position).copy(); in getFilterRepresentation() 85 return representation; in getFilterRepresentation() 103 public int getPositionForRepresentation(FilterRepresentation representation) { in getPositionForRepresentation() argument 105 if (sameSerializationName(mFilters.elementAt(i), representation)) { in getPositionForRepresentation() 140 FilterRepresentation representation = mFilters.elementAt(position); in getFilterRepresentationCopyFrom() local 141 if (representation != null) { in getFilterRepresentationCopyFrom() 142 representation = representation.copy(); in getFilterRepresentationCopyFrom() 144 return representation; in getFilterRepresentationCopyFrom() 185 for (FilterRepresentation representation : mFilters) { in contains() [all …]
|
D | CacheProcessing.java | 43 public void add(FilterRepresentation representation) { in add() argument 44 representations.add(representation); in add() 47 public boolean canMergeWith(FilterRepresentation representation) { in canMergeWith() argument 49 if (!rep.canMergeWith(representation)) { in canMergeWith() 74 FilterRepresentation representation = filters.elementAt(i); in buildSteps() local 75 if (step.canMergeWith(representation)) { in buildSteps() 76 step.add(representation.copy()); in buildSteps() 80 step.add(representation.copy()); in buildSteps() 97 for (FilterRepresentation representation : representations) { in apply() 98 if (representation.getFilterType() != FilterRepresentation.TYPE_GEOMETRY) { in apply() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterRepresentation.java | 57 FilterRepresentation representation = new FilterRepresentation(mName); in copy() local 58 representation.useParametersFrom(this); in copy() 59 return representation; in copy() 62 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 63 representation.setName(getName()); in copyAllParameters() 64 representation.setFilterClass(getFilterClass()); in copyAllParameters() 65 representation.setFilterType(getFilterType()); in copyAllParameters() 66 representation.setSupportsPartialRendering(supportsPartialRendering()); in copyAllParameters() 67 representation.setTextId(getTextId()); in copyAllParameters() 68 representation.setEditorId(getEditorId()); in copyAllParameters() [all …]
|
D | FilterFxRepresentation.java | 47 FilterFxRepresentation representation = new FilterFxRepresentation(getName(),0,0); in copy() local 48 copyAllParameters(representation); in copy() 49 return representation; in copy() 53 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 54 super.copyAllParameters(representation); in copyAllParameters() 55 representation.useParametersFrom(this); in copyAllParameters() 61 FilterFxRepresentation representation = (FilterFxRepresentation) a; in useParametersFrom() local 62 setName(representation.getName()); in useParametersFrom() 63 setSerializationName(representation.getSerializationName()); in useParametersFrom() 64 setBitmapResource(representation.getBitmapResource()); in useParametersFrom() [all …]
|
D | FilterBasicRepresentation.java | 52 FilterBasicRepresentation representation = new FilterBasicRepresentation(getName(),0,0,0); in copy() local 53 copyAllParameters(representation); in copy() 54 return representation; in copy() 58 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 59 super.copyAllParameters(representation); in copyAllParameters() 60 representation.useParametersFrom(this); in copyAllParameters() 66 FilterBasicRepresentation representation = (FilterBasicRepresentation) a; in useParametersFrom() local 67 setMinimum(representation.getMinimum()); in useParametersFrom() 68 setMaximum(representation.getMaximum()); in useParametersFrom() 69 setValue(representation.getValue()); in useParametersFrom() [all …]
|
D | FilterImageBorderRepresentation.java | 41 FilterImageBorderRepresentation representation = in copy() local 43 copyAllParameters(representation); in copy() 44 return representation; in copy() 48 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 49 super.copyAllParameters(representation); in copyAllParameters() 50 representation.useParametersFrom(this); in copyAllParameters() 55 FilterImageBorderRepresentation representation = (FilterImageBorderRepresentation) a; in useParametersFrom() local 56 setName(representation.getName()); in useParametersFrom() 57 setDrawableResource(representation.getDrawableResource()); in useParametersFrom() 62 public boolean equals(FilterRepresentation representation) { in equals() argument [all …]
|
D | FilterColorBorderRepresentation.java | 79 FilterColorBorderRepresentation representation = in copy() local 81 copyAllParameters(representation); in copy() 82 return representation; in copy() 86 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 87 super.copyAllParameters(representation); in copyAllParameters() 88 representation.useParametersFrom(this); in copyAllParameters() 93 FilterColorBorderRepresentation representation = (FilterColorBorderRepresentation) a; in useParametersFrom() local 94 setName(representation.getName()); in useParametersFrom() 95 setColor(representation.getColor()); in useParametersFrom() 96 mParamColor.copyPalletFrom(representation.mParamColor); in useParametersFrom() [all …]
|
D | FilterTinyPlanetRepresentation.java | 42 FilterTinyPlanetRepresentation representation = new FilterTinyPlanetRepresentation(); in copy() local 43 copyAllParameters(representation); in copy() 44 return representation; in copy() 48 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 49 super.copyAllParameters(representation); in copyAllParameters() 50 representation.useParametersFrom(this); in copyAllParameters() 55 FilterTinyPlanetRepresentation representation = (FilterTinyPlanetRepresentation) a; in useParametersFrom() local 57 mAngle = representation.mAngle; in useParametersFrom() 58 setZoom(representation.getZoom()); in useParametersFrom() 82 public boolean equals(FilterRepresentation representation) { in equals() argument [all …]
|
D | ImageFilterKMeans.java | 38 …FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentat… in getDefaultRepresentation() local 39 representation.setName("KMeans"); in getDefaultRepresentation() 40 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 41 representation.setFilterClass(ImageFilterKMeans.class); in getDefaultRepresentation() 42 representation.setMaximum(20); in getDefaultRepresentation() 43 representation.setMinimum(2); in getDefaultRepresentation() 44 representation.setValue(4); in getDefaultRepresentation() 45 representation.setDefaultValue(4); in getDefaultRepresentation() 46 representation.setPreviewValue(4); in getDefaultRepresentation() 47 representation.setTextId(R.string.kmeans); in getDefaultRepresentation() [all …]
|
D | ImageFilterWBalance.java | 33 FilterRepresentation representation = new FilterDirectRepresentation("WBalance"); in getDefaultRepresentation() local 34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 35 representation.setFilterClass(ImageFilterWBalance.class); in getDefaultRepresentation() 36 representation.setFilterType(FilterRepresentation.TYPE_WBALANCE); in getDefaultRepresentation() 37 representation.setTextId(R.string.wbalance); in getDefaultRepresentation() 38 representation.setShowParameterValue(false); in getDefaultRepresentation() 39 representation.setEditorId(ImageOnlyEditor.ID); in getDefaultRepresentation() 40 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 41 representation.setIsBooleanFilter(true); in getDefaultRepresentation() 42 return representation; in getDefaultRepresentation() [all …]
|
D | ImageFilterDownsample.java | 38 …FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentat… in getDefaultRepresentation() local 39 representation.setName("Downsample"); in getDefaultRepresentation() 40 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 42 representation.setFilterClass(ImageFilterDownsample.class); in getDefaultRepresentation() 43 representation.setMaximum(100); in getDefaultRepresentation() 44 representation.setMinimum(1); in getDefaultRepresentation() 45 representation.setValue(50); in getDefaultRepresentation() 46 representation.setDefaultValue(50); in getDefaultRepresentation() 47 representation.setPreviewValue(3); in getDefaultRepresentation() 48 representation.setTextId(R.string.downsample); in getDefaultRepresentation() [all …]
|
D | ImageFilterShadows.java | 31 FilterBasicRepresentation representation = in getDefaultRepresentation() local 33 representation.setName("Shadows"); in getDefaultRepresentation() 34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 35 representation.setFilterClass(ImageFilterShadows.class); in getDefaultRepresentation() 36 representation.setTextId(R.string.shadow_recovery); in getDefaultRepresentation() 37 representation.setMinimum(-100); in getDefaultRepresentation() 38 representation.setMaximum(100); in getDefaultRepresentation() 39 representation.setDefaultValue(0); in getDefaultRepresentation() 40 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 41 return representation; in getDefaultRepresentation()
|
D | ImageFilterExposure.java | 30 FilterBasicRepresentation representation = in getDefaultRepresentation() local 32 representation.setName("Exposure"); in getDefaultRepresentation() 33 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 34 representation.setFilterClass(ImageFilterExposure.class); in getDefaultRepresentation() 35 representation.setTextId(R.string.exposure); in getDefaultRepresentation() 36 representation.setMinimum(-100); in getDefaultRepresentation() 37 representation.setMaximum(100); in getDefaultRepresentation() 38 representation.setDefaultValue(0); in getDefaultRepresentation() 39 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 40 return representation; in getDefaultRepresentation()
|
D | ImageFilterVibrance.java | 30 FilterBasicRepresentation representation = in getDefaultRepresentation() local 32 representation.setName("Vibrance"); in getDefaultRepresentation() 33 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 34 representation.setFilterClass(ImageFilterVibrance.class); in getDefaultRepresentation() 35 representation.setTextId(R.string.vibrance); in getDefaultRepresentation() 36 representation.setMinimum(-100); in getDefaultRepresentation() 37 representation.setMaximum(100); in getDefaultRepresentation() 38 representation.setDefaultValue(0); in getDefaultRepresentation() 39 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 40 return representation; in getDefaultRepresentation()
|
D | ImageFilterContrast.java | 31 FilterBasicRepresentation representation = in getDefaultRepresentation() local 33 representation.setName("Contrast"); in getDefaultRepresentation() 34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 36 representation.setFilterClass(ImageFilterContrast.class); in getDefaultRepresentation() 37 representation.setTextId(R.string.contrast); in getDefaultRepresentation() 38 representation.setMinimum(-100); in getDefaultRepresentation() 39 representation.setMaximum(100); in getDefaultRepresentation() 40 representation.setDefaultValue(0); in getDefaultRepresentation() 41 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 42 return representation; in getDefaultRepresentation()
|
D | ImageFilterNegative.java | 15 FilterRepresentation representation = new FilterDirectRepresentation("Negative"); in getDefaultRepresentation() local 16 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 17 representation.setFilterClass(ImageFilterNegative.class); in getDefaultRepresentation() 18 representation.setTextId(R.string.negative); in getDefaultRepresentation() 19 representation.setShowParameterValue(false); in getDefaultRepresentation() 20 representation.setEditorId(ImageOnlyEditor.ID); in getDefaultRepresentation() 21 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 22 representation.setIsBooleanFilter(true); in getDefaultRepresentation() 23 return representation; in getDefaultRepresentation() 29 public void useRepresentation(FilterRepresentation representation) { in useRepresentation() argument
|
D | ImageFilterSharpen.java | 34 FilterRepresentation representation = new FilterBasicRepresentation("Sharpen", 0, 0, 100); in getDefaultRepresentation() local 35 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 36 representation.setShowParameterValue(true); in getDefaultRepresentation() 37 representation.setFilterClass(ImageFilterSharpen.class); in getDefaultRepresentation() 38 representation.setTextId(R.string.sharpness); in getDefaultRepresentation() 39 representation.setOverlayId(R.drawable.filtershow_button_colors_sharpen); in getDefaultRepresentation() 40 representation.setEditorId(BasicEditor.ID); in getDefaultRepresentation() 41 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 42 return representation; in getDefaultRepresentation() 45 public void useRepresentation(FilterRepresentation representation) { in useRepresentation() argument [all …]
|
D | ImageFilterSaturated.java | 31 FilterBasicRepresentation representation = in getDefaultRepresentation() local 33 representation.setName("Saturated"); in getDefaultRepresentation() 34 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 35 representation.setFilterClass(ImageFilterSaturated.class); in getDefaultRepresentation() 36 representation.setTextId(R.string.saturation); in getDefaultRepresentation() 37 representation.setMinimum(-100); in getDefaultRepresentation() 38 representation.setMaximum(100); in getDefaultRepresentation() 39 representation.setDefaultValue(0); in getDefaultRepresentation() 40 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 41 return representation; in getDefaultRepresentation()
|
D | ImageFilterHue.java | 34 FilterBasicRepresentation representation = in getDefaultRepresentation() local 36 representation.setName("Hue"); in getDefaultRepresentation() 37 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 38 representation.setFilterClass(ImageFilterHue.class); in getDefaultRepresentation() 39 representation.setMinimum(-180); in getDefaultRepresentation() 40 representation.setMaximum(180); in getDefaultRepresentation() 41 representation.setTextId(R.string.hue); in getDefaultRepresentation() 42 representation.setEditorId(BasicEditor.ID); in getDefaultRepresentation() 43 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 44 return representation; in getDefaultRepresentation()
|
D | ImageFilterHighlights.java | 35 FilterBasicRepresentation representation = in getDefaultRepresentation() local 37 representation.setName("Highlights"); in getDefaultRepresentation() 38 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 39 representation.setFilterClass(ImageFilterHighlights.class); in getDefaultRepresentation() 40 representation.setTextId(R.string.highlight_recovery); in getDefaultRepresentation() 41 representation.setMinimum(-100); in getDefaultRepresentation() 42 representation.setMaximum(100); in getDefaultRepresentation() 43 representation.setDefaultValue(0); in getDefaultRepresentation() 44 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 45 return representation; in getDefaultRepresentation()
|
D | FilterCurvesRepresentation.java | 37 FilterCurvesRepresentation representation = new FilterCurvesRepresentation(); in copy() local 38 copyAllParameters(representation); in copy() 39 return representation; in copy() 43 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 44 super.copyAllParameters(representation); in copyAllParameters() 45 representation.useParametersFrom(this); in copyAllParameters() 54 FilterCurvesRepresentation representation = (FilterCurvesRepresentation) a; in useParametersFrom() local 57 Spline sp = representation.mSplines[i]; in useParametersFrom() 78 public boolean equals(FilterRepresentation representation) { in equals() argument 79 if (!super.equals(representation)) { in equals() [all …]
|
D | ImageFilterBwFilter.java | 33 …FilterBasicRepresentation representation = (FilterBasicRepresentation) super.getDefaultRepresentat… in getDefaultRepresentation() local 34 representation.setName("BW Filter"); in getDefaultRepresentation() 35 representation.setSerializationName(SERIALIZATION_NAME); in getDefaultRepresentation() 37 representation.setFilterClass(ImageFilterBwFilter.class); in getDefaultRepresentation() 38 representation.setMaximum(180); in getDefaultRepresentation() 39 representation.setMinimum(-180); in getDefaultRepresentation() 40 representation.setTextId(R.string.bwfilter); in getDefaultRepresentation() 41 representation.setSupportsPartialRendering(true); in getDefaultRepresentation() 42 return representation; in getDefaultRepresentation()
|
D | FilterChanSatRepresentation.java | 86 FilterChanSatRepresentation representation = new FilterChanSatRepresentation(); in copy() local 87 copyAllParameters(representation); in copy() 88 return representation; in copy() 92 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 93 super.copyAllParameters(representation); in copyAllParameters() 94 representation.useParametersFrom(this); in copyAllParameters() 99 FilterChanSatRepresentation representation = (FilterChanSatRepresentation) a; in useParametersFrom() local 102 mAllParam[i].copyFrom(representation.mAllParam[i]); in useParametersFrom() 108 public boolean equals(FilterRepresentation representation) { in equals() argument 109 if (!super.equals(representation)) { in equals() [all …]
|
D | FilterDrawRepresentation.java | 188 FilterDrawRepresentation representation = new FilterDrawRepresentation(); in copy() local 189 copyAllParameters(representation); in copy() 190 return representation; in copy() 194 protected void copyAllParameters(FilterRepresentation representation) { in copyAllParameters() argument 195 super.copyAllParameters(representation); in copyAllParameters() 196 representation.useParametersFrom(this); in copyAllParameters() 207 FilterDrawRepresentation representation = (FilterDrawRepresentation) a; in useParametersFrom() local 208 mParamColor.copyPalletFrom(representation.mParamColor); in useParametersFrom() 210 if (representation.mCurrent != null) { in useParametersFrom() 211 mCurrent = (StrokeData) representation.mCurrent.clone(); in useParametersFrom() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
D | FilterShowActivity.java | 302 public void loadEditorPanel(FilterRepresentation representation, in loadEditorPanel() argument 304 if (representation.getEditorId() == ImageOnlyEditor.ID) { in loadEditorPanel() 463 for (FilterRepresentation representation : filtersRepresentations) { in fillEffects() 464 if (representation.getTextId() != 0) { in fillEffects() 465 representation.setName(getString(representation.getTextId())); in fillEffects() 467 mCategoryFiltersAdapter.add(new Action(this, representation)); in fillEffects() 479 for (FilterRepresentation representation : filtersRepresentations) { in fillTools() 480 mCategoryGeometryAdapter.add(new Action(this, representation)); in fillTools() 481 if (representation instanceof FilterDrawRepresentation) { in fillTools() 486 FilterRepresentation representation = new FilterDrawRepresentation(); in fillTools() local [all …]
|