/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
D | h264bsd_conceal.c | 130 u32 width, height; in h264bsdConceal() local 142 width = currImage->width; in h264bsdConceal() 164 if (col == width) in h264bsdConceal() 176 H264SwDecMemset(currImage->data, 128, width*height*384); in h264bsdConceal() 178 H264SwDecMemcpy(currImage->data, refData, width*height*384); in h264bsdConceal() 191 mb = pStorage->mb + row * width; in h264bsdConceal() 198 for (j = col + 1; j < width; j++) in h264bsdConceal() 210 for (j = 0; j < width; j++) in h264bsdConceal() 213 mb = pStorage->mb + i*width + j; in h264bsdConceal() 219 mb -= width; in h264bsdConceal() [all …]
|
D | h264bsd_reconstruct.c | 115 u32 width, in h264bsdInterpolateChromaHor() argument 137 if ((x0 < 0) || ((u32)x0+chromaPartWidth+1 > width) || in h264bsdInterpolateChromaHor() 140 h264bsdFillBlock(pRef, block, x0, y0, width, height, in h264bsdInterpolateChromaHor() 142 pRef += width * height; in h264bsdInterpolateChromaHor() 144 x0, y0, width, height, chromaPartWidth + 1, in h264bsdInterpolateChromaHor() 150 width = chromaPartWidth+1; in h264bsdInterpolateChromaHor() 159 ptrA = pRef + (comp * height + (u32)y0) * width + x0; in h264bsdInterpolateChromaHor() 168 tmp1 = ptrA[width]; in h264bsdInterpolateChromaHor() 170 tmp3 = ptrA[width]; in h264bsdInterpolateChromaHor() 178 tmp1 = ptrA[width]; in h264bsdInterpolateChromaHor() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ColorSpace.java | 42 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/libstagefright/codecs/m4v_h263/dec/src/ |
D | chv_filter.cpp | 178 int width, in CombinedHorzVertFilter() argument 198 pp_w = (width >> 3); in CombinedHorzVertFilter() 232 jVal0 = *(ptr - width); /* C */ in CombinedHorzVertFilter() 241 *(ptr - width) = (uint8)(jVal0); /* C */ in CombinedHorzVertFilter() 244 jVal0 = *(ptr - (width << 1)); /* B */ in CombinedHorzVertFilter() 245 jVal1 = *(ptr + width); /* E */ in CombinedHorzVertFilter() 252 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter() 253 *(ptr + width) = (uint8)jVal1; /* store E */ in CombinedHorzVertFilter() 259 … *(ptr - (width << 1)) = (uint8)jVal0; /* store B */ in CombinedHorzVertFilter() 260 *(ptr + width) = (uint8)jVal1; /* store E */ in CombinedHorzVertFilter() [all …]
|
D | mb_utils.cpp | 25 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 …]
|
D | mb_motion_comp.cpp | 144 int height, width, pred_width; in MBMotionComp() local 173 width = video->width; in MBMotionComp() 189 offset = (int32)ypos * width + xpos; in MBMotionComp() 276 pred_width = width; in MBMotionComp() 280 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp() 286 GetPredAdvBTable[ypred&1][xpred&1](c_prev + (xpred >> 1) + ((ypred >> 1)*width), in MBMotionComp() 287 pred, width, (pred_width << 1) | round1); in MBMotionComp() 294 pred, width, height, round1, pred_width); in MBMotionComp() 312 pred_width = width; in MBMotionComp() 316 if (xpred >= 0 && xpred <= ((width << 1) - (2*B_SIZE)) && in MBMotionComp() [all …]
|
D | deringing_chroma.cpp | 25 int width, in Deringing_Chroma() argument 47 incr = width - BLKSIZE; in Deringing_Chroma() 54 for (h_blk = 0; h_blk < width; h_blk += BLKSIZE) in Deringing_Chroma() 59 FindMaxMin(ptr, &min_blk, &max_blk, width); in Deringing_Chroma() 69 addr_v = (int32)v_pel * width; in Deringing_Chroma() 74 pelu = *(ptr - width); in Deringing_Chroma() 76 pell = *(ptr + width); in Deringing_Chroma() 81 pelu = *(ptr - width); in Deringing_Chroma() 83 pell = *(ptr + width); in Deringing_Chroma() 90 pelu = *(ptr - width); in Deringing_Chroma() [all …]
|
D | post_filter.cpp | 43 int width, height; in PostFilter() local 50 width = video->width; in PostFilter() 52 size = (int32)width * height; in PostFilter() 75 CombinedHorzVertRingFilter(output, width, height, QP_store, 0, pp_mod); in PostFilter() 83 CombinedHorzVertFilter(output, width, height, in PostFilter() 88 CombinedHorzVertFilter_NoSoftDeblocking(output, width, height, in PostFilter() 94 Deringing_Luma(output, width, height, QP_store, in PostFilter() 107 …CombinedHorzVertRingFilter(output, (int)(width >> 1), (int)(height >> 1), QP_store, (int) 1, pp_mo… in PostFilter() 115 CombinedHorzVertFilter(output, (int)(width >> 1), in PostFilter() 120 CombinedHorzVertFilter_NoSoftDeblocking(output, (int)(width >> 1), in PostFilter() [all …]
|
D | block_idct.cpp | 123 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 …]
|
D | idct.h | 48 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/ |
D | PackedIntVectorTest.java | 36 for (int width = 0; width < 10; width++) { in testBasic() 37 PackedIntVector p = new PackedIntVector(width); in testBasic() 38 int[] ins = new int[width]; in testBasic() 40 for (int height = width * 2; height < width * 4; height++) { in testBasic() 41 assertEquals(p.width(), width); in testBasic() local 54 for (int j = 0; j < width; j++) { in testBasic() 66 for (int j = 0; j < width; j++) { in testBasic() 78 for (int j = 0; j < width; j++) { in testBasic() 87 for (int j = 0; j < width; j++) { in testBasic() 92 for (int j = 0; j < width; j++) { in testBasic() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | YuvImage.java | 79 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 …]
|
D | Bitmap.java | 108 Bitmap(long nativeBitmap, int width, int height, int density, in Bitmap() argument 115 mWidth = width; in Bitmap() 146 void reinit(int width, int height, boolean requestPremultiplied) { in reinit() argument 147 mWidth = width; in reinit() 246 public void reconfigure(int width, int height, Config config) { in reconfigure() argument 248 if (width <= 0 || height <= 0) { in reconfigure() 255 nativeReconfigure(mNativePtr, width, height, config.nativeInt, mRequestPremultiplied); in reconfigure() 256 mWidth = width; in reconfigure() 273 public void setWidth(int width) { in setWidth() argument 274 reconfigure(width, getHeight(), getConfig()); in setWidth() [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 20 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapMeshLayerActivity.java | 49 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()
|
D | BitmapMeshActivity.java | 48 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/base/services/core/java/com/android/server/am/ |
D | LaunchingTaskPositioner.java | 94 int width = mAvailableRect.width(); in configure() local 96 mDefaultFreeformStartX = mAvailableRect.left + width / MARGIN_SIZE_DENOMINATOR; in configure() 98 mDefaultFreeformWidth = width / WINDOW_SIZE_DENOMINATOR; in configure() 100 mDefaultFreeformStepHorizontal = Math.max(width / STEP_DENOMINATOR, MINIMAL_STEP); in configure() 124 int width = getFinalWidth(windowLayout); in updateDefaultBounds() local 130 positionTopRight(task, tasks, width, height); in updateDefaultBounds() 132 positionTopLeft(task, tasks, width, height); in updateDefaultBounds() 136 positionBottomRight(task, tasks, width, height); in updateDefaultBounds() 138 positionBottomLeft(task, tasks, width, height); in updateDefaultBounds() 145 positionCenter(task, tasks, width, height); in updateDefaultBounds() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | BitmapFillrate.cpp | 38 void createContent(int width, int height, Canvas& canvas) override { in createContent() argument 40 createNode(canvas, 0x909C27B0, 0, 0, width, height); in createContent() 41 createNode(canvas, 0xA0CDDC39, width / 3, height / 3, width, height); in createContent() 42 createNode(canvas, 0x90009688, width / 3, 0, width, height); in createContent() 43 createNode(canvas, 0xA0FF5722, 0, height / 3, width, height); in createContent() 44 createNode(canvas, 0x9000796B, width / 6, height/6, width, height); in createContent() 45 createNode(canvas, 0xA0FFC107, width / 6, 0, width, height); in createContent() 57 int width, int height) { in createNode() argument 58 int itemWidth = 2 * width / 3; in createNode()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.cpp | 73 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/core/java/android/hardware/camera2/ |
D | DngCreator.java | 192 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/libs/hwui/ |
D | PixelBuffer.cpp | 36 CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 40 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 49 CpuPixelBuffer::CpuPixelBuffer(GLenum format, uint32_t width, uint32_t height) in CpuPixelBuffer() argument 50 : PixelBuffer(format, width, height) in CpuPixelBuffer() 51 , mBuffer(new uint8_t[width * height * formatSize(format)]) { in CpuPixelBuffer() 65 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { in upload() argument 66 glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, in upload() 76 GpuPixelBuffer(GLenum format, uint32_t width, uint32_t height); 81 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 93 uint32_t width, uint32_t height) in GpuPixelBuffer() argument [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | YuvToJpegEncoder.cpp | 26 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, in encode() argument 41 setJpegCompressStruct(&cinfo, width, height, jpegQuality); in encode() 53 int width, int height, int quality) { in setJpegCompressStruct() argument 54 cinfo->image_width = width; in setJpegCompressStruct() 84 int width = cinfo->image_width; in compress() local 88 uint8_t* uRows = new uint8_t [8 * (width >> 1)]; in compress() 89 uint8_t* vRows = new uint8_t [8 * (width >> 1)]; in compress() 95 deinterleave(vuPlanar, uRows, vRows, cinfo->next_scanline, width, height); in compress() 105 int offset = (i >> 1) * (width >> 1); in compress() 118 uint8_t* vRows, int rowIndex, int width, int height) { in deinterleave() argument [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/ |
D | h264bsdWriteMacroblock.S | 29 #define width r2 macro 95 LDR width, [image, #4] 103 LSL width, width, #4 105 LSR cwidth, width, #1 106 VST1.8 {qRow0}, [luma,:128], width 108 VST1.8 {qRow1}, [luma,:128], width 110 VST1.8 {qRow2}, [luma,:128], width 112 VST1.8 {qRow3}, [luma,:128], width 114 VST1.8 {qRow4}, [luma,:128], width 116 VST1.8 {qRow5}, [luma,:128], width [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 84 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/RSTest_CompatLib/src/com/android/rs/test/ |
D | UT_alloc_copyPadded.java | 84 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 …]
|