TargaLoader::TargaLoader(const IODevicePtr &iodevice, bool srgb) : file(iodevice), srgb(srgb) { read_header(); read_image_id(); read_color_map(); read_image_data(); decode_palette(); decode_image(); }
PNGLoader::PNGLoader(IODevice iodevice, bool force_srgb) : file(iodevice), force_srgb(force_srgb), scanline(nullptr), prev_scanline(nullptr), scanline_4ub(nullptr), scanline_4us(nullptr), palette(nullptr) { read_magic(); read_chunks(); decode_header(); decode_palette(); decode_colorkey(); decode_image(); }