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

Michael Niedermayer michaelni at gmx.at
Thu Nov 13 00:58:07 CET 2014


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

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- 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/d93a2219/attachment.asc>


More information about the ffmpeg-devel mailing list