blob: e4d1ab97b891f029ca2f3a34a944ea87c8a249f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* See LICENSE file for copyright and license details. */
#include "liblss16.h"
const char *
liblss16_encode_strerror(enum liblss16_encode_error error)
{
switch ((int)error) {
case LIBLSS16_ENCODE_BAD_IMAGE_SIZE:
return "Unencodable image: unsupported image size";
case LIBLSS16_ENCODE_BAD_COLOUR:
return "Invalid colour map: 6-bit colours encoded with additional bits";
default:
return "Unrecognised error";
}
}
|