<div dir="ltr">From 36b227d7ebf595ebe6c7d1846c7d67b9e6a9735b Mon Sep 17 00:00:00 2001<br>From: AnusuyaKumarasamy <<a href="mailto:anusuya.kumarasamy@multicorewareinc.com">anusuya.kumarasamy@multicorewareinc.com</a>><br>Date: Wed, 4 Sep 2024 12:19:59 +0530<br>Subject: [PATCH 5/7] Set left view as primary view by default<br><br>---<br> source/common/slice.h      | 1 -<br> source/encoder/encoder.cpp | 5 +----<br> source/encoder/entropy.cpp | 2 +-<br> 3 files changed, 2 insertions(+), 6 deletions(-)<br><br>diff --git a/source/common/slice.h b/source/common/slice.h<br>index 3745e7b2f..022ce4d75 100644<br>--- a/source/common/slice.h<br>+++ b/source/common/slice.h<br>@@ -182,7 +182,6 @@ struct VPS<br> #endif<br> <br> #if ENABLE_MULTIVIEW<br>-    int              m_viewId[MAX_VIEWS];<br>     int              m_layerIdIncludedFlag;<br> #endif<br> };<br>diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp<br>index 1d75ca258..5d718392f 100644<br>--- a/source/encoder/encoder.cpp<br>+++ b/source/encoder/encoder.cpp<br>@@ -3567,12 +3567,9 @@ void Encoder::initVPS(VPS *vps)<br>         }<br>         vps->m_dimensionIdLen[1] = auxDimIdLen;<br> <br>-        vps->m_nuhLayerIdPresentFlag = 0;<br>+        vps->m_nuhLayerIdPresentFlag = 1;<br>         vps->m_viewIdLen = 1;<br> <br>-        vps->m_viewId[0] = 1;<br>-        vps->m_viewId[1] = 0;<br>-<br>         vps->m_vpsNumLayerSetsMinus1 = 1;<br>         vps->m_numLayersInIdList[0] = 1;<br>         vps->m_numLayersInIdList[1] = 2;<br>diff --git a/source/encoder/entropy.cpp b/source/encoder/entropy.cpp<br>index a90ab4415..834d0014b 100644<br>--- a/source/encoder/entropy.cpp<br>+++ b/source/encoder/entropy.cpp<br>@@ -415,7 +415,7 @@ void Entropy::codeVPS(const VPS& vps, const SPS& sps)<br>             if (vps.m_numViews > 1)<br>             {<br>                 for (uint8_t i = 0; i < vps.m_numViews; i++)<br>-                    WRITE_CODE(vps.m_viewId[i], vps.m_viewIdLen, "view_id_val[i]");<br>+                    WRITE_CODE(i, vps.m_viewIdLen, "view_id_val[i]");<br> <br>                 for (int i = 1; i < vps.m_numViews; i++)<br>                 {<br>-- <br>2.36.0.windows.1<br><br></div>