Skip to content
Snippets Groups Projects
Commit 95c670b3 authored by Mohsen Abdoli's avatar Mohsen Abdoli
Browse files

Integrate missing adaptation of JVET-AJ0061 (TIMD-merge) with JVET-AJ0096 (SATD reordering)

parent 0c7b8895
No related branches found
No related tags found
1 merge request!769Integrate missing adaptation of JVET-AJ0061 (TIMD-merge) with JVET-AJ0096 (SATD reordering)
...@@ -9434,22 +9434,40 @@ void IntraPrediction::calcTimdMrgCandCosts( ...@@ -9434,22 +9434,40 @@ void IntraPrediction::calcTimdMrgCandCosts(
distParamSad[1].useMR = false; distParamSad[1].useMR = false;
if (eTempType == LEFT_ABOVE_NEIGHBOR) if (eTempType == LEFT_ABOVE_NEIGHBOR)
{ {
#if JVET_AJ0096_SATD_REORDER_INTRA
m_timdSatdCost->setTimdDistParam(distParamSad[0], piOrg + iTempWidth, piPred + iTempWidth, iOrgStride,
uiPredStride, channelBitDepth, COMPONENT_Y, uiWidth, iTempHeight, 0, 1, true);
m_timdSatdCost->setTimdDistParam(distParamSad[1], piOrg + iTempHeight * iOrgStride,
piPred + iTempHeight * uiPredStride, iOrgStride, uiPredStride, channelBitDepth,
COMPONENT_Y, iTempWidth, uiHeight, 0, 1, true);
#else
m_timdSatdCost->setTimdDistParam(distParamSad[0], piOrg + iTempWidth, piPred + iTempWidth, iOrgStride, m_timdSatdCost->setTimdDistParam(distParamSad[0], piOrg + iTempWidth, piPred + iTempWidth, iOrgStride,
uiPredStride, channelBitDepth, COMPONENT_Y, uiWidth, iTempHeight, 0, 1, uiPredStride, channelBitDepth, COMPONENT_Y, uiWidth, iTempHeight, 0, 1,
false); // Use HAD (SATD) cost false); // Use HAD (SATD) cost
m_timdSatdCost->setTimdDistParam(distParamSad[1], piOrg + iTempHeight * iOrgStride, m_timdSatdCost->setTimdDistParam(distParamSad[1], piOrg + iTempHeight * iOrgStride,
piPred + iTempHeight * uiPredStride, iOrgStride, uiPredStride, channelBitDepth, piPred + iTempHeight * uiPredStride, iOrgStride, uiPredStride, channelBitDepth,
COMPONENT_Y, iTempWidth, uiHeight, 0, 1, false); // Use HAD (SATD) cost COMPONENT_Y, iTempWidth, uiHeight, 0, 1, false); // Use HAD (SATD) cost
#endif
} }
else if (eTempType == LEFT_NEIGHBOR) else if (eTempType == LEFT_NEIGHBOR)
{ {
#if JVET_AJ0096_SATD_REORDER_INTRA
m_timdSatdCost->setTimdDistParam(distParamSad[1], piOrg, piPred, iOrgStride, uiPredStride, channelBitDepth,
COMPONENT_Y, iTempWidth, uiHeight, 0, 1, true);
#else
m_timdSatdCost->setTimdDistParam(distParamSad[1], piOrg, piPred, iOrgStride, uiPredStride, channelBitDepth, m_timdSatdCost->setTimdDistParam(distParamSad[1], piOrg, piPred, iOrgStride, uiPredStride, channelBitDepth,
COMPONENT_Y, iTempWidth, uiHeight, 0, 1, false); COMPONENT_Y, iTempWidth, uiHeight, 0, 1, false);
#endif
} }
else if (eTempType == ABOVE_NEIGHBOR) else if (eTempType == ABOVE_NEIGHBOR)
{ {
#if JVET_AJ0096_SATD_REORDER_INTRA
m_timdSatdCost->setTimdDistParam(distParamSad[0], piOrg, piPred, iOrgStride, uiPredStride, channelBitDepth,
COMPONENT_Y, uiWidth, iTempHeight, 0, 1, true);
#else
m_timdSatdCost->setTimdDistParam(distParamSad[0], piOrg, piPred, iOrgStride, uiPredStride, channelBitDepth, m_timdSatdCost->setTimdDistParam(distParamSad[0], piOrg, piPred, iOrgStride, uiPredStride, channelBitDepth,
COMPONENT_Y, uiWidth, iTempHeight, 0, 1, false); COMPONENT_Y, uiWidth, iTempHeight, 0, 1, false);
#endif
} }
initTimdIntraPatternLuma(cu, area, eTempType != ABOVE_NEIGHBOR ? iTempWidth : 0, initTimdIntraPatternLuma(cu, area, eTempType != ABOVE_NEIGHBOR ? iTempWidth : 0,
eTempType != LEFT_NEIGHBOR ? iTempHeight : 0, uiRefWidth, uiRefHeight); eTempType != LEFT_NEIGHBOR ? iTempHeight : 0, uiRefWidth, uiRefHeight);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment