Home
last modified time | relevance | path

Searched refs:bitsPerPixel (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/aosp_15_r20/external/skia/src/codec/
H A DSkBmpCodec.cpp225 uint16_t bitsPerPixel; in ReadHeader() local
252 bitsPerPixel = get_short(iBuffer.get(), 10); in ReadHeader()
271 bitsPerPixel = get_short(iBuffer.get(), 6); in ReadHeader()
320 if (16 == bitsPerPixel) { in ReadHeader()
328 if (bitsPerPixel != 8) { in ReadHeader()
330 bitsPerPixel = 8; in ReadHeader()
335 if (bitsPerPixel != 4) { in ReadHeader()
337 bitsPerPixel = 4; in ReadHeader()
405 if (24 == bitsPerPixel) { in ReadHeader()
452 switch (bitsPerPixel) { in ReadHeader()
[all …]
H A DSkBmpStandardCodec.cpp30 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument
34 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpStandardCodec()
80 if (this->bitsPerPixel() <= 8) { in createColorTable()
82 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable()
162 SkEncodedInfo::Alpha alpha, int bitsPerPixel) { in make_info() argument
164 return SkEncodedInfo::Make(0, 0, color, alpha, bitsPerPixel); in make_info()
170 if (this->bitsPerPixel() <= 8) { in swizzlerInfo()
172 info.alpha(), this->bitsPerPixel()); in swizzlerInfo()
174 if (this->bitsPerPixel() == 24) { in swizzlerInfo()
H A DSkCodecPriv.h130 static inline size_t compute_row_bytes(int width, uint32_t bitsPerPixel) { in compute_row_bytes() argument
131 if (bitsPerPixel < 16) { in compute_row_bytes()
132 SkASSERT(0 == 8 % bitsPerPixel); in compute_row_bytes()
133 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in compute_row_bytes()
136 SkASSERT(0 == bitsPerPixel % 8); in compute_row_bytes()
137 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes()
H A DSkBmpRLECodec.cpp35 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() argument
38 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpRLECodec()
85 if (this->bitsPerPixel() <= 8) { in createColorTable()
87 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable()
426 this->bitsPerPixel()); in decodeRLE()
449 switch(this->bitsPerPixel()) { in decodeRLE()
497 if (24 == this->bitsPerPixel()) { in decodeRLE()
521 if (4 == this->bitsPerPixel()) { in decodeRLE()
H A DSkPngCodecBase.cpp96 size_t encodedBitsPerPixel = static_cast<size_t>(getEncodedInfo().bitsPerPixel()); in initializeXforms()
175 const int bitsPerPixel = this->getEncodedInfo().bitsPerPixel(); in allocateStorage() local
179 const size_t bytesPerPixel = (bitsPerPixel > 32) ? bitsPerPixel / 8 : 4; in allocateStorage()
H A DSkBmpMaskCodec.cpp25 uint16_t bitsPerPixel, SkMasks* masks, in SkBmpMaskCodec() argument
27 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpMaskCodec()
77 fMasks.get(), this->bitsPerPixel(), options)); in onPrepareToDecode()
H A DSkBmpBaseCodec.cpp18 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) in SkBmpBaseCodec() argument
19 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpBaseCodec()
H A DSkBmpCodec.h48 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
87 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function
H A DSkSwizzler.cpp1163 uint8_t bitsPerPixel = encodedInfo.bitsPerPixel(); in Make() local
1164 int srcBPP = SkIsAlign8(bitsPerPixel) ? bitsPerPixel / 8 : bitsPerPixel; in Make()
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/
H A DPixelFormatTest.java45 assertEquals(32, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
49 assertEquals(32, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
53 assertEquals(24, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
57 assertEquals(16, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
61 assertEquals(16, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
65 assertEquals(16, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
69 assertEquals(8, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
73 assertEquals(8, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
77 assertEquals(16, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
81 assertEquals(8, pixelFormat.bitsPerPixel); in testGetPixelFormatInfo()
/aosp_15_r20/frameworks/base/graphics/java/android/graphics/
H A DPixelFormat.java109 public int bitsPerPixel; field in PixelFormat
116 info.bitsPerPixel = 32; in getPixelFormatInfo()
121 info.bitsPerPixel = 24; in getPixelFormatInfo()
128 info.bitsPerPixel = 16; in getPixelFormatInfo()
134 info.bitsPerPixel = 8; in getPixelFormatInfo()
139 info.bitsPerPixel = 16; in getPixelFormatInfo()
143 info.bitsPerPixel = 12; in getPixelFormatInfo()
147 info.bitsPerPixel = 64; in getPixelFormatInfo()
151 info.bitsPerPixel = 8; in getPixelFormatInfo()
/aosp_15_r20/external/deqp/framework/delibs/deimage/
H A DdeTarga.c44 int bitsPerPixel; in deImage_loadTarga() local
62 bitsPerPixel = tgaHeader[16]; in deImage_loadTarga()
63 stride = width * bitsPerPixel / 8; in deImage_loadTarga()
71 DE_TEST_ASSERT(bitsPerPixel == 24 || bitsPerPixel == 32); in deImage_loadTarga()
72 format = (bitsPerPixel == 32) ? DE_IMAGEFORMAT_ARGB8888 : DE_IMAGEFORMAT_XRGB8888; in deImage_loadTarga()
90 if (bitsPerPixel == 24) in deImage_loadTarga()
107 DE_ASSERT(bitsPerPixel == 32); in deImage_loadTarga()
/aosp_15_r20/prebuilts/go/linux-x86/src/image/png/
Dwriter.go311 bitsPerPixel := 0
315 bitsPerPixel = 8
317 bitsPerPixel = 24
319 bitsPerPixel = 8
321 bitsPerPixel = 4
323 bitsPerPixel = 2
325 bitsPerPixel = 1
327 bitsPerPixel = 32
329 bitsPerPixel = 48
331 bitsPerPixel = 64
[all …]
Dreader.go412 bitsPerPixel := 0
439 bitsPerPixel = d.depth
448 bitsPerPixel = 16
452 bitsPerPixel = 24
461 bitsPerPixel = d.depth
465 bitsPerPixel = 32
469 bitsPerPixel = 16
478 bitsPerPixel = 32
482 bitsPerPixel = 48
491 bitsPerPixel = 64
[all …]
/aosp_15_r20/external/skia/src/core/
H A DSkMasks.cpp131 int bitsPerPixel = 8*bytesPerPixel; in CreateMasks() local
132 masks.red &= (1 << bitsPerPixel) - 1; in CreateMasks()
133 masks.green &= (1 << bitsPerPixel) - 1; in CreateMasks()
134 masks.blue &= (1 << bitsPerPixel) - 1; in CreateMasks()
135 masks.alpha &= (1 << bitsPerPixel) - 1; in CreateMasks()
/aosp_15_r20/external/skia/src/encode/
H A DSkPngEncoderBase.cpp65 SkASSERT(dstInfo.bitsPerPixel() <= (16 * 4)); in makeTargetInfo()
66 size_t bitsPerPixel = static_cast<size_t>(dstInfo.bitsPerPixel()); in makeTargetInfo() local
67 SkASSERT((bitsPerPixel % 8) == 0); in makeTargetInfo()
68 size_t bytesPerPixel = bitsPerPixel / 8; in makeTargetInfo()
/aosp_15_r20/external/skia/tools/window/unix/
H A DRasterWindowContext_unix.cpp71 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in onSwapBuffers() local
79 image.bitmap_unit = bitsPerPixel; in onSwapBuffers()
81 image.bitmap_pad = bitsPerPixel; in onSwapBuffers()
84 image.bits_per_pixel = bitsPerPixel; in onSwapBuffers()
/aosp_15_r20/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp48 int32_t bitsPerPixel = planeLayouts.front().sampleIncrementInBits; in resolveLegacyByteLayoutFromPlaneLayout() local
50 if (bitsPerPixel != planeLayout.sampleIncrementInBits) { in resolveLegacyByteLayoutFromPlaneLayout()
51 bitsPerPixel = -1; in resolveLegacyByteLayoutFromPlaneLayout()
54 if (bitsPerPixel >= 0 && bitsPerPixel % 8 == 0) { in resolveLegacyByteLayoutFromPlaneLayout()
55 *outBytesPerPixel = bitsPerPixel / 8; in resolveLegacyByteLayoutFromPlaneLayout()
/aosp_15_r20/external/libcups/filter/
H A Drastertopdf.cpp58 static int rasterToPDFColorSpace( cups_cspace_t colorSpace, int bitsPerPixel, int *bitsPerComponent… in rasterToPDFColorSpace() argument
64 *bitsPerComponent = bitsPerPixel; in rasterToPDFColorSpace()
70 *bitsPerComponent = bitsPerPixel/3; in rasterToPDFColorSpace()
/aosp_15_r20/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
H A DVideoRenderer.kt41 fun renderToFile(path: String, bitsPerPixel: Float = 0.25f) { in <lambda>()
45 val bitrate = (screenshotWidth * screenshotHeight * bitsPerPixel * FRAME_RATE).toInt() in <lambda>()
/aosp_15_r20/cts/tests/camera/src/android/hardware/cts/
H A DCameraTest.java313 int bitsPerPixel = ImageFormat.getBitsPerPixel(format); in onPreviewFrame() local
315 format, bitsPerPixel) != data.length) { in onPreviewFrame()
317 + ". height=" + size.height + ". bitsPerPixel=" + bitsPerPixel); in onPreviewFrame()
1479 int bitsPerPixel = ImageFormat.getBitsPerPixel(format); in testPreviewCallbackWithBufferByCamera() local
1480 callback.mBuffer1 = new byte[size.width * size.height * bitsPerPixel / 8]; in testPreviewCallbackWithBufferByCamera()
1481 callback.mBuffer2 = new byte[size.width * size.height * bitsPerPixel / 8]; in testPreviewCallbackWithBufferByCamera()
1482 callback.mBuffer3 = new byte[size.width * size.height * bitsPerPixel / 8]; in testPreviewCallbackWithBufferByCamera()
2086 int bitsPerPixel = ImageFormat.getBitsPerPixel(format); in onPreviewFrame() local
2089 format, bitsPerPixel) != data.length) { in onPreviewFrame()
2093 Log.e(TAG, "Frame data length=" + data.length + ". bitsPerPixel=" + bitsPerPixel); in onPreviewFrame()
[all …]
/aosp_15_r20/external/intel-media-driver/media_driver/agnostic/common/vp/hal/
H A Dvphal_render_vebox_memdecomp.cpp671 uint32_t bitsPerPixel = 8; in GetResourceInfo() local
674 bitsPerPixel = 16; in GetResourceInfo()
677 …gnWidth = MOS_ALIGN_CEIL(resDetails.dwWidth, DECOMPRESSION_WIDTH_ALIGNMENT_IN_BYTE*8/bitsPerPixel); in GetResourceInfo()
678 if (alignWidth <= resDetails.dwPitch*8/bitsPerPixel) in GetResourceInfo()
/aosp_15_r20/prebuilts/vndk/v31/x86_64/include/frameworks/native/libs/ui/include/ui/
DPixelFormat.h70 uint32_t bitsPerPixel(PixelFormat format);
/aosp_15_r20/prebuilts/vndk/v31/arm64/include/frameworks/native/libs/ui/include/ui/
DPixelFormat.h70 uint32_t bitsPerPixel(PixelFormat format);
/aosp_15_r20/prebuilts/vndk/v30/x86/include/frameworks/native/libs/ui/include_vndk/ui/
DPixelFormat.h70 uint32_t bitsPerPixel(PixelFormat format);

12345678910>>...14