/system/media/mca/filterpacks/base/native/ |
geometry.h | 80 float width() const { return width_; } function in class:android::filterfw::SlantedRect 89 float x, y, width, height; member in struct:android::filterfw::Rect 93 width = height = 1.0f; 96 Rect(float x, float y, float width, float height) { 99 this->width = width;
|
geometry.cpp | 72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { 76 const float current_ratio = width / height; 78 const float dx = width * (ratio / current_ratio - 1.0f); 80 width += dx; 90 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { 94 const float current_length = width > height ? width : height; 96 const float dx = width * (length / current_length - 1.0f); 98 width += dx; 107 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) [all...] |
/external/opencv/cv/src/ |
cvderiv.cpp | 53 assert( src && dst && src_size.width > 2 && src_size.height > 2 && 60 dst_width = src_size.width - 2; 67 src_size.width = dst_width; 73 assert( src_step >= src_size.width && dst_step >= dst_width ); 83 src_size.width = 0; 92 for( x = 0; x < src_size.width; x++ ) 384 int width = max_width, trow_sz = 0; local 388 trow_sz = cvAlign( (max_width + ksize.width - 1)*CV_ELEM_SIZE(src_type), ALIGN ); 389 row_sz = cvAlign( width*CV_ELEM_SIZE(work_type), ALIGN ); 495 int i = 0, j, k, width = state->get_width(); 553 int i = 0, k, width = state->get_width(); local 695 int i = 0, k, width = state->get_width(); local [all...] |
/external/libyuv/files/source/ |
row.h | 44 uint8* dst_u, uint8* dst_v, int width); 46 uint8* dst_u, uint8* dst_v, int width); 48 uint8* dst_u, uint8* dst_v, int width); 57 uint8* dst_u, uint8* dst_v, int width); 59 uint8* dst_u, uint8* dst_v, int width); 67 uint8* dst_u, uint8* dst_v, int width); 69 uint8* dst_u, uint8* dst_v, int width); 71 uint8* dst_u, uint8* dst_v, int width); 73 uint8* dst_u, uint8* dst_v, int width); 75 uint8* dst_u, uint8* dst_v, int width); [all...] |
convert.cc | 39 int width, int height) { 57 for (w = 0; w < ((width + 1) >> 1); w++){ 94 y1 += src_stride_y + src_stride_y - width; 95 y2 += src_stride_y + src_stride_y - width; 96 u += src_stride_u - ((width + 1) >> 1); 97 v += src_stride_v - ((width + 1) >> 1); 109 int width, int height) { 127 for (w = 0; w < ((width + 1) >> 1); w++) { 161 y1 += 2 * src_stride_y - width; 162 y2 += 2 * src_stride_y - width; [all...] |
row_posix.cc | 152 int width) { // r8 180 "+r"(width) // %4 190 int width) { // r8 218 "+r"(width) // %4 228 int width) { // r8 256 "+r"(width) // %4 266 int width) { // r8 291 "+r"(width) // %4 299 int width) { // r8 316 "+r"(width) // % [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
DrawableBitmap.java | 35 DrawableBitmap(Texture texture, int width, int height) { 38 mWidth = width; 44 setCrop(0, height, width, height); 55 public void setViewSize(int width, int height) { 57 mViewWidth = width; 68 * @param viewWidth The width of the screen. 111 final float width = mWidth; local 118 if (snappedX + width < 0.0f 139 getPriority(), width * scaleX, height * scaleY); 161 public void resize(int width, int height) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
IconDrawer.java | 42 int width; field in class:IconDrawer.IconDimension 65 protected IconDimension drawIcon(GLCanvas canvas, int width, int height, 70 IconDimension id = getIconDimension(icon, width, height); 71 icon.draw(canvas, id.x, id.y, id.width, id.height); 99 protected IconDimension getIconDimension(ResourceTexture icon, int width, 103 id.width = Math.round(scale * icon.getWidth()); 105 id.x = -width / 2; 111 boolean isPanorama, int x, int y, int width, int height) { 113 drawVideoOverlay(canvas, x, y, width, height); 116 drawPanoramaBorder(canvas, x, y, width, height) [all...] |
ManageCacheDrawer.java | 58 public void draw(GLCanvas canvas, Texture content, int width, 67 int x = -width / 2; 75 drawWithRotation(canvas, content, x, y, width, height, rotation); 82 int temp = width; 83 width = height; 85 x = -width / 2; 89 drawMediaTypeOverlay(canvas, mediaType, isPanorama, x, y, width, height); 90 drawLabelBackground(canvas, width, height, labelBackgroundHeight); 91 drawIcon(canvas, width, height, dataSourceType); 93 width, height) [all...] |
StripDrawer.java | 51 int width, int height, int rotation, Path path, 55 int x = -width / 2; 58 drawWithRotation(canvas, content, x, y, width, height, rotation); 61 drawFrame(canvas, mFramePressed, x, y, width, height); 66 public void drawFocus(GLCanvas canvas, int width, int height) { 67 int x = -width / 2; 71 width + p.left + p.right, height + p.top + p.bottom);
|
/development/samples/BrowserPlugin/jni/animation/ |
AnimationThread.cpp | 63 SkBitmap* AnimationThread::constructBitmap(int width, int height) { 65 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); 95 int width, height; local 96 getDimensions(width, height); 98 if (m_bitmap->width() != width || m_bitmap->height() != height) { 101 m_bitmap = constructBitmap(width, height); 105 m_dx = width * .005f; 111 const float OW = width * .125f; 118 bounce(&m_x, &m_dx, width - OW) [all...] |
/external/webkit/Source/WebCore/platform/graphics/cg/ |
ImageBufferDataCG.cpp | 77 src.width = scanlineData->scanlineWidth; 83 dest.width = scanlineData->scanlineWidth; 113 float area = 4.0f * rect.width() * rect.height(); 117 RefPtr<ByteArray> result = ByteArray::create(rect.width() * rect.height() * 4); 120 if (rect.x() < 0 || rect.y() < 0 || rect.maxX() > size.width() || rect.maxY() > size.height()) 130 if (endx > size.width()) 131 endx = size.width(); 132 int width = endx - originx; local 145 if (width <= 0 || height <= 0) 148 unsigned destBytesPerRow = 4 * rect.width(); 270 int width = endx - destx; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/gstreamer/ |
ImageGStreamerCG.mm | 30 int width = 0, height = 0; 33 if (!gst_video_format_parse_caps(caps, &format, &width, &height)) { 38 return adoptRef(new ImageGStreamer(buffer, IntSize(width, height))); 48 CGImageRef frameImage = CGImageCreate(size.width(), size.height(), 8, 32, size.width()*4, deviceRGBColorSpaceRef(),
|
/external/webp/examples/ |
dwebp.c | 41 int width, height, stride, uv_stride; local 88 out = WebPDecodeRGB(data, data_size, &width, &height); 90 out = WebPDecodeYUV(data, data_size, &width, &height, 106 fprintf(fout, "P6\n%d %d\n255\n", width, height); 107 ok &= (fwrite(out, width * height, 3, fout) == 3); 114 const int uv_width = (width + 1) / 2; 116 const int out_stride = (width + 1) & ~1; 119 ok &= (fwrite(out + y * stride, width, 1, fout) == 1); 120 if (width & 1) fputc(0, fout); // padding byte 137 printf("Decoded %s. Dimensions: %d x %d.\n", in_file, width, height) [all...] |
/external/quake/quake/src/WinQuake/ |
draw.cpp | 28 int width; member in struct:__anon10677 118 r_rectdesc.width = draw_backtile->width; 121 r_rectdesc.rowbytes = draw_backtile->width; 149 if (y > vid.height - 8 || x < 0 || x > vid.width - 8) 296 (x + pic->width > vid.width) || 311 Q_memcpy (dest, source, pic->width); 313 source += pic->width; 323 for (u=0 ; u<pic->width ; u++ 742 int width, height, tileoffsetx, tileoffsety; local [all...] |
vid_dos.h | 26 unsigned width;
member in struct:vmode_s 39 int x, int y, byte *pbitmap, int width,
42 int x, int y, int width, int height);
75 qboolean VGA_CheckAdequateMem (int width, int height, int rowbytes,
78 int y, byte *pbitmap, int width, int height);
80 int y, int width, int height);
81 void VGA_UpdateLinearScreen (void *srcptr, void *destptr, int width,
|
/external/elfutils/libebl/ |
eblgstrtab.c | 43 unsigned int width; member in struct:Ebl_GStrent 62 unsigned int width; member in struct:Ebl_GStrtab 75 ebl_gstrtabinit (unsigned int width, bool nullstr) 88 ret->width = width; 94 ret->null.string = (char *) calloc (1, width); 154 if (st->left < align + sizeof (struct Ebl_GStrent) + len * st->width) 156 morememory (st, sizeof (struct Ebl_GStrent) + len * st->width); 164 newstr->width = st->width; [all...] |
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
Pyramid.cpp | 28 real width, real height, real border) 31 int lines, size = calcStorage(width, height, border2, levels, &lines); 42 curr->width = width; 45 curr->pitch = (real) (width + border2); 53 width >>= 1; 62 PyramidShort *PyramidShort::allocateImage(real width, real height, real border) 67 sizeof(short) * (width + border2) * (height + border2), 1); 72 img->width = width; 215 int width = scr->width + scr->border; local [all...] |
/frameworks/base/core/java/android/webkit/ |
ViewManager.java | 41 int width; field in class:ViewManager.ChildView 48 void setBounds(int x, int y, int width, int height) { 51 this.width = width; 55 void attachView(int x, int y, int width, int height) { 59 setBounds(x, y, width, height); 122 int width = mWebView.contentToViewDimension(v.width); local 132 lp.width = width; [all...] |
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/ |
mp4dec_lib.h | 95 void BlockIDCT(uint8 *dst, uint8 *pred, int16 *blk, int width, int nzcoefs, 149 int width, /* i */ 163 int width, /* i */ 200 int width, /* i */ 211 int width, 220 int width, /* i */ 227 int width, /* i */ 234 int width, /* i */ 241 int width, /* i */ 252 int width, [all...] |
post_filter.cpp | 43 int width, height; local 50 width = video->width; 52 size = (int32)width * height; 75 CombinedHorzVertRingFilter(output, width, height, QP_store, 0, pp_mod); 83 CombinedHorzVertFilter(output, width, height, 88 CombinedHorzVertFilter_NoSoftDeblocking(output, width, height, 94 Deringing_Luma(output, width, height, QP_store, 107 CombinedHorzVertRingFilter(output, (int)(width >> 1), (int)(height >> 1), QP_store, (int) 1, pp_mod); 115 CombinedHorzVertFilter(output, (int)(width >> 1) [all...] |
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
ContextShadowCairo.cpp | 68 int width = size.width(); local 74 if (gScratchBuffer.get() && scratchWidth >= width && scratchHeight >= height) 80 width = (1 + (width >> 5)) << 5; 82 gScratchBuffer = adoptRef(cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height)); 182 real one and the side tiles are 1 pixel width, we use them as 196 int internalShadowWidth = radiusTwice + max(topLeftRadius.width(), bottomLeftRadius.width()) + 197 max(topRightRadius.width(), bottomRightRadius.width()) [all...] |
/external/junit/src/junit/awtui/ |
ProgressBar.java | 34 g.fillRect(0, 0, r.width, r.height); 36 g.drawLine(0, 0, r.width-1, 0); 39 g.drawLine(r.width-1, 0, r.width-1, r.height-1); 40 g.drawLine(0, r.height-1, r.width-1, r.height-1); 46 g.fillRect(1, 1, r.width-1, r.height-2); 62 return Math.max(1, value*(getBounds().width-1)/fTotal);
|
/external/webkit/Source/WebCore/html/canvas/ |
WebGLTexture.cpp | 135 void WebGLTexture::setLevelInfo(GC3Denum target, GC3Dint level, GC3Denum internalFormat, GC3Dsizei width, GC3Dsizei height, GC3Denum type) 139 // We assume level, internalFormat, width, height, and type have all been 144 m_info[index][level].setInfo(internalFormat, width, height, type); 157 GC3Dsizei width = info0.width; local 159 GC3Dint levelCount = computeLevelCount(width, height); 161 width = std::max(1, width >> 1); 164 info.setInfo(info0.internalFormat, width, height, info0.type); 193 return info->width; 315 GC3Dsizei width = info0.width; local [all...] |
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
PlatformImage.cpp | 55 IntSize bitmapSize(skiaBitmap->width(), skiaBitmap->height()); 59 int width = CGImageGetWidth(nativeImage); 61 IntSize bitmapSize(width, height); 64 size_t bufferSize = bitmapSize.width() * bitmapSize.height() * 4; 78 int tempRowBytes = width * 4; 99 width, height, 8, tempRowBytes, 104 CGRectMake(0, 0, static_cast<CGFloat>(width), static_cast<CGFloat>(height)),
|