/aosp12/hardware/google/gchips/gralloc3/src/ |
H A D | format_info.cpp | 37 … .npln = 1, .ncmp = 3, .bps = 6, .bpp_afbc = { 16, 0, 0 }, .bpp = { 16, 0, 0 }, .h… 38 … .npln = 1, .ncmp = 3, .bps = 8, .bpp_afbc = { 24, 0, 0 }, .bpp = { 24, 0, 0 }, .h… 39 … .npln = 1, .ncmp = 4, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 40 … .npln = 1, .ncmp = 4, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 47 … .npln = 1, .ncmp = 1, .bps = 8, .bpp_afbc = { 8, 0, 0 }, .bpp = { 8, 0, 0 }, .h… 48 … .npln = 1, .ncmp = 1, .bps = 16, .bpp_afbc = { 16, 0, 0 }, .bpp = { 16, 0, 0 }, .h… 52 … .npln = 2, .ncmp = 3, .bps = 8, .bpp_afbc = { 8, 16, 0 }, .bpp = { 8, 16, 0 }, .h… 450 if (format->linear && (format->bps > format->bpp[0])) in sanitize_formats() 470 if (format->linear && (pln < format->npln) && (format->bpp[pln] == 0)) in sanitize_formats() 475 else if (format->linear && (pln >= format->npln) && (format->bpp[pln] != 0)) in sanitize_formats() [all …]
|
/aosp12/hardware/google/gchips/gralloc4/src/core/ |
H A D | format_info.cpp | 41 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 6, .bpp_afbc = { 16, 0, 0 }, .bpp = { 16, 0, 0 }, .h… 42 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 8, .bpp_afbc = { 24, 0, 0 }, .bpp = { 24, 0, 0 }, .h… 43 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 44 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 45 … .npln = 1, .ncmp = { 3, 0, 0 }, .bps = 8, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 46 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 10, .bpp_afbc = { 32, 0, 0 }, .bpp = { 32, 0, 0 }, .h… 47 … .npln = 1, .ncmp = { 4, 0, 0 }, .bps = 16, .bpp_afbc = { 64, 0, 0 }, .bpp = { 64, 0, 0 }, .h… 476 if (format->linear && (format->bps > format->bpp[0])) in sanitize_formats() 496 if (format->linear && (pln < format->npln) && (format->bpp[pln] == 0)) in sanitize_formats() 501 else if (format->linear && (pln >= format->npln) && (format->bpp[pln] != 0)) in sanitize_formats() [all …]
|
/aosp12/system/extras/tests/framebuffer/ |
H A D | fb_test.c | 36 int bpp; member 72 if (bpp && vi.bits_per_pixel != bpp) { in get_framebuffer() 73 printf("bpp != %d, forcing...\n", bpp); in get_framebuffer() 74 vi.bits_per_pixel = bpp; in get_framebuffer() 100 fb->bpp = vi.bits_per_pixel; in get_framebuffer() 109 fb->bpp = vi.bits_per_pixel; in get_framebuffer() 139 int gr_init(int bpp, int id) in gr_init() argument 154 gr_fb_fd = get_framebuffer(gr_fbs, bpp); in gr_init() 260 int bpp = 0; in main() local 263 bpp = atoi(argv[1]); in main() [all …]
|
/aosp12/hardware/google/gchips/libexynosutils/ |
H A D | exynos_format_v4l2.c | 382 int V4L2_PIX_2_YUV_INFO(unsigned int v4l2_pixel_format, unsigned int * bpp, unsigned int * planes) in V4L2_PIX_2_YUV_INFO() argument 392 *bpp = 12; in V4L2_PIX_2_YUV_INFO() 400 *bpp = 12; in V4L2_PIX_2_YUV_INFO() 406 *bpp = 12; in V4L2_PIX_2_YUV_INFO() 416 *bpp = 16; in V4L2_PIX_2_YUV_INFO() 430 unsigned int bpp, planes; in get_yuv_bpp() local 432 if (V4L2_PIX_2_YUV_INFO(v4l2_pixel_format, &bpp, &planes) < 0) in get_yuv_bpp() 433 bpp = -1; in get_yuv_bpp() 435 return bpp; in get_yuv_bpp() 440 unsigned int bpp, planes; in get_yuv_planes() local [all …]
|
/aosp12/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_utils.cpp | 103 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 106 bpp = 8; in GetBppForUncompressedRGB() 120 bpp = 4; in GetBppForUncompressedRGB() 123 bpp = 3; in GetBppForUncompressedRGB() 129 bpp = 2; in GetBppForUncompressedRGB() 136 return bpp; in GetBppForUncompressedRGB()
|
H A D | gr_adreno_info.cpp | 98 int bpp = 4; in AlignUnCompressedRGB() local 101 bpp = 3; in AlignUnCompressedRGB() 107 bpp = 2; in AlignUnCompressedRGB() 119 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 123 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
H A D | gr_allocator.cpp | 230 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize() local 231 size = alignedw * alignedh * bpp; in GetSize() 360 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo() 366 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 676 switch (bpp) { in GetRgbUBwcBlockSize() 701 GetRgbUBwcBlockSize(bpp, &block_width, &block_height); in GetRgbUBwcMetaBufferSize() 703 ALOGE("%s: Unsupported bpp: %d", __FUNCTION__, bpp); in GetRgbUBwcMetaBufferSize() 722 uint32_t bpp = 0; in GetUBwcSize() local 729 bpp = GetBppForUncompressedRGB(format); in GetUBwcSize() 730 size = alignedw * alignedh * bpp; in GetUBwcSize() [all …]
|
/aosp12/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_utils.cpp | 103 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 106 bpp = 8; in GetBppForUncompressedRGB() 120 bpp = 4; in GetBppForUncompressedRGB() 123 bpp = 3; in GetBppForUncompressedRGB() 129 bpp = 2; in GetBppForUncompressedRGB() 136 return bpp; in GetBppForUncompressedRGB()
|
H A D | gr_adreno_info.cpp | 97 int bpp = 4; in AlignUnCompressedRGB() local 100 bpp = 3; in AlignUnCompressedRGB() 106 bpp = 2; in AlignUnCompressedRGB() 118 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 122 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
H A D | gr_allocator.cpp | 231 uint32_t bpp = GetBppForUncompressedRGB(format); in GetSize() local 232 size = alignedw * alignedh * bpp; in GetSize() 361 ystride = cstride = UINT(width) * bpp; in GetYuvSPPlaneInfo() 367 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 678 switch (bpp) { in GetRgbUBwcBlockSize() 703 GetRgbUBwcBlockSize(bpp, &block_width, &block_height); in GetRgbUBwcMetaBufferSize() 705 ALOGE("%s: Unsupported bpp: %d", __FUNCTION__, bpp); in GetRgbUBwcMetaBufferSize() 724 uint32_t bpp = 0; in GetUBwcSize() local 731 bpp = GetBppForUncompressedRGB(format); in GetUBwcSize() 732 size = alignedw * alignedh * bpp; in GetUBwcSize() [all …]
|
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
H A D | gr_utils.cpp | 115 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 118 bpp = 8; in GetBppForUncompressedRGB() 132 bpp = 4; in GetBppForUncompressedRGB() 136 bpp = 3; in GetBppForUncompressedRGB() 142 bpp = 2; in GetBppForUncompressedRGB() 149 return bpp; in GetBppForUncompressedRGB() 192 size = alignedw * alignedh * bpp; in GetSize() 346 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 561 switch (bpp) { in GetRgbUBwcBlockSize() 607 uint32_t bpp = 0; in GetUBwcSize() local [all …]
|
H A D | gr_adreno_info.cpp | 106 int bpp = 4; in AlignUnCompressedRGB() local 110 bpp = 3; in AlignUnCompressedRGB() 116 bpp = 2; in AlignUnCompressedRGB() 128 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 132 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
/aosp12/hardware/qcom/display/msm8909/gralloc/ |
H A D | gr_utils.cpp | 115 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 118 bpp = 8; in GetBppForUncompressedRGB() 132 bpp = 4; in GetBppForUncompressedRGB() 136 bpp = 3; in GetBppForUncompressedRGB() 142 bpp = 2; in GetBppForUncompressedRGB() 149 return bpp; in GetBppForUncompressedRGB() 192 size = alignedw * alignedh * bpp; in GetSize() 346 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 561 switch (bpp) { in GetRgbUBwcBlockSize() 607 uint32_t bpp = 0; in GetUBwcSize() local [all …]
|
H A D | gr_adreno_info.cpp | 106 int bpp = 4; in AlignUnCompressedRGB() local 110 bpp = 3; in AlignUnCompressedRGB() 116 bpp = 2; in AlignUnCompressedRGB() 128 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 132 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
/aosp12/hardware/qcom/media/msm8996/libc2dcolorconvert/ |
H A D | C2DColorConverter.cpp | 499 int32_t bpp = 0; in calcSize() local 503 bpp = 2; in calcSize() 510 bpp = 4; in calcSize() 651 C2DBytesPerPixel bpp; in calcBytesPerPixel() local 652 bpp.numerator = 0; in calcBytesPerPixel() 653 bpp.denominator = 1; in calcBytesPerPixel() 657 bpp.numerator = 2; in calcBytesPerPixel() 660 bpp.numerator = 4; in calcBytesPerPixel() 675 return bpp; in calcBytesPerPixel() 750 bpp = 2; in dumpOutput() [all …]
|
/aosp12/hardware/qcom/media/msm8998/libc2dcolorconvert/ |
H A D | C2DColorConverter.cpp | 502 int32_t bpp = 0; in calcSize() local 506 bpp = 2; in calcSize() 513 bpp = 4; in calcSize() 654 C2DBytesPerPixel bpp; in calcBytesPerPixel() local 655 bpp.numerator = 0; in calcBytesPerPixel() 656 bpp.denominator = 1; in calcBytesPerPixel() 660 bpp.numerator = 2; in calcBytesPerPixel() 663 bpp.numerator = 4; in calcBytesPerPixel() 678 return bpp; in calcBytesPerPixel() 753 bpp = 2; in dumpOutput() [all …]
|
/aosp12/hardware/qcom/sdm845/display/gralloc/ |
H A D | gr_utils.cpp | 145 uint32_t bpp = 0; in GetBppForUncompressedRGB() local 148 bpp = 8; in GetBppForUncompressedRGB() 162 bpp = 4; in GetBppForUncompressedRGB() 166 bpp = 3; in GetBppForUncompressedRGB() 172 bpp = 2; in GetBppForUncompressedRGB() 179 return bpp; in GetBppForUncompressedRGB() 253 size = alignedw * alignedh * bpp; in GetSize() 419 ycbcr->chroma_step = 2 * bpp; in GetYuvSPPlaneInfo() 643 switch (bpp) { in GetRgbUBwcBlockSize() 689 uint32_t bpp = 0; in GetUBwcSize() local [all …]
|
H A D | gr_adreno_info.cpp | 108 int bpp = 4; in AlignUnCompressedRGB() local 112 bpp = 3; in AlignUnCompressedRGB() 118 bpp = 2; in AlignUnCompressedRGB() 138 width, height, bpp, tile_enabled, raster_mode, padding_threshold, in AlignUnCompressedRGB() 142 *aligned_w = UINT(LINK_adreno_compute_padding(width, bpp, surface_tile_height, raster_mode, in AlignUnCompressedRGB()
|
/aosp12/hardware/qcom/sdm845/media/libc2dcolorconvert/ |
H A D | C2DColorConverter.cpp | 565 int32_t bpp = 0; in calcSize() local 569 bpp = 2; in calcSize() 580 bpp = 4; in calcSize() 763 C2DBytesPerPixel bpp; in calcBytesPerPixel() local 764 bpp.numerator = 0; in calcBytesPerPixel() 765 bpp.denominator = 1; in calcBytesPerPixel() 769 bpp.numerator = 2; in calcBytesPerPixel() 773 bpp.numerator = 4; in calcBytesPerPixel() 790 return bpp; in calcBytesPerPixel() 867 bpp = 2; in dumpOutput() [all …]
|
/aosp12/hardware/qcom/sm8150/media/libc2dcolorconvert/ |
H A D | C2DColorConverter.cpp | 600 int32_t bpp = 0; local 604 bpp = 2; 615 bpp = 4; 813 C2DBytesPerPixel bpp; local 814 bpp.numerator = 0; 815 bpp.denominator = 1; 819 bpp.numerator = 2; 823 bpp.numerator = 4; 841 return bpp; 918 bpp = 2; [all …]
|
/aosp12/packages/modules/adb/daemon/ |
H A D | framebuffer_service.cpp | 45 unsigned int bpp; member 98 fbinfo.bpp = 32; in framebuffer_service() 112 fbinfo.bpp = 32; in framebuffer_service() 126 fbinfo.bpp = 24; in framebuffer_service() 140 fbinfo.bpp = 16; in framebuffer_service() 154 fbinfo.bpp = 32; in framebuffer_service()
|
/aosp12/frameworks/av/include/private/media/ |
H A D | VideoFrame.h | 41 uint32_t angle, uint32_t bpp, bool hasData, size_t iccSize): in VideoFrame() argument 45 mRotationAngle(angle), mBytesPerPixel(bpp), mRowBytes(bpp * width), in VideoFrame() 46 mSize(hasData ? (bpp * width * height) : 0), in VideoFrame()
|
/aosp12/hardware/qcom/sm7250/media/libc2dcolorconvert/ |
H A D | C2DColorConverter.cpp | 655 int32_t bpp = 0; in calcSize() local 659 bpp = 2; in calcSize() 670 bpp = 4; in calcSize() 876 C2DBytesPerPixel bpp; in calcBytesPerPixel() local 877 bpp.numerator = 0; in calcBytesPerPixel() 878 bpp.denominator = 1; in calcBytesPerPixel() 882 bpp.numerator = 2; in calcBytesPerPixel() 886 bpp.numerator = 4; in calcBytesPerPixel() 906 return bpp; in calcBytesPerPixel() 983 bpp = 2; in dumpOutput() [all …]
|
/aosp12/frameworks/base/tools/aapt2/compile/ |
H A D | PngCrunch.cpp | 667 const size_t bpp = new_color_type == PNG_COLOR_TYPE_GRAY ? 1 : 2; in WritePng() local 685 out_row[x * bpp] = in_row[x * 4]; in WritePng() 690 out_row[x * bpp] = in WritePng() 694 if (bpp == 2) { in WritePng() 696 out_row[x * bpp + 1] = aa; in WritePng() 702 const size_t bpp = new_color_type == PNG_COLOR_TYPE_RGB ? 3 : 4; in WritePng() local 719 out_row[x * bpp] = rr; in WritePng() 720 out_row[x * bpp + 1] = gg; in WritePng() 721 out_row[x * bpp + 2] = bb; in WritePng() 722 if (bpp == 4) { in WritePng() [all …]
|
/aosp12/frameworks/av/media/libmediaformatshaper/ |
H A D | CodecProperties.cpp | 122 double bpp = strtod(p, &q); in setTuningValue() local 124 setBpp(bpp); in setTuningValue() 138 double bpp = iValue / 100.0; in setTuningValue() local 139 setBpp(bpp); in setTuningValue() 183 double bpp = -1; in bppPoint() local 225 bpp = strtod(p, &q); in bppPoint() 240 point->bpp = bpp; in bppPoint() 284 width, height, point->bpp, point->width, point->height); in getBpp() 285 return point->bpp; in getBpp()
|