HomeSort by relevance Sort by last modified time
    Searched refs:height (Results 2176 - 2200 of 9458) sorted by null

<<81828384858687888990>>

  /packages/apps/Camera2/src/com/android/camera/
VideoUI.java 101 public void setPreviewSize(int width, int height) {
102 if (width == 0 || height == 0) {
107 if (width > height) {
108 aspectRatio = (float) width / height;
110 aspectRatio = (float) height / width;
277 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
289 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
  /packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
TaskImageContainer.java 73 public final int height; field in class:TaskImageContainer.TaskImage
81 height = aHeight;
236 * @param height image height
244 public Rect guaranteedSafeCrop(int width, int height, @Nullable Rect crop) {
246 return new Rect(0, 0, width, height);
250 || crop.height() <= 0) {
257 safeCrop.bottom = Math.max(Math.min(safeCrop.bottom, height), safeCrop.top);
259 if (safeCrop.width() <= 0 || safeCrop.height() <= 0) {
  /packages/apps/Camera2/src/com/android/camera/util/
JpegUtilNative.java 46 * 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,
128 int height = bitmap.getHeight() local
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/lettertiles/
LetterTileDrawable.java 110 private void drawBitmap(final Bitmap bitmap, final int width, final int height,
113 // height ratio.
117 final int halfLength = (int) (mScale * Math.min(destRect.width(), destRect.height()) / 2);
120 (int) (destRect.centerY() - halfLength + mOffset * destRect.height()),
122 (int) (destRect.centerY() + halfLength + mOffset * destRect.height()));
125 sRect.set(0, 0, width, height);
136 final int minDimension = Math.min(bounds.width(), bounds.height());
159 bounds.centerY() + mOffset * bounds.height() - sRect.exactCenterY(),
234 * If set to -0.5f, the letter will be shifted upwards by 0.5 times the height of the canvas
237 * If set to 0.5f, the letter will be shifted downwards by 0.5 times the height of the canva
    [all...]
  /packages/apps/Dialer/InCallUI/src/com/android/incallui/
VideoCallPresenter.java 125 * The minimum width or height of the preview surface. Used when re-sizing the preview surface
316 * @param height The new height of the surface.
318 public void onSurfaceChanged(int surface, int format, int width, int height) {
479 * @param height the height of the secondary caller info bar.
482 public void onSecondaryCallerInfoVisibilityChanged(boolean isVisible, int height) {
484 "onSecondaryCallerInfoVisibilityChanged : isVisible = " + isVisible + " height = "
485 + height);
486 getUi().adjustPreviewLocation(isVisible /* shiftUp */, height);
1017 int height; local
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BitmapUtils.java 42 * minSideLength is used to specify that minimal width or height of a
58 public static int computeSampleSize(int width, int height,
61 width, height, minSideLength, maxNumOfPixels);
118 int height = Math.round(bitmap.getHeight() * scale); local
120 && height == bitmap.getHeight()) return bitmap;
121 Bitmap target = Bitmap.createBitmap(width, height, getConfig(bitmap));
159 int height = Math.round(scale * bitmap.getHeight()); local
161 canvas.translate((size - width) / 2f, (size - height) / 2f);
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
SinglePhotoDataAdapter.java 94 int height = decoder.getHeight();
97 (float) SIZE_BACKUP / Math.max(width, height));
98 Bitmap bitmap = decoder.decodeRegion(new Rect(0, 0, width, height), options);
118 private void setScreenNail(Bitmap bitmap, int width, int height) {
120 setScreenNail(mBitmapScreenNail, width, height);
187 size.height = mItem.getHeight();
190 size.height = 0;
  /packages/apps/Settings/src/com/android/settings/widget/
ChartGridView.java 108 final int height = getHeight() - getPaddingBottom(); local
116 final int bottom = (int) Math.min(y + secondaryHeight, height);
130 primary.setBounds((int) x, 0, right, height);
135 mBorder.setBounds(0, 0, width, height);
143 canvas.translate(0, height + padding);
151 canvas.translate((width - mid.getWidth()) / 2, height + padding);
159 canvas.translate(width - end.getWidth(), height + padding);
  /external/opencv3/modules/cudalegacy/src/cuda/
NPP_staging.cu 338 ncvAssertCUDAReturn(cudaBindTexture(&alignmentOffset, tex8u, d_src, cfdTex, roi.height * srcStride), NPPST_TEXTURE_BIND_ERROR);
342 ncvAssertCUDAReturn(cudaBindTexture(&alignmentOffset, tex8u, d_src, cfdTex, alignmentOffset + roi.height * srcStride), NPPST_TEXTURE_BIND_ERROR);
347 <<<roi.height, NUM_SCAN_THREADS, 0, nppStGetActiveCUDAstream()>>>
377 ncvAssertReturn(roi.width > 0 && roi.height > 0, NPPST_INVALID_ROI);
386 Ncv32u HeightII = roi.height + 1;
394 ncvAssertReturn(Tmp32_1.pitch() * Tmp32_1.height() == Tmp32_2.pitch() * Tmp32_2.height(), NPPST_MEM_INTERNAL_ERROR);
407 (Ncv32u *)Tmp32_2.ptr(), PaddedHeightII32*sizeof(Ncv32u), NcvSize32u(WidthII, roi.height));
412 (Tmp32_2.ptr(), PaddedHeightII32, Tmp32_1.ptr(), PaddedHeightII32, NcvSize32u(roi.height, WidthII));
433 ncvAssertReturn(roi.width > 0 && roi.height > 0, NPPST_INVALID_ROI)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
ItsUtils.java 52 JSONArray a, boolean normalized, int width, int height)
62 y = (int)Math.floor(a.getDouble(i+1) * height + 0.5f);
64 h = (int)Math.floor(a.getDouble(i+3) * height + 0.5f);
74 h = Math.min(h, height-y);
170 int height = image.getHeight(); local
198 int dataSize = width * height * ImageFormat.getBitsPerPixel(format) / 8;
221 format, i, width, height, rowStride, pixelStride));
224 int h = (i == 0) ? height : height / 2;
  /external/ImageMagick/coders/
caption.c 122 height,
228 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5);
231 if ((width >= image->columns) && (height >= image->rows))
236 ((image->rows != 0) && (height >= image->rows)))
254 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5);
257 if ((width < image->columns) && (height < image->rows))
264 ((image->rows != 0) && (height < image->rows)))
120 height, local
  /external/deqp/modules/gles2/functional/
es2fReadPixelsTests.cpp 172 const int height = 13; local
184 tcu::Texture2D reference(format, width, height);
187 GLU_CHECK_CALL(glViewport(0, 0, width, height));
210 pixelData.resize(rowPitch * height, 0);
213 GLU_CHECK_CALL(glReadPixels(0, 0, width, height, glFormat, glType, &(pixelData[0])));
224 tcu::Texture2D referenceRGBA8 (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), width, height); local
225 tcu::Texture2D resultRGBA8 (tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8), width, height); local
231 tcu::copy(resultRGBA8.getLevel(0), tcu::PixelBufferAccess(format, width, height, 1, rowPitch, 0, &(pixelData[0])));
247 if (tcu::floatThresholdCompare(m_testCtx.getLog(), "Result", "Result", reference.getLevel(0), tcu::PixelBufferAccess(format, width, height, 1, rowPitch, 0, &(pixelData[0])), tcu::Vec4(redThreshold, greenThreshold, blueThreshold, alphaThreshold), tcu::COMPARE_LOG_RESULT))
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DecodeJob.java 36 private final int height; field in class:DecodeJob
48 public DecodeJob(EngineKey resultKey, int width, int height, DataFetcher<A> fetcher,
51 this(resultKey, width, height, fetcher, loadProvider, transformation, transcoder, diskCache, diskCacheStrategy,
56 DecodeJob(EngineKey resultKey, int width, int height, DataFetcher<A> fetcher,
61 this.height = height;
189 decoded = loadProvider.getSourceDecoder().decode(data, width, height);
221 result = loadProvider.getCacheDecoder().decode(cacheFile, width, height);
235 Resource<T> transformed = transformation.transform(decoded, width, height);
  /external/glide/third_party/gif_encoder/src/main/java/com/bumptech/glide/gifencoder/
AnimatedGifEncoder.java 46 private int height; field in class:AnimatedGifEncoder
258 height = h;
261 if (height < 1)
262 height = 240;
377 if ((w != width) || (h != height)) {
379 Bitmap temp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
450 writeShort(height);
471 writeShort(height);
511 LZWEncoder encoder = new LZWEncoder(width, height, indexedPixels, colorDepth);
  /external/libjpeg-turbo/
rdrle.c 86 JDIMENSION width, height; local
118 height = source->header.ymax - source->header.ymin + 1;
123 cinfo->image_height = height;
128 TRACEMS2(cinfo, 1, JTRC_RLE_GRAY, width, height);
131 TRACEMS3(cinfo, 1, JTRC_RLE_MAPGRAY, width, height,
135 TRACEMS3(cinfo, 1, JTRC_RLE_MAPPED, width, height,
139 TRACEMS3(cinfo, 1, JTRC_RLE_FULLMAP, width, height,
143 TRACEMS2(cinfo, 1, JTRC_RLE, width, height);
169 (JDIMENSION) height, (JDIMENSION) 1);
  /external/libvncserver/test/
encodingstest.c 42 static const int width=400,height=300; variable
78 if(server->width!=client->width || server->height!=client->height)
83 for(j=0;j<server->height;j++)
105 cl->frameBuffer=malloc(cl->width*cl->height*cl->format.bitsPerPixel/8);
108 SendFramebufferUpdateRequest(cl,0,0,cl->width,cl->height,FALSE);
226 y1=(rand()%(server->height-1)),y2=(rand()%(server->height-1));
280 server=rfbGetScreen(&argc,argv,width,height,8,3,4);
  /external/opencv3/modules/features2d/src/
draw.cpp 130 Size size( img1size.width + img2size.width, MAX(img1size.height, img2size.height) );
134 if( size.width > outImg.cols || size.height > outImg.rows )
136 outImg1 = outImg( Rect(0, 0, img1size.width, img1size.height) );
137 outImg2 = outImg( Rect(img1size.width, 0, img2size.width, img2size.height) );
144 outImg1 = outImg( Rect(0, 0, img1size.width, img1size.height) );
145 outImg2 = outImg( Rect(img1size.width, 0, img2size.width, img2size.height) );
161 Mat _outImg1 = outImg( Rect(0, 0, img1size.width, img1size.height) );
164 Mat _outImg2 = outImg( Rect(img1size.width, 0, img2size.width, img2size.height) );
  /external/opencv3/modules/java/generator/src/java/
android+CameraBridgeViewBase.java 99 * @param height - the height of the frames that will be delivered
101 public void onCameraViewStarted(int width, int height);
122 * @param height - the height of the frames that will be delivered
124 public void onCameraViewStarted(int width, int height);
145 public void onCameraViewStarted(int width, int height) {
146 mOldStyleListener.onCameraViewStarted(width, height);
281 * @param maxHeight - the maximum height allowed for camera frame
444 * @param height - the height of this SurfaceVie
483 int height = accessor.getHeight(size); local
    [all...]
  /external/skia/src/codec/
SkCodec.cpp 213 // setting rowsDecoded equal to the height.
214 if (kIncompleteInput == result && rowsDecoded != info.height()) {
215 this->fillIncompleteImage(info, pixels, rowBytes, options->fZeroInitialized, info.height(),
259 if (options->fSubset->top() != 0 || options->fSubset->height() != dstInfo.height()) {
290 if (countLines <= 0 || fCurrScanline + countLines > fDstInfo.height()) {
309 if (countLines < 0 || fCurrScanline + countLines > fDstInfo.height()) {
322 SkASSERT(0 <= inputScanline && inputScanline < this->getInfo().height());
332 return this->getInfo().height() - inputScanline - 1;
377 SkASSERT(1 == linesRequested || this->getInfo().height() == linesRequested)
    [all...]
  /external/skia/src/utils/
SkCanvasStateUtils.cpp 61 int32_t height; member in struct:SkCanvasLayerState
69 void* pixels; // The pixels, all (height * rowBytes) of them.
83 height = canvas->getBaseLayerSize().height();
95 int32_t height; member in class:SkCanvasState
228 if (!layer.device()->accessPixels(&pmap) || 0 == pmap.width() || 0 == pmap.height()) {
238 layerState->height = pmap.height();
302 bitmap.installPixels(SkImageInfo::Make(layerState.width, layerState.height,
328 SkAutoTUnref<SkCanvasStack> canvas(new SkCanvasStack(state->width, state->height));
    [all...]
  /frameworks/base/libs/hwui/utils/
NinePatchImpl.cpp 72 } else if (src.width() == 1 && src.height() == 1) {
139 SkScalarToFloat(bounds.height()));
140 ALOGV("======== ninepatch paint bm [%d,%d]\n", bitmap.width(), bitmap.height());
146 bitmap.width() == 0 || bitmap.height() == 0 ||
179 const int bitmapHeight = bitmap.height();
200 bitmap.width(), bitmap.height(),
202 SkScalarToFloat(bounds.width()), SkScalarToFloat(bounds.height()),
211 // The last row always ends with the bottom being bitmap.height and the top
212 // being either yDivs[numYDivs-2] (if yDivs[numYDivs-1]=bitmap.height) or
305 src.fLeft, src.fTop, src.width(), src.height(),
    [all...]
  /frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
CameraSource.java 54 /** Frame height to request from camera. Actual size may not match requested. */
55 @GenerateFieldPort(name = "height", hasDefault = true)
276 private int[] findClosestSize(int width, int height, Camera.Parameters parameters) {
281 int smallestHeight = previewSizes.get(0).height;
288 size.height <= height &&
290 size.height >= closestHeight) {
292 closestHeight = size.height;
295 size.height < smallestHeight) {
297 smallestHeight = size.height;
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
TaskViewThumbnail.java 77 // Visibility optimization, if the thumbnail height is less than the height of the header
113 public void onTaskViewSizeChanged(int width, int height) {
115 if (mTaskViewRect.width() == width && mTaskViewRect.height() == height) {
119 mTaskViewRect.set(0, 0, width, height);
120 setLeftTopRightBottom(0, 0, width, height);
131 int viewHeight = mTaskViewRect.height();
135 (int) (mThumbnailRect.height() * mThumbnailScale));
255 (float) mTaskViewRect.height() / mThumbnailRect.height())
    [all...]
  /frameworks/ex/framesequence/jni/
FrameSequence_gif.cpp 145 && covered.Top + covered.Height <= target.Top + target.Height;
169 copyHeight = imageDesc.Height;
192 const int height = mFrameSequence.getHeight(); local
194 mPreserveBuffer = new Color8888[width * height];
196 for (int y = 0; y < height; y++) {
205 const int height = mFrameSequence.getHeight(); local
210 for (int y = 0; y < height; y++) {
231 const int height = mFrameSequence.getHeight(); local
261 for (int y = 0; y < height; y++)
    [all...]
  /hardware/intel/img/hwcomposer/merrifield/common/observers/
MultiDisplayObserver.cpp 315 mode.vdisplay = timing.height;
318 ITRACE("timing to set: %dx%d@%dHz", timing.width, timing.height, timing.refresh);
377 info->height = videoInfo.displayH;
381 info->width, info->height, info->frameRate);
413 int32_t width, int32_t height,
421 if (width <= 0 || height <= 0 ||
424 ETRACE(" Invalid parameter: %dx%d, %dx%d, %dx%d", width, height, offX, offY, bufWidth, bufHeight);
428 status_t ret = mMDSDecoderConfig->setDecoderOutputResolution(sessionID, width, height, offX, offY, bufWidth, bufHeight);
430 ITRACE("Video Session[%d] output resolution %dx%d ", sessionID, width, height);

Completed in 1785 milliseconds

<<81828384858687888990>>