tight: Allow lossy encoding with 16 bpp
parent
f3e09fd622
commit
477ab4c481
|
@ -43,10 +43,8 @@ enum tight_quality tight_get_quality(struct tight_encoder* self)
|
||||||
struct nvnc_client* client =
|
struct nvnc_client* client =
|
||||||
container_of(self, struct nvnc_client, tight_encoder);
|
container_of(self, struct nvnc_client, tight_encoder);
|
||||||
|
|
||||||
/* Note: The standard specifies that 16 is OK too, but we can only
|
if (client->pixfmt.bits_per_pixel != 16 &&
|
||||||
* handle 32
|
client->pixfmt.bits_per_pixel != 32)
|
||||||
*/
|
|
||||||
if (client->pixfmt.bits_per_pixel != 32)
|
|
||||||
return TIGHT_QUALITY_LOSSLESS;
|
return TIGHT_QUALITY_LOSSLESS;
|
||||||
|
|
||||||
for (size_t i = 0; i < client->n_encodings; ++i)
|
for (size_t i = 0; i < client->n_encodings; ++i)
|
||||||
|
|
Loading…
Reference in New Issue