tight: Allow lossy encoding with 16 bpp

pull/32/head
Andri Yngvason 2020-05-05 21:34:45 +00:00
parent f3e09fd622
commit 477ab4c481
1 changed files with 2 additions and 4 deletions

View File

@ -43,10 +43,8 @@ enum tight_quality tight_get_quality(struct tight_encoder* self)
struct nvnc_client* client =
container_of(self, struct nvnc_client, tight_encoder);
/* Note: The standard specifies that 16 is OK too, but we can only
* handle 32
*/
if (client->pixfmt.bits_per_pixel != 32)
if (client->pixfmt.bits_per_pixel != 16 &&
client->pixfmt.bits_per_pixel != 32)
return TIGHT_QUALITY_LOSSLESS;
for (size_t i = 0; i < client->n_encodings; ++i)