/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/ |
CropFilter.java | 45 dst.changeDimension(Math.round(bounds.width() * src.width()), 49 effect.setParameter("xorigin", Math.round(bounds.left * src.width())); 51 effect.setParameter("width", dst.width()); 53 effect.apply(src.texture(), src.width(), src.height(), dst.texture());
|
/system/media/mca/filterfw/native/core/ |
geometry.h | 72 float x, y, width, height; member in struct:android::filterfw::Rect 76 width = height = 1.0f; 79 Rect(float x, float y, float width, float height) { 82 this->width = width;
|
gl_frame.h | 46 // Initialize a GL frame to the given width, height, format. Also specify 48 bool Init(int width, int height); 54 bool InitWithTexture(GLint texture_id, int width, int height); 57 bool InitWithFbo(GLint fbo_id, int width, int height); 93 bool SetViewport(int x, int y, int width, int height); 130 void InitDimensions(int width, int height); 185 // The width, height and format of the frame
|
/external/chromium/chrome/browser/ui/views/frame/ |
app_panel_browser_frame_view.cc | 114 min_size.set_width(std::max(min_size.width(), 141 client_bounds.width() + (2 * border_thickness), 193 window_mask->lineTo(SkIntToScalar(size.width() - 3), 0); 194 window_mask->lineTo(SkIntToScalar(size.width() - 2), 1); 195 window_mask->lineTo(SkIntToScalar(size.width() - 1), 1); 196 window_mask->lineTo(SkIntToScalar(size.width() - 1), 2); 197 window_mask->lineTo(SkIntToScalar(size.width()), 3); 199 window_mask->lineTo(SkIntToScalar(size.width()), 235 client_view_bounds_ = CalculateClientAreaBounds(width(), height()); 347 canvas->FillRectInt(frame_color, 0, 0, width(), theme_frame->height()) [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
Texture.h | 73 virtual void copySubImage(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, RenderbufferStorage *source) = 0; 109 GLsizei width; member in struct:gl::Texture::Image 120 void setImage(GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels, Image *img); 121 bool subImage(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint unpackAlignment, const void *pixels, Image *img); 122 void setCompressedImage(GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels, Image *img); 123 bool subImageCompressed(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *pixels, Image *img); 124 void copyNonRenderable(Image *image, GLenum internalFormat, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height, IDirect3DSurface9 *renderTarget); 128 GLint creationLevels(GLsizei width, GLsizei height, GLint maxlevel) const; 141 void createSurface(GLsizei width, GLsizei height, GLenum format, GLenum type, Image *img); 162 void loadImageData(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type [all...] |
Texture.cpp | 28 : width(0), height(0), dirty(false), surface(NULL), format(GL_NONE) 244 // Store the pixel rectangle designated by xoffset,yoffset,width,height with pixels stored as format/type at input 246 void Texture::loadImageData(GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, 249 GLsizei inputPitch = ComputePitch(width, format, type, unpackAlignment); 257 loadAlphaImageData(xoffset, yoffset, width, height, inputPitch, input, outputPitch, output); 260 loadLuminanceImageData(xoffset, yoffset, width, height, inputPitch, input, outputPitch, output, description->Format == D3DFMT_L8); 263 loadLuminanceAlphaImageData(xoffset, yoffset, width, height, inputPitch, input, outputPitch, output, description->Format == D3DFMT_A8L8); 266 loadRGBUByteImageData(xoffset, yoffset, width, height, inputPitch, input, outputPitch, output); 269 loadRGBAUByteImageData(xoffset, yoffset, width, height, inputPitch, input, outputPitch, output); 272 loadBGRAImageData(xoffset, yoffset, width, height, inputPitch, input, outputPitch, output) 1430 GLsizei width = mImageArray[0].width; local [all...] |
/external/chromium/chrome/browser/ui/touch/tabs/ |
touch_tab.cc | 80 if (width() < GetMinimumUnselectedSize().width() && !data().mini) 99 int x_base = tab_image->image_l->width(); 101 int center_width = width() - tab_image->l_width - tab_image->r_width; 116 SkScalar w = SkIntToScalar(width()); 157 offset + width() - tab_image->r_width, 0, 161 canvas->DrawBitmapInt(theme_r, width() - tab_image->r_width, y_base); 170 width() - tab_image->l_width - tab_image->r_width, 176 width() - tab_image->l_width - tab_image->r_width, image_height); 177 canvas->DrawBitmapInt(*tab_image->image_r, width() - tab_image->r_width [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_blit_1.c | 36 int width, height; local 41 width = info->d_width; 57 , width); 59 for ( c=width; c; --c ) { 82 int width, height; local 88 width = info->d_width; 103 width); 110 /* Don't do anything if width is 0 */ 111 if ( width == 0 ) { 114 --width; 192 int width, height; local 236 int width, height; local 278 int width = info->d_width; local 320 int width = info->d_width; local 349 int width = info->d_width; local 379 int width = info->d_width; local 408 int width = info->d_width; local 446 int width = info->d_width; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/wscons/ |
SDL_wsconsvideo.c | 55 static SDL_Surface *WSCONS_SetVideoMode(_THIS, SDL_Surface *current, int width, int height, int bpp, Uint32 flags); 155 int width, height; local 247 if (private->physlinebytes == private->info.width) { 248 len = private->info.width * private->info.height * sizeof(short); 260 if (private->physlinebytes == private->info.width) { 261 len = private->info.width * private->info.height * sizeof(int); 296 width = private->info.height; 297 height = private->info.width; 299 width = private->info.width; 462 int width = private->SDL_modelist[0]->w; local [all...] |
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 62 static bool webp_parse_header(SkStream* stream, int* width, int* height) { 69 if (WebPGetInfo(buffer, WEBP_VP8_HEADER_SIZE, width, height) == 0) { 76 size.setMul(*width, *height); 95 virtual bool onBuildTileIndex(SkStream *stream, int *width, int *height); 100 bool setDecodeConfig(SkBitmap* decodedBitmap, int width, int height); 133 SkDebugf("libwebp error %s [%d %d]", msg, bm.width(), bm.height()); 224 config.options.crop_width = region.width(); 227 if (region.width() != decodedBitmap->width() || 230 config.options.scaled_width = decodedBitmap->width(); 314 const int width = region.width(); local 512 int width, height; local [all...] |
/frameworks/base/media/libstagefright/codecs/on2/h264dec/source/ |
h264bsd_reconstruct.c | 98 width width of the reference frame chrominance in pixels 101 chromaPartWidth width of the predicted part in pixels 113 u32 width, 135 if ((x0 < 0) || ((u32)x0+chromaPartWidth+1 > width) || 138 h264bsdFillBlock(pRef, block, x0, y0, width, height, 140 pRef += width * height; 142 x0, y0, width, height, chromaPartWidth + 1, 148 width = chromaPartWidth+1; 157 ptrA = pRef + (comp * height + (u32)y0) * width + x0 426 u32 xFrac, yFrac, width, height, chromaPartWidth, chromaPartHeight; local 1832 u32 xFrac, yFrac, width, height; local 1981 u32 width, height; local [all...] |
/external/opencv/cv/src/ |
cvcamshift.cpp | 52 // windowOut - Location, height and width of converged CAMSHIFT window 54 // width - If != NULL, return equivalent width 84 if( windowIn.height <= 0 || windowIn.width <= 0 ) 87 if( windowIn.x < 0 || windowIn.x + windowIn.width > mat->cols || 108 dx = cvRound( moments.m10 * inv_m00 - windowIn.width*0.5 ); 116 else if( nx + cur_rect.width > mat->cols ) 117 nx = mat->cols - cur_rect.width; 154 // windowOut - Location, height and width of converged CAMSHIFT window 157 // width - If != NULL, return equivalent widt 177 double length = 0, width = 0; local [all...] |
cvoptflowbm.cpp | 77 memcpy( dst, src, size.width ); 88 // imgStep, // full width of input images in bytes 96 // velStep); // full width of velocity frames in bytes 118 int stand_accept_level = blockSize.height * blockSize.width * SMALL_DIFF; 119 int stand_escape_level = blockSize.height * blockSize.width * BIG_DIFF; 127 /* have not full width - BorderWidth */ 147 int blSize = blockSize.width * blockSize.height; 178 ss = (CvPoint *) cvAlloc( (2 * maxRange.width + 1) * (2 * maxRange.height + 1) * 190 int X_shift_count = maxRange.width / shiftSize.width; [all...] |
cvcornersubpix.cpp | 63 int win_w = win.width * 2 + 1, win_h = win.height * 2 + 1; 86 if( win.width <= 0 || win.height <= 0 ) 91 if( size.width < win_w + 4 || size.height < win_h + 4 ) 132 coeff = 1. / (win.width * win.width); 135 for( i = -win.width, k = 0; i <= win.width; i++, k++ ) 140 if( win.width == win.height ) 163 if( zeroZone.width >= 0 && zeroZone.height >= 0 && 164 zeroZone.width * 2 + 1 < win_w && zeroZone.height * 2 + 1 < win_h [all...] |
/external/qemu/android/camera/ |
camera-format-converters.c | 367 * width, height - Frame dimensions. 372 typedef int (*u_offset_func)(const YUVDesc* desc, int line, int width, int height); 379 * width, height - Frame dimensions. 384 typedef int (*v_offset_func)(const YUVDesc* desc, int line, int width, int height); 571 _UOffIntrlYUV(const YUVDesc* desc, int line, int width, int height) 575 * is twice its width. */ 576 return line * width * 2 + desc->U_offset; 581 _VOffIntrlYUV(const YUVDesc* desc, int line, int width, int height) 584 return line * width * 2 + desc->V_offset; 589 _UOffIntrlUV(const YUVDesc* desc, int line, int width, int height [all...] |
/external/skia/src/core/ |
SkSpriteBlitter_ARGB32.cpp | 45 virtual void blitRect(int x, int y, int width, int height) { 46 SkASSERT(width > 0 && height > 0); 56 proc(dst, src, width, alpha); 106 int width = device.width(); local 107 if (width > fBufferSize) { 108 fBufferSize = width; 110 fBuffer = new SkPMColor[width]; 133 virtual void blitRect(int x, int y, int width, int height) { 134 SkASSERT(width > 0 && height > 0) [all...] |
/external/webkit/Source/WebCore/platform/graphics/filters/ |
FEConvolveMatrix.cpp | 180 Image size: width: 10, height: 10 182 Order (kernel matrix size): width: 3, height 4 243 int pixel = (m_targetOffset.y() * paintingData.width + m_targetOffset.x()) * 4; 246 int xIncrease = (m_kernelSize.width() - 1) * 4; 257 int width = m_kernelSize.width(); local 273 if (!--width) { 275 width = m_kernelSize.width(); 289 if (x >= 0 && x < paintingData.width && x >= 0 && y < paintingData.height 322 int width = x2 - x1; local 338 int width = m_kernelSize.width(); local [all...] |
/bootable/recovery/minui/ |
mkfont.c | 12 n = gimp_image.width * gimp_image.height; 17 printf(" unsigned width;\n"); 23 printf(" .width = %d,\n .height = %d,\n .cwidth = %d,\n .cheight = %d,\n", gimp_image.width, gimp_image.height, 24 gimp_image.width / 96, gimp_image.height);
|
/dalvik/vm/mterp/ |
Mterp.cpp | 55 const int width = 64; local 58 if (interpSize != 0 && interpSize != kNumPackedOpcodes*width) { 60 LOGE("(did an instruction handler exceed %d bytes?)", width);
|
/external/quake/quake/src/QW/client/ |
vid_null.c | 28 vid.maxwarpwidth = vid.width = vid.conwidth = BASEWIDTH; 54 void D_BeginDirectRect (int x, int y, byte *pbitmap, int width, int height) 64 void D_EndDirectRect (int x, int y, int width, int height)
|
/external/quake/quake/src/WinQuake/ |
vid_null.cpp | 47 vid.maxwarpwidth = vid.width = vid.conwidth = BASEWIDTH;
73 void D_BeginDirectRect (int x, int y, byte *pbitmap, int width, int height)
83 void D_EndDirectRect (int x, int y, int width, int height)
|
/external/webkit/Source/WebCore/page/ |
Screen.cpp | 63 unsigned Screen::width() const function in class:WebCore::Screen 67 return static_cast<unsigned>(screenRect(m_frame->view()).width()); 109 return static_cast<unsigned>(screenAvailableRect(m_frame->view()).width());
|
/external/webkit/Source/WebCore/platform/brew/ |
ScreenBrew.cpp | 44 int width; member in struct:WebCore::DisplayInfo 57 info.width = bitmapInfo.cx; 67 return FloatRect(0, 0, info.width, info.height);
|
/external/webkit/Source/WebCore/platform/graphics/openvg/ |
TiledImageOpenVG.cpp | 33 , m_numColumns((m_size.width() - 1) / m_maxTileSize.width() + 1) 93 int leftIndex = static_cast<int>(rect.x()) / m_maxTileSize.width(); 102 int rightIndex = (static_cast<int>(ceil(rect.right())) - 1) / m_maxTileSize.width(); 125 int x = xIndex * m_maxTileSize.width(); 129 ((m_maxTileSize.width() < m_size.width() - x) ? m_maxTileSize.width() : (m_size.width() - x)), 147 VGint width = vgGetParameteri(originalTile, VG_IMAGE_WIDTH) [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
QTMovieGWorld.h | 60 void getNaturalSize(int& width, int& height); 61 void setSize(int width, int height); 65 void getCurrentFrameInfo(void*& buffer, unsigned& bitsPerPixel, unsigned& rowBytes, unsigned& width, unsigned& height);
|