Home
last modified time | relevance | path

Searched refs:bitsPerPixel (Results 1 - 24 of 24) sorted by relevance

/third_party/skia/src/codec/
H A DSkBmpCodec.cpp216 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 DSkBmpStandardCodec.cpp19 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 DSkCodecPriv.h128 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 DSkMasks.cpp132 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 DSkIcoCodec.cpp74 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 DSkBmpRLECodec.cpp22 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 DSkBmpBaseCodec.cpp13 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 DSkBmpMaskCodec.cpp17 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 DSkBmpCodec.h42 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
81 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function in SkBmpCodec
H A DSkBmpBaseCodec.h29 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
H A DSkMaskSwizzler.h30 uint32_t bitsPerPixel,
H A DSkBmpMaskCodec.h30 * @param bitsPerPixel the number of bits used to store each pixel
35 uint16_t bitsPerPixel, SkMasks* masks,
H A DSkBmpStandardCodec.h31 * @param bitsPerPixel the number of bits used to store each pixel
43 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
H A DSkBmpRLECodec.h30 * @param bitsPerPixel the number of bits used to store each pixel
39 uint16_t bitsPerPixel, uint32_t numColors, uint32_t bytesPerColor,
H A DSkPngCodec.cpp445 const int bitsPerPixel = this->getEncodedInfo().bitsPerPixel(); in allocateStorage() local
449 const size_t bytesPerPixel = (bitsPerPixel > 32) ? bitsPerPixel / 8 : 4; in allocateStorage()
H A DSkSwizzler.cpp1141 uint8_t bitsPerPixel = encodedInfo.bitsPerPixel(); in Make() local
1142 int srcBPP = SkIsAlign8(bitsPerPixel) ? bitsPerPixel / 8 : bitsPerPixel; in Make()
H A DSkMaskSwizzler.cpp388 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 DdeTarga.c44 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 DRasterWindowContext_unix.cpp68 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 DSkEncodedInfo.h188 uint8_t bitsPerPixel() const { in bitsPerPixel() function
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
H A Dxm_api.c305 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 Dsvga_reg.h495 uint32 bitsPerPixel : 8; member
/third_party/cups-filters/filter/
H A Dpdftoraster.cxx721 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 DD3D12MemAlloc.cpp704 UINT bitsPerPixel = GetBitsPerPixel(resourceDesc.Format); in CanUseSmallAlignment() local
705 if(bitsPerPixel == 0) in CanUseSmallAlignment()
712 bitsPerPixel *= 16; in CanUseSmallAlignment()
716 switch(bitsPerPixel) in CanUseSmallAlignment()

Completed in 25 milliseconds