lavc/hevc Parse SEI_TYPE_MASTERING_DISPLAY_INFO and propagate content into the AVMast...
authorNeil Birkbeck <neil.birkbeck@gmail.com>
Thu, 21 Jan 2016 18:56:50 +0000 (10:56 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Feb 2016 23:36:05 +0000 (00:36 +0100)
commit3b0974d3ef7f6f39a2e4c2af9ec2a2f9976ad46d
treeb1e031ec8d374cfd46eb0c30b1c688545418714d
parentc33ffc7b21b9531a971b5da1edcae0b308fe88aa
lavc/hevc Parse SEI_TYPE_MASTERING_DISPLAY_INFO and propagate content into the AVMasteringDisplayMetadata side data.

Add support for parsing SEI_TYPE_MASTERING_DISPLAY_INFO and propagate contents into
the AVMasteringDisplayMetadata side data. Primaries are ordered in RGB order and
the values are converted to rationals ([0,1] for CEI 1931 Chroma coords,
and cd/m^2 for luma).

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc.c
libavcodec/hevc.h
libavcodec/hevc_sei.c