/** * This function starts the extraction process without * the display option. * * @param infos Informations about the launch process. */ void launchProgramWithoutDisplay(t_launch_infos *infos) { SDL_Surface *screen; screen = NULL; if (infos->inFile != NULL && infos->outFile != NULL) { if (is_bmp(infos->inFile)) { InitSDL(screen); processAll(infos); SDL_Quit(); } else { help("learn"); wfree(infos); exit(EXIT_SUCCESS); } } }
/** * This function starts the extraction process with * the display option. * @param infos Informations about the launch process. */ void launchProgramWithDisplay(t_launch_infos *infos) { SDL_Surface *screen; screen = NULL; if (infos->inFile != NULL && infos->outFile != NULL) { if (is_bmp(infos->inFile)) { InitSDL(screen,1); /* Process */ waitLoop(); SDL_Quit(); } else { help("extract"); wfree(infos); exit(EXIT_SUCCESS); } } }
static SkImageDecoder::Format get_format_bmp(SkStreamRewindable* stream) { if (is_bmp(stream)) { return SkImageDecoder::kBMP_Format; } return SkImageDecoder::kUnknown_Format; }
static SkImageDecoder* sk_libbmp_dfactory(SkStreamRewindable* stream) { if (is_bmp(stream)) { return SkNEW(SkBMPImageDecoder); } return NULL; }
static SkImageDecoder* sk_libbmp_dfactory(SkStreamRewindable* stream) { if (is_bmp(stream)) { return new SkBMPImageDecoder; } return nullptr; }