Home
last modified time | relevance | path

Searched refs:bitsPerComponent (Results 1 – 23 of 23) sorted by relevance

/external/skia/include/private/
DSkEncodedInfo.h108 int bitsPerComponent) { in Make()
109 return Make(width, height, color, alpha, bitsPerComponent, nullptr); in Make()
113 Alpha alpha, int bitsPerComponent, std::unique_ptr<ICCProfile> profile) { in Make()
114 return Make(width, height, color, alpha, /*bitsPerComponent*/ bitsPerComponent, in Make()
115 std::move(profile), /*colorDepth*/ bitsPerComponent); in Make()
119 Alpha alpha, int bitsPerComponent, std::unique_ptr<ICCProfile> profile, in Make()
121 SkASSERT(1 == bitsPerComponent || in Make()
122 2 == bitsPerComponent || in Make()
123 4 == bitsPerComponent || in Make()
124 8 == bitsPerComponent || in Make()
[all …]
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp56 size_t* bitsPerComponent, in get_bitmap_info() argument
68 *bitsPerComponent = 8; in get_bitmap_info()
72 *bitsPerComponent = 8; in get_bitmap_info()
76 *bitsPerComponent = 8; in get_bitmap_info()
80 *bitsPerComponent = 4; in get_bitmap_info()
90 size_t* bitsPerComponent, in prepare_for_image_ref() argument
93 if (!get_bitmap_info(bm.colorType(), bm.alphaType(), bitsPerComponent, info, &upscaleTo32)) { in prepare_for_image_ref()
116 size_t bitsPerComponent SK_INIT_TO_AVOID_WARNING; in SkCreateCGImageRef()
119 std::unique_ptr<SkBitmap> bitmap = prepare_for_image_ref(bm, &bitsPerComponent, &info); in SkCreateCGImageRef()
136 bitsPerComponent, in SkCreateCGImageRef()
[all …]
/external/libcups/filter/
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()
128 int bitsPerComponent, in writeImageObject() argument
148 …zu\n", width, height, (interpolate ? "true" : "false"), colorspace, bitsPerComponent, rasterDataSi… in writeImageObject()
320 int bitsPerComponent = 8; in convertCUPSRasterToPDF() local
328 …olorSpace( pageHeader.cupsColorSpace, pageHeader.cupsBitsPerPixel, &bitsPerComponent, colorspace, … in convertCUPSRasterToPDF()
386 bitsPerComponent, in convertCUPSRasterToPDF()
/external/skia/src/codec/
DSkPngCodecBase.cpp42 if (16 == info.bitsPerComponent()) { in ToPixelFormat()
124 if (this->getEncodedInfo().bitsPerComponent() != 16) { in initializeXforms()
228 SkASSERT(this->getEncodedInfo().bitsPerComponent() == 16); in initializeSwizzler()
232 srcBPP = this->getEncodedInfo().bitsPerComponent() / 2; in initializeSwizzler()
359 const size_t maxColors = static_cast<size_t>(1) << this->getEncodedInfo().bitsPerComponent(); in createColorTable()
DSkBmpCodec.cpp451 uint8_t bitsPerComponent; in ReadHeader() local
462 bitsPerComponent = 8; in ReadHeader()
465 bitsPerComponent = (uint8_t) bitsPerPixel; in ReadHeader()
472 bitsPerComponent = 8; in ReadHeader()
484 bitsPerComponent = 8; in ReadHeader()
496 auto info = SkEncodedInfo::Make(width, height, color, alpha, bitsPerComponent); in ReadHeader()
DSkSwizzler.cpp846 switch (encodedInfo.bitsPerComponent()) { in Make()
925 switch (encodedInfo.bitsPerComponent()) { in Make()
970 if (16 == encodedInfo.bitsPerComponent()) { in Make()
975 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
980 if (16 == encodedInfo.bitsPerComponent()) { in Make()
985 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
990 if (16 == encodedInfo.bitsPerComponent()) { in Make()
1004 if (16 == encodedInfo.bitsPerComponent()) { in Make()
1010 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
1031 if (16 == encodedInfo.bitsPerComponent()) { in Make()
[all …]
DSkAvifCodec.cpp92 const int bitsPerComponent = avifDecoder->image->depth > 8 ? 16 : 8; in MakeFromStream() local
106 bitsPerComponent, in MakeFromStream()
DSkCrabbyAvifCodec.cpp216 const int bitsPerComponent = 8; in MakeFromData() local
253 width, height, color, alpha, bitsPerComponent, std::move(profile), image->depth); in MakeFromData()
DSkBmpStandardCodec.cpp186 return make_info(info.color(), info.alpha(), info.bitsPerComponent()); in swizzlerInfo()
DSkAndroidCodec.cpp252 bool highPrecision = fCodec->getEncodedInfo().bitsPerComponent() > 8; in computeOutputColorType()
/external/skia/src/encode/
DSkPngEncoderBase.cpp27 int bitsPerComponent) { in makeInfo() argument
33 return SkEncodedInfo::Make(srcInfo.width(), srcInfo.height(), color, alpha, bitsPerComponent); in makeInfo()
64 SkASSERT(dstInfo.bitsPerComponent() == 8 || dstInfo.bitsPerComponent() == 16); in makeTargetInfo()
DSkPngEncoderImpl.cpp219 dstInfo.bitsPerComponent(), in setHeader()
/external/swiftshader/src/Vulkan/
DVkFormat.hpp69 sw::int4 bitsPerComponent() const;
DVkFormat.cpp2475 sw::int4 Format::bitsPerComponent() const in bitsPerComponent() function in vk::Format
/external/executorch/examples/demo-apps/apple_ios/ExecuTorchDemo/ExecuTorchDemo/Sources/MobileNet/
DMobileNetClassifier.swift116 bitsPerComponent: 8, in rawData()
/external/skia/experimental/rust_png/encoder/impl/
DSkPngRustEncoderImpl.cpp177 dstInfo.bitsPerComponent(), in Make()
/external/skia/include/codec/
DSkCodec.h249 return this->getEncodedInfo().bitsPerComponent() >= 16; in hasHighBitDepthEncodedData()
/external/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/
DContentView.swift37 data: &pixelData, width: width, height: height, bitsPerComponent: 8, in toRGBArray()
/external/webrtc/sdk/objc/unittests/
DRTCCameraVideoCapturerTests.mm40 // We don't care about bitsPerComponent and bytesPerRow so arbitrary value of 8 for both.
/external/clang/test/ARCMT/
Dobjcmt-arc-cf-annotations.m.result1305 size_t width, size_t height, size_t bitsPerComponent,
1310 size_t width, size_t height, size_t bitsPerComponent,
1319 CGBitmapContextCreateWithData(data, width, height, bitsPerComponent, // expected-warning{{leak}}
Dobjcmt-arc-cf-annotations.m1263 size_t width, size_t height, size_t bitsPerComponent,
1268 size_t width, size_t height, size_t bitsPerComponent,
1277 CGBitmapContextCreateWithData(data, width, height, bitsPerComponent, // expected-warning{{leak}}
/external/swiftshader/src/Pipeline/
DSamplerCore.cpp2769 const sw::int4 bits = state.textureFormat.bitsPerComponent(); in getComponentScale()
/external/clang/test/Analysis/
Dretain-release.m1258 size_t width, size_t height, size_t bitsPerComponent,
1263 size_t width, size_t height, size_t bitsPerComponent,
1272 CGBitmapContextCreateWithData(data, width, height, bitsPerComponent, // expected-warning{{leak}}