MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / doSingleCrunch

Function doSingleCrunch

tools/aapt/Command.cpp:2139–2153  ·  view source on GitHub ↗

* Do PNG Crunching on a single flag * -i points to a single png file * -o points to a single png output file */

Source from the content-addressed store, hash-verified

2137 * -o points to a single png output file
2138 */
2139int doSingleCrunch(Bundle* bundle)
2140{
2141 fprintf(stdout, "Crunching single PNG file: %s\n", bundle->getSingleCrunchInputFile());
2142 fprintf(stdout, "\tOutput file: %s\n", bundle->getSingleCrunchOutputFile());
2143
2144 String8 input(bundle->getSingleCrunchInputFile());
2145 String8 output(bundle->getSingleCrunchOutputFile());
2146
2147 if (preProcessImageToCache(bundle, input, output) != NO_ERROR) {
2148 // we can't return the status_t as it gets truncate to the lower 8 bits.
2149 return 42;
2150 }
2151
2152 return NO_ERROR;
2153}
2154
2155char CONSOLE_DATA[2925] = {
2156 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,

Callers 1

handleCommandFunction · 0.85

Calls 3

preProcessImageToCacheFunction · 0.85

Tested by

no test coverage detected