Searched refs:width (Results 1 - 25 of 643) sorted by relevance

1234567891011>>

/packages/services/Car/evs/app/
H A DFormatConvert.h26 // U/V array. It assumes an even width and height for the overall image, and a horizontal
28 void copyNV21toRGB32(unsigned width, unsigned height,
35 // by another 1/2 x 1/2 V array. It assumes an even width and height for the overall image,
38 void copyYV12toRGB32(unsigned width, unsigned height,
45 // U/V array. It assumes an even width and height for the overall image, and a horizontal
47 void copyYUYVtoRGB32(unsigned width, unsigned height,
55 void copyMatchedInterleavedFormats(unsigned width, unsigned height,
H A DTexWrapper.h24 TexWrapper(GLuint textureId, unsigned width, unsigned height);
28 unsigned width() { return w; }; function in class:TexWrapper
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLPaint.java33 public void setLineWidth(float width) { argument
34 Utils.assertTrue(width >= 0);
35 mLineWidth = width;
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DImageUtils.h59 * width: Width of input image
62 static void rgb2yvu(ImageType out, ImageType in, int width, int height);
64 static void rgba2yvu(ImageType out, ImageType in, int width, int height);
73 * width: Width of input image
76 static void yvu2rgb(ImageType out, ImageType in, int width, int height);
77 static void yvu2bgr(ImageType out, ImageType in, int width, int height);
84 * width: Width of input image
91 static ImageType rgb2gray(ImageType in, int width, int height);
92 static ImageType rgb2gray(ImageType out, ImageType in, int width, int height);
97 static ImageType readBinaryPPM(const char *filename, int &width, in
143 unsigned short width; member in struct:__anon8
[all...]
H A DMosaicTypes.h72 int width, height; member in class:MosaicFrame
80 width = _width;
84 image = ImageUtils::allocateImage(width, height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS);
100 return (image + (width*height));
108 return (image + (width*height*2));
116 ImageType U = image + (width*height);
117 return U[y*width+x];
125 ImageType U = image + (width*height*2);
126 return U[y*width+x];
139 double width; member in struct:__anon9
[all...]
H A DImageUtils.cpp28 void ImageUtils::rgba2yvu(ImageType out, ImageType in, int width, int height) argument
32 ImageType vimg = yimg + width*height;
33 ImageType uimg = vimg + width*height;
37 for (int ij = 0; ij < width; ij++) {
73 void ImageUtils::rgb2yvu(ImageType out, ImageType in, int width, int height) argument
77 ImageType vimg = yimg + width*height;
78 ImageType uimg = vimg + width*height;
82 for (int ij = 0; ij < width; ij++) {
116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height) argument
121 ImageType out = ImageUtils::allocateImage(width, heigh
146 rgb2gray(ImageType out, ImageType in, int width, int height) argument
176 imageTypeToRowPointers(ImageType in, int width, int height) argument
190 yvu2rgb(ImageType out, ImageType in, int width, int height) argument
235 yvu2bgr(ImageType out, ImageType in, int width, int height) argument
281 readBinaryPPM(const char *filename, int &width, int &height) argument
311 writeBinaryPPM(ImageType image, const char *filename, int width, int height, int numChannels) argument
333 allocateImage(int width, int height, int numChannels, short int border) argument
355 allocateImage(unsigned short width, unsigned short height) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DSize.java37 private final int width; field in class:Size
41 this.width = point.x;
47 this.width = size.getWidth();
51 public Size(int width, int height) { argument
52 this.width = width;
57 return new Size(rectangle.width(), rectangle.height());
66 this.width = other.width;
71 this.width
83 public int width() { method in class:Size
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTriangleShape.java36 public static TriangleShape create(float width, float height, boolean isPointingUp) { argument
40 triangularPath.lineTo(width, height);
41 triangularPath.lineTo(width / 2, 0);
45 triangularPath.lineTo(width / 2, height);
46 triangularPath.lineTo(width, 0);
49 return new TriangleShape(triangularPath, width, height);
/packages/apps/Dialer/java/com/android/dialer/callcomposer/util/
H A DBitmapResizer.java40 int width = image.getWidth();
47 "BitmapResizer.resizeForEnrichedCalling", "starting height: %d, width: %d", height, width);
49 if (width <= MAX_OUTPUT_RESOLUTION && height <= MAX_OUTPUT_RESOLUTION) {
51 return Bitmap.createBitmap(image, 0, 0, width, height, matrix, true);
55 if (width > height) {
57 ratio = MAX_OUTPUT_RESOLUTION / (float) width;
65 "ending height: %f, width: %f",
67 width * ratio);
70 return Bitmap.createBitmap(image, 0, 0, width, heigh
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
H A DBitmaps.java25 public static Bitmap createTestBitmap(int width, int height) { argument
26 final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DMediaPickerMessagePartData.java26 final Uri contentUri, final int width, final int height) {
27 this(startRect, null /* messageText */, contentType, contentUri, width, height);
31 final String contentType, final Uri contentUri, final int width, final int height) {
32 this(startRect, messageText, contentType, contentUri, width, height,
37 final Uri contentUri, final int width, final int height,
39 this(startRect, null /* messageText */, contentType, contentUri, width, height,
44 final String contentType, final Uri contentUri, final int width, final int height,
46 super(messageText, contentType, contentUri, width, height, onlySingleAttachment);
25 MediaPickerMessagePartData(final Rect startRect, final String contentType, final Uri contentUri, final int width, final int height) argument
30 MediaPickerMessagePartData(final Rect startRect, final String messageText, final String contentType, final Uri contentUri, final int width, final int height) argument
36 MediaPickerMessagePartData(final Rect startRect, final String contentType, final Uri contentUri, final int width, final int height, final boolean onlySingleAttachment) argument
43 MediaPickerMessagePartData(final Rect startRect, final String messageText, final String contentType, final Uri contentUri, final int width, final int height, final boolean onlySingleAttachment) argument
/packages/apps/Camera2/src/com/android/camera/burst/
H A DBurstController.java55 private final int width; field in class:BurstController.ImageStreamProperties
60 public ImageStreamProperties(int width, int height, argument
63 this.width = width;
70 return width;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAbstractSlotRenderer.java47 Texture content, int width, int height, int rotation) {
52 width = height = Math.min(width, height);
54 canvas.translate(width / 2, height / 2);
56 canvas.translate(-width / 2, -height / 2);
61 (float) width / content.getWidth(),
69 protected void drawVideoOverlay(GLCanvas canvas, int width, int height) { argument
78 int s = Math.min(width, height) / 6;
79 mVideoPlayIcon.draw(canvas, (width - s) / 2, (height - s) / 2, s, s);
82 protected void drawPanoramaIcon(GLCanvas canvas, int width, in argument
46 drawContent(GLCanvas canvas, Texture content, int width, int height, int rotation) argument
99 drawPressedUpFrame(GLCanvas canvas, int width, int height) argument
106 drawPressedFrame(GLCanvas canvas, int width, int height) argument
110 drawSelectedFrame(GLCanvas canvas, int width, int height) argument
114 drawFrame(GLCanvas canvas, Rect padding, Texture frame, int x, int y, int width, int height) argument
[all...]
H A DTiledScreenNail.java62 public TiledScreenNail(int width, int height) { argument
63 setSize(width, height);
75 private void setSize(int width, int height) { argument
76 if (width == 0 || height == 0) {
77 width = sMaxSide;
80 float scale = Math.min(1, (float) sMaxSide / Math.max(width, height));
81 mWidth = Math.round(scale * width);
97 // Now both are TiledScreenNail. Move over the information about width,
114 public void updatePlaceholderSize(int width, int height) { argument
116 if (width
155 draw(GLCanvas canvas, int x, int y, int width, int height) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DImageCanvas.java27 * Dimensions holds the desired width, height, and scale for a bitmap being
31 public int width; field in class:ImageCanvas.Dimensions
47 public Dimensions(int width, int height, float scale, float fontSize) { argument
48 this.width = width;
56 return String.format("Dimens [%d x %d]", width, height);
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DBitmapUtils.java32 * @param width The desired width.
36 public static Bitmap scaleBitmap(Bitmap bm, int width, int height) { argument
37 if (bm == null || (bm.getHeight() == height && bm.getWidth() == width)) {
46 if (bm.getWidth() > width) {
47 widthScale = (float) width / bm.getWidth();
76 * @param width the width to crop to.
80 public static Bitmap cropBitmap(Bitmap bm, int width, int height) { argument
84 if (bm.getHeight() < height || bm.getWidth() < width) {
[all...]
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetNative.java33 * @param width the width of the input image.
36 * @param outputSize the width and height of the square output image.
40 public static native void process(Bitmap in, int width, int height, Bitmap out, int outputSize, argument
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DMosaicRenderer.java41 * Pass the drawing surface's width and height to initialize the
44 * @param width width of the drawing surface in pixels.
48 public static native void reset(int width, int height, boolean isLandscapeOrientation); argument
/packages/apps/Gallery2/src/com/android/photos/data/
H A DGalleryBitmapPool.java42 // to the pool with different non-square aspect ratios but the same width, as
71 private SparseArrayBitmapPool getPoolForDimensions(int width, int height) { argument
72 int index = getPoolIndexForDimensions(width, height);
80 private int getPoolIndexForDimensions(int width, int height) { argument
81 if (width <= 0 || height <= 0) {
84 if (width == height) {
88 if (width > height) {
90 max = width;
92 min = width;
125 * @return Bitmap from the pool with the desired height/width o
127 get(int width, int height) argument
[all...]
/packages/apps/Gallery2/jni/filters/
H A Dnegative.c19 void JNIFUNCF(ImageFilterNegative, nativeApplyFilter, jobject bitmap, jint width, jint height) argument
24 int tot_len = height * width * 4;
H A Dredeye.c20 void JNIFUNCF(ImageFilterRedEye, nativeApplyFilter, jobject bitmap, jint width, jint height, jshortArray vrect) argument
27 filterRedEye(rgb,rgb,width,height,rect);
/packages/services/BuiltInPrintService/jni/plugins/
H A Dwprint_mupdf.h41 * buffer must be large enough to contain width * height * 3 (RGB). Returns success.
43 status_t (*renderPageStripe)(pdf_render_ifc_t *self, int page, int width,
47 * Determine the width and height of a particular page (1-based), returning success.
50 double *width, double *height);
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
H A DFixedAspectSurfaceView.java30 * width and the height are exactly determined by the layout. To avoid this, ensure that either the
31 * height or the width is adjustable by the view; for example, by setting the layout parameters to
36 /** Desired width/height ratio */
50 Assert.checkArgument(scaleHeight != scaleWidth, "Must either scale width or height");
58 * @param aspect the desired width/height ratio in the current UI orientation. Must be a positive
69 int width = MeasureSpec.getSize(widthMeasureSpec);
74 width = (int) (height * mAspectRatio);
76 height = (int) (width / mAspectRatio);
79 // Override width/height if needed for EXACTLY and AT_MOST specs
80 width
[all...]
/packages/apps/Dialer/java/com/android/incallui/call/
H A DInCallVideoCallCallbackNotifier.java72 * @param width New peer width.
75 public void peerDimensionsChanged(DialerCall call, int width, int height) { argument
77 listener.onUpdatePeerDimensions(call, width, height);
85 * @param width The new camera video width.
88 public void cameraDimensionsChanged(DialerCall call, int width, int height) { argument
90 listener.onCameraDimensionsChange(call, width, height);
105 void onUpdatePeerDimensions(DialerCall call, int width, int height); argument
111 * @param width Th
114 onCameraDimensionsChange(DialerCall call, int width, int height) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DCaptureLayoutHelper.java224 public void onNonDecorWindowSizeChanged(int width, int height, int rotation) { argument
225 mWindowWidth = width;
233 * activity layout width, height and aspect ratio.
235 * @param width width of the main activity layout, excluding system decor such
244 private PositionConfiguration getPositionConfiguration(int width, int height, argument
246 boolean landscape = width > height;
252 config.mPreviewRect.set(0, 0, width, height);
255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, heigh
[all...]

Completed in 608 milliseconds

1234567891011>>