/aosp12/frameworks/av/media/codecs/m4v_h263/dec/src/ |
H A D | mb_motion_comp.cpp | 165 width = video->width; in MBMotionComp() 268 pred_width = width; in MBMotionComp() 304 pred_width = width; in MBMotionComp() 340 pred_width = width; in MBMotionComp() 377 pred_width = width; in MBMotionComp() 406 width >>= 1; in MBMotionComp() 448 pred_width = width; in MBMotionComp() 463 pred_width = width; in MBMotionComp() 522 int width, width_uv; in SkippedMBMotionComp() local 525 width = video->width; in SkippedMBMotionComp() [all …]
|
H A D | mb_utils.cpp | 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() 100 comp += width; in PutSKIPPED_B() 101 prev += width; in PutSKIPPED_B() [all …]
|
/aosp12/hardware/google/gchips/gralloc4/src/core/ |
H A D | exynos_format_allocation.h | 173 plane[0].alloc_width = width; in setup_420_sp() 175 plane[0].byte_stride = width; in setup_420_sp() 178 int chroma_width = width; in setup_420_sp() 213 plane[0].size = PLANE_SIZE(width, height) + S2B_PLANE_SIZE(width, height) + mscl_ext; in setup_420_sp_s10b() 214 plane[0].alloc_width = width; in setup_420_sp_s10b() 216 plane[0].byte_stride = width; in setup_420_sp_s10b() 219 int chroma_width = width; in setup_420_sp_s10b() 252 int chroma_width = width; in setup_p010_sp() 276 width = GRALLOC_ALIGN(width, 2); in setup_420_p() 317 width = GRALLOC_ALIGN(width, 2); in setup_420_sp_tiled() [all …]
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ColorSpace.java | 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() 62 expectInputSize(input, width * height * 4); in convertArgb8888ToRgba8888() 63 expectOutputSize(output, width * height * 4); in convertArgb8888ToRgba8888() 64 nativeArgb8888ToRgba8888(input, output, width, height); in convertArgb8888ToRgba8888() 81 expectInputSize(input, width * height * 4); in convertRgba8888ToHsva8888() 82 expectOutputSize(output, width * height * 4); in convertRgba8888ToHsva8888() 83 nativeRgba8888ToHsva8888(input, output, width, height); in convertRgba8888ToHsva8888() 100 expectInputSize(input, width * height * 4); in convertRgba8888ToYcbcra8888() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | Size.java | 37 private final int width; field in Size 41 this.width = point.x; in Size() 52 this.width = width; in Size() 66 this.width = other.width; in Size() 71 this.width = size.width(); in Size() 76 return width; in getWidth() 83 public int width() { in width() method in Size 84 return width; in width() 123 return width * height; in area() 138 return otherSize.width == this.width && otherSize.height == this.height; in equals() [all …]
|
/aosp12/hardware/qcom/msm8996/kernel-headers/media/ |
H A D | msm_media_info.h | 407 (void)width; in VENUS_EXTRADATA_SIZE() 419 if (!width) in VENUS_Y_STRIDE() 445 if (!width) in VENUS_UV_STRIDE() 522 if (!width) in VENUS_Y_META_STRIDE() 572 if (!width) in VENUS_UV_META_STRIDE() 621 if (!width) in VENUS_RGB_STRIDE() 669 if (!width) in VENUS_RGB_META_STRIDE() 710 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 724 if (!width || !height) in VENUS_BUFFER_SIZE() 794 int color_fmt, int width, int height) in VENUS_VIEW2_OFFSET() argument [all …]
|
/aosp12/hardware/qcom/msm8996/original-kernel-headers/media/ |
H A D | msm_media_info.h | 407 (void)width; in VENUS_EXTRADATA_SIZE() 419 if (!width) in VENUS_Y_STRIDE() 445 if (!width) in VENUS_UV_STRIDE() 522 if (!width) in VENUS_Y_META_STRIDE() 572 if (!width) in VENUS_UV_META_STRIDE() 621 if (!width) in VENUS_RGB_STRIDE() 669 if (!width) in VENUS_RGB_META_STRIDE() 710 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 724 if (!width || !height) in VENUS_BUFFER_SIZE() 794 int color_fmt, int width, int height) in VENUS_VIEW2_OFFSET() argument [all …]
|
/aosp12/hardware/qcom/msm8x09/kernel-headers/media/ |
H A D | msm_media_info.h | 407 (void)width; in VENUS_EXTRADATA_SIZE() 419 if (!width) in VENUS_Y_STRIDE() 445 if (!width) in VENUS_UV_STRIDE() 522 if (!width) in VENUS_Y_META_STRIDE() 572 if (!width) in VENUS_UV_META_STRIDE() 621 if (!width) in VENUS_RGB_STRIDE() 669 if (!width) in VENUS_RGB_META_STRIDE() 710 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 724 if (!width || !height) in VENUS_BUFFER_SIZE() 794 int color_fmt, int width, int height) in VENUS_VIEW2_OFFSET() argument [all …]
|
/aosp12/hardware/qcom/msm8x09/original-kernel-headers/media/ |
H A D | msm_media_info.h | 407 (void)width; in VENUS_EXTRADATA_SIZE() 419 if (!width) in VENUS_Y_STRIDE() 445 if (!width) in VENUS_UV_STRIDE() 522 if (!width) in VENUS_Y_META_STRIDE() 572 if (!width) in VENUS_UV_META_STRIDE() 621 if (!width) in VENUS_RGB_STRIDE() 669 if (!width) in VENUS_RGB_META_STRIDE() 710 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 724 if (!width || !height) in VENUS_BUFFER_SIZE() 794 int color_fmt, int width, int height) in VENUS_VIEW2_OFFSET() argument [all …]
|
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
H A D | gr_utils.cpp | 181 int width = info.width; in GetSize() local 248 if (width & 1) { in GetSize() 267 size = (unsigned int)width; in GetSize() 351 uint32_t width = UINT(hnd->width); in GetYUVPlaneInfo() local 440 ystride = width; in GetYUVPlaneInfo() 450 ystride = width * 2; in GetYUVPlaneInfo() 673 int width = info.width; in GetAlignedWidthAndHeight() local 703 int aligned_w = width; in GetAlignedWidthAndHeight() 723 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight() 732 aligned_w = ALIGN(width, 8); in GetAlignedWidthAndHeight() [all …]
|
/aosp12/hardware/qcom/display/msm8909/gralloc/ |
H A D | gr_utils.cpp | 181 int width = info.width; in GetSize() local 248 if (width & 1) { in GetSize() 267 size = (unsigned int)width; in GetSize() 351 uint32_t width = UINT(hnd->width); in GetYUVPlaneInfo() local 440 ystride = width; in GetYUVPlaneInfo() 450 ystride = width * 2; in GetYUVPlaneInfo() 673 int width = info.width; in GetAlignedWidthAndHeight() local 703 int aligned_w = width; in GetAlignedWidthAndHeight() 723 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight() 732 aligned_w = ALIGN(width, 8); in GetAlignedWidthAndHeight() [all …]
|
/aosp12/hardware/qcom/msm8994/kernel-headers/media/ |
H A D | msm_media_info.h | 322 (void)width; in VENUS_EXTRADATA_SIZE() 334 if (!width) in VENUS_Y_STRIDE() 343 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 359 if (!width) in VENUS_UV_STRIDE() 368 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() 429 if (!width) in VENUS_Y_META_STRIDE() 479 if (!width) in VENUS_UV_META_STRIDE() 526 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 537 if (!width || !height) in VENUS_BUFFER_SIZE() 586 int color_fmt, int width, int height) in VENUS_VIEW2_OFFSET() argument [all …]
|
/aosp12/hardware/qcom/msm8994/original-kernel-headers/media/ |
H A D | msm_media_info.h | 322 (void)width; in VENUS_EXTRADATA_SIZE() 334 if (!width) in VENUS_Y_STRIDE() 343 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_Y_STRIDE() 359 if (!width) in VENUS_UV_STRIDE() 368 stride = MSM_MEDIA_ALIGN(width, alignment); in VENUS_UV_STRIDE() 429 if (!width) in VENUS_Y_META_STRIDE() 479 if (!width) in VENUS_UV_META_STRIDE() 526 int color_fmt, int width, int height) in VENUS_BUFFER_SIZE() argument 537 if (!width || !height) in VENUS_BUFFER_SIZE() 586 int color_fmt, int width, int height) in VENUS_VIEW2_OFFSET() argument [all …]
|
/aosp12/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | ImageUtils.cpp | 32 ImageType vimg = yimg + width*height; in rgba2yvu() 33 ImageType uimg = vimg + width*height; in rgba2yvu() 37 for (int ij = 0; ij < width; ij++) { in rgba2yvu() 77 ImageType vimg = yimg + width*height; in rgb2yvu() 78 ImageType uimg = vimg + width*height; in rgb2yvu() 180 int m_w = width; in imageTypeToRowPointers() 199 for (int j = 0; j < width; j++) { in yvu2rgb() 244 for (int j = 0; j < width; j++) { in yvu2bgr() 359 widthUV = width; in allocateImage() 372 yuv->Y.width = yuv->Y.pitch = width; in allocateImage() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ |
H A D | CaptureLayoutHelper.java | 225 mWindowWidth = width; in onNonDecorWindowSizeChanged() 246 boolean landscape = width > height; in getPositionConfiguration() 252 config.mPreviewRect.set(0, 0, width, height); in getPositionConfiguration() 255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height); in getPositionConfiguration() 265 int longerEdge = Math.max(width, height); in getPositionConfiguration() 266 int shorterEdge = Math.min(width, height); in getPositionConfiguration() 301 float right = width; in getPositionConfiguration() 304 config.mBottomBarRect.set(width - barSize, 0, width, height); in getPositionConfiguration() 336 float right = width - barSize; in getPositionConfiguration() 339 config.mBottomBarRect.set(width - barSize, 0, width, height); in getPositionConfiguration() [all …]
|
/aosp12/hardware/qcom/sdm845/display/gralloc/ |
H A D | gr_utils.cpp | 240 int width = info.width; in GetSize() local 306 if (width & 1) { in GetSize() 326 size = (unsigned int) width; in GetSize() 424 uint32_t width = UINT(hnd->width); in GetYUVPlaneInfo() local 517 ystride = width; in GetYUVPlaneInfo() 527 ystride = width * 2; in GetYUVPlaneInfo() 757 *stride = hnd->width; in GetCustomDimensions() 800 int width = info.width; in GetAlignedWidthAndHeight() local 829 int aligned_w = width; in GetAlignedWidthAndHeight() 849 aligned_w = ALIGN(width, 16); in GetAlignedWidthAndHeight() [all …]
|
/aosp12/hardware/interfaces/automotive/evs/common/utils/default/test/fuzz/ |
H A D | FormatConvertFuzzer.cpp | 37 int width = (image_pixel_size / height) & ~(16); // must be divisible by 16 in LLVMFuzzerTestOneInput() local 43 android::hardware::automotive::evs::common::Utils::copyNV21toRGB32(width, height, src, tgt, in LLVMFuzzerTestOneInput() 44 width); in LLVMFuzzerTestOneInput() 46 android::hardware::automotive::evs::common::Utils::copyNV21toBGR32(width, height, src, tgt, in LLVMFuzzerTestOneInput() 47 width); in LLVMFuzzerTestOneInput() 50 width); in LLVMFuzzerTestOneInput() 53 width); in LLVMFuzzerTestOneInput() 55 android::hardware::automotive::evs::common::Utils::copyYUYVtoRGB32(width, height, src, width, in LLVMFuzzerTestOneInput() 56 tgt, width); in LLVMFuzzerTestOneInput() 58 android::hardware::automotive::evs::common::Utils::copyYUYVtoBGR32(width, height, src, width, in LLVMFuzzerTestOneInput() [all …]
|
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc/ |
H A D | alloc_controller.cpp | 169 aligned_w = hnd->width; in getAlignedWidthAndHeight() 234 aligned_w = width; in getAlignedWidthAndHeight() 342 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight() 615 if(width & 1) { in getSize() 635 size = width; in getSize() 747 ystride = cstride = width * bpp; in getYuvSPPlaneInfo() 759 int width = hnd->width; in getYUVPlaneInfo() local 833 ystride = width; in getYUVPlaneInfo() 844 ystride = width * 2; in getYUVPlaneInfo() 1149 stride[0] = hnd->width * 2; in getBufferLayout() [all …]
|
/aosp12/hardware/qcom/display/msm8909/libgralloc/ |
H A D | alloc_controller.cpp | 169 aligned_w = hnd->width; in getAlignedWidthAndHeight() 234 aligned_w = width; in getAlignedWidthAndHeight() 342 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight() 615 if(width & 1) { in getSize() 635 size = width; in getSize() 747 ystride = cstride = width * bpp; in getYuvSPPlaneInfo() 759 int width = hnd->width; in getYUVPlaneInfo() local 833 ystride = width; in getYUVPlaneInfo() 844 ystride = width * 2; in getYUVPlaneInfo() 1149 stride[0] = hnd->width * 2; in getBufferLayout() [all …]
|
/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 139 mWidth = width; in Bitmap() 181 mWidth = width; in reinit() 290 mWidth = width; in reconfigure() 307 public void setWidth(int width) { in setWidth() argument 439 if (width <= 0) { in checkWidthHeight() 879 int neww = width; in createBitmap() 1104 Bitmap bm = nativeCreate(null, 0, width, width, height, config.nativeInt, true, in createBitmap() 1210 return createBitmap(null, colors, 0, width, width, height, config); in createBitmap() 1234 return createBitmap(display, colors, 0, width, width, height, config); in createBitmap() 1999 if (width < 0) { in checkPixelsAccess() [all …]
|
/aosp12/hardware/qcom/display/msm8996/libgralloc/ |
H A D | alloc_controller.cpp | 176 aligned_w = hnd->width; in getAlignedWidthAndHeight() 229 aligned_w = width; in getAlignedWidthAndHeight() 245 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 258 aligned_w = ALIGN(width, 16); in getAlignedWidthAndHeight() 327 aligned_w = ALIGN(width, 32); in getGpuAlignedWidthHeight() 621 if(width & 1) { in getSize() 641 size = width; in getSize() 768 ystride = cstride = width * bpp; in getYuvSPPlaneInfo() 780 int width = hnd->width; in getYUVPlaneInfo() local 846 ystride = width; in getYUVPlaneInfo() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | PackedIntVectorTest.java | 39 for (int width = 0; width < 10; 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() 106 for (int j = 0; j < width; j++) { in testBasic() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | AbstractSlotRenderer.java | 47 Texture content, int width, int height, int rotation) { in drawContent() argument 52 width = height = Math.min(width, height); in drawContent() 54 canvas.translate(width / 2, height / 2); in drawContent() 56 canvas.translate(-width / 2, -height / 2); in drawContent() 61 (float) width / content.getWidth(), in drawContent() 69 protected void drawVideoOverlay(GLCanvas canvas, int width, int height) { in drawVideoOverlay() argument 78 int s = Math.min(width, height) / 6; in drawVideoOverlay() 79 mVideoPlayIcon.draw(canvas, (width - s) / 2, (height - s) / 2, s, s); in drawVideoOverlay() 82 protected void drawPanoramaIcon(GLCanvas canvas, int width, int height) { in drawPanoramaIcon() argument 83 int iconSize = Math.min(width, height) / 6; in drawPanoramaIcon() [all …]
|
/aosp12/hardware/qcom/sm7250/display/gralloc/ |
H A D | gr_utils.cpp | 302 int width = info.width; in GetSize() local 375 if (width & 1) { in GetSize() 596 uint32_t width = UINT(hnd->width); in GetYUVPlaneInfo() local 968 *stride = hnd->width; in GetCustomDimensions() 1011 int width = info.width; in GetAlignedWidthAndHeight() local 1024 int aligned_w = width; in GetAlignedWidthAndHeight() 1033 *alignedw = width; in GetAlignedWidthAndHeight() 1075 int aligned_w = width; in GetAlignedWidthAndHeight() 1613 y_stride = width; in GetYUVPlaneInfo() 1650 if (info.width & 1) { in GetYUVPlaneInfo() [all …]
|
/aosp12/frameworks/native/libs/vr/libbufferhub/ |
H A 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() 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() 81 new GraphicBuffer(width, height, format, layer_count, usage); in Alloc() 97 handle, width, height, layer_count, stride, format, usage); in Reset() 98 Import(handle, width, height, layer_count, stride, format, usage); in Reset() 123 int int_count, uint32_t width, uint32_t height, in Import() argument 204 handle(), usage, x, y, width, height, address); in Lock() [all …]
|