/external/skqp/src/codec/ |
D | SkMasks.cpp | 129 SkMasks* SkMasks::CreateMasks(InputMasks masks, uint32_t bitsPerPixel) { in CreateMasks() argument 131 if (bitsPerPixel < 32) { in CreateMasks() 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() 146 const MaskInfo red = process_mask(masks.red, bitsPerPixel); in CreateMasks() 147 const MaskInfo green = process_mask(masks.green, bitsPerPixel); in CreateMasks() 148 const MaskInfo blue = process_mask(masks.blue, bitsPerPixel); in CreateMasks() 149 const MaskInfo alpha = process_mask(masks.alpha, bitsPerPixel); in CreateMasks()
|
D | SkBmpCodec.cpp | 213 uint16_t bitsPerPixel; in ReadHeader() local 240 bitsPerPixel = get_short(iBuffer.get(), 10); in ReadHeader() 259 bitsPerPixel = get_short(iBuffer.get(), 6); in ReadHeader() 308 if (16 == bitsPerPixel) { in ReadHeader() 316 if (bitsPerPixel != 8) { in ReadHeader() 318 bitsPerPixel = 8; in ReadHeader() 323 if (bitsPerPixel != 4) { in ReadHeader() 325 bitsPerPixel = 4; in ReadHeader() 393 if (24 == bitsPerPixel) { in ReadHeader() 440 switch (bitsPerPixel) { in ReadHeader() [all …]
|
D | SkCodecPriv.h | 128 static inline size_t compute_row_bytes(int width, uint32_t bitsPerPixel) { in compute_row_bytes() argument 129 if (bitsPerPixel < 16) { in compute_row_bytes() 130 SkASSERT(0 == 8 % bitsPerPixel); in compute_row_bytes() 131 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in compute_row_bytes() 134 SkASSERT(0 == bitsPerPixel % 8); in compute_row_bytes() 135 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes()
|
D | SkBmpStandardCodec.cpp | 19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument 23 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpStandardCodec() 69 if (this->bitsPerPixel() <= 8) { in createColorTable() 71 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() 151 SkEncodedInfo::Alpha alpha, int bitsPerPixel) { in make_info() argument 153 return SkEncodedInfo::Make(0, 0, color, alpha, bitsPerPixel); in make_info() 159 if (this->bitsPerPixel() <= 8) { in swizzlerInfo() 161 info.alpha(), this->bitsPerPixel()); in swizzlerInfo() 163 if (this->bitsPerPixel() == 24) { in swizzlerInfo()
|
D | SkBmpRLECodec.cpp | 19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() argument 22 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpRLECodec() 69 if (this->bitsPerPixel() <= 8) { in createColorTable() 71 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() 410 this->bitsPerPixel()); in decodeRLE() 436 switch(this->bitsPerPixel()) { in decodeRLE() 484 if (24 == this->bitsPerPixel()) { in decodeRLE() 508 if (4 == this->bitsPerPixel()) { in decodeRLE()
|
D | SkBmpMaskCodec.cpp | 17 uint16_t bitsPerPixel, SkMasks* masks, in SkBmpMaskCodec() argument 19 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpMaskCodec() 69 fMasks.get(), this->bitsPerPixel(), options)); in onPrepareToDecode()
|
D | SkBmpBaseCodec.cpp | 13 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) in SkBmpBaseCodec() argument 14 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpBaseCodec()
|
D | SkBmpCodec.h | 42 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder); 81 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function
|
D | SkBmpBaseCodec.h | 29 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
|
D | SkMaskSwizzler.h | 30 uint32_t bitsPerPixel,
|
D | SkBmpMaskCodec.h | 35 uint16_t bitsPerPixel, SkMasks* masks,
|
/external/skia/src/codec/ |
D | SkBmpCodec.cpp | 213 uint16_t bitsPerPixel; in ReadHeader() local 240 bitsPerPixel = get_short(iBuffer.get(), 10); in ReadHeader() 259 bitsPerPixel = get_short(iBuffer.get(), 6); in ReadHeader() 308 if (16 == bitsPerPixel) { in ReadHeader() 316 if (bitsPerPixel != 8) { in ReadHeader() 318 bitsPerPixel = 8; in ReadHeader() 323 if (bitsPerPixel != 4) { in ReadHeader() 325 bitsPerPixel = 4; in ReadHeader() 393 if (24 == bitsPerPixel) { in ReadHeader() 440 switch (bitsPerPixel) { in ReadHeader() [all …]
|
D | SkMasks.cpp | 132 int bitsPerPixel = 8*bytesPerPixel; in CreateMasks() local 133 masks.red &= (1 << bitsPerPixel) - 1; in CreateMasks() 134 masks.green &= (1 << bitsPerPixel) - 1; in CreateMasks() 135 masks.blue &= (1 << bitsPerPixel) - 1; in CreateMasks() 136 masks.alpha &= (1 << bitsPerPixel) - 1; in CreateMasks()
|
D | SkCodecPriv.h | 128 static inline size_t compute_row_bytes(int width, uint32_t bitsPerPixel) { in compute_row_bytes() argument 129 if (bitsPerPixel < 16) { in compute_row_bytes() 130 SkASSERT(0 == 8 % bitsPerPixel); in compute_row_bytes() 131 const uint32_t pixelsPerByte = 8 / bitsPerPixel; in compute_row_bytes() 134 SkASSERT(0 == bitsPerPixel % 8); in compute_row_bytes() 135 const uint32_t bytesPerPixel = bitsPerPixel / 8; in compute_row_bytes()
|
D | SkBmpStandardCodec.cpp | 19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() argument 23 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpStandardCodec() 69 if (this->bitsPerPixel() <= 8) { in createColorTable() 71 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() 151 SkEncodedInfo::Alpha alpha, int bitsPerPixel) { in make_info() argument 153 return SkEncodedInfo::Make(0, 0, color, alpha, bitsPerPixel); in make_info() 159 if (this->bitsPerPixel() <= 8) { in swizzlerInfo() 161 info.alpha(), this->bitsPerPixel()); in swizzlerInfo() 163 if (this->bitsPerPixel() == 24) { in swizzlerInfo()
|
D | SkBmpRLECodec.cpp | 19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() argument 22 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpRLECodec() 69 if (this->bitsPerPixel() <= 8) { in createColorTable() 71 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() 410 this->bitsPerPixel()); in decodeRLE() 436 switch(this->bitsPerPixel()) { in decodeRLE() 484 if (24 == this->bitsPerPixel()) { in decodeRLE() 508 if (4 == this->bitsPerPixel()) { in decodeRLE()
|
D | SkBmpMaskCodec.cpp | 17 uint16_t bitsPerPixel, SkMasks* masks, in SkBmpMaskCodec() argument 19 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpMaskCodec() 69 fMasks.get(), this->bitsPerPixel(), options)); in onPrepareToDecode()
|
D | SkBmpBaseCodec.cpp | 13 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) in SkBmpBaseCodec() argument 14 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpBaseCodec()
|
D | SkBmpCodec.h | 42 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder); 81 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function
|
D | SkBmpBaseCodec.h | 29 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
|
D | SkMaskSwizzler.h | 30 uint32_t bitsPerPixel,
|
D | SkBmpMaskCodec.h | 35 uint16_t bitsPerPixel, SkMasks* masks,
|
/external/deqp/framework/delibs/deimage/ |
D | deTarga.c | 44 int bitsPerPixel; in deImage_loadTarga() local 61 bitsPerPixel = tgaHeader[16]; in deImage_loadTarga() 62 stride = width * bitsPerPixel / 8; in deImage_loadTarga() 70 DE_TEST_ASSERT(bitsPerPixel == 24 || bitsPerPixel == 32); in deImage_loadTarga() 71 format = (bitsPerPixel == 32) ? DE_IMAGEFORMAT_ARGB8888 : DE_IMAGEFORMAT_XRGB8888; in deImage_loadTarga() 89 if (bitsPerPixel == 24) in deImage_loadTarga() 106 DE_ASSERT(bitsPerPixel == 32); in deImage_loadTarga()
|
/external/skqp/tools/sk_app/unix/ |
D | RasterWindowContext_unix.cpp | 68 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in swapBuffers() local 76 image.bitmap_unit = bitsPerPixel; in swapBuffers() 78 image.bitmap_pad = bitsPerPixel; in swapBuffers() 81 image.bits_per_pixel = bitsPerPixel; in swapBuffers()
|
/external/skia/tools/sk_app/unix/ |
D | RasterWindowContext_unix.cpp | 68 int bitsPerPixel = pm.info().bytesPerPixel() * 8; in swapBuffers() local 76 image.bitmap_unit = bitsPerPixel; in swapBuffers() 78 image.bitmap_pad = bitsPerPixel; in swapBuffers() 81 image.bits_per_pixel = bitsPerPixel; in swapBuffers()
|