|
@ -121,11 +121,11 @@ void decode(const char* pic) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
UnloadImage(image); |
|
|
UnloadImage(image); |
|
|
std::cout << from_bits(raw_bits).c_str() << std::endl; |
|
|
|
|
|
|
|
|
std::cout << from_bits(raw_bits); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int main(int argc, char** argv) { |
|
|
int main(int argc, char** argv) { |
|
|
if(argc < 1) { |
|
|
|
|
|
|
|
|
if(argc <= 1) { |
|
|
perror("arguments missing, expected: picture then datafile for coding, picture for decoding"); |
|
|
perror("arguments missing, expected: picture then datafile for coding, picture for decoding"); |
|
|
} |
|
|
} |
|
|
if(argc == 3) { |
|
|
if(argc == 3) { |
|
|