Home
last modified time | relevance | path

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

/external/skqp/include/private/
DSkEncodedInfo.h97 int bitsPerComponent) { in Make()
98 return Make(width, height, color, alpha, bitsPerComponent, nullptr); in Make()
102 int bitsPerComponent, std::unique_ptr<ICCProfile> profile) { in Make()
103 SkASSERT(1 == bitsPerComponent || in Make()
104 2 == bitsPerComponent || in Make()
105 4 == bitsPerComponent || in Make()
106 8 == bitsPerComponent || in Make()
107 16 == bitsPerComponent); in Make()
117 SkASSERT(16 != bitsPerComponent); in Make()
123 SkASSERT(bitsPerComponent >= 8); in Make()
[all …]
/external/skia/include/private/
DSkEncodedInfo.h99 int bitsPerComponent) { in Make()
100 return Make(width, height, color, alpha, bitsPerComponent, nullptr); in Make()
104 int bitsPerComponent, std::unique_ptr<ICCProfile> profile) { in Make()
105 SkASSERT(1 == bitsPerComponent || in Make()
106 2 == bitsPerComponent || in Make()
107 4 == bitsPerComponent || in Make()
108 8 == bitsPerComponent || in Make()
109 16 == bitsPerComponent); in Make()
119 SkASSERT(16 != bitsPerComponent); in Make()
125 SkASSERT(bitsPerComponent >= 8); in Make()
[all …]
/external/skqp/src/utils/mac/
DSkCreateCGImageRef.cpp59 size_t* bitsPerComponent, in getBitmapInfo() argument
70 *bitsPerComponent = 5; in getBitmapInfo()
77 *bitsPerComponent = 8; in getBitmapInfo()
82 *bitsPerComponent = 8; in getBitmapInfo()
86 *bitsPerComponent = 8; in getBitmapInfo()
90 *bitsPerComponent = 4; in getBitmapInfo()
105 size_t* bitsPerComponent, in prepareForImageRef() argument
108 if (!getBitmapInfo(bm, bitsPerComponent, info, &upscaleTo32)) { in prepareForImageRef()
127 size_t bitsPerComponent SK_INIT_TO_AVOID_WARNING; in SkCreateCGImageRefWithColorspace()
130 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); in SkCreateCGImageRefWithColorspace()
[all …]
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp53 size_t* bitsPerComponent, in get_bitmap_info() argument
65 *bitsPerComponent = 8; in get_bitmap_info()
69 *bitsPerComponent = 8; in get_bitmap_info()
73 *bitsPerComponent = 8; in get_bitmap_info()
77 *bitsPerComponent = 4; in get_bitmap_info()
87 size_t* bitsPerComponent, in prepare_for_image_ref() argument
90 if (!get_bitmap_info(bm.colorType(), bm.alphaType(), bitsPerComponent, info, &upscaleTo32)) { in prepare_for_image_ref()
109 size_t bitsPerComponent SK_INIT_TO_AVOID_WARNING; in SkCreateCGImageRefWithColorspace()
112 std::unique_ptr<SkBitmap> bitmap = prepare_for_image_ref(bm, &bitsPerComponent, &info); in SkCreateCGImageRefWithColorspace()
131 return CGImageCreate(pm.width(), pm.height(), bitsPerComponent, in SkCreateCGImageRefWithColorspace()
[all …]
/external/skia/src/codec/
DSkBmpCodec.cpp442 uint8_t bitsPerComponent; in ReadHeader() local
453 bitsPerComponent = 8; in ReadHeader()
456 bitsPerComponent = (uint8_t) bitsPerPixel; in ReadHeader()
463 bitsPerComponent = 8; in ReadHeader()
475 bitsPerComponent = 8; in ReadHeader()
487 auto info = SkEncodedInfo::Make(width, height, color, alpha, bitsPerComponent); in ReadHeader()
DSkSwizzler.cpp825 switch (encodedInfo.bitsPerComponent()) { in Make()
904 switch (encodedInfo.bitsPerComponent()) { in Make()
948 if (16 == encodedInfo.bitsPerComponent()) { in Make()
953 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
958 if (16 == encodedInfo.bitsPerComponent()) { in Make()
963 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
968 if (16 == encodedInfo.bitsPerComponent()) { in Make()
982 if (16 == encodedInfo.bitsPerComponent()) { in Make()
988 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
1009 if (16 == encodedInfo.bitsPerComponent()) { in Make()
[all …]
DSkPngCodec.cpp456 if (16 == info.bitsPerComponent()) { in png_select_xform_format()
1034 if (this->getEncodedInfo().bitsPerComponent() != 16) { in initializeXforms()
1102 SkASSERT(this->getEncodedInfo().bitsPerComponent() == 16); in initializeSwizzler()
1106 srcBPP = this->getEncodedInfo().bitsPerComponent() / 2; in initializeSwizzler()
DSkAndroidCodec.cpp116 bool highPrecision = fCodec->getEncodedInfo().bitsPerComponent() > 8; in computeOutputColorType()
DSkBmpStandardCodec.cpp169 return make_info(info.color(), info.alpha(), info.bitsPerComponent()); in swizzlerInfo()
/external/skqp/src/codec/
DSkBmpCodec.cpp439 uint8_t bitsPerComponent; in ReadHeader() local
450 bitsPerComponent = 8; in ReadHeader()
453 bitsPerComponent = (uint8_t) bitsPerPixel; in ReadHeader()
460 bitsPerComponent = 8; in ReadHeader()
472 bitsPerComponent = 8; in ReadHeader()
484 auto info = SkEncodedInfo::Make(width, height, color, alpha, bitsPerComponent); in ReadHeader()
DSkSwizzler.cpp825 switch (encodedInfo.bitsPerComponent()) { in Make()
904 switch (encodedInfo.bitsPerComponent()) { in Make()
948 if (16 == encodedInfo.bitsPerComponent()) { in Make()
953 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
958 if (16 == encodedInfo.bitsPerComponent()) { in Make()
963 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
968 if (16 == encodedInfo.bitsPerComponent()) { in Make()
982 if (16 == encodedInfo.bitsPerComponent()) { in Make()
988 SkASSERT(8 == encodedInfo.bitsPerComponent()); in Make()
1009 if (16 == encodedInfo.bitsPerComponent()) { in Make()
[all …]
DSkPngCodec.cpp457 if (16 == info.bitsPerComponent()) { in png_select_xform_format()
1018 if (this->getEncodedInfo().bitsPerComponent() != 16) { in initializeXforms()
1087 SkASSERT(this->getEncodedInfo().bitsPerComponent() == 16); in initializeSwizzler()
1091 srcBPP = this->getEncodedInfo().bitsPerComponent() / 2; in initializeSwizzler()
DSkBmpStandardCodec.cpp169 return make_info(info.color(), info.alpha(), info.bitsPerComponent()); in swizzlerInfo()
DSkAndroidCodec.cpp125 bool highPrecision = fCodec->getEncodedInfo().bitsPerComponent() > 8; in computeOutputColorType()
/external/webrtc/sdk/objc/unittests/
DRTCCameraVideoCapturerTests.mm38 // We don't care about bitsPerComponent and bytesPerRow so arbitrary value of 8 for both.
/external/llvm-project/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/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/llvm-project/clang/test/Analysis/
Dretain-release.m1471 size_t width, size_t height, size_t bitsPerComponent,
1476 size_t width, size_t height, size_t bitsPerComponent,
1485 CGBitmapContextCreateWithData(data, width, height, bitsPerComponent, // expected-warning{{leak}}
/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}}