Searched refs:inputFormat (Results 1 - 25 of 53) sorted by relevance

123

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DCrossProcessFilter.java82 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
83 return inputFormat;
105 FrameFormat inputFormat = input.getFormat();
108 if (mProgram == null || inputFormat.getTarget() != mTarget) {
109 initProgram(context, inputFormat.getTarget());
113 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DNegativeFilter.java57 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
58 return inputFormat;
80 FrameFormat inputFormat = input.getFormat();
83 Frame output = context.getFrameManager().newFrame(inputFormat);
86 if (mProgram == null || inputFormat.getTarget() != mTarget) {
87 initProgram(context, inputFormat.getTarget());
H A DPosterizeFilter.java60 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
61 return inputFormat;
83 FrameFormat inputFormat = input.getFormat();
86 Frame output = context.getFrameManager().newFrame(inputFormat);
89 if (mProgram == null || inputFormat.getTarget() != mTarget) {
90 initProgram(context, inputFormat.getTarget());
H A DDocumentaryFilter.java92 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
93 return inputFormat;
115 FrameFormat inputFormat = input.getFormat();
118 if (mProgram == null || inputFormat.getTarget() != mTarget) {
119 initProgram(context, inputFormat.getTarget());
123 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
124 mWidth = inputFormat.getWidth();
125 mHeight = inputFormat.getHeight();
130 Frame output = context.getFrameManager().newFrame(inputFormat);
[all...]
H A DFisheyeFilter.java81 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
82 return inputFormat;
104 FrameFormat inputFormat = input.getFormat();
107 Frame output = context.getFrameManager().newFrame(inputFormat);
110 if (mProgram == null || inputFormat.getTarget() != mTarget) {
111 initProgram(context, inputFormat.getTarget());
115 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
116 updateFrameSize(inputFormat.getWidth(), inputFormat
[all...]
H A DLomoishFilter.java132 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
133 return inputFormat;
179 FrameFormat inputFormat = input.getFormat();
182 if (mProgram == null || inputFormat.getTarget() != mTarget) {
183 initProgram(context, inputFormat.getTarget());
187 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
188 mWidth = inputFormat.getWidth();
189 mHeight = inputFormat.getHeight();
194 Frame output = context.getFrameManager().newFrame(inputFormat);
[all...]
H A DSharpenFilter.java79 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
80 return inputFormat;
102 FrameFormat inputFormat = input.getFormat();
105 Frame output = context.getFrameManager().newFrame(inputFormat);
108 if (mProgram == null || inputFormat.getTarget() != mTarget) {
109 initProgram(context, inputFormat.getTarget());
113 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
114 updateFrameSize(inputFormat.getWidth(), inputFormat
[all...]
H A DVignetteFilter.java73 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
74 return inputFormat;
129 FrameFormat inputFormat = input.getFormat();
132 if (mProgram == null || inputFormat.getTarget() != mTarget) {
133 initProgram(context, inputFormat.getTarget());
137 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
138 mWidth = inputFormat.getWidth();
139 mHeight = inputFormat.getHeight();
144 Frame output = context.getFrameManager().newFrame(inputFormat);
[all...]
H A DGrainFilter.java103 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
104 return inputFormat;
155 FrameFormat inputFormat = input.getFormat();
157 FrameFormat noiseFormat = ImageFormat.create(inputFormat.getWidth() / 2,
158 inputFormat.getHeight() / 2,
163 Frame noiseFrame = context.getFrameManager().newFrame(inputFormat);
166 Frame output = context.getFrameManager().newFrame(inputFormat);
169 if (mNoiseProgram == null || mGrainProgram == null || inputFormat.getTarget() != mTarget) {
170 initProgram(context, inputFormat.getTarget());
175 if (inputFormat
[all...]
H A DColorTemperatureFilter.java70 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
71 return inputFormat;
93 FrameFormat inputFormat = input.getFormat();
96 if (mProgram == null || inputFormat.getTarget() != mTarget) {
97 initProgram(context, inputFormat.getTarget());
102 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DFlipFilter.java56 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
57 return inputFormat;
87 FrameFormat inputFormat = input.getFormat();
90 if (mProgram == null || inputFormat.getTarget() != mTarget) {
91 initProgram(context, inputFormat.getTarget());
95 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DSepiaFilter.java58 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
59 return inputFormat;
81 FrameFormat inputFormat = input.getFormat();
84 Frame output = context.getFrameManager().newFrame(inputFormat);
87 if (mProgram == null || inputFormat.getTarget() != mTarget) {
88 initProgram(context, inputFormat.getTarget());
H A DTintFilter.java64 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
65 return inputFormat;
94 FrameFormat inputFormat = input.getFormat();
97 if (mProgram == null || inputFormat.getTarget() != mTarget) {
98 initProgram(context, inputFormat.getTarget());
103 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DToPackedGrayFilter.java71 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
72 return convertInputFormat(inputFormat);
82 private FrameFormat convertInputFormat(FrameFormat inputFormat) { argument
85 int w = inputFormat.getWidth();
86 int h = inputFormat.getHeight();
118 FrameFormat inputFormat = input.getFormat();
119 FrameFormat outputFormat = convertInputFormat(inputFormat);
126 MutableFrameFormat tempFrameFormat = inputFormat.mutableCopy();
H A DCropRectFilter.java91 FrameFormat inputFormat = input.getFormat();
100 if (mProgram == null || inputFormat.getTarget() != mTarget) {
101 initProgram(context, inputFormat.getTarget());
105 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
106 updateSourceRect(inputFormat.getWidth(), inputFormat.getHeight());
H A DRedEyeFilter.java91 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
92 return inputFormat;
114 FrameFormat inputFormat = input.getFormat();
117 Frame output = context.getFrameManager().newFrame(inputFormat);
120 if (mProgram == null || inputFormat.getTarget() != mTarget) {
121 initProgram(context, inputFormat.getTarget());
125 if (inputFormat.getWidth() != mWidth || inputFormat.getHeight() != mHeight) {
126 mWidth = inputFormat.getWidth();
127 mHeight = inputFormat
[all...]
H A DSimpleImageFilter.java58 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
59 return inputFormat;
66 FrameFormat inputFormat = input.getFormat();
69 Frame output = context.getFrameManager().newFrame(inputFormat);
72 updateProgramWithTarget(inputFormat.getTarget(), context);
H A DBitmapOverlayFilter.java67 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
68 return inputFormat;
98 FrameFormat inputFormat = input.getFormat();
101 Frame output = context.getFrameManager().newFrame(inputFormat);
104 if (mProgram == null || inputFormat.getTarget() != mTarget) {
105 initProgram(context, inputFormat.getTarget());
H A DBlackWhiteFilter.java97 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
98 return inputFormat;
139 FrameFormat inputFormat = input.getFormat();
142 if (mProgram == null || inputFormat.getTarget() != mTarget) {
143 initProgram(context, inputFormat.getTarget());
147 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DDuotoneFilter.java67 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
68 return inputFormat;
90 FrameFormat inputFormat = input.getFormat();
93 Frame output = context.getFrameManager().newFrame(inputFormat);
96 if (mProgram == null || inputFormat.getTarget() != mTarget) {
97 initProgram(context, inputFormat.getTarget());
H A DFillLightFilter.java72 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
73 return inputFormat;
97 FrameFormat inputFormat = input.getFormat();
100 Frame output = context.getFrameManager().newFrame(inputFormat);
103 if (mProgram == null || inputFormat.getTarget() != mTarget) {
104 initProgram(context, inputFormat.getTarget());
H A DFixedRotationFilter.java54 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
55 return inputFormat;
65 FrameFormat inputFormat = input.getFormat();
71 MutableFrameFormat outputFormat = inputFormat.mutableCopy();
72 int width = inputFormat.getWidth();
73 int height = inputFormat.getHeight();
H A DSaturateFilter.java81 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
82 return inputFormat;
116 FrameFormat inputFormat = input.getFormat();
119 if (mBenProgram == null || inputFormat.getTarget() != mTarget) {
120 initProgram(context, inputFormat.getTarget());
125 Frame output = context.getFrameManager().newFrame(inputFormat);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/performance/
H A DThroughputFilter.java59 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
60 return inputFormat;
88 FrameFormat inputFormat = input.getFormat();
89 int pixelCount = inputFormat.getWidth() * inputFormat.getHeight();
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DFrameBranch.java47 public FrameFormat getOutputFormat(String portName, FrameFormat inputFormat) { argument
48 return inputFormat;

Completed in 157 milliseconds

123