Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 1604) sorted by relevance

12345678910>>...65

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DColorSpace.java42 ByteBuffer input, ByteBuffer output, int width, int height) { in convertYuv420pToRgba8888() argument
43 expectInputSize(input, (3 * width * height) / 2); in convertYuv420pToRgba8888()
44 expectOutputSize(output, width * height * 4); in convertYuv420pToRgba8888()
45 nativeYuv420pToRgba8888(input, output, width, height); in convertYuv420pToRgba8888()
61 ByteBuffer input, ByteBuffer output, int width, int height) { in convertArgb8888ToRgba8888() argument
62 expectInputSize(input, width * height * 4); in convertArgb8888ToRgba8888()
63 expectOutputSize(output, width * height * 4); in convertArgb8888ToRgba8888()
64 nativeArgb8888ToRgba8888(input, output, width, height); in convertArgb8888ToRgba8888()
80 ByteBuffer input, ByteBuffer output, int width, int height) { in convertRgba8888ToHsva8888() argument
81 expectInputSize(input, width * height * 4); in convertRgba8888ToHsva8888()
[all …]
/frameworks/av/media/codecs/m4v_h263/dec/src/
Dmb_motion_comp.cpp144 int height, width, pred_width; in MBMotionComp() local
165 width = video->width; in MBMotionComp()
181 offset = (int32)ypos * width + xpos; in MBMotionComp()
268 pred_width = width; in MBMotionComp()
272 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp()
278 GetPredAdvBTable[ypred&1][xpred&1](c_prev + (xpred >> 1) + ((ypred >> 1)*width), in MBMotionComp()
279 pred, width, (pred_width << 1) | round1); in MBMotionComp()
286 pred, width, height, round1, pred_width); in MBMotionComp()
304 pred_width = width; in MBMotionComp()
308 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp()
[all …]
Dmb_utils.cpp25 void PutSKIPPED_MB(uint8 *comp, uint8 *prev, int width) in PutSKIPPED_MB() argument
42 comp += width; in PutSKIPPED_MB()
43 prev += width; in PutSKIPPED_MB()
53 comp += width; in PutSKIPPED_MB()
54 prev += width; in PutSKIPPED_MB()
64 comp += width; in PutSKIPPED_MB()
65 prev += width; in PutSKIPPED_MB()
74 comp += width; in PutSKIPPED_MB()
75 prev += width; in PutSKIPPED_MB()
86 void PutSKIPPED_B(uint8 *comp, uint8 *prev, int width) in PutSKIPPED_B() argument
[all …]
Dblock_idct.cpp123 static void idctrow(int16 *blk, uint8 *pred, uint8 *dst, int width);
124 static void idctrow_intra(int16 *blk, PIXEL *, int width);
231 int width, width_uv; in MBlockIDCT() local
233 width = video->width; in MBlockIDCT()
234 width_uv = width >> 1; in MBlockIDCT()
235 offset = (int32)(y_pos << 4) * width + (x_pos << 4); in MBlockIDCT()
241 BlockIDCT_intra(mblock, c_comp, 0, width); in MBlockIDCT()
242 BlockIDCT_intra(mblock, c_comp + 8, 1, width); in MBlockIDCT()
243 BlockIDCT_intra(mblock, c_comp + (width << 3), 2, width); in MBlockIDCT()
244 BlockIDCT_intra(mblock, c_comp + (width << 3) + 8, 3, width); in MBlockIDCT()
[all …]
Didct.h48 void idctrow0(int16 *blk, uint8 *pred, uint8 *dst, int width);
49 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width);
50 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width);
51 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width);
52 void idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width);
59 void idctrow0_intra(int16 *blk, PIXEL *comp, int width);
60 void idctrow1_intra(int16 *blk, PIXEL *comp, int width);
61 void idctrow2_intra(int16 *blk, PIXEL *comp, int width);
62 void idctrow3_intra(int16 *blk, PIXEL *comp, int width);
63 void idctrow4_intra(int16 *blk, PIXEL *comp, int width);
/frameworks/base/core/tests/coretests/src/android/text/
DPackedIntVectorTest.java39 for (int width = 0; width < 10; width++) { in testBasic()
40 PackedIntVector p = new PackedIntVector(width); in testBasic()
41 int[] ins = new int[width]; in testBasic()
43 for (int height = width * 2; height < width * 4; height++) { in testBasic()
44 assertEquals(p.width(), width); in testBasic() local
57 for (int j = 0; j < width; j++) { in testBasic()
69 for (int j = 0; j < width; j++) { in testBasic()
81 for (int j = 0; j < width; j++) { in testBasic()
90 for (int j = 0; j < width; j++) { in testBasic()
95 for (int j = 0; j < width; j++) { in testBasic()
[all …]
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java79 public YuvImage(byte[] yuv, int format, int width, int height, int[] strides) { in YuvImage() argument
87 if (width <= 0 || height <= 0) { in YuvImage()
97 mStrides = calculateStrides(width, format); in YuvImage()
104 mWidth = width; in YuvImage()
141 return nativeCompressToJpeg(mData, mFormat, rectangle.width(), in compressToJpeg()
199 private int[] calculateStrides(int width, int format) { in calculateStrides() argument
202 strides = new int[] {width, width}; in calculateStrides()
207 strides = new int[] {width * 2}; in calculateStrides()
215 int width = rect.width(); in adjustRectangle() local
219 width &= ~1; in adjustRectangle()
[all …]
DBitmap.java124 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
127 this(nativeBitmap, width, height, density, requestPremultiplied, ninePatchChunk, in Bitmap()
132 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument
139 mWidth = width; in Bitmap()
180 void reinit(int width, int height, boolean requestPremultiplied) { in reinit() argument
181 mWidth = width; in reinit()
280 public void reconfigure(int width, int height, Config config) { in reconfigure() argument
282 if (width <= 0 || height <= 0) { in reconfigure()
289 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure()
290 mWidth = width; in reconfigure()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DBitmapMeshLayerActivity.java49 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView() local
53 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapMeshView()
54 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapMeshView()
55 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapMeshView()
56 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapMeshView()
DBitmapMeshActivity.java48 final float width = mBitmap1.getWidth() / 3.0f; in BitmapMeshView() local
52 0.0f, 0.0f, width, 0.0f, width * 2, 0.0f, width * 3, 0.0f, in BitmapMeshView()
53 0.0f, height, width, height, width * 2, height, width * 4, height, in BitmapMeshView()
54 0.0f, height * 2, width, height * 2, width * 2, height * 2, width * 3, height * 2, in BitmapMeshView()
55 0.0f, height * 4, width, height * 4, width * 2, height * 4, width * 4, height * 4, in BitmapMeshView()
/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp20 IonBuffer::IonBuffer(uint32_t width, uint32_t height, uint32_t format, in IonBuffer() argument
23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage); in IonBuffer()
26 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, in IonBuffer() argument
28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride, in IonBuffer()
31 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, in IonBuffer() argument
38 handle, width, height, layer_count, stride, format, usage); in IonBuffer()
40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer()
48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer()
74 int IonBuffer::Alloc(uint32_t width, uint32_t height, uint32_t layer_count, in Alloc() argument
78 "usage=%" PRIx64, width, height, layer_count, format, usage); in Alloc()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/
DImagePoolImplTest.java51 int width = 700; in testImageDispose() local
55 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDispose()
56 Image img1 = pool.acquire(width, height, type, in testImageDispose()
68 int width = 700; in testImageDisposeFromFunction() local
72 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDisposeFromFunction()
74 BufferedImage img = createImageAndReturnBufferedImage(pool, width, height, type, cd); in testImageDisposeFromFunction()
84 int width = 700; in testImageDisposedAndRecycled() local
99 Image img1 = pool.acquire(width, height, type, in testImageDisposedAndRecycled()
117 Image img2 = pool.acquire(width - variant, height - variant, type, in testImageDisposedAndRecycled()
135 int width = 700; in testBufferedImageReleased() local
[all …]
DImagePoolHelperTest.java34 int width = 10; in testGetBufferedImage() local
37 int maxCacheSize = width * height * 4 * 5; // can fit 5 width | height buffer in testGetBufferedImage()
40 width, height, BufferedImage.TYPE_INT_ARGB, numberOfCopiesInBucket, Orientation in testGetBufferedImage()
49 int width = 10; in testGetBufferedImageRecurse() local
53 int maxCacheSize = width * height * 4 * numberOfCopiesToRequestInBucket; in testGetBufferedImageRecurse()
60width, height, BufferedImage.TYPE_INT_ARGB, numberOfCopiesToRequestInBucket, Orientation in testGetBufferedImageRecurse()
69 int width = 10; in testRecurseThenHitCacheLimit() local
73 int maxCacheSize = width * height * 4 * numberOfCopiesToRequestInBucket / 2; in testRecurseThenHitCacheLimit()
80width, height, BufferedImage.TYPE_INT_ARGB, numberOfCopiesToRequestInBucket, Orientation in testRecurseThenHitCacheLimit()
89 int width = 10; in testBucketHasImageToReturn() local
[all …]
/frameworks/base/libs/hwui/tests/common/scenes/
DBitmapFillrate.cpp37 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument
39 createNode(canvas, 0x909C27B0, 0, 0, width, height); in createContent()
40 createNode(canvas, 0xA0CDDC39, width / 3, height / 3, width, height); in createContent()
41 createNode(canvas, 0x90009688, width / 3, 0, width, height); in createContent()
42 createNode(canvas, 0xA0FF5722, 0, height / 3, width, height); in createContent()
43 createNode(canvas, 0x9000796B, width / 6, height / 6, width, height); in createContent()
44 createNode(canvas, 0xA0FFC107, width / 6, 0, width, height); in createContent()
56 void createNode(Canvas& canvas, SkColor color, int left, int top, int width, int height) { in createNode() argument
57 int itemWidth = 2 * width / 3; in createNode()
/frameworks/base/media/mca/filterfw/native/core/
Dgeometry.cpp73 if (width <= 0.0f || height <= 0.0f || ratio <= 0.0f) { in ExpandToAspectRatio()
77 const float current_ratio = width / height; in ExpandToAspectRatio()
79 const float dx = width * (ratio / current_ratio - 1.0f); in ExpandToAspectRatio()
81 width += dx; in ExpandToAspectRatio()
91 if (width <= 0.0f || height <= 0.0f || length <= 0.0f) { in ExpandToMinLength()
95 const float current_length = width > height ? width : height; in ExpandToMinLength()
97 const float dx = width * (length / current_length - 1.0f); in ExpandToMinLength()
99 width += dx; in ExpandToMinLength()
108 if (width <= 0.0f || height <= 0.0f || factor <= 0.0f) { in ScaleWithLengthLimit()
112 const float current_length = width > height ? width : height; in ScaleWithLengthLimit()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DTriangleShape.java37 public static TriangleShape create(float width, float height, boolean isPointingUp) { in create() argument
41 triangularPath.lineTo(width, height); in create()
42 triangularPath.lineTo(width / 2, 0); in create()
46 triangularPath.lineTo(width / 2, height); in create()
47 triangularPath.lineTo(width, 0); in create()
50 return new TriangleShape(triangularPath, width, height); in create()
55 float width, float height, boolean isPointingLeft) { in createHorizontal() argument
59 triangularPath.lineTo(width, height); in createHorizontal()
60 triangularPath.lineTo(width, 0); in createHorizontal()
64 triangularPath.lineTo(width, height / 2); in createHorizontal()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DTriangleShape.java39 public static TriangleShape create(float width, float height, boolean isPointingUp) { in create() argument
43 triangularPath.lineTo(width, height); in create()
44 triangularPath.lineTo(width / 2, 0); in create()
48 triangularPath.lineTo(width / 2, height); in create()
49 triangularPath.lineTo(width, 0); in create()
52 return new TriangleShape(triangularPath, width, height); in create()
57 float width, float height, boolean isPointingLeft) { in createHorizontal() argument
61 triangularPath.lineTo(width, height); in createHorizontal()
62 triangularPath.lineTo(width, 0); in createHorizontal()
66 triangularPath.lineTo(width, height / 2); in createHorizontal()
[all …]
/frameworks/base/media/jni/
Dandroid_media_Utils.cpp87 uint32_t width = buffer->width; in Image_getBlobSize() local
91 width = (buffer->width + buffer->stride * (buffer->height - 1)) * 4; in Image_getBlobSize()
95 uint8_t* header = blobBuffer + (width - sizeof(struct camera3_jpeg_blob)); in Image_getBlobSize()
112 __FUNCTION__, width); in Image_getBlobSize()
113 size = width; in Image_getBlobSize()
145 if (buffer->width % 2 != 0) { in getLockedImageInfo()
146 ALOGE("YCbCr_420_888: width (%d) should be a multiple of 2", buffer->width); in getLockedImageInfo()
155 if (buffer->width <= 0) { in getLockedImageInfo()
156 ALOGE("YCbCr_420_888: width (%d) should be a > 0", buffer->width); in getLockedImageInfo()
175 dataSize = buffer->stride * (buffer->height - 1) + buffer->width; in getLockedImageInfo()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java192 int width = pixels.getWidth(); in setThumbnail() local
195 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
196 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail()
202 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
233 int width = pixels.getWidth(); in setThumbnail() local
236 if (width > MAX_THUMBNAIL_DIMENSION || height > MAX_THUMBNAIL_DIMENSION) { in setThumbnail()
237 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail()
243 nativeSetThumbnail(rgbBuffer, width, height); in setThumbnail()
347 int width = size.getWidth(); in writeInputStream() local
349 if (width <= 0 || height <= 0) { in writeInputStream()
[all …]
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp101 int width = u_getIntPropertyValue(input, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidth() local
102 if (width < 0 || width > u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH)) in getEastAsianWidth()
103 width = PROPERTY_UNDEFINED; in getEastAsianWidth()
105 return width; in getEastAsianWidth()
135 int width = u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local
136 if (width < 0 || width > maxWidth) in getEastAsianWidths()
137 width = PROPERTY_UNDEFINED; in getEastAsianWidths()
139 dest[i++] = width; in getEastAsianWidths()
140 dest[i] = width; in getEastAsianWidths()
143 int width = u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); in getEastAsianWidths() local
[all …]
/frameworks/base/libs/hwui/jni/
DYuvToJpegEncoder.cpp35 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, in encode() argument
52 setJpegCompressStruct(&cinfo, width, height, jpegQuality); in encode()
66 int width, int height, int quality) { in setJpegCompressStruct() argument
67 cinfo->image_width = width; in setJpegCompressStruct()
97 int width = cinfo->image_width; in compress() local
101 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; in compress()
102 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; in compress()
108 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); in compress()
118 int offset = (i >> 1) * (width >> 1); in compress()
131 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copyPadded.java84 int width = random.nextInt(512); in testAllocation_Byte3_1D() local
85 int arr_len = width * 3; in testAllocation_Byte3_1D()
92 typeBuilder.setX(width); in testAllocation_Byte3_1D()
115 int width = random.nextInt(128); in testAllocation_Byte3_2D() local
117 int arr_len = width * height * 3; in testAllocation_Byte3_2D()
124 typeBuilder.setX(width).setY(height); in testAllocation_Byte3_2D()
180 int width = random.nextInt(512); in testAllocation_Short3_1D() local
181 int arr_len = width * 3; in testAllocation_Short3_1D()
191 typeBuilder.setX(width); in testAllocation_Short3_1D()
214 int width = random.nextInt(128); in testAllocation_Short3_2D() local
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_alloc_copyPadded.java87 int width = random.nextInt(512); in testAllocation_Byte3_1D() local
88 int arr_len = width * 3; in testAllocation_Byte3_1D()
95 typeBuilder.setX(width); in testAllocation_Byte3_1D()
118 int width = random.nextInt(128); in testAllocation_Byte3_2D() local
120 int arr_len = width * height * 3; in testAllocation_Byte3_2D()
127 typeBuilder.setX(width).setY(height); in testAllocation_Byte3_2D()
183 int width = random.nextInt(512); in testAllocation_Short3_1D() local
184 int arr_len = width * 3; in testAllocation_Short3_1D()
194 typeBuilder.setX(width); in testAllocation_Short3_1D()
217 int width = random.nextInt(128); in testAllocation_Short3_2D() local
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_alloc_copyPadded.java85 int width = random.nextInt(512); in testAllocation_Byte3_1D() local
86 int arr_len = width * 3; in testAllocation_Byte3_1D()
93 typeBuilder.setX(width); in testAllocation_Byte3_1D()
116 int width = random.nextInt(128); in testAllocation_Byte3_2D() local
118 int arr_len = width * height * 3; in testAllocation_Byte3_2D()
125 typeBuilder.setX(width).setY(height); in testAllocation_Byte3_2D()
181 int width = random.nextInt(512); in testAllocation_Short3_1D() local
182 int arr_len = width * 3; in testAllocation_Short3_1D()
192 typeBuilder.setX(width); in testAllocation_Short3_1D()
215 int width = random.nextInt(128); in testAllocation_Short3_2D() local
[all …]
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java74 int width = texture.getWidth(); in loadTexture() local
79 GLES10.glCompressedTexImage2D(target, level, ETC1.ETC1_RGB8_OES, width, height, in loadTexture()
84 int stride = pixelSize * width; in loadTexture()
87 ETC1.decodeImage(data, decodedData, width, height, pixelSize, stride); in loadTexture()
88 GLES10.glTexImage2D(target, level, fallbackFormat, width, height, border, in loadTexture()
117 public ETC1Texture(int width, int height, ByteBuffer data) { in ETC1Texture() argument
118 mWidth = width; in ETC1Texture()
153 int width = 0; in createTexture() local
166 width = ETC1.getWidth(headerBuffer); in createTexture()
169 int encodedSize = ETC1.getEncodedDataSize(width, height); in createTexture()
[all …]

12345678910>>...65