Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#5980 closed enhancement (fixed)

vf_zscale.c missing "allow_approximate_gamma" parameter to libzimg

Reported by: lvml Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: zscale
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


The zscale filter has no option to choose the "allow_approximate_gamma" parameter, and by default that parameter is zero, causing excessively slow scaling, because for every pixel, transcendent math functions are invoked for certain transfer functions.

IMHO, allow_approximate_gamma = 1 should be the default, it speeds up "zscale" by an order of magnitude without visible differences in the result, and inserting

params.allow_approximate_gamma = 1;

at is enough to achieve this.

Of course, a filter option to control this would be even better.

Change History (3)

comment:1 Changed 3 years ago by lvml

comment:2 Changed 3 years ago by richardpl

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 3 years ago by lvml

Thanks a lot!

Note: See TracTickets for help on using tickets.