[FFmpeg-trac] #1279(FFplay:new): Transform X'Y'Z' to RGB via lutrgb

FFmpeg trac at avcodec.org
Sun May 6 16:32:23 CEST 2012


#1279: Transform X'Y'Z' to RGB via lutrgb
-------------------------------------+-------------------------------------
             Reporter:  wolfgangw    |                     Type:
               Status:  new          |  enhancement
            Component:  FFplay       |                 Priority:  normal
             Keywords:  XYZ X'Y'Z'   |                  Version:  git-
  RGB 3x3 matrix transform           |  master
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 Hi, thanks for an awesome toolset.

 In order to do a colorspace transform (like X'Y'Z' to RGB) one would need
 to apply a 3x3 transformation matrix. It would be a very handy feature if
 one could do this in lutrgb. Like

 ffplay -vf lutrgb="r=r*3.2404542 + g*-1.5371385 +
 b*-0.4985314:g=r*-0.9692660 + g*1.8760108 + b*0.0415560:b=r*0.0556434 +
 g*-0.2040259 + b*1.0572252" <some file in XYZ>

 which is not possible as of current git master: 'r', 'g' and 'b' are not
 valid right-hand-side expressions.

 Looking at libavfilter/vf_lut.c suggests that this might even be quite
 easy to add. Anyone likes to jump on it before I break too much porcelain
 (I don't know the codebase well enough now)?

 Again, thanks for FFMpeg.
 Wolfgang

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1279>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list