/third_party/skia/src/codec/ |
H A D | SkBmpCodec.cpp | 216 uint16_t bitsPerPixel; in ReadHeader() local 243 bitsPerPixel = get_short(iBuffer.get(), 10); in ReadHeader() 262 bitsPerPixel = get_short(iBuffer.get(), 6); in ReadHeader() 311 if (16 == bitsPerPixel) { in ReadHeader() 319 if (bitsPerPixel != 8) { in ReadHeader() 321 bitsPerPixel = 8; in ReadHeader() 326 if (bitsPerPixel != 4) { in ReadHeader() 328 bitsPerPixel = 4; in ReadHeader() 396 if (24 == bitsPerPixel) { in ReadHeader() 443 switch (bitsPerPixel) { in ReadHeader() 607 SkBmpCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) SkBmpCodec() argument [all...] |
H A D | SkBmpStandardCodec.cpp | 19 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpStandardCodec() 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() 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() 18 SkBmpStandardCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor, uint32_t offset, SkCodec::SkScanlineOrder rowOrder, bool isOpaque, bool inIco) SkBmpStandardCodec() argument 150 make_info(SkEncodedInfo::Color color, SkEncodedInfo::Alpha alpha, int bitsPerPixel) make_info() argument
|
H A 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()
|
H A 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()
|
H A D | SkIcoCodec.cpp | 74 uint16_t bitsPerPixel; in MakeFromStream() member 115 // store bitsPerPixel, width, height and save the vital fields in MakeFromStream() 116 uint16_t bitsPerPixel = get_short(entryBuffer, 6); in MakeFromStream() local 129 directoryEntries[i].bitsPerPixel = bitsPerPixel; in MakeFromStream() 145 return (a.width * a.height == b.width * b.height) ? (a.bitsPerPixel > b.bitsPerPixel) : in MakeFromStream()
|
H A D | SkBmpRLECodec.cpp | 22 uint16_t bitsPerPixel, uint32_t numColors, in SkBmpRLECodec() 25 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpRLECodec() 72 if (this->bitsPerPixel() <= 8) { in createColorTable() 74 uint32_t maxColors = 1 << this->bitsPerPixel(); in createColorTable() 413 this->bitsPerPixel()); in decodeRLE() 439 switch(this->bitsPerPixel()) { in decodeRLE() 487 if (24 == this->bitsPerPixel()) { in decodeRLE() 511 if (4 == this->bitsPerPixel()) { in decodeRLE() 20 SkBmpRLECodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor, uint32_t offset, SkCodec::SkScanlineOrder rowOrder) SkBmpRLECodec() argument
|
H A D | SkBmpBaseCodec.cpp | 13 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) in SkBmpBaseCodec() 14 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpBaseCodec() 12 SkBmpBaseCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) SkBmpBaseCodec() argument
|
H A D | SkBmpMaskCodec.cpp | 17 uint16_t bitsPerPixel, SkMasks* masks, in SkBmpMaskCodec() 19 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpMaskCodec() 69 fMasks.get(), this->bitsPerPixel(), options)); in onPrepareToDecode() 15 SkBmpMaskCodec(SkEncodedInfo&& info, std::unique_ptr<SkStream> stream, uint16_t bitsPerPixel, SkMasks* masks, SkCodec::SkScanlineOrder rowOrder) SkBmpMaskCodec() argument
|
H A D | SkBmpCodec.h | 42 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder); 81 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function in SkBmpCodec
|
H A D | SkBmpBaseCodec.h | 29 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
|
H A D | SkMaskSwizzler.h | 30 uint32_t bitsPerPixel,
|
H A D | SkBmpMaskCodec.h | 30 * @param bitsPerPixel the number of bits used to store each pixel 35 uint16_t bitsPerPixel, SkMasks* masks,
|
H A D | SkBmpStandardCodec.h | 31 * @param bitsPerPixel the number of bits used to store each pixel 43 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
|
H A D | SkBmpRLECodec.h | 30 * @param bitsPerPixel the number of bits used to store each pixel 39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
|
H A D | SkPngCodec.cpp | 445 const int bitsPerPixel = this->getEncodedInfo().bitsPerPixel(); in allocateStorage() local 449 const size_t bytesPerPixel = (bitsPerPixel > 32) ? bitsPerPixel / 8 : 4; in allocateStorage()
|
H A D | SkSwizzler.cpp | 1141 uint8_t bitsPerPixel = encodedInfo.bitsPerPixel(); in Make() local 1142 int srcBPP = SkIsAlign8(bitsPerPixel) ? bitsPerPixel / 8 : bitsPerPixel; in Make()
|
H A D | SkMaskSwizzler.cpp | 388 bool srcIsOpaque, SkMasks* masks, uint32_t bitsPerPixel, in CreateMaskSwizzler() 393 switch (bitsPerPixel) { in CreateMaskSwizzler() 387 CreateMaskSwizzler(const SkImageInfo& dstInfo, bool srcIsOpaque, SkMasks* masks, uint32_t bitsPerPixel, const SkCodec::Options& options) CreateMaskSwizzler() argument
|
/third_party/vk-gl-cts/framework/delibs/deimage/ |
H A 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()
|
/third_party/skia/tools/sk_app/unix/ |
H A 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()
|
/third_party/skia/include/private/ |
H A D | SkEncodedInfo.h | 188 uint8_t bitsPerPixel() const { in bitsPerPixel() function
|
/third_party/mesa3d/src/gallium/frontends/glx/xlib/ |
H A D | xm_api.c | 305 int bitsPerPixel; in bits_per_pixel() local 316 bitsPerPixel = img->bits_per_pixel; in bits_per_pixel() 321 return bitsPerPixel; in bits_per_pixel()
|
/third_party/mesa3d/src/gallium/drivers/svga/include/ |
H A D | svga_reg.h | 495 uint32 bitsPerPixel : 8; member
|
/third_party/cups-filters/filter/ |
H A D | pdftoraster.cxx | 721 unsigned int bitsPerPixel; member 1214 for (i = 0;specialCaseFuncs[i].bitsPerPixel > 0;i++) { in selectSpecialCase() 1216 && header.cupsBitsPerPixel == specialCaseFuncs[i].bitsPerPixel in selectSpecialCase()
|
/third_party/skia/third_party/externals/d3d12allocator/src/ |
H A D | D3D12MemAlloc.cpp | 704 UINT bitsPerPixel = GetBitsPerPixel(resourceDesc.Format);
in CanUseSmallAlignment() local 705 if(bitsPerPixel == 0)
in CanUseSmallAlignment() 712 bitsPerPixel *= 16;
in CanUseSmallAlignment() 716 switch(bitsPerPixel)
in CanUseSmallAlignment()
|