Skip to content

Commit

Permalink
MRF: enable QB3_FTL mode when available (#10753)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianpls authored Sep 9, 2024
1 parent 83d81b1 commit cf67174
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frmts/mrf/QB3_band.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ CPLErr QB3_Band::Compress(buf_mgr &dst, buf_mgr &src)
// Quality of 90 and above trigger the better encoding
qb3_set_encoder_mode(pQB3, (img.quality > 90) ? QB3M_BEST : QB3M_BASE);

#if defined(QB3_HAS_FTL)
// Quality below 5 triggers the faster encoding, when available
if (img.quality < 5)
qb3_set_encoder_mode(pQB3, QB3M_FTL);
#endif

dst.size = qb3_encode(pQB3, src.buffer, dst.buffer);
if (0 == dst.size)
{
Expand Down

0 comments on commit cf67174

Please sign in to comment.