[x265] [PATCH] Set left view as primary view by default

Anusuya Kumarasamy anusuya.kumarasamy at multicorewareinc.com
Mon Sep 9 08:49:29 UTC 2024


>From 36b227d7ebf595ebe6c7d1846c7d67b9e6a9735b Mon Sep 17 00:00:00 2001
From: AnusuyaKumarasamy <anusuya.kumarasamy at multicorewareinc.com>
Date: Wed, 4 Sep 2024 12:19:59 +0530
Subject: [PATCH 5/7] Set left view as primary view by default

---
 source/common/slice.h      | 1 -
 source/encoder/encoder.cpp | 5 +----
 source/encoder/entropy.cpp | 2 +-
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/source/common/slice.h b/source/common/slice.h
index 3745e7b2f..022ce4d75 100644
--- a/source/common/slice.h
+++ b/source/common/slice.h
@@ -182,7 +182,6 @@ struct VPS
 #endif

 #if ENABLE_MULTIVIEW
-    int              m_viewId[MAX_VIEWS];
     int              m_layerIdIncludedFlag;
 #endif
 };
diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
index 1d75ca258..5d718392f 100644
--- a/source/encoder/encoder.cpp
+++ b/source/encoder/encoder.cpp
@@ -3567,12 +3567,9 @@ void Encoder::initVPS(VPS *vps)
         }
         vps->m_dimensionIdLen[1] = auxDimIdLen;

-        vps->m_nuhLayerIdPresentFlag = 0;
+        vps->m_nuhLayerIdPresentFlag = 1;
         vps->m_viewIdLen = 1;

-        vps->m_viewId[0] = 1;
-        vps->m_viewId[1] = 0;
-
         vps->m_vpsNumLayerSetsMinus1 = 1;
         vps->m_numLayersInIdList[0] = 1;
         vps->m_numLayersInIdList[1] = 2;
diff --git a/source/encoder/entropy.cpp b/source/encoder/entropy.cpp
index a90ab4415..834d0014b 100644
--- a/source/encoder/entropy.cpp
+++ b/source/encoder/entropy.cpp
@@ -415,7 +415,7 @@ void Entropy::codeVPS(const VPS& vps, const SPS& sps)
             if (vps.m_numViews > 1)
             {
                 for (uint8_t i = 0; i < vps.m_numViews; i++)
-                    WRITE_CODE(vps.m_viewId[i], vps.m_viewIdLen,
"view_id_val[i]");
+                    WRITE_CODE(i, vps.m_viewIdLen, "view_id_val[i]");

                 for (int i = 1; i < vps.m_numViews; i++)
                 {
-- 
2.36.0.windows.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240909/73b97ddc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Set-left-view-as-primary-view-by-default.patch
Type: application/octet-stream
Size: 1921 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20240909/73b97ddc/attachment.obj>


More information about the x265-devel mailing list