Searched defs:height (Results 76 - 100 of 280) sorted by relevance

1234567891011>>

/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
H A DGalaxy4Wallpaper.java93 int format, int width, int height) {
94 super.onSurfaceChanged(surfaceHolder, format, width, height);
97 mRenderScript.setSurface(surfaceHolder, width, height);
102 mWallpaperRS.init(mDensityDPI, mRenderScript, getResources(), width, height);
105 mWallpaperRS.resize(width, height);
92 onSurfaceChanged(SurfaceHolder surfaceHolder, int format, int width, int height) argument
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
H A DHoloSpiralView.java78 public void surfaceChanged(SurfaceHolder surfaceHolder, int format, int width, int height) { argument
79 super.surfaceChanged(surfaceHolder, format, width, height);
81 mRenderScript.setSurface(surfaceHolder, width, height);
89 mWallpaperRS.resize(width, height);
/packages/wallpapers/NoiseField/src/com/android/noisefield/
H A DNoiseFieldWallpaper.java79 int height) {
80 super.onSurfaceChanged(surfaceHolder, format, width, height);
83 mRenderScript.setSurface(surfaceHolder, width, height);
88 mWallpaperRS.init(mDensityDPI, mRenderScript, getResources(), width, height);
92 mWallpaperRS.resize(width, height);
76 onSurfaceChanged(SurfaceHolder surfaceHolder, int format, int width, int height) argument
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DAlignFeatures.cpp35 width = height = 0;
55 int Align::initialize(int width, int height, bool _quarter_res, float _thresh_still) argument
64 int nrvert = height/60; // and vertical buckets for harris corner detection.
82 reg.Init(width, height, motion_model_type, 20, linear_polish, quarter_res,
88 this->height = height;
90 imageGray = ImageUtils::allocateImage(width, height, 1);
100 ImageUtils::rgb2gray(imageGray, imageRGB, width, height);
109 ImageType *m_rows = ImageUtils::imageTypeToRowPointers(imageGray_, width, height);
H A DBlend.h95 int width, height; member in class:Blend
103 void FrameToMosaicRect(int width, int height, double trs[3][3], BlendRect &brect);
107 int DoMergeAndBlend(MosaicFrame **frames, int nsite, int width, int height, YUVinfo &imgMos, MosaicRect &rect, MosaicRect &cropping_rect, float &progress, bool &cancelComputation);
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:__anon3
[all...]
H A DMosaic.cpp60 int Mosaic::initialize(int blendingType, int stripType, int width, int height, int nframes, bool quarter_res, float thresh_still) argument
73 this->height = height;
86 frames[i] = new MosaicFrame(this->width,this->height,false); // Do no allocate memory for YUV data
100 LOGV("Initialize %d %d", width, height);
101 LOGV("Frame width %d,%d", width, height);
105 aligner->initialize(width, height,quarter_res,thresh_still);
112 blender->initialize(blendingType, stripType, width, height);
128 imageYVU = ImageUtils::allocateImage(this->width, this->height, ImageUtils::IMAGE_TYPE_NUM_CHANNELS);
129 ImageUtils::rgb2yvu(imageYVU, imageRGB, width, height);
234 getMosaic(int &width, int &height) argument
[all...]
/packages/apps/Camera/jni/feature_mos/src/mosaic_renderer/
H A DRenderer.cpp114 // set the viewport size to be the given width and height (pixels).
115 bool Renderer::SetupGraphics(int width, int height) argument
133 mSurfaceHeight = height;
145 // set the viewport size to be the width and height of this FBO.
222 void Renderer::SetInputTextureDimensions(int width, int height) argument
225 mInputTextureHeight = height;
/packages/apps/Camera/src/com/android/camera/
H A DMosaic.java25 * mosaic.setSourceImageDimensions(width, height);
103 * @param height height of the input frames in pixels
105 public native void allocateMosaicMemory(int width, int height); argument
H A DPreviewFrameLayout.java39 public void onSizeChanged(int width, int height); argument
H A DStorage.java55 private static void setImageSize(ContentValues values, int width, int height) { argument
59 values.put(MediaColumns.HEIGHT, height);
81 int width, int height) {
86 jpeg.length, path, width, height);
92 String path, int width, int height) {
104 setImageSize(values, width, height);
79 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument
90 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height) argument
/packages/apps/Camera2/jni/
H A Djpegutilnative.cpp30 * 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/
H A DCaptureLayoutHelper.java224 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...]
H A DMediaSaverImpl.java70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) {
71 addImage(data, title, date, loc, width, height, orientation, exif, l,
77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l,
85 width, height, orientation, mimeType, exif, mContentResolver, l);
97 // When dimensions are unknown, pass 0 as width and height,
98 // and decode image for width and height later in a background thread
103 public void addImage(final byte[] data, String title, Location loc, int width, int height, argument
105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l,
142 private int width, height; field in class:MediaSaverImpl.ImageSaveTask
150 int width, int height, in
69 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l) argument
76 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, String mimeType) argument
149 ImageSaveTask(byte[] data, String title, long date, Location loc, int width, int height, int orientation, String mimeType, ExifInterface exif, ContentResolver resolver, OnMediaSavedListener listener) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
H A DAndroidImageReaderProxy.java46 public static ImageReaderProxy newInstance(int width, int height, int format, int maxImages) { argument
47 return new AndroidImageReaderProxy(android.media.ImageReader.newInstance(width, height,
168 .add("height", getHeight())
/packages/apps/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java91 throw new IllegalArgumentException("Image had bad height/width");
131 * @param height the height of the image
136 ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) throws IOException {
139 height, mimeType);
135 finishPlaceholder(Placeholder placeholder, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
/packages/apps/Camera2/src/com/android/camera/ui/
H A DZoomView.java118 if (region.width() == 0 || region.height() == 0) {
129 options.inSampleSize = getSampleFactor(region.width(), region.height());
132 // on screen. In other words, the width and height will be swapped.
134 // and height.
135 options.inSampleSize = getSampleFactor(region.height(), region.width());
247 if (newRect.height() < viewportHeight) {
282 * Find closest sample factor that is power of 2, based on the given width and height
285 * @param height height of the partial region to decode
288 private int getSampleFactor(int width, int height) { argument
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DAspectRatio.java41 * @param height The height of the aspect ratio, after simplification.
43 private AspectRatio(int width, int height) { argument
45 mHeight = height;
48 public static AspectRatio of(int width, int height) { argument
49 int gcd = BigInteger.valueOf(width).gcd(BigInteger.valueOf(height)).intValue();
51 int simplifiedHeight = height / gcd;
56 return of(size.width(), size.height());
178 int cropTop = (area.height() - cropHeight) / 2;
185 int cropWidth = area.height() * mWidt
[all...]
H A DJpegUtilNative.java46 * The Y plane is assumed to have the same width and height of the entire
49 * have dimensions (floor(width / 2), floor(height / 2)).<br>
58 * (width, height) is a no-op.</li>
67 * @param height the height of the image to compress
96 int width, int height,
110 * @param height the height of the image
119 private static native void copyImagePlaneToBitmap(int width, int height, Object planeBuf, argument
128 int height
95 compressJpegFromYUV420pNative( int width, int height, Object yBuf, int yPStride, int yRStride, Object cbBuf, int cbPStride, int cbRStride, Object crBuf, int crPStride, int crRStride, Object outBuf, int outBufCapacity, int quality, int cropLeft, int cropTop, int cropRight, int cropBottom, int rot90) argument
139 compressJpegFromYUV420p( int width, int height, ByteBuffer yBuf, int yPStride, int yRStride, ByteBuffer cbBuf, int cbPStride, int cbRStride, ByteBuffer crBuf, int crPStride, int crRStride, ByteBuffer outBuf, int quality, int cropLeft, int cropTop, int cropRight, int cropBottom, int rot90) argument
[all...]
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/gallerycommon/src/com/android/gallery3d/common/
H A DBitmapUtils.java42 * minSideLength is used to specify that minimal width or height of a
58 public static int computeSampleSize(int width, int height, argument
61 width, height, minSideLength, maxNumOfPixels);
118 int height = Math.round(bitmap.getHeight() * scale);
120 && height == bitmap.getHeight()) return bitmap;
121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap));
159 int height = Math.round(scale * bitmap.getHeight());
161 canvas.translate((size - width) / 2f, (size - height) / 2f);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/
H A DJPEGOutputStream.java37 public JPEGOutputStream(OutputStream out, int width, int height, int quality, argument
40 setConfig(width, height, quality, format);
43 public boolean setConfig(int width, int height, int quality, int format) { argument
59 if (width > 0 && height > 0) {
61 mHeight = height;
135 native private int setup(OutputStream out, int width, int height, int format, int quality); argument
/packages/apps/Gallery2/jni/filters/
H A Dvibrance.c20 void JNIFUNCF(ImageFilterVibrance, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloat vibrance) argument
25 int len = width * height * 4;
/packages/apps/Gallery2/jni_jpegstream/src/
H A Djpeg_reader.cpp41 int32_t JpegReader::setup(JNIEnv *env, jobject in, int32_t* width, int32_t* height, argument
108 if (height != NULL) {
109 *height = mInfo.output_height;
H A Djpeg_writer.cpp44 int32_t JpegWriter::setup(JNIEnv *env, jobject out, int32_t width, int32_t height, argument
52 if (height <= 0 || width <= 0 || quality <= 0 || quality > 100) {
72 // Initialize width, height, and color space
74 mInfo.image_height = height;

Completed in 554 milliseconds

1234567891011>>