* Do PNG Crunching on a single flag * -i points to a single png file * -o points to a single png output file */
| 2137 | * -o points to a single png output file |
| 2138 | */ |
| 2139 | int 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 | |
| 2155 | char CONSOLE_DATA[2925] = { |
| 2156 | 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, |
no test coverage detected