#include <GrImageInfo.h>
|
| GrImageInfo () |
|
| GrImageInfo (const SkImageInfo &info) |
|
| GrImageInfo (GrColorType ct, SkAlphaType at, sk_sp< SkColorSpace > cs, int w, int h) |
|
| GrImageInfo (GrColorType ct, SkAlphaType at, sk_sp< SkColorSpace > cs, const SkISize &dimensions) |
|
| GrImageInfo (const GrColorInfo &info, const SkISize &dimensions) |
|
| GrImageInfo (GrColorInfo &&info, const SkISize &dimensions) |
|
| GrImageInfo (const GrImageInfo &) |
|
| GrImageInfo (GrImageInfo &&) |
|
GrImageInfo & | operator= (const GrImageInfo &) |
|
GrImageInfo & | operator= (GrImageInfo &&) |
|
GrImageInfo | makeColorType (GrColorType ct) const |
|
GrImageInfo | makeAlphaType (SkAlphaType at) const |
|
GrImageInfo | makeColorSpace (sk_sp< SkColorSpace > cs) const |
|
GrImageInfo | makeDimensions (SkISize dimensions) const |
|
GrImageInfo | makeWH (int width, int height) const |
|
const GrColorInfo & | colorInfo () const |
|
GrColorType | colorType () const |
|
SkAlphaType | alphaType () const |
|
SkColorSpace * | colorSpace () const |
|
sk_sp< SkColorSpace > | refColorSpace () const |
|
SkISize | dimensions () const |
|
int | width () const |
|
int | height () const |
|
size_t | bpp () const |
|
size_t | minRowBytes () const |
|
bool | isValid () const |
|
Definition at line 22 of file GrImageInfo.h.
◆ GrImageInfo() [1/8]
GrImageInfo::GrImageInfo |
( |
| ) |
|
|
default |
◆ GrImageInfo() [2/8]
Definition at line 17 of file GrImageInfo.cpp.
18 : fColorInfo(
info.colorInfo()), fDimensions(
info.dimensions()) {}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
◆ GrImageInfo() [3/8]
Definition at line 20 of file GrImageInfo.cpp.
21 : fColorInfo(ct, at, std::move(cs)), fDimensions{
w,
h} {}
◆ GrImageInfo() [4/8]
Definition at line 23 of file GrImageInfo.cpp.
25 : fColorInfo(ct, at, std::move(cs)), fDimensions(
dimensions) {}
SkISize dimensions() const
◆ GrImageInfo() [5/8]
◆ GrImageInfo() [6/8]
◆ GrImageInfo() [7/8]
◆ GrImageInfo() [8/8]
◆ alphaType()
◆ bpp()
size_t GrImageInfo::bpp |
( |
| ) |
const |
|
inline |
Definition at line 58 of file GrImageInfo.h.
static constexpr size_t GrColorTypeBytesPerPixel(GrColorType ct)
GrColorType colorType() const
◆ colorInfo()
◆ colorSpace()
Definition at line 48 of file GrImageInfo.h.
SkColorSpace * colorSpace() const
◆ colorType()
◆ dimensions()
SkISize GrImageInfo::dimensions |
( |
| ) |
const |
|
inline |
◆ height()
int GrImageInfo::height |
( |
| ) |
const |
|
inline |
Definition at line 56 of file GrImageInfo.h.
56{
return fDimensions.
height(); }
constexpr int32_t height() const
◆ isValid()
bool GrImageInfo::isValid |
( |
| ) |
const |
|
inline |
◆ makeAlphaType()
Definition at line 42 of file GrImageInfo.cpp.
42 {
44}
sk_sp< SkColorSpace > refColorSpace() const
◆ makeColorSpace()
Definition at line 46 of file GrImageInfo.cpp.
46 {
48}
SkAlphaType alphaType() const
◆ makeColorType()
Definition at line 38 of file GrImageInfo.cpp.
38 {
40}
GrColorInfo makeColorType(GrColorType ct) const
const GrColorInfo & colorInfo() const
◆ makeDimensions()
◆ makeWH()
◆ minRowBytes()
size_t GrImageInfo::minRowBytes |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ refColorSpace()
Definition at line 58 of file GrImageInfo.cpp.
sk_sp< SkColorSpace > refColorSpace() const
◆ width()
int GrImageInfo::width |
( |
| ) |
const |
|
inline |
Definition at line 54 of file GrImageInfo.h.
54{
return fDimensions.
width(); }
constexpr int32_t width() const
The documentation for this class was generated from the following files: