/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | ImageUtils.h | 60 * 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:__anon7 [all...] |
H A D | MosaicTypes.h | 72 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 D | Pyramid.cpp | 28 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 D | ImageUtils.cpp | 28 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...] |
H A D | Mosaic.cpp | 56 int Mosaic::initialize(int blendingType, int stripType, int width, int height, int nframes, bool quarter_res, float thresh_still) argument 69 this->height = height; 82 frames[i] = new MosaicFrame(this->width,this->height,false); // Do no allocate memory for YUV data 95 LOGV("Initialize %d %d", width, height); 96 LOGV("Frame width %d,%d", width, height); 100 aligner->initialize(width, height,quarter_res,thresh_still); 107 blender->initialize(blendingType, stripType, width, height); 123 imageYVU = ImageUtils::allocateImage(this->width, this->height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS); 124 ImageUtils::rgb2yvu(imageYVU, imageRGB, width, height); 221 getMosaic(int &width, int &height) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | Size.java | 38 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 D | AbstractSlotRenderer.java | 47 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...] |
H A D | TiledScreenNail.java | 62 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) { 78 height = sMaxSide * 3 / 4; 80 float scale = Math.min(1, (float) sMaxSide / Math.max(width, height)); 82 mHeight = Math.round(scale * height); 98 // height, and Bitmap, then recycle the other. 114 public void updatePlaceholderSize(int width, int height) { argument 116 if (width == 0 || height 155 draw(GLCanvas canvas, int x, int y, int width, int height) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
H A D | MediaPickerMessagePartData.java | 26 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 D | BurstController.java | 56 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 D | TriangleShape.java | 36 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 D | ImageCanvas.java | 27 * 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 D | AutoResizeListView.java | 26 * 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);
|
H A D | LeaveBehindData.java | 27 final int height; field in class:LeaveBehindData 29 public LeaveBehindData(Conversation conv, ToastBarOperation undoOp, int height) { argument 32 this.height = height; 44 arg.writeInt(height); 50 height = arg.readInt();
|
/packages/apps/Camera2/src/com/android/camera/tinyplanet/ |
H A D | TinyPlanetNative.java | 34 * @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 D | SquareImageView.java | 44 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 D | MosaicRenderer.java | 41 * 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 D | GalleryBitmapPool.java | 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) { 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 D | negative.c | 19 void JNIFUNCF(ImageFilterNegative, nativeApplyFilter, jobject bitmap, jint width, jint height) argument 24 int tot_len = height * width * 4;
|
H A D | redeye.c | 20 void JNIFUNCF(ImageFilterRedEye, nativeApplyFilter, jobject bitmap, jint width, jint height, jshortArray vrect) argument 27 filterRedEye(rgb,rgb,width,height,rect);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | CaptureLayoutHelper.java | 224 public void onNonDecorWindowSizeChanged(int width, int height, int rotation) { argument 226 mWindowHeight = height; 233 * activity layout width, height and aspect ratio. 237 * @param height height of the main activity layout, excluding system decor 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, height); 257 config.mBottomBarRect.set(0, height [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BitmapPool.java | 65 * width as each other and height as each other, but not necessarily the same). 124 * @return The pool key for the provided image dimensions or 0 if either width or height is 127 private int getPoolKey(final int width, final int height) { argument 128 if (width > MAX_SUPPORTED_IMAGE_DIMENSION || height > MAX_SUPPORTED_IMAGE_DIMENSION) { 131 return (width << 16) | height; 139 private Bitmap findPoolBitmap(final int width, final int height) { argument 140 final int poolKey = getPoolKey(width, height); 158 * height and then set that in the bitmap options properly. 160 * TODO: Why do we take a width/height? Shouldn't this already be in the 165 * @param height Th 167 assignPoolBitmap(final BitmapFactory.Options optionsTmp, final int width, final int height) argument 186 decodeSampledBitmapFromResource(final int resourceId, @NonNull final Resources resources, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 226 decodeSampledBitmapFromInputStream(@onNull final InputStream inputStream, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 265 decodeByteArray(@onNull final byte[] bytes, @NonNull final BitmapFactory.Options optionsTmp, final int width, final int height) argument 304 createOrReuseBitmap(final int width, final int height) argument 318 createBitmap(final int width, final int height) argument 353 isFull(final int width, final int height) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | AvatarGroupRequestDescriptor.java | 74 final float height = desiredHeight; 76 final float halfHeight = height / 2F; 100 destArray[1] = new RectF(width - diameter, height - diameter, width, height); 132 final float radius = height / 4F; 133 final float imageTwoCenterY = height - radius; 140 destArray[1] = new RectF(0, halfHeight, halfWidth, height); 141 destArray[2] = new RectF(halfWidth, halfHeight, width, height); 153 destArray[2] = new RectF(0, halfHeight, halfWidth, height); 154 destArray[3] = new RectF(halfWidth, halfHeight, width, height); [all...] |
/packages/apps/Camera2/jni/ |
H A D | jpegutilnative.cpp | 30 * The Y plane is assumed to have the same width and height of the entire image. 32 * dimensions (floor(width / 2), floor(height / 2)). 40 * (width, height) is a no-op. 49 * @param height the height of the image to compress 72 jint width, jint height, 93 return Compress(width, height, // 110 * @param height the height of the output image 119 JNIEnv* env, jclass clazz, jint width, jint height, jobjec 69 Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative( JNIEnv* env, jclass clazz, jint width, jint height, jobject yBuf, jint yPStride, jint yRStride, jobject cbBuf, jint cbPStride, jint cbRStride, jobject crBuf, jint crPStride, jint crRStride, jobject outBuf, jint outBufCapacity, jint quality, jint cropLeft, jint cropTop, jint cropRight, jint cropBottom, jint rot90) argument 118 Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap( JNIEnv* env, jclass clazz, jint width, jint height, jobject planeBuf, jint pStride, jint rStride, jobject outBitmap, jint rot90) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | PhotoDataFactory.java | 44 int height = c.getInt(PhotoDataQuery.COL_HEIGHT); 47 // If the width or height is unknown, attempt to decode it from 49 if (width <= 0 || height <= 0) { 52 + filePath + ":" + width + "x" + height); 62 dimensions = new Size(width, height); 91 int height; 100 height = opts.outHeight; 112 height = b.getHeight(); 113 if (width == 0 || height == 0) { 119 return new Size(width, height); [all...] |