Searched refs:model (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/awt/java/awt/image/
H A DImageConsumer.java98 * @param model
101 public void setColorModel(ColorModel model); argument
114 * @param model
124 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument
138 * @param model
148 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument
H A DRGBImageFilter.java33 * The original model is the ColorModel to be replaced by the new model when
39 * The new model is the ColorModel with which to replace the original model
92 * Replaces the original color model and the new one.
105 public void setColorModel(ColorModel model) { argument
106 if (model instanceof IndexColorModel && canFilterIndexColorModel) {
107 IndexColorModel icm = (IndexColorModel)model;
109 substituteColorModel(model, filteredModel);
117 public void setPixels(int x, int y, int w, int h, ColorModel model, in argument
135 setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) argument
[all...]
H A DImageFilter.java108 public void setColorModel(ColorModel model) { argument
109 consumer.setColorModel(model);
112 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument
114 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
117 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument
119 consumer.setPixels(x, y, w, h, model, pixels, off, scansize);
H A DBufferedImageFilter.java127 public void setColorModel(ColorModel model) { argument
128 if (this.cm != null && this.cm != model && raster != null) {
131 this.cm = model;
136 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument
138 setPixels(x, y, w, h, model, pixels, off, scansize, true);
142 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument
144 setPixels(x, y, w, h, model, pixels, off, scansize, false);
189 * @param model
190 * the model.
200 private void setPixels(int x, int y, int w, int h, ColorModel model, Objec argument
[all...]
H A DAreaAveragingScaleFilter.java113 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument
116 super.setPixels(x, y, w, h, model, pixels, off, scansize);
118 setFilteredPixels(x, y, w, h, model, pixels, off, scansize);
123 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument
126 super.setPixels(x, y, w, h, model, pixels, off, scansize);
128 setFilteredPixels(x, y, w, h, model, pixels, off, scansize);
155 * @param model
156 * the color model of the source pixels.
164 private void setFilteredPixels(int x, int y, int w, int h, ColorModel model, Object pixels, argument
211 rgb = model
[all...]
H A DMultiPixelPackedSampleModel.java200 MultiPixelPackedSampleModel model = (MultiPixelPackedSampleModel)o;
201 return this.width == model.width && this.height == model.height
202 && this.numBands == model.numBands && this.dataType == model.dataType
203 && this.pixelBitStride == model.pixelBitStride && this.bitMask == model.bitMask
204 && this.pixelsPerDataElement == model.pixelsPerDataElement
205 && this.dataElementSize == model.dataElementSize
206 && this.dataBitOffset == model
[all...]
H A DCropImageFilter.java84 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument
134 consumer.setPixels(destX, destY, destWidth, destHeight, model, pixels, newOffset, scansize);
138 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument
188 consumer.setPixels(destX, destY, destWidth, destHeight, model, pixels, newOffset, scansize);
H A DReplicateScaleFilter.java119 public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, argument
148 consumer.setPixels(dstX, dy, dx - dstX, 1, model, buff, dstX, destWidth);
154 public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, argument
183 consumer.setPixels(dstX, dy, dx - dstX, 1, model, buff, dstX, destWidth);
H A DPixelGrabber.java88 public void setColorModel(ColorModel model) { argument
93 ColorModel model, byte[] pixels, int srcOff, int srcScan) {
133 cm = model;
134 if(model != ColorModel.getRGBdefault()){
144 if(!isRGB && cm == model){
167 ColorModel model, int[] pixels, int srcOff, int srcScan) {
211 cm = model;
217 if(cm == model){
92 setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOff, int srcScan) argument
166 setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, int[] pixels, int srcOff, int srcScan) argument
H A DSinglePixelPackedSampleModel.java225 SinglePixelPackedSampleModel model = (SinglePixelPackedSampleModel)o;
226 return this.width == model.width && this.height == model.height
227 && this.numBands == model.numBands && this.dataType == model.dataType
228 && Arrays.equals(this.bitMasks, model.bitMasks)
229 && Arrays.equals(this.bitOffsets, model.bitOffsets)
230 && Arrays.equals(this.bitSizes, model.bitSizes)
231 && this.scanlineStride == model.scanlineStride;
238 // number of bands in the sample model
[all...]
H A DComponentSampleModel.java321 ComponentSampleModel model = (ComponentSampleModel)o;
322 return this.width == model.width && this.height == model.height
323 && this.numBands == model.numBands && this.dataType == model.dataType
324 && Arrays.equals(this.bandOffsets, model.bandOffsets)
325 && Arrays.equals(this.bankIndices, model.bankIndices)
326 && this.numBands == model.numBands && this.numBanks == model.numBanks
327 && this.scanlineStride == model
[all...]
H A DMemoryImageSource.java498 * @param model
499 * the model.
509 private void init(int width, int height, ColorModel model, byte pixels[], int off, int scan, argument
514 this.cm = model;
531 * @param model
532 * the model.
542 private void init(int width, int height, ColorModel model, int pixels[], int off, int scan, argument
547 this.cm = model;
H A DIndexColorModel.java31 * The Class IndexColorModel represents a color model in which the color values
92 * Instantiates a new index color model.
164 * Instantiates a new index color model.
176 * whether this color model uses alpha.
241 * Instantiates a new index color model by building the color map from
277 * Instantiates a new index color model by building the color map from
312 * Instantiates a new index color model by building the color map from
344 * Instantiates a new index color model.
356 * whether this color model uses alpha.
419 * Instantiates a new index color model
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/image/
H A DOffscreenImage.java162 * int array and image force to default color model - int ARGB. The rest
165 public void setPixels(int x, int y, int w, int h, ColorModel model, argument
169 if(model == null) {
173 cm = model;
178 if(model == null) {
179 model = cm;
181 if(cm != model){
185 if(cm == model && model.getTransferType() == DataBuffer.TYPE_INT &&
208 buff[idx] = model
230 setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) argument
[all...]
H A DImageDecoder.java205 ColorModel model,
216 ic.setPixels(x, y, w, h, model, pix, off, scansize);
223 ColorModel model,
234 ic.setPixels(x, y, w, h, model, pix, off, scansize);
202 setPixels( int x, int y, int w, int h, ColorModel model, byte pix[], int off, int scansize ) argument
220 setPixels( int x, int y, int w, int h, ColorModel model, int pix[], int off, int scansize ) argument
/frameworks/base/awt/com/android/internal/awt/
H A DAndroidImageDecoder.java66 ColorModel model; // The corresponding AWT color model field in class:AndroidImageDecoder
105 model = createColorModel();
106 setColorModel(model);
122 * Create the AWT color model
124 * ???AWT: Android Bitmaps are always of type: ARGB-8888-Direct color model
127 * that returns a native model, and the conversion is then handled
129 * the bitDepth, (and the color palette for an index color model)
130 * from the image and construct the correct color model here.
173 // Create gray color model
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLU.java122 * specified object coordinates into window coordinates using model, proj,
131 * @param model the current modelview matrix
132 * @param modelOffset the offset into the model array where the modelview
148 float[] model, int modelOffset, float[] project, int projectOffset,
156 model, modelOffset);
188 * specified window coordinates into object coordinates using model, proj,
197 * @param model the current modelview matrix
198 * @param modelOffset the offset into the model array where the modelview
214 float[] model, int modelOffset, float[] project, int projectOffset,
222 model, modelOffse
147 gluProject(float objX, float objY, float objZ, float[] model, int modelOffset, float[] project, int projectOffset, int[] view, int viewOffset, float[] win, int winOffset) argument
213 gluUnProject(float winX, float winY, float winZ, float[] model, int modelOffset, float[] project, int projectOffset, int[] view, int viewOffset, float[] obj, int objOffset) argument
[all...]
H A DGLLogWrapper.java333 private String getShadeModel(int model) { argument
334 switch(model) {
340 return getHex(model);
/frameworks/base/awt/org/apache/harmony/x/imageio/plugins/png/
H A DPNGImageWriter.java145 SampleModel model = sourceRaster.getSampleModel();
148 int numBands = model.getNumBands();
223 System.out.println("**** model:" + model);
227 if (model instanceof SinglePixelPackedSampleModel) {
240 throw new RuntimeException("Color model not supported yet");
/frameworks/base/core/java/com/android/internal/os/
H A DRuntimeInit.java160 // add the model for the release build
162 String model = Build.MODEL;
163 if (model.length() > 0) {
165 result.append(model);
/frameworks/base/tests/BrowserTestPlugin/jni/
H A Dmain.cpp150 // select the drawing model
151 ANPDrawingModel model = kBitmap_ANPDrawingModel; local
153 // notify the plugin API of the drawing model we wish to use. This must be
156 reinterpret_cast<void*>(model));
158 gLogI.log(kError_ANPLogType, "request model %d err %d", model, err);
/frameworks/base/awt/org/apache/harmony/x/imageio/plugins/jpeg/
H A DJPEGImageWriter.java202 SampleModel model = sourceRaster.getSampleModel();
204 if (model instanceof SinglePixelPackedSampleModel) {
216 throw new RuntimeException("Color model not supported yet");
/frameworks/base/tests/BrowserTestPlugin/jni/event/
H A DEventPlugin.cpp145 switch (evt->data.draw.model) {
150 break; // unknown drawing model
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java396 // add the model for the release build
398 final String model = Build.MODEL;
399 if (model.length() > 0) {
401 buffer.append(model);

Completed in 301 milliseconds