| /external/opencv3/samples/gpu/ |
| opticalflow_nvidia_api.cpp | 88 dst = Ptr<NCVMatrixAlloc<Ncv32f> > (new NCVMatrixAlloc<Ncv32f> (*g_pHostMemAllocator, image->width, image->height)); 93 for (int i = 0; i < image->height; ++i) 117 for (int i = 0; i < image->height; ++i) 139 int &height, 169 height = image->height; 191 NCVMatrixAlloc<Ncv32f> host_u(*g_pHostMemAllocator, u.width(), u.height()); 194 NCVMatrixAlloc<Ncv32f> host_v (*g_pHostMemAllocator, u.width (), u.height ()); 205 for (Ncv32u i = 0; i < u.height (); ++i) 218 CvSize image_size = cvSize (u.width (), u.height ()); 414 int width, height; local [all...] |
| /external/skia/src/gpu/ |
| GrSurface.cpp | 49 int* left, int* top, int* width, int* height, 56 SkIRect subRect = SkIRect::MakeXYWH(*left, *top, *width, *height); 68 *height = subRect.height(); 75 int* left, int* top, int* width, int* height, 78 return adjust_params<void>(surfaceWidth, surfaceHeight, bpp, left, top, width, height, data, 85 int* left, int* top, int* width, int* height, 88 return adjust_params<const void>(surfaceWidth, surfaceHeight, bpp, left, top, width, height, 95 bool GrSurface::writePixels(int left, int top, int width, int height, 103 return context->writeSurfacePixels(this, left, top, width, height, config, buffer, rowBytes [all...] |
| /external/webp/src/enc/ |
| picture.c | 66 int WebPPictureAllocARGB(WebPPicture* const picture, int width, int height) { 68 const uint64_t argb_size = (uint64_t)width * height; 75 if (width <= 0 || height <= 0) { 90 int WebPPictureAllocYUVA(WebPPicture* const picture, int width, int height) { 95 const int uv_height = (height + 1) >> 1; 113 y_size = (uint64_t)y_stride * height; 115 a_size = (uint64_t)a_stride * height; 120 if (width <= 0 || height <= 0 || // luma/alpha param error 156 const int height = picture->height; local [all...] |
| alpha.c | 49 static int EncodeLossless(const uint8_t* const data, int width, int height, 59 picture.height = height; 65 WebPDispatchAlphaToGreen(data, width, picture.width, picture.height, 102 static int EncodeAlphaInternal(const uint8_t* const data, int width, int height, 111 const size_t data_size = width * height; 116 assert((uint64_t)data_size == (uint64_t)width * height); // as per spec 125 filter_func(data, width, height, width, tmp_alpha); 133 ok = ok && EncodeLossless(alpha_src, width, height, effort_level, 173 static int GetNumColors(const uint8_t* data, int width, int height, 288 const int height = pic->height; local [all...] |
| /hardware/intel/img/psb_video/src/ |
| psb_surface_attrib.c | 55 int width, int height, int fourcc, 66 if ((width <= 0) || (width * height > 5120 * 5120) || (height <= 0)) { 91 psb_surface->chroma_offset = psb_surface->stride * height; 94 psb_surface->size = ((psb_surface->stride * height) * 3) / 2; 98 psb_surface->size = (psb_surface->stride * height) * 2; 102 psb_surface->size = ((psb_surface->stride * height) * 3) / 2; 106 psb_surface->size = (psb_surface->stride * height) * 4; 143 int width, height, buf_stride, buf_offset, size; 170 height = v4l2_fmt->fmt.pix.height 281 unsigned int height = (unsigned int)Height; local 434 unsigned int height = (unsigned int)_height; local [all...] |
| /hardware/qcom/display/msm8960/libgralloc/ |
| alloc_controller.cpp | 256 size_t getBufferSizeAndDimensions(int width, int height, int format, 262 alignedh = ALIGN(height, 32); 280 size += ALIGN(2 * ALIGN(width/2, 32) * ALIGN(height/2, 32), 4096); 288 size += ALIGN( alignedw * ALIGN(height/2, 32), 8192); 292 alignedh = height; 293 size = ALIGN( ALIGN(width, 128) * ALIGN(height, 32), 8192); 294 size += ALIGN( ALIGN(width, 128) * ALIGN(height/2, 32), 8192); 298 if ((format == HAL_PIXEL_FORMAT_YV12) && ((width&1) || (height&1))) { 302 alignedh = height; 315 alignedh = height; [all...] |
| /external/opencv3/modules/cudaarithm/src/ |
| arithm.cpp | 198 Size dstSize(src2Size.width, src1Size.height); 200 CV_Assert( src1Size.width == src2Size.height ); 308 const bool is_1d_input = (dft_size.height == 1) || (dft_size.width == 1); 337 dft_size_opt.width = std::max(dft_size.width, dft_size.height); 338 dft_size_opt.height = std::min(dft_size.width, dft_size.height); 349 cufftSafeCall( cufftPlan1d(&plan, dft_size_opt.width, dft_type, dft_size_opt.height) ); 351 cufftSafeCall( cufftPlan2d(&plan, dft_size_opt.height, dft_size_opt.width, dft_type) ); 379 createContinuous(Size(dft_size.width / 2 + 1, dft_size.height), CV_32FC2, _dst); 381 createContinuous(Size(dft_size.width, dft_size.height / 2 + 1), CV_32FC2, _dst) [all...] |
| /hardware/qcom/display/msm8996/libgralloc/ |
| alloc_controller.cpp | 177 aligned_h = hnd->height; 216 void AdrenoMemInfo::getAlignedWidthAndHeight(int width, int height, int format, 224 getGpuAlignedWidthHeight(width, height, format, tileEnabled, aligned_w, aligned_h); 226 getYuvUBwcWidthHeight(width, height, format, aligned_w, aligned_h); 229 aligned_h = height; 262 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV12, height); 266 aligned_h = VENUS_Y_SCANLINES(COLOR_FMT_NV21, height); 273 aligned_h = ALIGN(height, 64); 310 width, height, format, 0,raster_mode, padding_threshold, 323 void AdrenoMemInfo::getGpuAlignedWidthHeight(int width, int height, int format 774 int height = hnd->height; local [all...] |
| /sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/ |
| NinePatchedImageTest.java | 44 int height = data.height; local 47 assertEquals(50, height); 60 int height = data.height; local 63 assertEquals(50, height); 76 int height = data.height; local 79 assertEquals(50, height); 87 height = data.height 769 int height = 50 * 2; local 906 int height = data.height; local [all...] |
| /development/tools/etc1tool/ |
| etc1tool.cpp | 25 int writePNGFile(const char* pOutput, png_uint_32 width, png_uint_32 height, 144 png_uint_32 height = 0; local 196 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, 202 pSourceImage = new etc1_byte[stride * height]; 208 for (etc1_uint32 y = 0; y < height; y++) { 213 *pHeight = height; 243 png_uint_32 height = 0; local 265 height = etc1_pkm_get_height(header); 266 encodedSize = etc1_get_encoded_data_size(width, height); 284 pImageData = new png_byte[stride * height]; 316 etc1_uint32 height = 0; local 457 etc1_uint32 height = 0; local [all...] |
| /external/harfbuzz_ng/util/ |
| ansi-print.cc | 102 height (height_), 109 height (height_), 111 data ((color_t *) malloc (sizeof (data[0]) * width * height)), 128 assert (y < height); 130 color_t *p = data + x + MIN (y + row, height - 1) * stride; 147 const unsigned int height; 159 biimage_t (unsigned int width, unsigned int height) : 161 height (height), 163 data ((uint8_t *) malloc (sizeof (data[0]) * width * height)) {} [all...] |
| /external/opencv3/3rdparty/libwebp/enc/ |
| alpha.c | 51 static int EncodeLossless(const uint8_t* const data, int width, int height, 62 picture.height = height; 72 for (j = 0; j < picture.height; ++j) { 88 ok = VP8LBitWriterInit(&tmp_bw, (width * height) >> 3); 102 static int EncodeAlphaInternal(const uint8_t* const data, int width, int height, 113 const size_t data_size = width * height; 115 assert((uint64_t)data_size == (uint64_t)width * height); // as per spec 133 filter_func(data, width, height, width, tmp_alpha); 140 ok = VP8BitWriterAppend(bw, alpha_src, width * height); 186 const int height = pic->height; local [all...] |
| /external/pdfium/core/src/fxge/win32/ |
| fx_win32_dib.cpp | 58 int height = pbmi->bmiHeader.biHeight; local 60 if (height < 0) { 61 height = -height; 69 FX_BOOL ret = pBitmap->Create(width, height, format); 74 FXSYS_memcpy(pBitmap->GetBuffer(), pData, pitch * height); 77 int top = 0, bottom = height - 1; 132 int width, height; local 133 GetBitmapSize(hBitmap, width, height); 135 if (!pDIBitmap->Create(width, height, FXDIB_Rgb)) 165 int width, height; local 196 int height = abs(bmih.biHeight); local [all...] |
| /frameworks/native/libs/ui/ |
| GraphicBuffer.cpp | 49 height = 62 height = 79 height = static_cast<int>(inHeight); 93 height = buffer->height; 145 static_cast<int>(inHeight) == height && 162 if (static_cast<int>(inHeight) != height) return true; 177 height = static_cast<int>(inHeight); 187 const Rect lockBounds(width, height); 195 rect.top < 0 || rect.bottom > height) { [all...] |
| /external/opencv/cvaux/src/ |
| cvface.cpp | 122 if ( (p.x >= rect.x) && (p.y >= rect.y) && (p.x <= rect.x + rect.width) && (p.y <= rect.y + rect.height) ) 140 if (Rect.height > Rect.width) 143 long SizeIdeal = IdealRect.width*IdealRect.height; 144 long Size = Rect.width*Rect.height; 155 long y = Rect.y + cvRound(Rect.height/2); 161 // isPointInRect(cvPoint(Rect.x + Rect.width,Rect.y + Rect.height),UpRect ) && 163 // isPointInRect(cvPoint(DownRect.x + DownRect.width,DownRect.y + DownRect.height),Rect) ) 168 // isPointInRect(cvPoint(Rect.x + Rect.width,Rect.y + Rect.height),IdealRect ) ) 182 long LeftSquare = LeftEyeRect.width*LeftEyeRect.height; 183 long RightSquare = RightEyeRect.width*RightEyeRect.height; [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
| ExportDialog.java | 111 mOriginalBounds.height()); 112 mRatio = mOriginalBounds.width() / (float) mOriginalBounds.height(); 114 mHeightText.setText("" + mOriginalBounds.height()); 116 mExportHeight = mOriginalBounds.height(); 189 float originalArea = mCompressedBounds.width() * mCompressedBounds.height(); 206 int height = 1; local 220 height = (int) (width / mRatio); 222 mHeightText.setText("" + height); 228 height = Integer.parseInt(value); 229 if (height > mOriginalBounds.height()) [all...] |
| /external/mesa3d/src/mesa/main/ |
| readpix.c | 56 GLsizei width, GLsizei height, 78 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT, 87 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, 90 for (j = 0; j < height; j++) { 112 GLsizei width, GLsizei height, 130 ASSERT(y + height <= (GLint) rb->Height); 132 if (fast_read_depth_pixels(ctx, x, y, width, height, type, pixels, packing)) 136 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, 139 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, GL_MAP_READ_BIT [all...] |
| /external/libyuv/files/unit_test/ |
| planar_test.cc | 106 static int TestAttenuateI(int width, int height, int benchmark_iterations, 114 align_buffer_page_end(src_argb, kStride * height + off); 115 align_buffer_page_end(dst_argb_c, kStride * height); 116 align_buffer_page_end(dst_argb_opt, kStride * height); 117 for (int i = 0; i < kStride * height; ++i) { 120 memset(dst_argb_c, 0, kStride * height); 121 memset(dst_argb_opt, 0, kStride * height); 126 width, invert * height); 131 width, invert * height); 134 for (int i = 0; i < kStride * height; ++i) [all...] |
| /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/ui/ |
| DrawUtils.java | 47 public static final void drawStringCV(GC gc, String text, int x, int y, int width, int height) { 50 gc.setClipping(new Rectangle(x, y, width, height)); 52 int textStartY = y + (height - gc.getFontMetrics().getHeight()) / 2; 62 public static final void drawStringCHCV(GC gc, String text, int x, int y, int width, int height) { 63 int textStartY = y + (height - gc.getFontMetrics().getHeight()) / 2; 76 public static final void drawImageCV(GC gc, Image image, int x, int y, int height) { 79 gc.drawImage(image, x, y + (height - imageBounds.height) / 2); 86 public static final void drawImageCHCV(GC gc, Image image, int x, int y, int width, int height) { 90 int centerY = y + (height - imageBounds.height) / 2 [all...] |
| /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/ |
| GlyphPage.java | 61 * @param pageHeight The height of the backing texture. */
87 int height = Math.min(MAX_GLYPH_SIZE, glyph.getHeight());
local 88 if (width == 0 || height == 0)
96 if (row.y + height >= pageHeight) continue;
97 if (height > row.height) continue;
98 if (bestRow == null || row.height < bestRow.height) bestRow = row;
101 // Fit in last row, increasing height.
103 if (row.y + height >= pageHeight) continue; 130 int x, y, height; field in class:GlyphPage.Row [all...] |
| /external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
| TJCompressor.java | 64 * @param height see {@link #setSourceImage} for description 70 int height, int pixelFormat) throws Exception { 71 setSourceImage(srcImage, x, y, width, pitch, height, pixelFormat); 79 public TJCompressor(byte[] srcImage, int width, int pitch, int height, 81 setSourceImage(srcImage, width, pitch, height, pixelFormat); 101 * @param height see 105 int height) throws Exception { 106 setSourceImage(srcImage, x, y, width, height); 134 * @param height height (in pixels) of the region in the source image fro [all...] |
| /hardware/intel/img/psb_video/src/android/ |
| psb_surface_gralloc.c | 70 obj_surface->width, obj_surface->height, (void **)&vaddr[GRALLOC_SUB_BUFFER0])){ 95 int height, 122 ALOGD("format is 0x%x, width is %d, height is %d, num_surfaces is %d.\n", format, width, height, num_surfaces); 134 vaStatus = psb__checkSurfaceDimensions(driver_data, width, height); 137 /* Adjust height to be a multiple of 32 (height of macroblock in interlaced mode) */ 138 height_origin = height; 139 height = (height + 0x1f) & ~0x1f [all...] |
| /bootable/recovery/minui/ |
| graphics_fbdev.cpp | 73 vi.yres_virtual = gr_framebuffer[0].height * 2; 74 vi.yoffset = n * gr_framebuffer[0].height; 133 gr_framebuffer[0].height = vi.yres; 137 memset(gr_framebuffer[0].data, 0, gr_framebuffer[0].height * gr_framebuffer[0].row_bytes); 145 gr_framebuffer[0].height * gr_framebuffer[0].row_bytes; 158 gr_draw->data = (unsigned char*) malloc(gr_draw->height * gr_draw->row_bytes); 165 memset(gr_draw->data, 0, gr_draw->height * gr_draw->row_bytes); 169 printf("framebuffer: %d (%d x %d)\n", fb_fd, gr_draw->width, gr_draw->height); 187 gr_draw->height * gr_draw->row_bytes);
|
| /development/perftests/panorama/feature_mos/src/mosaic/ |
| AlignFeatures.cpp | 35 width = height = 0; 55 int Align::initialize(int width, int height, bool _quarter_res, float _thresh_still) 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);
|
| /external/glide/library/src/main/java/com/bumptech/glide/request/target/ |
| ViewTarget.java | 61 * {@link android.view.ViewGroup.LayoutParams}. If one or both of the params width and height are less than or 63 * has been measured before calling the callback with the view's drawn width and height. 122 private void notifyCbs(int width, int height) { 124 cb.onSizeReady(width, height); 139 notifyCbs(layoutParams.width, layoutParams.height); 164 cb.onSizeReady(layoutParams.width, layoutParams.height); 169 @SuppressWarnings("deprecation") final int width = display.getWidth(), height = display.getHeight(); local 172 + " dimensions: [" + width + "x" + height + "]. Give the view an actual width and height " 175 cb.onSizeReady(width, height); [all...] |