X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=source%2Fencoder%2FweightPrediction.cpp;h=cd6f4f7bfc7b5534c608e84fc9295b2f72eac7ec;hp=3bf5a452e76bf72762db10dc42128a3961b044ae;hb=b53f7c52d8280ab63876efd6eb292c21430ac607;hpb=5c9b45285dd64723ad1dac380b98a7b1f3095674 diff --git a/source/encoder/weightPrediction.cpp b/source/encoder/weightPrediction.cpp index 3bf5a45..cd6f4f7 100644 --- a/source/encoder/weightPrediction.cpp +++ b/source/encoder/weightPrediction.cpp @@ -219,7 +219,7 @@ namespace x265 { void weightAnalyse(Slice& slice, Frame& frame, x265_param& param) { WeightParam wp[2][MAX_NUM_REF][3]; - PicYuv *fencPic = frame.m_origPicYuv; + PicYuv *fencPic = frame.m_fencPic; Lowres& fenc = frame.m_lowres; Cache cache; @@ -329,7 +329,7 @@ void weightAnalyse(Slice& slice, Frame& frame, x265_param& param) if (!refFrame->m_bChromaExtended) { refFrame->m_bChromaExtended = true; - PicYuv *refPic = refFrame->m_origPicYuv; + PicYuv *refPic = refFrame->m_fencPic; int width = refPic->m_picWidth >> cache.hshift; int height = refPic->m_picHeight >> cache.vshift; extendPicBorder(refPic->m_picOrg[1], refPic->m_strideC, width, height, refPic->m_chromaMarginX, refPic->m_chromaMarginY); @@ -363,7 +363,7 @@ void weightAnalyse(Slice& slice, Frame& frame, x265_param& param) case 1: orig = fencPic->m_picOrg[1]; stride = fencPic->m_strideC; - fref = refFrame->m_origPicYuv->m_picOrg[1]; + fref = refFrame->m_fencPic->m_picOrg[1]; /* Clamp the chroma dimensions to the nearest multiple of * 8x8 blocks (or 16x16 for 4:4:4) since mcChroma uses lowres @@ -381,7 +381,7 @@ void weightAnalyse(Slice& slice, Frame& frame, x265_param& param) break; case 2: - fref = refFrame->m_origPicYuv->m_picOrg[2]; + fref = refFrame->m_fencPic->m_picOrg[2]; orig = fencPic->m_picOrg[2]; stride = fencPic->m_strideC; width = ((fencPic->m_picWidth >> 4) << 4) >> cache.hshift;