Imported Upstream version 1.4+222+hg5f9f7194267b
[deb_x265.git] / source / common / slice.h
index bd0ba63533979ae2e6a132e3b35fdbd9e2d90f97..90712b98826ccbf922182f18543b362541822fac 100644 (file)
@@ -242,8 +242,7 @@ struct PPS
 {
     uint32_t maxCuDQPDepth;
 
-    int      chromaCbQpOffset;       // use param
-    int      chromaCrQpOffset;       // use param
+    int      chromaQpOffset[2];      // use param
 
     bool     bUseWeightPred;         // use param
     bool     bUseWeightedBiPred;     // use param
@@ -334,6 +333,8 @@ public:
 
     void setRefPicList(PicList& picList);
 
+    const Frame* getRefPic(int list, int refIdx) const { return refIdx >= 0 ? m_refPicList[list][refIdx] : NULL; }
+
     bool getRapPicFlag() const
     {
         return m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR_W_RADL