Searched refs:height (Results 1 - 25 of 632) 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);
29 unsigned height() { return h; }; function in class:TexWrapper
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DImageUtils.h60 * height: Height 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);
74 * height: Height 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);
85 * height: Height 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, int &height);
144 unsigned short height; member in struct:__anon8
[all...]
H A DMosaicTypes.h72 int width, height; member in class:MosaicFrame
81 height = _height;
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);
125 ImageType U = image + (width*height*2);
H A DPyramid.cpp28 real width, real height, real border)
31 int lines, size = calcStorage(width, height, border2, levels, &lines);
43 curr->height = height;
49 for (int j = height + border2; j--; y++, position += curr->pitch) {
54 height >>= 1;
62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) argument
66 calloc(sizeof(PyramidShort) + sizeof(short *) * (height + border2) +
67 sizeof(short) * (width + border2) * (height + border2), 1);
71 short *position = (short *) &y[height
27 allocatePyramidPacked(real levels, real width, real height, real border) argument
96 calcStorage(real width, real height, real border2, int levels, int *lines) argument
115 int off, off2, height, h, w; local
[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;
36 for (int ii = 0; ii < height; ii++) {
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;
81 for (int ii = 0; ii < height; ii++) {
116 ImageType ImageUtils::rgb2gray(ImageType in, int width, int height) argument
121 ImageType out = ImageUtils::allocateImage(width, height,
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.java38 private final int height; field in class:Size
42 this.height = point.y;
48 this.height = size.getHeight();
51 public Size(int width, int height) { argument
53 this.height = height;
57 return new Size(rectangle.width(), rectangle.height());
67 this.height = other.height;
72 this.height
87 public int height() { method in class:Size
[all...]
/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);
62 (float) height / content.getHeight());
69 protected void drawVideoOverlay(GLCanvas canvas, int width, int height) { argument
70 // Scale the video overlay to the height of the thumbnail and put it
73 float scale = (float) height / v.getHeight();
78 int s = Math.min(width, height) /
46 drawContent(GLCanvas canvas, Texture content, int width, int height, int rotation) argument
82 drawPanoramaIcon(GLCanvas canvas, int width, int height) 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...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/util/
H A DBitmapResizer.java41 int height = image.getHeight();
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) {
60 ratio = MAX_OUTPUT_RESOLUTION / (float) height;
65 "ending height: %f, width: %f",
66 height * ratio,
70 return Bitmap.createBitmap(image, 0, 0, width, height, matri
[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.java56 private final int height; field in class:BurstController.ImageStreamProperties
60 public ImageStreamProperties(int width, int height, argument
64 this.height = height;
74 return height;
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTriangleShape.java36 public static TriangleShape create(float width, float height, boolean isPointingUp) { argument
39 triangularPath.moveTo(0, height);
40 triangularPath.lineTo(width, height);
45 triangularPath.lineTo(width / 2, height);
49 return new TriangleShape(triangularPath, width, height);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DImageCanvas.java27 * Dimensions holds the desired width, height, and scale for a bitmap being
32 public int height; field in class:ImageCanvas.Dimensions
47 public Dimensions(int width, int height, float scale, float fontSize) { argument
49 this.height = height;
56 return String.format("Dimens [%d x %d]", width, height);
H A DAutoResizeListView.java26 * A list view that auto resizes depending on the height of the viewing frame. This means this
46 // The desired height is the available height we have for VIEWING.
51 // Measure height and obey the measure mode.
52 final int height;
54 height = heightSize;
57 height = Math.min(desiredHeight, heightSize);
61 heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, heightMode);
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DBitmapUtils.java33 * @param height The desired height.
36 public static Bitmap scaleBitmap(Bitmap bm, int width, int height) { argument
37 if (bm == null || (bm.getHeight() == height && bm.getWidth() == width)) {
42 if (bm.getHeight() > height) {
43 heightScale = (float) height / bm.getHeight();
77 * @param height the height to crop to.
80 public static Bitmap cropBitmap(Bitmap bm, int width, int height) { argument
84 if (bm.getHeight() < height || b
[all...]
/packages/apps/Camera2/src/com/android/camera/tinyplanet/
H A DTinyPlanetNative.java34 * @param height the height 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/Gallery2/src/com/android/photos/views/
H A DSquareImageView.java44 int height = width;
46 height = Math.min(height, MeasureSpec.getSize(heightMeasureSpec));
48 setMeasuredDimension(width, height);
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DMosaicRenderer.java41 * Pass the drawing surface's width and height to initialize the
45 * @param height height 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.java71 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) {
89 min = height;
93 max = height;
125 * @return Bitmap from the pool with the desired height/width or null if none available.
127 public Bitmap 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.
44 int height, float zoom, char *buffer);
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
70 int height = MeasureSpec.getSize(heightMeasureSpec);
74 width = (int) (height * mAspectRatio);
76 height = (int) (width / mAspectRatio);
79 // Override width/height if needed for EXACTLY and AT_MOST specs
81 height
[all...]
/packages/apps/Dialer/java/com/android/incallui/call/
H A DInCallVideoCallCallbackNotifier.java73 * @param height New peer height.
75 public void peerDimensionsChanged(DialerCall call, int width, int height) { argument
77 listener.onUpdatePeerDimensions(call, width, height);
86 * @param height The new camera video height.
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
112 * @param height Th
114 onCameraDimensionsChange(DialerCall call, int width, int height) argument
[all...]

Completed in 1614 milliseconds

1234567891011>>