[MMFMWK-7905] vpudec: add fullRange to HDR10 metadata
Pass new added hdr10 metadata "fullRange" to downstream
Signed-off-by: Haihua Hu <jared.hu@nxp.com>
diff --git a/ext-includes/vpu_wrapper.h b/ext-includes/vpu_wrapper.h
index 0aa5a9f..66fa421 100755
--- a/ext-includes/vpu_wrapper.h
+++ b/ext-includes/vpu_wrapper.h
@@ -323,6 +323,7 @@
unsigned int colourPrimaries;
unsigned int transferCharacteristics;
unsigned int matrixCoeffs;
+ unsigned int fullRange;
} VpuColourDesc;
typedef struct VpuChromaLocInfo {
diff --git a/plugins/vpu/gstvpudecobject.c b/plugins/vpu/gstvpudecobject.c
index 01b7f7c..0a105c4 100755
--- a/plugins/vpu/gstvpudecobject.c
+++ b/plugins/vpu/gstvpudecobject.c
@@ -1089,6 +1089,7 @@
meta->hdr10meta.colourPrimaries = vpu_dec_object->init_info.ColourDesc.colourPrimaries;
meta->hdr10meta.transferCharacteristics = vpu_dec_object->init_info.ColourDesc.transferCharacteristics;
meta->hdr10meta.matrixCoeffs = vpu_dec_object->init_info.ColourDesc.matrixCoeffs;
+ meta->hdr10meta.fullRange = vpu_dec_object->init_info.ColourDesc.fullRange;
meta->hdr10meta.chromaSampleLocTypeTopField = vpu_dec_object->init_info.ChromaLocInfo.chromaSampleLocTypeTopField;
meta->hdr10meta.chromaSampleLocTypeBottomField = vpu_dec_object->init_info.ChromaLocInfo.chromaSampleLocTypeTopField;
}