| /external/opencv3/modules/java/generator/src/java/ |
| android+JavaCameraView.java | 55 return size.height; 67 protected boolean initializeCamera(int width, int height) { 145 Size frameSize = calculateCameraFrameSize(sizes, new JavaCameraSizeAccessor(), width, height); 148 Log.d(TAG, "Set preview size to " + Integer.valueOf((int)frameSize.width) + "x" + Integer.valueOf((int)frameSize.height)); 149 params.setPreviewSize((int)frameSize.width, (int)frameSize.height); 164 mFrameHeight = params.getPreviewSize().height; 166 if ((getLayoutParams().width == LayoutParams.MATCH_PARENT) && (getLayoutParams().height == LayoutParams.MATCH_PARENT)) 167 mScale = Math.min(((float)height)/mFrameHeight, ((float)width)/mFrameWidth); 236 protected boolean connectCamera(int width, int height) { 243 if (!initializeCamera(width, height)) [all...] |
| /external/pdfium/xfa/src/fxbarcode/pdf417/ |
| BC_PDF417BarcodeMatrix.cpp | 26 CBC_BarcodeMatrix::CBC_BarcodeMatrix(int32_t height, int32_t width) {
27 m_matrix.SetSize(height + 2);
33 m_height = height + 2;
|
| /external/skia/debugger/QT/ |
| SkGLWidget.cpp | 61 GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height()); 72 SkASSERT(w == this->width() && h == this->height()); 89 desc.fHeight = SkScalarRoundToInt(this->height());
|
| /external/skia/gm/ |
| textblobcolortrans.cpp | 39 SkScalar yOffset = bounds.height(); 79 for (int y = 0; y + SkScalarFloorToInt(bounds.height()) < kHeight; 80 y += SkScalarFloorToInt(bounds.height())) {
|
| /external/skia/src/core/ |
| SkBitmap.cpp | 106 SkIntToScalar(fInfo.width()), SkIntToScalar(fInfo.height())); 111 bounds->set(0, 0, fInfo.width(), fInfo.height()); 132 if (info.width() < 0 || info.height() < 0) { 191 SkASSERT(fInfo.height() <= prInfo.height()); 213 fPixelRefOrigin.set(SkTPin(dx, 0, info.width()), SkTPin(dy, 0, info.height())); 398 mask.fBounds.height()), 490 for (int row = 0; row < info.height(); ++row) { 538 SkASSERT((unsigned)y < (unsigned)this->height()); 570 SkASSERT((unsigned)y < (unsigned)this->height()); 625 const int height = pmap.height(); local 1158 const int height = SkMax32(info.height(), 0); local [all...] |
| SkNinePatchIter.cpp | 11 bool SkNinePatchIter::Valid(int width, int height, const SkIRect& center) { 12 return !center.isEmpty() && SkIRect::MakeWH(width, height).contains(center); 44 fDstY[1] = fDstY[0] + (fDstY[3] - fDstY[0]) * c.fTop / (h - c.height());
|
| SkReadBuffer.cpp | 196 const int height = this->readInt(); local 229 if (bitmap->width() == width && bitmap->height() == height) { 236 fDecodedBitmapIndex, width, height, length, xOffset, 240 // If the width and height match, there should be no offset. 246 // the recorded width and height must be smaller than or equal to 247 // the encoded width and height. 249 // sources encoder agree on the width and height which may not 252 //SkASSERT(width <= bitmap->width() && height <= bitmap->height()); 295 int height = this->read32(); local [all...] |
| SkSpecialImage.cpp | 114 return info.height() * rowBytes; 121 SkRect dst = SkRect::MakeXYWH(x, y, this->subset().width(), this->subset().height()); 157 static bool rect_fits(const SkIRect& rect, int width, int height) { 160 rect.fTop >= 0 && rect.fTop < height && rect.fTop < rect.fBottom && 161 rect.fBottom >= 0 && rect.fBottom <= height; 166 SkASSERT(rect_fits(subset, image->width(), image->height())); 195 this->subset().width(), this->subset().height()); 235 SkASSERT(rect_fits(subset, bm.width(), bm.height())); 262 this->subset().width(), this->subset().height()); 267 fTexture->width(), fTexture->height(), this->isOpaque(), &bm) [all...] |
| /external/skia/src/gpu/ |
| GrGlyph.h | 49 fTooLargeForAtlas = GrBatchAtlas::GlyphTooLargeForAtlas(bounds.width(), bounds.height()); 60 int height() const { return fBounds.height(); } function in struct:GrGlyph
|
| GrLayerAtlas.h | 49 void init(int id, int offX, int offY, int width, int height); 51 bool allocateRect(int width, int height, SkIPoint16*); 105 // Requests a width x height block in the atlas. Upon success it returns 108 Plot* addToAtlas(ClientPlotUsage*, int width, int height, SkIPoint16* loc);
|
| /external/skia/src/image/ |
| SkImage.cpp | 30 SkImage::SkImage(int width, int height, uint32_t uniqueID) 32 , fHeight(height) 36 SkASSERT(height > 0); 54 if (!rec.trim(this->width(), this->height())) { 61 if (this->width() == dst.width() && this->height() == dst.height()) { 144 str->appendf("image: (id:%d (%d, %d) %s)", this->uniqueID(), this->width(), this->height(), 154 const SkIRect bounds = SkIRect::MakeWH(this->width(), this->height()); 214 SkImage_Base::SkImage_Base(int width, int height, uint32_t uniqueID) 215 : INHERITED(width, height, uniqueID [all...] |
| /external/skia/tests/ |
| VkClearTests.cpp | 24 int height) { 39 for (int j = 0; j < height; ++j) { 101 const int height = 10; local 103 const int subHeight = height/2; 106 SkAutoTMalloc<GrColor> buffer(width * height); 113 surfDesc.fHeight = height; 123 gpu->readPixels(tex, 0, 0, width, height, config, (void*)buffer.get(), 0); 129 height)); 139 gpu->readPixels(tex, 0, 0, width, height, config, (void*)buffer.get(), 0); 144 height)); [all...] |
| /external/skia/tools/ |
| skdiff_html.cpp | 13 /// Make layout more consistent by scaling image to 240 height, 360 width, 15 static int compute_image_height(int height, int width) { 17 if (height < retval) { 18 retval = height; 20 float scale = (float) retval / height; 23 retval = static_cast<int>(height * scale); 83 diff.fBase.fBitmap.height())); 163 static void print_image_cell(SkFILEWStream* stream, const SkString& path, int height) { 168 stream->writeText("\" height=\""); 169 stream->writeDecAsText(height); 201 int height = compute_image_height(resource.fBitmap.height(), resource.fBitmap.width()); local [all...] |
| /external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/ |
| SwingHelper.java | 52 loc.y += (size.height - cmpSize.height)/2; 53 cmp.setBounds(loc.x, loc.y, cmpSize.width, cmpSize.height);
|
| /external/webrtc/talk/app/webrtc/ |
| videotrack_unittest.cc | 90 EXPECT_EQ(123, renderer_1->height()); 99 EXPECT_EQ(123, renderer_1->height()); 101 EXPECT_EQ(123, renderer_2->height());
|
| /external/webrtc/webrtc/modules/desktop_capture/win/ |
| cursor_unittest.cc | 60 int height = bitmap_info.bmHeight; local 61 EXPECT_TRUE(DesktopSize(width, height).equals(mouse_shape->image()->size())); 64 int size = width * height;
|
| /external/webrtc/webrtc/test/ |
| fake_decoder.cc | 24 size_t height = config->height; local 26 static_cast<int>(height),
|
| frame_generator.cc | 26 ChromaGenerator(size_t width, size_t height) 27 : angle_(0.0), width_(width), height_(height) { 29 assert(height > 0); 59 size_t height, 64 height_(height), 72 assert(height > 0); 195 const int kTargetHeight = current_frame_.height(); 199 int scroll_margin_y = current_source_frame_->height() - kTargetHeight; 237 size_t height) { 238 return new ChromaGenerator(width, height); [all...] |
| /frameworks/av/cmds/stagefright/ |
| jpeg.cpp | 40 int writeJpegFile(const char *filename, uint8_t *frame, int width, int height) { 64 cinfo.image_height = height; 73 for (int row = 0; row < height; row++) {
|
| /frameworks/base/core/java/android/view/ |
| HardwareLayer.java | 100 * return false if the requested width/height cannot be satisfied 103 * @param height The new height of this layer 109 public boolean prepare(int width, int height, boolean isOpaque) { 110 return nPrepare(mFinalizer.get(), width, height, isOpaque); 148 private static native boolean nPrepare(long layerUpdater, int width, int height, boolean isOpaque);
|
| /frameworks/base/core/java/com/android/internal/util/ |
| UserIcons.java | 52 final int height = icon.getIntrinsicHeight(); local 53 Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 55 icon.setBounds(0, 0, width, height);
|
| /frameworks/base/core/tests/coretests/src/android/view/ |
| IncludeTest.java | 57 assertTrue("Both buttons should have different height", 58 button1.getLayoutParams().height != button2.getLayoutParams().height); 77 assertEquals("Included button should be 23dip x 23dip", 23, lp.height);
|
| /frameworks/base/media/java/android/media/ |
| RemoteDisplay.java | 129 final int width, final int height, final int flags, final int session) { 133 mListener.onDisplayConnected(surface, width, height, flags, session); 163 int width, int height, int flags, int session);
|
| /frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
| FilterSurfaceView.java | 118 int height) { 122 mHeight = height; 127 mListener.surfaceChanged(holder, format, width, height);
|
| GLEnvironment.java | 110 public int registerSurfaceTexture(SurfaceTexture surfaceTexture, int width, int height) { 112 int result = nativeAddSurfaceWidthHeight(surface, width, height); 173 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height);
|