[FFmpeg-devel] [RFC] cinedec: report white balance gain coefficients using metadata

Peter Ross pross at xvid.org
Thu Nov 13 07:37:29 CET 2014


On Thu, Nov 13, 2014 at 12:58:07AM +0100, Michael Niedermayer wrote:
> On Sun, Nov 09, 2014 at 12:05:41PM +1100, Peter Ross wrote:
> > For cehoyos:
> > 
> > The PhantomCINE file format stores unprocessed sensor data from the 
> > camera CFA, and reports image processing coefficients in the file header.
> > To make meaningful use of this file format with FFmpeg, additional filtering
> > is required.
> > 
> > R/B gain:
> > 
> >   -vf 'lutrgb=r=WBRGAIN*val:b=WBBGAIN_*val'
> >   (replace WBxGAIN with value reported by cinedec)
> > 
> > _or_ for automatic adjustment
> > 
> >   -vf 'histeq'
> > 
> > There is still a need to compensate for gamma, but I do not know how to
> > convert the gamma value reported in the cinedec file to lutyuv/eq2 value.
> > (Also, the gain and gamma is intended to be applied in bayer colorspace.
> >  FFmpeg does have any bayer colorspace filters yet so they are applied post
> >  RGB conversion.)
> > 
> > [You may reuse the above text in FFmpeg wiki/documentation if neccessary.]
> > 
> > ---
> >  libavformat/cinedec.c | 16 +++++++++++++++-
> >  1 file changed, 15 insertions(+), 1 deletion(-)
> 
> it says RFC in the subject, should i apply this ?
> it looks good to me ...

Please apply this.

The other cinedec patch, concerning gamma adjustment, is incorrect. Do not apply that one. Thanks.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141113/83d18234/attachment.asc>


More information about the ffmpeg-devel mailing list