libs: encoder: h265: chroma and luma with format
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Mon, 3 Apr 2017 13:34:51 +0000 (15:34 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Fri, 7 Apr 2017 10:04:51 +0000 (12:04 +0200)
commit3532dca16aacef23e5ea20611b4331621c566332
tree4e5d4d773a8cc2773f48eea9fa4734e5ed843626
parentd744aeb5fa41d35f82a4fdbe5b4397335be40f87
libs: encoder: h265: chroma and luma with format

If the profile is main-10 the bit_depth_luma_minus8, in the sequence
parameter buffer, shall be the color format bit depth minus 8, 10-8
which is 2. Also for bit_depth_chroma_minus8.

This patch gets the negotiated sink caps format and queries its
luma's depth and uses that value to fill the mentioned parameters.

https://bugzilla.gnome.org/show_bug.cgi?id=771291
gst-libs/gst/vaapi/gstvaapiencoder_h265.c