Home | History | Annotate | Download | only in pipeline

Lines Matching defs:representation

81         FilterRepresentation representation = null;
83 representation = mFilters.elementAt(position).copy();
85 return representation;
103 public int getPositionForRepresentation(FilterRepresentation representation) {
105 if (sameSerializationName(mFilters.elementAt(i), representation)) {
140 FilterRepresentation representation = mFilters.elementAt(position);
141 if (representation != null) {
142 representation = representation.copy();
144 return representation;
185 for (FilterRepresentation representation : mFilters) {
186 if (representation.getFilterType() == type
187 && !representation.isNil()) {
195 for (FilterRepresentation representation : mFilters) {
196 if (representation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY
197 && !representation.isNil()) {
200 if (representation.getFilterType() == FilterRepresentation.TYPE_BORDER
201 && !representation.isNil()) {
204 if (representation.getFilterType() == FilterRepresentation.TYPE_VIGNETTE
205 && !representation.isNil()) {
208 if (representation.getFilterType() == FilterRepresentation.TYPE_TINYPLANET
209 && !representation.isNil()) {
313 for (FilterRepresentation representation : mFilters) {
314 Log.v(LOGTAG, " filter " + n + " : " + representation.toString());
347 public void addFilter(FilterRepresentation representation) {
348 if (representation instanceof FilterUserPresetRepresentation) {
349 ImagePreset preset = ((FilterUserPresetRepresentation) representation).getImagePreset();
362 } else if (representation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY) {
365 if (sameSerializationName(representation, mFilters.elementAt(i))) {
376 if (!representation.isNil()) {
377 mFilters.insertElementAt(representation, index);
379 } else if (representation.getFilterType() == FilterRepresentation.TYPE_BORDER) {
380 removeFilter(representation);
381 if (!isNoneBorderFilter(representation)) {
382 mFilters.add(representation);
384 } else if (representation.getFilterType() == FilterRepresentation.TYPE_FX) {
391 if (!isNoneFxFilter(representation)) {
392 mFilters.add(i, representation);
397 if (!replaced && !isNoneFxFilter(representation)) {
398 mFilters.add(0, representation);
401 mFilters.add(representation);
419 private boolean isNoneBorderFilter(FilterRepresentation representation) {
420 return representation instanceof FilterImageBorderRepresentation &&
421 ((FilterImageBorderRepresentation) representation).getDrawableResource() == 0;
424 private boolean isNoneFxFilter(FilterRepresentation representation) {
425 return representation instanceof FilterFxRepresentation &&
426 ((FilterFxRepresentation) representation).getNameResource() == R.string.none;
431 FilterRepresentation representation = mFilters.elementAt(i);
432 if (sameSerializationName(representation, filterRepresentation)) {
433 return representation;
509 FilterRepresentation representation = mFilters.elementAt(i);
510 if (representation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY) {
514 if (representation.getFilterType() == FilterRepresentation.TYPE_BORDER) {
521 bitmap = environment.applyRepresentation(representation, bitmap);
560 FilterRepresentation representation = mFilters.elementAt(i);
561 if (representation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY
562 || representation.getFilterType() == FilterRepresentation.TYPE_BORDER) {
568 environment.applyRepresentation(representation, in, out);
578 FilterRepresentation representation = mFilters.elementAt(i);
579 if (!representation.supportsPartialRendering()) {
619 FilterRepresentation representation = mFilters.elementAt(i);
620 ImageFilter filter = filtersManager.getFilterForRepresentation(representation);