Home
last modified time | relevance | path

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

12

/external/skqp/src/codec/
DSkMasks.cpp129 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()
DSkBmpCodec.cpp213 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 …]
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()
DSkBmpStandardCodec.cpp19 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()
DSkBmpRLECodec.cpp19 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()
DSkBmpMaskCodec.cpp17 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()
DSkBmpBaseCodec.cpp13 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) in SkBmpBaseCodec() argument
14 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpBaseCodec()
DSkBmpCodec.h42 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
81 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function
DSkBmpBaseCodec.h29 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
DSkMaskSwizzler.h30 uint32_t bitsPerPixel,
DSkBmpMaskCodec.h35 uint16_t bitsPerPixel, SkMasks* masks,
/external/skia/src/codec/
DSkBmpCodec.cpp213 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 …]
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()
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()
DSkBmpStandardCodec.cpp19 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()
DSkBmpRLECodec.cpp19 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()
DSkBmpMaskCodec.cpp17 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()
DSkBmpBaseCodec.cpp13 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder) in SkBmpBaseCodec() argument
14 : INHERITED(std::move(info), std::move(stream), bitsPerPixel, rowOrder) in SkBmpBaseCodec()
DSkBmpCodec.h42 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
81 uint16_t bitsPerPixel() const { return fBitsPerPixel; } in bitsPerPixel() function
DSkBmpBaseCodec.h29 uint16_t bitsPerPixel, SkCodec::SkScanlineOrder rowOrder);
DSkMaskSwizzler.h30 uint32_t bitsPerPixel,
DSkBmpMaskCodec.h35 uint16_t bitsPerPixel, SkMasks* masks,
/external/deqp/framework/delibs/deimage/
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()
/external/skqp/tools/sk_app/unix/
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()
/external/skia/tools/sk_app/unix/
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()

12