Fix colorspace on headset
This commit is contained in:
@@ -114,10 +114,11 @@ VideoEncoderX264::VideoEncoderX264(
|
||||
param.b_aud = 0;
|
||||
|
||||
// colour definitions, actually ignored by decoder
|
||||
using namespace to_headset;
|
||||
param.vui.b_fullrange = 0;
|
||||
param.vui.b_fullrange = 1;
|
||||
settings.range = VK_SAMPLER_YCBCR_RANGE_ITU_FULL;
|
||||
param.vui.i_colorprim = 1; // BT.709
|
||||
param.vui.i_colmatrix = 1; // BT.709
|
||||
settings.color_model = VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709;
|
||||
param.vui.i_transfer = 13; // sRGB
|
||||
|
||||
param.vui.i_sar_width = settings.width;
|
||||
|
||||
Reference in New Issue
Block a user