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

Michael Niedermayer michaelni at gmx.at
Thu Nov 13 15:38:51 CET 2014


On Thu, Nov 13, 2014 at 05:37:29PM +1100, Peter Ross wrote:
> 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.

applied

thanks

> 
> 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)



> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- 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/435af95c/attachment.asc>


More information about the ffmpeg-devel mailing list