Searched refs:width (Results 26 - 50 of 715) sorted by relevance

1234567891011>>

/frameworks/base/opengl/java/android/opengl/
H A DETC1.java86 public static native int getEncodedDataSize(int width, int height); argument
97 public static native void encodeImage(Buffer in, int width, int height, argument
110 int width, int height, int pixelSize, int stride);
115 * @param width the width of the image in pixels.
118 public static native void formatHeader(Buffer header, int width, int height); argument
127 * Read the image width from a PKM header
109 decodeImage(Buffer in, Buffer out, int width, int height, int pixelSize, int stride) argument
/frameworks/base/core/java/android/view/
H A DGLES20RenderLayer.java34 GLES20RenderLayer(int width, int height, boolean isOpaque) { argument
35 super(width, height, isOpaque);
38 mLayer = GLES20Canvas.nCreateLayer(width, height, isOpaque, layerInfo);
57 boolean resize(int width, int height) { argument
58 if (!isValid() || width <= 0 || height <= 0) return false;
60 mWidth = width;
63 if (width != mLayerWidth || height != mLayerHeight) {
66 if (GLES20Canvas.nResizeLayer(mLayer, width, height, layerInfo)) {
H A DHardwareLayer.java34 * Indicates an unknown dimension (width or height.)
55 * @param width The minimum width of the layer
59 HardwareLayer(int width, int height, boolean isOpaque) { argument
60 mWidth = width;
74 * Returns the minimum width of the layer.
76 * @return The minimum desired width of the hardware layer
136 * @param width The new desired minimum width for this layer
140 abstract boolean resize(int width, in argument
186 update(int width, int height, boolean isOpaque) argument
[all...]
/frameworks/base/media/jni/mediaeditor/
H A DVideoEditorThumbnailMain.h45 * @param width (IN) Width of thumbnail
51 M4OSA_Int32* pixelArray, M4OSA_UInt32 width,
60 * @param width (IN) Width of thumbnail
66 M4OSA_Int16* pixelArray, M4OSA_UInt32 width,
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java28 public final float width; field in class:OrientedBoundingBox
38 width = w;
58 point[0] = -width / 2;
66 point[0] = -width / 2;
71 point[0] = width / 2;
76 point[0] = width / 2;
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java263 * Common code for checking that width and height are > 0
265 * @param width width to ensure is > 0
268 private static void checkWidthHeight(int width, int height) { argument
269 if (width <= 0) {
270 throw new IllegalArgumentException("width must be > 0");
451 * specified width and height are the same as the current width and height of
456 * @param dstWidth The new bitmap's desired width.
474 final int width
513 createBitmap(Bitmap source, int x, int y, int width, int height) argument
540 createBitmap(Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter) argument
632 createBitmap(int width, int height, Config config) argument
647 createBitmap(DisplayMetrics display, int width, int height, Config config) argument
665 createBitmap(int width, int height, Config config, boolean hasAlpha) argument
684 createBitmap(DisplayMetrics display, int width, int height, Config config, boolean hasAlpha) argument
723 createBitmap(int colors[], int offset, int stride, int width, int height, Config config) argument
748 createBitmap(DisplayMetrics display, int colors[], int offset, int stride, int width, int height, Config config) argument
787 createBitmap(int colors[], int width, int height, Config config) argument
808 createBitmap(DisplayMetrics display, int colors[], int width, int height, Config config) argument
1134 getPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1174 checkPixelsAccess(int x, int y, int width, int height, int offset, int stride, int pixels[]) argument
1248 setPixels(int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1393 nativeCreate(int[] colors, int offset, int stride, int width, int height, int nativeConfig, boolean mutable) argument
1411 nativeGetPixels(int nativeBitmap, int[] pixels, int offset, int stride, int x, int y, int width, int height) argument
1417 nativeSetPixels(int nativeBitmap, int[] colors, int offset, int stride, int x, int y, int width, int height) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dmp4dec_lib.h95 void BlockIDCT(uint8 *dst, uint8 *pred, int16 *blk, int width, int nzcoefs,
149 int width, /* i */
163 int width, /* i */
200 int width, /* i */
211 int width,
220 int width, /* i */
227 int width, /* i */
234 int width, /* i */
241 int width, /* i */
252 int width,
[all...]
H A Dpost_filter.cpp43 int width, height; local
50 width = video->width;
52 size = (int32)width * height;
75 CombinedHorzVertRingFilter(output, width, height, QP_store, 0, pp_mod);
83 CombinedHorzVertFilter(output, width, height,
88 CombinedHorzVertFilter_NoSoftDeblocking(output, width, height,
94 Deringing_Luma(output, width, height, QP_store,
107 CombinedHorzVertRingFilter(output, (int)(width >> 1), (int)(height >> 1), QP_store, (int) 1, pp_mod);
115 CombinedHorzVertFilter(output, (int)(width >>
176 H263_Deblock(uint8 *rec, int width, int height, int16 *QP_store, uint8 *mode, int chr, int annex_T) argument
[all...]
H A Dadaptive_smooth_no_mmx.cpp51 width = value of type int that specifies the width of the display
90 location of pelc0 = [(y_start+1) * width] + x_start
93 incrementing or decrementing "width" elements within Rec_Y.
97 (y_blk_start, x_blk_start). The width and height of the block is BLKSIZE.
219 int width, /* i */
248 addr_v = (int32)(y_start + 1) * width; /* y coord of 1st element in the row /
264 pelu = *(Rec_Y_ptr - width); /* assigning value of pelu0 to pelu */
269 pell = *(Rec_Y_ptr + width); /* assigning value of pell0 to pell */
278 pelu = *(Rec_Y_ptr - width); /* assignin
212 AdaptiveSmooth_NoMMX( uint8 *Rec_Y, int y_start, int x_start, int y_blk_start, int x_blk_start, int thr, int width, int max_diff ) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DViewManager.java42 int width; field in class:ViewManager.ChildView
49 void setBounds(int x, int y, int width, int height) { argument
52 this.width = width;
56 void attachView(int x, int y, int width, int height) { argument
60 setBounds(x, y, width, height);
122 int width = mWebView.contentToViewDimension(v.width);
132 lp.width = width;
[all...]
/frameworks/base/tests/RenderScriptTests/SurfaceTexture/src/com/example/android/rs/sto/
H A DCameraCapture.java59 public synchronized void beginCapture(int cameraId, int width, int height, argument
65 openCamera(width, height);
121 private void openCamera(int width, int height) { argument
124 mCamera.setParameters(calcCameraParameters(width, height));
138 private Camera.Parameters calcCameraParameters(int width, int height) { argument
143 int closestSize[] = findClosestSize(width, height, params);
157 private int[] findClosestSize(int width, int height, Camera.Parameters parameters) { argument
161 int smallestWidth = previewSizes.get(0).width;
168 if ( size.width <= width
[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;
78 const float dx = width * (ratio / current_ratio - 1.0f);
80 width += dx;
90 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) {
94 const float current_length = width > height ? width : height;
96 const float dx = width * (length / current_length - 1.0f);
98 width += dx;
107 if (width <
[all...]
H A Dgeometry.h80 float width() const { return width_; } 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
99 this->width = width;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
H A Dh264bsdWriteMacroblock.s27 width RN 2 label
93 LDR width, [image, #4]
101 LSL width, width, #4
103 LSR cwidth, width, #1
104 VST1 {qRow0}, [luma@128], width
106 VST1 {qRow1}, [luma@128], width
108 VST1 {qRow2}, [luma@128], width
110 VST1 {qRow3}, [luma@128], width
112 VST1 {qRow4}, [luma@128], width
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
H A Dh264bsdWriteMacroblock.S29 #define width r2 define
95 LDR width, [image, #4]
103 LSL width, width, #4
105 LSR cwidth, width, #1
106 VST1 {qRow0}, [luma,:128], width
108 VST1 {qRow1}, [luma,:128], width
110 VST1 {qRow2}, [luma,:128], width
112 VST1 {qRow3}, [luma,:128], width
114 VST1 {qRow4}, [luma,:128], width
[all...]
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.h27 * @param width Width of the the Yuv data in terms of pixels.
33 bool encode(SkWStream* stream, void* inYuv, int width,
41 void setJpegCompressStruct(jpeg_compress_struct* cinfo, int width,
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 DYuvToJpegEncoder.cpp24 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, argument
39 setJpegCompressStruct(&cinfo, width, height, jpegQuality);
51 int width, int height, int quality) {
52 cinfo->image_width = width;
82 int width = cinfo->image_width; local
85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
86 uint8_t* uRows = new uint8_t [8 * (width >> 1)];
87 uint8_t* vRows = new uint8_t [8 * (width >> 1)];
93 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height);
102 // height and width ar
50 setJpegCompressStruct(jpeg_compress_struct* cinfo, int width, int height, int quality) argument
115 deinterleave(uint8_t* vuPlanar, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument
158 int width = cinfo->image_width; local
190 deinterleave(uint8_t* yuv, uint8_t* yRows, uint8_t* uRows, uint8_t* vRows, int rowIndex, int width, int height) argument
219 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, int format, int width, int height, jintArray offsets, jintArray strides, int jpegQuality, jobject jstream, jbyteArray jstorage) argument
[all...]
/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
82 this->width = width;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_reconstruct.c98 width width of the reference frame chrominance in pixels
101 chromaPartWidth width of the predicted part in pixels
113 u32 width,
135 if ((x0 < 0) || ((u32)x0+chromaPartWidth+1 > width) ||
138 h264bsdFillBlock(pRef, block, x0, y0, width, height,
140 pRef += width * height;
142 x0, y0, width, height, chromaPartWidth + 1,
148 width = chromaPartWidth+1;
157 ptrA = pRef + (comp * height + (u32)y0) * width
108 h264bsdInterpolateChromaHor( u8 *pRef, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 xFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument
204 h264bsdInterpolateChromaVer( u8 *pRef, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 yFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument
300 h264bsdInterpolateChromaHorVer( u8 *ref, u8 *predPartChroma, i32 x0, i32 y0, u32 width, u32 height, u32 xFrac, u32 yFrac, u32 chromaPartWidth, u32 chromaPartHeight) argument
426 u32 xFrac, yFrac, width, height, chromaPartWidth, chromaPartHeight; local
489 h264bsdInterpolateVerHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument
607 h264bsdInterpolateVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 verOffset) argument
741 h264bsdInterpolateHorHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument
864 h264bsdInterpolateHorQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horOffset) argument
1002 h264bsdInterpolateHorVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horVerOffset) argument
1208 h264bsdInterpolateMidHalf( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight) argument
1394 h264bsdInterpolateMidVerQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 verOffset) argument
1598 h264bsdInterpolateMidHorQuarter( u8 *ref, u8 *mb, i32 x0, i32 y0, u32 width, u32 height, u32 partWidth, u32 partHeight, u32 horOffset) argument
1832 u32 xFrac, yFrac, width, height; local
1981 u32 width, height; local
2219 h264bsdFillBlock( u8 *ref, u8 *fill, i32 x0, i32 y0, u32 width, u32 height, u32 blockWidth, u32 blockHeight, u32 fillScanLength) argument
[all...]
H A Dh264bsd_reconstruct.h76 u32 width,
87 u32 width,
98 u32 width,
109 u32 width,
121 u32 width,
131 u32 width,
142 u32 width,
152 u32 width,
163 u32 width,
174 u32 width,
[all...]
/frameworks/base/libs/hwui/
H A DShapeCache.cpp32 PathTexture* RoundRectShapeCache::getRoundRect(float width, float height, argument
34 RoundRectShapeCacheEntry entry(width, height, rx, ry, paint);
40 r.set(0.0f, 0.0f, width, height);
79 PathTexture* OvalShapeCache::getOval(float width, float height, SkPaint* paint) { argument
80 OvalShapeCacheEntry entry(width, height, paint);
86 r.set(0.0f, 0.0f, width, height);
103 PathTexture* RectShapeCache::getRect(float width, float height, SkPaint* paint) { argument
104 RectShapeCacheEntry entry(width, height, paint);
109 bounds.set(0.0f, 0.0f, width, height);
144 PathTexture* ArcShapeCache::getArc(float width, floa argument
[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/policy/
H A DIFaceLockInterface.aidl23 void startUi(IBinder containingWindowToken, int x, int y, int width, int height,
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRectShape.java43 protected void onResize(float width, float height) { argument
44 mRect.set(0, 0, width, height);
/frameworks/base/services/java/com/android/server/display/
H A DDisplayDeviceInfo.java85 * The width of the display in its natural orientation, in pixels.
88 public int width; field in class:DisplayDeviceInfo
153 public void setAssumedDensityForExternalDisplay(int width, int height) { argument
154 densityDpi = Math.min(width, height) * DisplayMetrics.DENSITY_XHIGH / 1080;
169 && width == other.width
189 width = other.width;
205 return "DisplayDeviceInfo{\"" + name + "\": " + width + " x " + height + ", "

Completed in 444 milliseconds

1234567891011>>