| /external/skia/src/codec/ |
| SkBmpMaskCodec.cpp | 53 if (rows != dstInfo.height()) { 78 const int height = dstInfo.height(); local 79 for (int y = 0; y < height; y++) { 87 uint32_t row = this->getDstRow(y, height); 93 return height;
|
| /external/webrtc/webrtc/common_video/ |
| i420_buffer_pool.cc | 28 int height() const override { return buffer_->height(); } 66 int height) { 70 if ((*it)->width() != width || (*it)->height() != height) 86 buffers_.push_back(new rtc::RefCountedObject<I420Buffer>(width, height));
|
| /external/webrtc/webrtc/tools/barcode_tools/ |
| yuv_cropper.py | 26 plane. The sizes equal width, height and crop_height for the Y plane, 27 and are equal to width/2, height/2 and crop_height/2 for the U and V 47 def crop_frames(yuv_file_name, output_file_name, width, height, crop_height): 58 height(int): The height of the original YUV file. 59 crop_height(int): The height (the number of pixel rows) to be cropped from 63 component_sizes = [(width, height, crop_height), 64 (width/2, height/2, crop_height/2), 65 (width/2, height/2, crop_height/2)] 87 parser.add_option('--height', type='int', default=288 [all...] |
| /frameworks/base/core/java/com/android/internal/widget/ |
| BackgroundFallback.java | 49 final int height = root.getHeight(); local 51 int top = height; 89 mBackgroundFallback.setBounds(0, top, left, height); 93 mBackgroundFallback.setBounds(right, top, width, height); 96 if (bottom < height) { 97 mBackgroundFallback.setBounds(left, bottom, right, height);
|
| /frameworks/base/libs/hwui/ |
| PixelBuffer.h | 67 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height, 112 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0; 122 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { 123 upload(x, y, width, height, getOffset(x, y)); 134 * Returns the height of the render buffer in pixels. 195 PixelBuffer(GLenum format, uint32_t width, uint32_t height): 196 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
|
| /frameworks/base/libs/hwui/renderstate/ |
| OffscreenBufferPool.h | 39 * texture.width/.height are actual allocated texture size. Texture will tend to be larger than the 40 * viewport bounds, since textures are always allocated with width / height as a multiple of 64, for 93 const uint32_t width, const uint32_t height); 96 const uint32_t width, const uint32_t height); 127 , height(OffscreenBuffer::computeIdealDimension(layerHeight)) {} 132 , height(layer->texture.height()) { 151 uint32_t height = 0; member in struct:android::uirenderer::OffscreenBufferPool::Entry
|
| /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
| JPEGOutputStream.java | 37 public JPEGOutputStream(OutputStream out, int width, int height, int quality, 40 setConfig(width, height, quality, format); 43 public boolean setConfig(int width, int height, int quality, int format) { 59 if (width > 0 && height > 0) { 61 mHeight = height; 135 native private int setup(OutputStream out, int width, int height, int format, int quality);
|
| /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
| StringTexture.java | 37 FontMetricsInt metrics, int width, int height) { 38 super(width, height); 75 int height = metrics.bottom - metrics.top; local 78 if (height <= 0) height = 1; 79 return new StringTexture(text, paint, metrics, width, height);
|
| /packages/screensavers/Basic/src/com/android/dreams/basic/ |
| Colors.java | 77 final int width, final int height) { 78 LOG("onSurfaceTextureAvailable(%s, %d, %d)", surface, width, height); 86 mRenderer = new ColorsGLRenderer(surface, width, height); 94 final int width, final int height) { 95 LOG("onSurfaceTextureSizeChanged(%s, %d, %d)", surface, width, height); 101 mRenderer.setSize(width, height);
|
| /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/ |
| ErrorImageComposite.java | 51 mSize = new Point(baseImage.getBounds().width, baseImage.getBounds().height); 55 protected void drawCompositeImage(int width, int height) { 60 if (overlayData.width == baseData.width && overlayData.height == baseData.height) { 62 drawImage(overlayData, -3, mSize.y - overlayData.height + 3); 64 drawImage(overlayData, 0, mSize.y - overlayData.height);
|
| /external/mesa3d/src/mesa/swrast/ |
| s_drawpix.c | 54 GLsizei width, GLsizei height, 60 height, GL_RGB, GL_UNSIGNED_BYTE, 0, 0); 67 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, 76 dst = dst + (height - 1) * dstRowStride; 80 for (i = 0; i < height; i++) { 101 GLsizei width, GLsizei height, 107 height, GL_RGBA, GL_UNSIGNED_BYTE, 0, 0); 114 ctx->Driver.MapRenderbuffer(ctx, rb, x, y, width, height, 123 dst = dst + (height - 1) * dstRowStride; 127 for (i = 0; i < height; i++) [all...] |
| /cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
| shadertoy_shader.h | 29 int height;
member in struct:InputTextures 38 void PrepareForDraw(int width, int height, float global_time, int frame, float time_delta);
|
| /cts/tests/camera/src/android/hardware/cts/ |
| Camera_SizeTest.java | 90 float jpegAspect = largestJpegDimen.width / (float) largestJpegDimen.height; 92 largestPreviewDimen.width / (float) largestPreviewDimen.height; 97 largestPreviewDimen.height + ") should have the same aspect ratio " + 99 ", h=" + largestJpegDimen.height + ")"); 108 private void checkSize(Parameters parameters, int width, int height) { 109 parameters.setPictureSize(width, height); 111 assertEquals(height, parameters.getPictureSize().height);
|
| /cts/tests/openglperf2/jni/reference/scene/glowing/ |
| GlowingScene.h | 23 GlowingScene(int width, int height); 34 Matrix* setUpProjectionMatrix(float width, float height);
|
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| YuvImageTest.java | 58 private static final int HEIGHT = 128; 94 int height = 100; local 95 byte[] yuv = new byte[width * height * 2]; 101 image = new YuvImage(yuv, mFormats[i], width, height, null); 119 image = new YuvImage(yuv, mFormats[i], width, height, null); 133 image = new YuvImage(yuv, format, -1, height, null); 139 // abnormal case: height is non-positive 142 fail("not catching illegal height"); 149 image = new YuvImage(null, format, width, height, null); 158 generateTestBitmaps(WIDTH, HEIGHT); 201 int height = mTestBitmaps[0].getHeight(); local 234 int height = bitmap.getHeight(); local 354 int height = expected.getHeight(); local [all...] |
| /cts/tests/tests/rscpp/src/android/cts/rscpp/ |
| RSYuvTest.java | 32 int height; field in class:RSYuvTest 44 return (height + 1) / 2; 50 height = h; 77 return Allocation.createTyped(mRS, Type.createXY(mRS, Element.RGBA_8888(mRS), width, height)); 88 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)]; 90 for (int j = 0; j < (width * height); j++) { 105 byte[] nativeByteAlloc = new byte[width * height * 4]; 106 yuvTest(this.getContext().getCacheDir().toString(), width, height, tmp, nativeByteAlloc, 0); local 123 tb.setY(height); 127 byte tmp[] = new byte[(width * height) + (getCWidth() * getCHeight() * 2)] 144 yuvTest(this.getContext().getCacheDir().toString(), width, height, tmp, nativeByteAlloc, local 181 yuvTest(this.getContext().getCacheDir().toString(), width, height, tmp, nativeByteAlloc, local [all...] |
| /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
| BitmapComparer.java | 31 * @param height the height of the subsection being tested 35 int height); 43 Allocation given, int offset, int stride, int width, int height,
|
| /developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
| OverlayDisplayWindow.java | 62 int width, int height, int gravity) { 66 mHeight = height; 71 int width, int height, int gravity) { 73 return new JellybeanMr1Impl(context, name, width, height, gravity); 75 return new LegacyImpl(context, name, width, height, gravity); 91 public abstract void updateAspectRatio(int width, int height); 110 int width, int height, int gravity) { 111 super(context, name, width, height, gravity); 136 int height = (int)(display.getHeight() * INITIAL_SCALE); local 138 height = mHeight * width / mWidth 324 int height = (int)(mHeight * scale); local [all...] |
| /developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
| OverlayDisplayWindow.java | 62 int width, int height, int gravity) { 66 mHeight = height; 71 int width, int height, int gravity) { 73 return new JellybeanMr1Impl(context, name, width, height, gravity); 75 return new LegacyImpl(context, name, width, height, gravity); 91 public abstract void updateAspectRatio(int width, int height); 110 int width, int height, int gravity) { 111 super(context, name, width, height, gravity); 136 int height = (int)(display.getHeight() * INITIAL_SCALE); local 138 height = mHeight * width / mWidth 324 int height = (int)(mHeight * scale); local [all...] |
| /development/perftests/panorama/feature_mos/src/mosaic/ |
| AlignFeatures.h | 61 int initialize(int width, int height, bool quarter_res, float thresh_still); 85 int width,height; member in class:Align
|
| /development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
| CameraPreview.java | 199 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); 211 final int height = resolveSize(getSuggestedMinimumHeight(), heightMeasureSpec); local 212 setMeasuredDimension(width, height); 215 mPreviewSize = getOptimalPreviewSize(mSupportedPreviewSizes, width, height); 225 final int height = b - t; local 228 int previewHeight = height; 231 previewHeight = mPreviewSize.height; 235 if (width * previewHeight > height * previewWidth) { 236 final int scaledChildWidth = previewWidth * height / previewHeight; 238 (width + scaledChildWidth) / 2, height); [all...] |
| /development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
| CameraFragment.java | 218 final int height = resolveSize(getSuggestedMinimumHeight(), local 220 setMeasuredDimension(width, height); 224 height); 229 parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); 241 final int height = b - t; local 244 int previewHeight = height; 247 previewHeight = mPreviewSize.height; 251 if (width * previewHeight > height * previewWidth) { 252 final int scaledChildWidth = previewWidth * height 255 (width + scaledChildWidth) / 2, height); [all...] |
| /development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
| OverlayDisplayWindow.java | 62 int width, int height, int gravity) { 66 mHeight = height; 71 int width, int height, int gravity) { 73 return new JellybeanMr1Impl(context, name, width, height, gravity); 75 return new LegacyImpl(context, name, width, height, gravity); 91 public abstract void updateAspectRatio(int width, int height); 110 int width, int height, int gravity) { 111 super(context, name, width, height, gravity); 136 int height = (int)(display.getHeight() * INITIAL_SCALE); local 138 height = mHeight * width / mWidth 324 int height = (int)(mHeight * scale); local [all...] |
| /external/ImageMagick/Magick++/lib/Magick++/ |
| ResourceLimits.h | 37 // The maximum height of an image. 38 static void height(const MagickSizeType limit_); 39 static MagickSizeType height(void);
|
| /external/autotest/client/deps/glbench/src/ |
| testbase.h | 31 // coefficient = width * height (measured in pixels), inverse = true 40 const int height, 72 // iteration updates a window of width by height pixels. 74 const int width, const int height);
|