OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:alphatype
(Results
1 - 25
of
86
) sorted by null
1
2
3
4
/external/chromium_org/third_party/skia/src/core/
SkImageInfo.cpp
12
static bool alpha_type_is_valid(SkAlphaType
alphaType
) {
13
return (
alphaType
>= 0) && (
alphaType
<= kLastEnum_SkAlphaType);
42
bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType
alphaType
,
46
alphaType
= kIgnore_SkAlphaType;
49
if (kUnpremul_SkAlphaType ==
alphaType
) {
50
alphaType
= kPremul_SkAlphaType;
57
if (kIgnore_SkAlphaType ==
alphaType
) {
62
alphaType
= kOpaque_SkAlphaType;
68
*canonical =
alphaType
;
[
all
...]
SkConfig8888.cpp
154
dstPI.fAlphaType = dstInfo.
alphaType
();
160
srcPI.fAlphaType = srcInfo.
alphaType
();
176
if (srcInfo.
alphaType
() != dstInfo.
alphaType
()) {
195
if (srcInfo.
alphaType
() == kUnpremul_SkAlphaType) {
232
if (dstInfo.
alphaType
() == kUnpremul_SkAlphaType) {
/external/skia/tools/
sk_tool_utils.cpp
21
SkColorType colorType, SkAlphaType
alphaType
) {
27
info.fAlphaType =
alphaType
;
sk_tool_utils.h
20
* the pixels are colorType +
alphaType
/external/skia/src/core/
SkImageInfo.cpp
12
static bool alpha_type_is_valid(SkAlphaType
alphaType
) {
13
return (
alphaType
>= 0) && (
alphaType
<= kLastEnum_SkAlphaType);
SkBitmap.cpp
155
static bool validate_alphaType(SkColorType colorType, SkAlphaType
alphaType
,
159
alphaType
= kIgnore_SkAlphaType;
162
if (kUnpremul_SkAlphaType ==
alphaType
) {
163
alphaType
= kPremul_SkAlphaType;
170
if (kIgnore_SkAlphaType ==
alphaType
) {
175
alphaType
= kOpaque_SkAlphaType;
181
*canonical =
alphaType
;
224
SkAlphaType
alphaType
) {
226
return this->setInfo(SkImageInfo::Make(width, height, ct,
alphaType
), rowBytes);
230
bool SkBitmap::setAlphaType(SkAlphaType
alphaType
) {
[
all
...]
/external/chromium_org/third_party/skia/include/core/
SkColorTable.h
30
SkAlphaType
alphaType
= kPremul_SkAlphaType);
33
SkAlphaType
alphaType
() const { return (SkAlphaType)fAlphaType; }
36
return SkAlphaTypeIsOpaque(this->
alphaType
());
SkImageInfo.h
127
* Return true if
alphaType
is supported by colorType. If there is a canonical
128
*
alphaType
for this colorType, return it in canonical.
130
bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType
alphaType
,
174
* Sets colortype to the native ARGB32 type, and the
alphatype
to premul.
181
* Sets colortype to the native ARGB32 type, and the
alphatype
to premul.
202
SkAlphaType
alphaType
() const { return fAlphaType; }
213
* Return a new ImageInfo with the same colortype and
alphatype
as this info,
SkImage.h
132
* the bitmap's ColorType/
AlphaType
. Any pixels in the bitmap that do not
137
* using the default allocator, and the ColorType/
AlphaType
will be chosen
143
// - should it respect the particular colortype/
alphatype
of the src
/external/skia/include/core/
SkColorTable.h
30
SkAlphaType
alphaType
= kPremul_SkAlphaType);
33
SkAlphaType
alphaType
() const { return (SkAlphaType)fAlphaType; }
36
return SkAlphaTypeIsOpaque(this->
alphaType
());
SkImageInfo.h
149
* Sets colortype to the native ARGB32 type, and the
alphatype
to premul.
159
* Sets colortype to the native ARGB32 type, and the
alphatype
to premul.
189
SkAlphaType
alphaType
() const { return fAlphaType; }
200
* Return a new ImageInfo with the same colortype and
alphatype
as this info,
SkImage.h
125
* the bitmap's ColorType/
AlphaType
. Any pixels in the bitmap that do not
130
* using the default allocator, and the ColorType/
AlphaType
will be chosen
136
// - should it respect the particular colortype/
alphatype
of the src
/external/chromium_org/third_party/skia/tools/
sk_tool_utils.cpp
53
SkColorType colorType, SkAlphaType
alphaType
) {
57
const SkImageInfo info = SkImageInfo::Make(tmp.width(), tmp.height(), colorType,
alphaType
);
sk_tool_utils.h
33
* the pixels are colorType +
alphaType
/external/chromium_org/third_party/skia/src/images/
SkDecodingImageGenerator.cpp
166
decoder->setRequireUnpremultipliedColors(info.
alphaType
() == kUnpremul_SkAlphaType);
186
SkASSERT(check_alpha(info.
alphaType
(), bm.
alphaType
()));
188
SkASSERT(check_alpha(info.
alphaType
(), bitmap.
alphaType
()));
241
if (opts.fRequireUnpremul && info.
alphaType
() != kOpaque_SkAlphaType) {
245
SkAlphaType newAlphaType = info.
alphaType
();
246
if (!SkColorTypeValidateAlphaType(info.colorType(), info.
alphaType
(), &newAlphaType)) {
SkImageDecoder_astc.cpp
131
SkAlphaType
alphaType
= kOpaque_SkAlphaType;
133
alphaType
= kUnpremul_SkAlphaType;
135
alphaType
= kPremul_SkAlphaType;
139
bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(),
alphaType
));
/external/chromium_org/cc/resources/
ui_resource_bitmap.cc
65
SkAlphaType
alphaType
= is_opaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType;
67
SkImageInfo::MakeN32(size.width(), size.height(),
alphaType
);
/external/chromium_org/third_party/WebKit/Source/platform/graphics/gpu/
AcceleratedImageBufferSurface.cpp
55
SkAlphaType
alphaType
= (Opaque == opacityMode) ? kOpaque_SkAlphaType : kPremul_SkAlphaType;
56
SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(),
alphaType
);
/frameworks/base/core/jni/android/graphics/
Bitmap.cpp
105
return bitmap.
alphaType
() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
107
return bitmap.
alphaType
() == kPremul_SkAlphaType ? FromColor_D4444 :
265
switch (src.
alphaType
()) {
276
switch (src.
alphaType
()) {
292
switch (src.
alphaType
()) {
407
SkAlphaType
alphaType
;
409
&& bitmap->
alphaType
() == kOpaque_SkAlphaType) {
412
alphaType
= kOpaque_SkAlphaType;
415
alphaType
= requestPremul ? kPremul_SkAlphaType : kUnpremul_SkAlphaType;
417
bitmap->setInfo(SkImageInfo::Make(width, height, colorType,
alphaType
));
[
all
...]
/external/chromium_org/third_party/skia/src/utils/mac/
SkCreateCGImageRef.cpp
76
*info = ComputeCGAlphaInfo_RGBA(bm.
alphaType
());
80
*info = ComputeCGAlphaInfo_BGRA(bm.
alphaType
());
257
cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.
alphaType
());
261
cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.
alphaType
());
/external/skia/src/utils/mac/
SkCreateCGImageRef.cpp
76
*info = ComputeCGAlphaInfo_RGBA(bm.
alphaType
());
80
*info = ComputeCGAlphaInfo_BGRA(bm.
alphaType
());
257
cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.
alphaType
());
261
cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.
alphaType
());
/external/skia/src/images/
SkImageDecoder_ktx.cpp
80
SkAlphaType
alphaType
= kOpaque_SkAlphaType;
83
alphaType
= kUnpremul_SkAlphaType;
90
alphaType
= kPremul_SkAlphaType;
95
bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(),
alphaType
));
163
SkASSERT(bm->
alphaType
() == kPremul_SkAlphaType);
SkDecodingImageGenerator.cpp
191
SkASSERT(check_alpha(info.
alphaType
(), bm.
alphaType
()));
193
SkASSERT(check_alpha(info.
alphaType
(), bitmap.
alphaType
()));
/external/chromium_org/third_party/skia/tests/
KtxTest.cpp
66
REPORTER_ASSERT(reporter, decodedBitmap.
alphaType
() == bm8888.
alphaType
());
119
REPORTER_ASSERT(reporter, decodedBitmap.
alphaType
() == kPremul_SkAlphaType);
/external/skia/tests/
KtxTest.cpp
67
REPORTER_ASSERT(reporter, decodedBitmap.
alphaType
() == bm8888.
alphaType
());
120
REPORTER_ASSERT(reporter, decodedBitmap.
alphaType
() == kPremul_SkAlphaType);
Completed in 1653 milliseconds
1
2
3
4