| /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
| ImageFilterChanSat.java | 105 int height = getInPixelsAllocation().getType().getY(); local 119 int height = getInPixelsAllocation().getType().getY(); local 120 Matrix m = getOriginalToScreenMatrix(width, height); 133 int height = in.getType().getY(); local 139 for (ty = 0; ty < height; ty += STRIP_SIZE) { 141 if (endy > height) { 142 endy = height;
|
| /packages/apps/LegacyCamera/jni/ |
| feature_mos_jni.cpp | 59 int width=0, height=0; variable 209 void YUV420toYVU24(ImageType yvu24, ImageType yuv420sp, int width, int height) 211 int frameSize = width * height; 217 for (int j = 0, yp = 0; j < height; j++) 240 int height) 242 int frameSize = width * height; 250 for (int j = 0; j < height; j += 2) 278 JNIEnv* env, jobject thiz, jint width, jint height) 281 tHeight[HR] = height; 283 tHeight[LR] = int(height / H2L_FACTOR) 576 int height = mosaicHeight; local 621 int height; local [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
| LetterTileProvider.java | 91 LogUtils.w(TAG, "LetterTileProvider width(%d) or height(%d) is 0 for name %s and " 92 + "address %s.", dimensions.width, dimensions.height, displayName, address); 108 0 + dimensions.height / 2 + (mBounds.bottom - mBounds.top) / 2, mPaint); 123 if (d.width <= 0 || d.height <= 0) { 125 "LetterTileProvider width(%d) or height(%d) is 0.", d.width, d.height); 143 if (bitmap == null || bitmap.getWidth() != d.width || bitmap.getHeight() != d.height) { 146 bitmap = BitmapUtil.centerCrop(mDefaultBitmap, d.width, d.height); 148 bitmap = Bitmap.createBitmap(d.width, d.height, Bitmap.Config.ARGB_8888);
|
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
| LabelMaker.java | 54 * the strike width and height must be powers of two, 60 * @param strikeHeight height of strike 201 int height = Math.max(minHeight, textHeight + padHeight); local 203 int effectiveTextHeight = height - padHeight; 228 lineHeight = Math.max(lineHeight, height); 235 int v2 = v + height; 238 background.setBounds(u, v, u + width, v + height); 253 mLabels.add(new Label(width, height, ascent, 254 u, v + height, width, -height)); 385 public float height; field in class:LabelMaker.Label [all...] |
| /external/deqp/modules/gles31/functional/ |
| es31fStencilTexturingTests.cpp | 67 static void genTestRects (vector<IVec4>& rects, int width, int height) 70 int curHeight = height; 75 rects.push_back(IVec4(width-curWidth, height-curHeight, curWidth, curHeight)); 89 static void rectsToTriangles (const vector<IVec4>& rects, int width, int height, vector<Vec2>& positions, vector<deUint16>& indices) 92 const float h = float(height); 123 static void drawTestPattern (const glu::RenderContext& renderCtx, int width, int height) 146 gl.viewport (0, 0, width, height); 153 genTestRects (rects, width, height); 154 rectsToTriangles(rects, width, height, positions, indices); 199 static void blitStencilToColor2D (const glu::RenderContext& renderCtx, deUint32 srcTex, int width, int height) 528 const int height = 113; local 532 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height); local 533 TextureLevel readLevel (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height); local 534 TextureLevel stencilOnlyLevel (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height); local 583 const int height = 13; local 589 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height, levels); local 616 TextureLevel readLevel (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height); local 629 TextureLevel reference(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height); local 758 const int height = 193; local 762 TextureLevel result (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height); local 763 TextureLevel reference (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height); local 815 const int height = 117; local 820 TextureLevel result (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height); local 821 TextureLevel reference (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height); local 889 const int height = 64; local 893 TextureLevel uploadLevel (glu::mapGLInternalFormat(m_format), width, height); local 894 TextureLevel readLevel (TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), width, height); local 895 TextureLevel stencilOnlyLevel (TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), width, height); local 948 const int height = 128; local [all...] |
| /external/libpng/contrib/examples/ |
| simpleover.c | 21 * {--sprite=width,height,name {[--at=x,y] {sprite.png}}} 54 unsigned int height; member in struct:sprite 115 if ((y_offset < 0 || (unsigned)/*SAFE*/y_offset < sprite->height) && 183 while (++y < image->height); 288 save.height = sprite->height; 338 (unsigned)/*SAFE*/y >= output->height || 340 sprite->height > output->height-y) 412 sprites[nsprites].width = sprites[nsprites].height = 0 [all...] |
| /external/skia/include/core/ |
| SkBitmap.h | 31 and height, and a format (colortype), and a pointer to the actual pixels. 43 * Default construct creates a bitmap with zero width and height, and no pixels. 85 int height() const { return fInfo.height(); } function in class:SkBitmap 97 * Return the rowbytes expressed as a number of pixels (like width and height). 145 /** Return the byte size of the pixels, based on the height and rowBytes. 149 size_t getSize() const { return fInfo.height() * fRowBytes; } 161 return sk_64_mul(fInfo.height(), fRowBytes); 222 * Return the bitmap's bounds [0, 0, width, height] as an SkRect 232 fInfo.width(), fInfo.height()); [all...] |
| /external/skia/src/gpu/ |
| GrBatchAtlas.cpp | 17 int height, GrPixelConfig config) 25 , fHeight(height) 44 bool GrBatchAtlas::BatchPlot::addSubImage(int width, int height, const void* image, 46 SkASSERT(width <= fWidth && height <= fHeight); 52 if (!fRects->addRect(width, height, loc)) { 67 for (int i = 0; i < height; ++i) { 73 fDirtyRect.join(loc->fX, loc->fY, loc->fX + width, loc->fY + height); 93 fDirtyRect.width(), fDirtyRect.height(), 145 int plotHeight = texture->height() / numPlotsY; 148 SkASSERT(plotHeight * numPlotsY == texture->height()); [all...] |
| /external/webrtc/talk/media/base/ |
| yuvframegenerator.cc | 40 // background-width/background-height. 50 YuvFrameGenerator::YuvFrameGenerator(int width, int height, 53 height_ = height; 176 int* width, int* height) { 181 *height = kBarcodeBackgroundHeight; 243 int YuvFrameGenerator::DrawMiddleGuardBars(int x, int y, int height) { 245 DrawBlockRectangle(y_data_, x, y, kUnitBarSize, height, width_, 0); 247 DrawBlockRectangle(y_data_, x, y, kUnitBarSize, height, width_, 0); 251 int YuvFrameGenerator::DrawSideGuardBars(int x, int y, int height) { 252 DrawBlockRectangle(y_data_, x, y, kUnitBarSize, height, width_, 0) [all...] |
| /frameworks/base/core/jni/android/graphics/ |
| YuvToJpegEncoder.cpp | 27 int height, int* offsets, int jpegQuality) { 41 setJpegCompressStruct(&cinfo, width, height, jpegQuality); 53 int width, int height, int quality) { 55 cinfo->image_height = height; 85 int height = cinfo->image_height; local 87 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; 95 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); 97 // Jpeg library ignores the rows whose indices are greater than height. 104 // height and width are both halved because of downsampling 118 uint8_t* vRows, int rowIndex, int width, int height) { 161 int height = cinfo->image_height; local [all...] |
| /frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
| CameraPreviewActivity.java | 139 int width, int height) { 142 mPreviewTexHeight = height; 148 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 207 if (lhs.height < rhs.height) return -1; 208 if (lhs.height > rhs.height) return 1; 223 Integer.toString(mPreviewSizes.get(i).height); 272 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; 285 p.setPreviewSize(mPreviewSize.width, mPreviewSize.height); [all...] |
| /hardware/intel/img/psb_video/src/ |
| pnw_hostjpeg.h | 52 #define JPEG_MCU_NUMBER(width, height, eFormat) \ 53 ((((width) + 15) / 16) * (((height) + 15) / 16) * \ 56 #define JPEG_MCU_PER_CORE(width, height, core, eFormat) \ 57 ((core) > 1 ? (((uint32_t)JPEG_MCU_NUMBER(width, height, eFormat) + (core) - 1) / (core))\ 58 :(uint32_t)JPEG_MCU_NUMBER(width, height, eFormat)) 60 #define JPEG_SCANNING_COUNT(width, height, core, eFormat) \ 61 ((uint32_t)(JPEG_MCU_PER_CORE(width, height, core, eFormat) > JPEG_MAX_MCU_PER_SCAN) ? \ 62 ((uint32_t)(JPEG_MCU_NUMBER(width, height, eFormat) + JPEG_MAX_MCU_PER_SCAN - 1) \ 66 #define JPEG_MCU_PER_SCAN(width, height, core, eFormat) \ 67 ((JPEG_MCU_PER_CORE(width, height, core, eFormat) > JPEG_MAX_MCU_PER_SCAN) ? [all...] |
| /cts/tests/tests/mediastress/src/android/mediastress/cts/ |
| MediaRecorderStressTest.java | 222 int height; local 235 height = previewSizes.get(0).height; 237 if (size.width < width || size.height < height) { 239 height = size.height; 244 height = VIDEO_HEIGHT; 249 Log.v(TAG, String.format("Camera video size used for test %dx%d", width, height)); 271 mRecorder.setVideoSize(width, height); 299 int height; local [all...] |
| /cts/tests/tests/renderscript/src/android/renderscript/cts/ |
| YuvTest.java | 24 int height; field in class:YuvTest 39 return (height + 1) / 2; 45 height = h; 72 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); 76 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.F32_4(mRS), width, height)); 87 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; 89 for (int j = 0; j < (width * height); j++) { 129 tb.setY(height); 133 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; 135 for (int j = 0; j < (width * height); j++) [all...] |
| /external/mesa3d/src/gallium/state_trackers/egl/fbdev/ |
| native_fbdev.c | 78 int width, height; member in struct:fbdev_surface 100 int *width, int *height) 113 if (height) 114 *height = fbsurf->height; 153 unsigned x, y, width, height; local 158 height = MIN2(vinfo->yres, fbsurf->height); 167 if (y + height > vinfo->yres_virtual) { 169 height = 0 [all...] |
| /external/toybox/kconfig/lxdialog/ |
| menubox.c | 112 int height) 132 y = y + height + 1; 136 if ((height < item_no) && (scroll + height < item_no)) { 155 static void print_buttons(WINDOW * win, int height, int width, int selected) 158 int y = height - 2; 186 int height, width, menu_height; local 192 height = getmaxy(stdscr); 194 if (height < 15 || width < 65) 197 height -= 4 [all...] |
| /frameworks/native/opengl/libagl/ |
| texture.cpp | 138 Rect(native_buffer->width, native_buffer->height), 272 (dst.height == src.height) && 279 const size_t size = src.height * src.stride * pixelFormat.size; 356 GLenum format, GLenum type, GLsizei width, GLsizei height, 373 const size_t size = bpr * height; 380 width, height, stride, formatIdx, compressedFormat, bpr); 391 width, height, stride, formatIdx, compressedFormat, bpr); 401 static GLsizei dataSizePalette4(int numLevels, int width, int height, int format) 436 int h = (height >> i) ? : 1 [all...] |
| /packages/apps/Camera2/src/com/android/camera/settings/ |
| ResolutionUtil.java | 109 return Integer.compare(size2.width() * size2.height(), 110 size.width() * size.height()); 113 maxPixels = sizes.get(0).width() * sizes.get(0).height(); 170 return size.width() * size.height(); 278 return aspectRatio.width() + "x" + aspectRatio.height(); 290 BigInteger height = BigInteger.valueOf(aspectRatio.height()); local 291 BigInteger gcd = width.gcd(height); 292 int numerator = Math.max(width.intValue(), height.intValue()) / gcd.intValue(); 293 int denominator = Math.min(width.intValue(), height.intValue()) / gcd.intValue() 334 BigInteger height = BigInteger.valueOf(size.height()); local 348 int height = size.getHeight(); local [all...] |
| /build/tools/droiddoc/templates-ndk/assets/css/ |
| default.css | 17 height: 100%; 38 height: 80px; 41 line-height: 48px; 56 height: 0; 60 height: 1px; } 68 line-height: 15px; } 76 min-height: 10px; 86 min-height:5px; /* silly way to avoid doc floating left when nav goes fixed */ 101 top: 65px; /* sticky-header height + 20px gutter */ 162 height: 1px; [all...] |
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/shapebuilders/ |
| EllipseShapeBuilder.java | 81 public static void build (MeshPartBuilder builder, float width, float height, int divisions, float centerX, float centerY, 83 build(builder, width, height, divisions, centerX, centerY, centerZ, normalX, normalY, normalZ, 0f, 360f); 87 public static void build (MeshPartBuilder builder, float width, float height, int divisions, final Vector3 center, 89 build(builder, width, height, divisions, center.x, center.y, center.z, normal.x, normal.y, normal.z); 93 public static void build (MeshPartBuilder builder, float width, float height, int divisions, final Vector3 center, 95 build(builder, width, height, divisions, center.x, center.y, center.z, normal.x, normal.y, normal.z, tangent.x, tangent.y, 100 public static void build (MeshPartBuilder builder, float width, float height, int divisions, float centerX, float centerY, 103 build(builder, width, height, divisions, centerX, centerY, centerZ, normalX, normalY, normalZ, tangentX, tangentY, tangentZ, 108 public static void build (MeshPartBuilder builder, float width, float height, int divisions, float centerX, float centerY, 110 build(builder, width, height, 0f, 0f, divisions, centerX, centerY, centerZ, normalX, normalY, normalZ, angleFrom, angleTo) [all...] |
| /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/ |
| HeightField.java | 20 /** This is a test class, showing how one could implement a height field. See also {@link HeightMapTest}. Do not expect this to be 21 * a fully supported and implemented height field class. 23 * Represents a HeightField, which is an evenly spaced grid of values, where each value defines the height on that position of the 27 * A height field has a width and height, specifying the width and height of the grid. Points on this grid are specified using 33 * {@link #corner11} members. Where `corner00` is the location on the grid at x:0, y;0, `corner01` at x:0, y:height-1, `corner10` 34 * at x:width-1, y:0 and `corner11` the location on the grid at x:width-1, y:height-1. 36 * The height and direction of the field can be set using the {@link #magnitude} vector. Typically this should be the vector 38 * The length of the `magnitude` specifies the height of the height field. In other words, the word coordinate of a point on th 81 public final int height; field in class:HeightField [all...] |
| /external/opencv3/modules/imgproc/src/ |
| samplers.cpp | 88 if( ip.y < src_size.height - win_size.height ) 89 rect.height = win_size.height; 92 rect.height = src_size.height - ip.y - 1; 93 if( rect.height < 0 ) 95 src += rect.height*src_step; 96 rect.height = 0; 141 center.y -= (win_size.height-1)*0.5f [all...] |
| /external/skia/src/gpu/vk/ |
| GrVkGpu.cpp | 239 bool GrVkGpu::onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 261 int left, int top, int width, int height, 283 // height); 301 success = this->uploadTexData(vkTex, left, top, width, height, config, 314 int left, int top, int width, int height, 330 &width, &height, &data, &rowBytes)) { 353 int texTop = kBottomLeft_GrSurfaceOrigin == desc.fOrigin ? tex->height() - top - height 356 VkDeviceSize size = height*layout.rowPitch; 367 char* dstRow = reinterpret_cast<char*>(mapPtr)+(height - 1)*layout.rowPitch [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
| GLES11Canvas.java | 128 public void setSize(int width, int height) { 129 Assert.assertTrue(width >= 0 && height >= 0); 133 mScreenHeight = height; 138 gl.glViewport(0, 0, width, height); 141 GLU.gluOrtho2D(gl, 0, width, 0, height); 150 Matrix.translateM(matrix, 0, 0, height, 0); 177 public void drawRect(float x, float y, float width, float height, GLPaint paint) { 185 scale(width, height, 1); 213 public void fillRect(float x, float y, float width, float height, int color) { 219 scale(width, height, 1) 425 int height = texture.getHeight(); local 920 int height = texture.getHeight(); local 944 int height = texture.getTextureHeight(); local [all...] |
| /external/opencv3/3rdparty/libwebp/enc/ |
| vp8l.c | 58 const int height = pic->height; local 61 for (y = 0; y < height; ++y) { 106 int width, int height, int argb_stride, 121 for (y = 0; y < height; ++y) { 165 if (!AnalyzeEntropy(pic->argb, pic->width, pic->height, pic->argb_stride, 474 int width, int height, int quality) { 484 if (!VP8LGetBackwardReferences(width, height, argb, quality, 0, 1, &refs)) { 521 int width, int height, int quality, 528 VP8LSubSampleSize(height, histogram_bits) 739 const int height = pic->height - 1; local 880 const int height = pic->height; local 979 const int height = picture->height; local 1083 int width, height; local [all...] |