| /external/webrtc/webrtc/modules/video_capture/ |
| device_info_impl.cc | 167 const int32_t diffHeight = capability.height - requested.height; 171 const int32_t currentbestDiffHeight = bestHeight - requested.height; 174 if ((diffHeight >= 0 && diffHeight <= abs(currentbestDiffHeight)) // Height better or equalt that previouse. 178 if (diffHeight == currentbestDiffHeight) // Found best height. Care about the width) 208 // If width height and frame rate is full filled we can use the camera for encoding if it is supported. 209 if (capability.height == requested.height 227 bestHeight = capability.height; 241 bestHeight = capability.height; [all...] |
| /frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/ |
| m4v_h263_enc_test.cpp | 50 "<height> <frame rate> <bitrate in kbps>\n", argv[0]); 53 fprintf(stderr, "Max height %d\n", kMaxHeight); 70 // Read height and width. 72 int32_t height; local 74 height = atoi(argv[5]); 75 if (width > kMaxWidth || height > kMaxHeight || width <= 0 || height <= 0) { 76 fprintf(stderr, "Unsupported dimensions %dx%d\n", width, height); 80 if (width % 16 != 0 || height % 16 != 0) { 82 width, height); [all...] |
| /packages/apps/Launcher3/src/com/android/launcher3/util/ |
| IconNormalizer.java | 80 int height = d.getIntrinsicHeight(); local 81 if (width <= 0 || height <= 0) { 83 height = height <= 0 || height > mMaxSize ? mMaxSize : height; 84 } else if (width > mMaxSize || height > mMaxSize) { 85 int max = Math.max(width, height); 87 height = mMaxSize * height / max [all...] |
| /external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/ui/widget/ |
| Widget.java | 133 public void setHeight(float height) {
134 sizeMetrics.getHeightMetric().setValue(height);
137 public void setHeight(float height, SizeLayoutType layoutType) {
138 sizeMetrics.getHeightMetric().set(height, layoutType);
259 float elementHeight = getHeightPix(plotDimensions.paddedRect.height());
277 public PointF getElementCoordinates(float height, float width, RectF viewRect, PositionMetrics metrics) {
279 float y = metrics.getYPositionMetric().getPixelValue(viewRect.height()) + viewRect.top;
281 return PixelUtils.sub(point, getAnchorOffset(width, height, metrics.getAnchor()));
284 public static PointF getAnchorOffset(float width, float height, AnchorPosition anchorPosition) {
290 point.set(0, height / 2); [all...] |
| /external/bison/data/ |
| lalr1.java | 229 public int height = -1; 233 height++; 234 if (size == height) 237 System.arraycopy (stateStack, 0, newStateStack, 0, height); 241 System.arraycopy (locStack, 0, newLocStack, 0, height); 245 System.arraycopy (valueStack, 0, newValueStack, 0, height); 251 stateStack[height] = state; 252 ]b4_locations_if([[locStack[height] = loc;]])[ 253 valueStack[height] = value; 263 java.util.Arrays.fill (valueStack, height - num + 1, height + 1, null) [all...] |
| /external/chromium-trace/catapult/telemetry/telemetry/internal/image_processing/ |
| _bitmap.py | 41 # dimensions are: bpp, width, height, boxleft, boxtop, boxwidth, boxheight 88 def __init__(self, bpp, width, height, pixels, metadata=None): 91 assert height > 0, 'Invalid height' 93 assert bpp * width * height == len(pixels), 'Dimensions and pixels mismatch' 97 self._height = height 111 def height(self): member in class:Bitmap 134 self._metadata['size'] = (self.width, self.height) 150 width, height, pixels, meta = png.Reader(bytes=png_data).read_flat() 151 return Bitmap(4 if meta['alpha'] else 3, width, height, pixels, meta [all...] |
| /external/opencv/cv/src/ |
| cvcamshift.cpp | 52 // windowOut - Location, height and width of converged CAMSHIFT window 84 if( windowIn.height <= 0 || windowIn.width <= 0 ) 88 windowIn.y < 0 || windowIn.y + windowIn.height > mat->rows ) 109 dy = cvRound( moments.m01 * inv_m00 - windowIn.height*0.5 ); 121 else if( ny + cur_rect.height > mat->rows ) 122 ny = mat->rows - cur_rect.height; 154 // windowOut - Location, height and width of converged CAMSHIFT window 205 windowIn.height += 2 * TOLERANCE; 206 if( windowIn.y + windowIn.height > mat->height ) [all...] |
| /external/toybox/kconfig/lxdialog/ |
| textbox.c | 25 static void print_page(WINDOW * win, int height, int width); 55 int height, width, boxh, boxw; local 67 getmaxyx(stdscr, height, width); 68 if (height < 8 || width < 8) 71 height = initial_height; 73 if (height > 4) 74 height -= 4; 76 height = 0; 87 y = (LINES - height) / 2; 89 draw_shadow(stdscr, y, x, height, width) [all...] |
| /external/mesa3d/src/gallium/state_trackers/vega/ |
| image.c | 120 VGint width, VGint height) 127 dst_loc[3] = height; 132 src_loc[3] = height; 158 VGint width, VGint height) 165 dst_loc[3] = height; 170 src_loc[3] = height; 172 vg_get_copy_coords(src_loc, src->width, src->height, 173 dst_loc, dst->width, dst->height); 181 src->height - (src_loc[1] + src_loc[3]), 183 src->height - src_loc[1] [all...] |
| /external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
| VideoCapturerAndroid.java | 279 // It does not matter if width and height are flipped. I.E, |width| = 640, |height| = 480 produce 280 // the same result as |width| = 480, |height| = 640. 282 public void onOutputFormatRequest(final int width, final int height, final int framerate) { 285 onOutputFormatRequestOnCameraThread(width, height, framerate); 292 public void changeCaptureFormat(final int width, final int height, final int framerate) { 295 startPreviewOnCameraThread(width, height, framerate); 396 final int width, final int height, final int framerate, 398 Logging.d(TAG, "startCapture requested: " + width + "x" + height 409 startCaptureOnCameraThread(width, height, framerate, frameObserver [all...] |
| /cts/libs/deviceutil/src/android/cts/util/ |
| BitmapUtils.java | 57 public static Bitmap generateRandomBitmap(int width, int height) { 58 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 61 for (int y = 0; y < height; y++) { 68 public static Bitmap generateWhiteBitmap(int width, int height) { 69 final Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 71 for (int y = 0; y < height; y++) {
|
| /external/clang/www/analyzer/scripts/ |
| expandcollapse.js | 1 // expand/collapse button (expander) is added if height of a cell content 5 // Height in pixels of an expander image. 11 // array[group][cell] of { 'height', 'expanded' }. 14 // height: a number, px; original height of a cell in a table. 24 // Returns { 'height', 'expanded' } info for a cell with a given id. 55 // We found a div wrapping a cell content whose height exceeds 72 with (data.style) { height = (CLIP_HEIGHT - EXPANDER_HEIGHT) + "px"; 103 expandableDiv.style.height = CLIP_HEIGHT + "px"; 106 // Keep original cell height and its ecpanded/cpllapsed state 111 CellsInfo[groupCount][cellCount] = { 'height' : originalHeight, property in class:CellsInfo [all...] |
| /external/deqp/modules/gles2/functional/ |
| es2fTextureSizeTests.cpp | 53 Texture2DSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps); 76 Texture2DSizeCase::Texture2DSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps) 82 , m_height (height) 122 tcu::Surface renderedFrame (viewport.width, viewport.height); 123 tcu::Surface referenceFrame (viewport.width, viewport.height); 134 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); 168 TextureCubeSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps); 196 TextureCubeSizeCase::TextureCubeSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps) 202 , m_height (height) 265 tcu::Surface renderedFrame (viewport.width, viewport.height); 336 int height; member in struct:deqp::gles2::Functional::__anon10785 349 int height; member in struct:deqp::gles2::Functional::__anon10786 379 int height = sizes2D[sizeNdx].height; local 402 int height = sizesCube[sizeNdx].height; local [all...] |
| /external/deqp/modules/gles3/functional/ |
| es3fTextureSizeTests.cpp | 53 Texture2DSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps); 76 Texture2DSizeCase::Texture2DSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps) 82 , m_height (height) 122 tcu::Surface renderedFrame (viewport.width, viewport.height); 123 tcu::Surface referenceFrame (viewport.width, viewport.height); 134 gl.viewport(viewport.x, viewport.y, viewport.width, viewport.height); 168 TextureCubeSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps); 196 TextureCubeSizeCase::TextureCubeSizeCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const char* name, const char* description, deUint32 format, deUint32 dataType, int width, int height, bool mipmaps) 202 , m_height (height) 265 tcu::Surface renderedFrame (viewport.width, viewport.height); 336 int height; member in struct:deqp::gles3::Functional::__anon10967 349 int height; member in struct:deqp::gles3::Functional::__anon10968 379 int height = sizes2D[sizeNdx].height; local 402 int height = sizesCube[sizeNdx].height; local [all...] |
| /external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/model/property/editor/ |
| BooleanObjectPropertyEditor.java | 48 public void paint(Property property, GC gc, int x, int y, int width, int height) throws Exception { 54 paint(gc, x, y, width, height, text, image); 59 paint(gc, x, y, width, height, text, image); 63 private void paint(GC gc, int x, int y, int width, int height, String text, Image image) { 66 DrawUtils.drawImageCV(gc, image, x, y, height); 74 DrawUtils.drawStringCV(gc, text, x, y, width, height);
|
| BooleanPropertyEditor.java | 48 public void paint(Property property, GC gc, int x, int y, int width, int height) throws Exception { 54 paint(gc, x, y, width, height, image, text); 56 paint(gc, x, y, width, height, m_unknownImage, "unknown"); 63 private void paint(GC gc, int x, int y, int width, int height, Image image, String text) { 66 DrawUtils.drawImageCV(gc, image, x, y, height); 73 DrawUtils.drawStringCV(gc, text, x, y, width, height);
|
| /external/libdrm/tests/kms/ |
| libkms-test-framebuffer.c | 41 unsigned int height, 55 fb->height = height; 60 args.height = height; 88 err = drmModeAddFB2(device->fd, width, height, format, handles,
|
| /external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/ |
| btConeShape.cpp | 20 btConeShape::btConeShape (btScalar radius,btScalar height): btConvexInternalShape (), 22 m_height(height) 30 btConeShapeZ::btConeShapeZ (btScalar radius,btScalar height): 31 btConeShape(radius,height) 36 btConeShapeX::btConeShapeX (btScalar radius,btScalar height): 37 btConeShape(radius,height)
|
| /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/texturepacker/ |
| GridPacker.java | 42 cellHeight = Math.max(cellHeight, rect.height); 77 rect.height += settings.paddingY; 81 page.height = Math.max(page.height, y + cellHeight); 87 rect.y = page.height - rect.y - rect.height;
|
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
| EllipseSpawnShapeValue.java | 24 float height = spawnHeight + spawnHeightDiff * spawnHeightValue.getScale(percent); local 41 vector.set(0, height / 2 * MathUtils.sin(t), depth/2 * MathUtils.cos(t)); 44 if(height == 0){ 49 vector.set(width / 2 * MathUtils.cos(t), height / 2 * MathUtils.sin(t), 0); 54 radiusY = height / 2; 59 radiusY = MathUtils.random(height /2);
|
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/shapebuilders/ |
| ConeShapeBuilder.java | 26 public static void build (MeshPartBuilder builder, float width, float height, float depth, int divisions) { 27 build(builder, width, height, depth, divisions, 0, 360); 30 public static void build (MeshPartBuilder builder, float width, float height, float depth, int divisions, float angleFrom, 32 build(builder, width, height, depth, divisions, angleFrom, angleTo, true); 35 public static void build (MeshPartBuilder builder, float width, float height, float depth, int divisions, float angleFrom, 42 final float hh = height * 0.5f;
|
| /external/libvncserver/utils/ |
| bdf2c.pl | 27 ($width,$height,$x,$y)=($1,$2,$3,$4); 28 @encodings[$glyphindex*5..($glyphindex*5+4)]=($counter,$width,$height,$x,$y); 38 if($i>$height) {
|
| /external/opencv3/modules/core/include/opencv2/core/cuda/ |
| border_interpolate.hpp | 90 explicit __host__ __device__ __forceinline__ BrdColConstant(int height_, const D& val_ = VecTraits<D>::all(0)) : height(height_), val(val_) {} 99 return y < height ? saturate_cast<D>(*(const T*)((const char*)data + y * step)) : val; 104 return (y >= 0 && y < height) ? saturate_cast<D>(*(const T*)((const char*)data + y * step)) : val; 107 int height; member in struct:cv::cuda::device::BrdColConstant 115 __host__ __device__ __forceinline__ BrdConstant(int height_, int width_, const D& val_ = VecTraits<D>::all(0)) : height(height_), width(width_), val(val_) 121 return (x >= 0 && x < width && y >= 0 && y < height) ? saturate_cast<D>(((const T*)((const uchar*)data + y * step))[x]) : val; 126 return (x >= 0 && x < width && y >= 0 && y < height) ? saturate_cast<D>(src(y, x)) : val; 129 int height; member in struct:cv::cuda::device::BrdConstant 181 explicit __host__ __device__ __forceinline__ BrdColReplicate(int height) : last_row(height - 1) { 616 int height; member in struct:cv::cuda::device::BrdColWrap 673 int height; member in struct:cv::cuda::device::BrdWrap 714 int height; member in struct:cv::cuda::device::BorderReader [all...] |
| /external/replicaisland/src/com/replica/replicaisland/ |
| ScrollerComponent.java | 35 public ScrollerComponent(float speedX, float speedY, int width, int height, Texture texture) { 38 setup(speedX, speedY, width, height); 43 public ScrollerComponent(float speedX, float speedY, int width, int height, TiledVertexGrid grid) { 46 setup(speedX, speedY, width, height); 75 public void setup(float speedX, float speedY, int width, int height) { 79 mHeight = height; 81 mHalfHeight = sSystemRegistry.contextParameters.gameHeight / 2.0f; //height / 2.0f;
|
| /external/skia/gm/ |
| shallowgradient.cpp | 14 SkPoint pts[] = { { 0, 0 }, { size.width(), size.height() } }; 20 SkPoint center = { size.width()/2, size.height()/2 }; 26 SkPoint center = { size.width()/2, size.height()/2 }; 34 return SkGradientShader::CreateSweep(size.width()/2, size.height()/2, 61 SkRect r = { 0, 0, this->width(), this->height() }; 62 SkSize size = SkSize::Make(r.width(), r.height());
|