Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 19 of file use_skresources.cpp.
19 {
20 if (argc != 2) {
22 return 1;
23 }
24
28
29
30
32 if (!asset) {
33 printf(
"Could not load baby_tux.png in images subdirectory\n");
34 return 1;
35 }
37 if (!tux) {
38 printf(
"Could not decode baby_tux.png in images subdirectory\n");
39 return 1;
40 }
42
43 asset = frp->loadImageAsset("images", "CMYK.jpg", "");
45 printf(
"Could not load/decode CMYK.jpg in images subdirectory\n");
46 return 1;
47 }
48
50 if (!cmyk) {
51 printf(
"Could not decode CMYK.jpg in images subdirectory\n");
52 return 1;
53 }
55
56 return 0;
57}
static sk_sp< FileResourceProvider > Make(SkString base_dir, ImageDecodeStrategy=ImageDecodeStrategy::kLazyDecode)
virtual FrameData getFrameData(float t)
void SK_API Register(Decoder d)
constexpr SkCodecs::Decoder Decoder()
constexpr SkCodecs::Decoder Decoder()
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1