Searched refs:height (Results 26 - 50 of 1015) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DRenderBuffer.h35 RenderBuffer(GLenum format, uint32_t width, uint32_t height): argument
36 mFormat(format), mWidth(width), mHeight(height), mAllocated(false) {
92 void resize(uint32_t width, uint32_t height) { argument
93 if (isAllocated() && (width != mWidth || height != mHeight)) {
94 glRenderbufferStorage(GL_RENDERBUFFER, mFormat, width, height);
98 mHeight = height;
109 * Returns the height of the render buffer in pixels.
H A DPixelBuffer.h66 static PixelBuffer* create(GLenum format, uint32_t width, uint32_t height,
119 virtual void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) = 0;
129 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height) { argument
130 upload(x, y, width, height, getOffset(x, y));
141 * Returns the height of the render buffer in pixels.
202 PixelBuffer(GLenum format, uint32_t width, uint32_t height): argument
203 mFormat(format), mWidth(width), mHeight(height), mAccessMode(kAccessMode_None) {
H A DPathCache.cpp88 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
90 PathCache::computeBounds(bounds, paint, left, top, offset, width, height);
94 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) {
96 const float pathHeight = fmax(bounds.height(), 1.0f);
104 height = uint32_t(pathHeight + offset * 2.0 + 0.5);
107 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) { argument
108 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
125 float left, float top, float offset, uint32_t width, uint32_t height) {
126 initBitmap(bitmap, width, height);
137 uint32_t width, uint32_t height, uint32_
87 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
93 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument
124 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument
136 createTexture(float left, float top, float offset, uint32_t width, uint32_t height, uint32_t id) argument
240 purgeCache(uint32_t width, uint32_t height) argument
261 uint32_t width, height; local
341 uint32_t width, height; local
504 getRoundRect(float width, float height, float rx, float ry, const SkPaint* paint) argument
550 getOval(float width, float height, const SkPaint* paint) argument
573 getRect(float width, float height, const SkPaint* paint) argument
596 getArc(float width, float height, float startAngle, float sweepAngle, bool useCenter, const SkPaint* paint) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java109 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, argument
117 mHeight = height;
137 * width/height values
140 void reinit(int width, int height, boolean requestPremultiplied) { argument
142 mHeight = height;
188 * <p>Modifies the bitmap to have a specified width, height, and {@link
218 public void reconfigure(int width, int height, Config config) { argument
220 if (width <= 0 || height <= 0) {
221 throw new IllegalArgumentException("width and height must be > 0");
230 nativeReconfigure(mNativeBitmap, width, height, confi
264 setHeight(int height) argument
372 checkWidthHeight(int width, int height) argument
633 createBitmap(Bitmap source, int x, int y, int width, int height) argument
661 createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter) argument
755 createBitmap(int width, int height, Config config) argument
770 createBitmap(DisplayMetrics display, int width, int height, Config config) argument
788 createBitmap(int width, int height, Config config, boolean hasAlpha) argument
807 createBitmap(DisplayMetrics display, int width, int height, Config config, boolean hasAlpha) argument
844 createBitmap(int colors[], int offset, int stride, int width, int height, Config config) argument
869 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument
908 createBitmap(int colors[], int width, int height, Config config) argument
929 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument
1335 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1375 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1449 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1607 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument
1614 nativeReconfigure(long nativeBitmap, int width, int height, int config, int allocSize, boolean isPremultiplied) argument
1626 nativeGetPixels(long nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1631 nativeSetPixels(long nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
H A DYuvImage.java28 * region by left, top, width and height.
61 * The height of the the image.
72 * @param height The height of the YuvImage.
76 * @throws IllegalArgumentException if format is not support; width or height <= 0; or yuv is
79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { argument
87 if (width <= 0 || height <= 0) {
89 "width and height must large than 0");
105 mHeight = height;
142 rectangle.height(), offset
237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument
[all...]
/frameworks/base/media/mca/filterpacks/native/base/
H A Dgeometry.cpp72 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) {
76 const float current_ratio = width / height;
82 const float dy = height * (current_ratio / ratio - 1.0f);
84 height += dy;
90 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) {
94 const float current_length = width > height ? width : height;
99 const float dy = height * (length / current_length - 1.0f);
101 height += dy;
107 if (width <= 0.0f || height <
[all...]
H A Dgeometry.h81 float height() const { return height_; } function in class:android::filterfw::SlantedRect
89 float x, y, width, height; member in struct:android::filterfw::Rect
93 width = height = 1.0f;
96 Rect(float x, float y, float width, float height) { argument
100 this->height = height;
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
H A DSizeAdaptiveLayoutTest.java83 int height = (int) lp.minHeight + 10;
85 measureAndLayout(height);
100 int height = (int) lp.minHeight;
102 measureAndLayout(height);
117 int height = (int) lp.minHeight - 10;
119 measureAndLayout(height);
136 int height = (int) (lp.minHeight + 10);
138 measureAndLayout(height);
153 int height = (int) lp.minHeight + 10;
156 int measureSpec = View.MeasureSpec.makeMeasureSpec(height, Vie
473 measureAndLayout(int height) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DSize.java71 flatSizes.add(s.height());
87 int height = Integer.parseInt(flatSizes[i + 1]);
88 list.add(new Size(width,height));
98 public Size(int width, int height) { argument
99 val = new Point(width, height);
109 val = new Point(other.width(), other.height());
122 val = new Point(other.width, other.height);
156 public int height() { method in class:Size
176 return "Size: (" + this.width() + " x " + this.height() + ")";
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.h28 * @param height Height of the Yuv data in terms of pixels.
34 int height, int* offsets, int jpegQuality);
42 int height, int quality);
55 void deinterleaveYuv(uint8_t* yuv, int width, int height,
58 int rowIndex, int width, int height);
71 uint8_t* vRows, int rowIndex, int width, int height);
H A DPicture.cpp27 mHeight = src->height();
39 Canvas* Picture::beginRecording(int width, int height) { argument
43 mHeight = height;
44 SkCanvas* canvas = mRecorder->beginRecording(width, height, NULL, 0);
62 SkASSERT(mPicture->height() == mHeight);
68 int Picture::height() const { function in class:android::Picture
71 SkASSERT(mPicture->height() == mHeight);
83 newPict->mHeight = newPict->mPicture->height();
H A DPicture.h40 Canvas* beginRecording(int width, int height);
46 int height() const;
/frameworks/base/media/mca/filterfw/native/core/
H A Dgeometry.h72 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) { argument
83 this->height = height;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_reconstruct.h77 u32 height,
88 u32 height,
99 u32 height,
110 u32 height,
122 u32 height,
132 u32 height,
143 u32 height,
153 u32 height,
164 u32 height,
175 u32 height,
[all...]
/frameworks/base/media/mca/effect/java/android/media/effect/effects/
H A DIdentityEffect.java34 public void apply(int inputTexId, int width, int height, int outputTexId) { argument
37 Frame inputFrame = frameFromTexture(inputTexId, width, height);
38 Frame outputFrame = frameFromTexture(outputTexId, width, height);
/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java56 int height = bitmap.getHeight();
60 if (height > COMPACT_BITMAP_SIZE || width > COMPACT_BITMAP_SIZE) {
72 (float) COMPACT_BITMAP_SIZE / height,
77 width = height = COMPACT_BITMAP_SIZE;
80 final int size = height*width;
82 bitmap.getPixels(mTempBuffer, 0, width, 0, 0, width, height);
/frameworks/base/core/java/com/android/internal/widget/
H A DBackgroundFallback.java49 final int height = root.getHeight();
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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DAccessibilityNodeInfoHelper.java32 * @param height pixel height of the display
35 static Rect getVisibleBoundsInScreen(AccessibilityNodeInfo node, int width, int height) { argument
47 displayRect.bottom = height;
/frameworks/base/libs/hwui/tests/
H A DTestContext.cpp35 sp<SurfaceControl> createWindow(int width, int height) { argument
37 width, height, PIXEL_FORMAT_RGBX_8888);
/frameworks/base/libs/hwui/utils/
H A DBlur.h39 uint8_t* dest, int32_t width, int32_t height);
41 uint8_t* dest, int32_t width, int32_t height);
/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java75 int height = texture.getHeight();
79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height,
85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height)
87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride);
88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border,
117 public ETC1Texture(int width, int height, ByteBuffer data) { argument
119 mHeight = height;
130 * Get the height of the texture in pixels.
154 int height = 0;
167 height
192 compressTexture(Buffer input, int width, int height, int pixelSize, int stride) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DFrameOutput.cpp43 status_t FrameOutput::createInputSurface(int width, int height, argument
47 err = mEglWindow.createPbuffer(width, height);
53 glViewport(0, 0, width, height);
76 mGlConsumer->setDefaultBufferSize(width, height);
82 mPixelBuf = new uint8_t[width * height * kGlBytesPerPixel];
124 int height = mEglWindow.getHeight(); local
126 width, height, true);
139 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, mPixelBuf);
147 reduceRgbaToRgb(mPixelBuf, width * height);
155 size_t rgbDataLen = width * height * kOutBytesPerPixe
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DPackedIntVectorTest.java31 for (int height = width * 2; height < width * 4; height++) {
36 for (int i = 0; i < height; i++) {
49 if (i == height / 2) {
58 if (i == height / 2) {
68 for (int i = 0; i < height; i++) {
82 for (int i = 0; i < height; i++) {
98 for (int i = 0; i < height; i++) {
120 for (int i = 0; i < height;
[all...]
/frameworks/av/camera/
H A DCameraParameters2.cpp219 int width, height;
220 int success = parse_pair(sizeStartPtr, &width, &height, 'x',
226 sizes.push(Size(width, height));
235 void CameraParameters2::setPreviewSize(int width, int height)
238 sprintf(str, "%dx%d", width, height);
242 void CameraParameters2::getPreviewSize(int *width, int *height) const
244 *width = *height = -1;
248 parse_pair(p, width, height, 'x');
251 void CameraParameters2::getPreferredPreviewSizeForVideo(int *width, int *height) const
253 *width = *height
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dpp_semaphore_chroma_inter.cpp32 height = luminance VOP height in pixels (int)
119 int height, /* i */
160 else if (nmvy > (height >> 4) - 1)
162 nmvy = (height >> 4) - 1;
176 if (((dy&0xF) != 0) && (mmvy + 1 < (height >> 4) - 1))
111 pp_semaphore_chroma_inter( int xpred, int ypred, uint8 *pp_dec_u, uint8 *pstprcTypPrv, int dx, int dy, int mvwidth, int height, int32 size, int mv_loc, uint8 msk_deblock ) argument

Completed in 482 milliseconds

1234567891011>>