Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ECM
ECM
Commits
179c8a69
Commit
179c8a69
authored
3 years ago
by
Vadim Seregin
Browse files
Options
Downloads
Plain Diff
Merge branch 'JVET-X0090' into 'master'
JVET-X0090 method 3 See merge request
!24
parents
96662529
9b086917
No related branches found
No related tags found
1 merge request
!24
JVET-X0090 method 3
Pipeline
#6576
passed
3 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
source/Lib/CommonLib/TypeDef.h
+1
-0
1 addition, 0 deletions
source/Lib/CommonLib/TypeDef.h
source/Lib/DecoderLib/DecCu.cpp
+12
-1
12 additions, 1 deletion
source/Lib/DecoderLib/DecCu.cpp
source/Lib/EncoderLib/EncCu.cpp
+42
-0
42 additions, 0 deletions
source/Lib/EncoderLib/EncCu.cpp
with
55 additions
and
1 deletion
source/Lib/CommonLib/TypeDef.h
+
1
−
0
View file @
179c8a69
...
...
@@ -117,6 +117,7 @@
// Inter
#define CIIP_PDPC 1 // apply pdpc to megre prediction as a new CIIP mode (CIIP_PDPC) additional to CIIP mode
#define JVET_X0090_CIIP_FIX 1 // JVET-X0090: combination of CIIP, OBMC and LMCS
#define SAMPLE_BASED_BDOF 1 // Sample based BDOF
#define MULTI_PASS_DMVR 1 // Multi-pass DMVR
#define AFFINE_MMVD 1 // Add MMVD to affine merge mode
...
...
This diff is collapsed.
Click to expand it.
source/Lib/DecoderLib/DecCu.cpp
+
12
−
1
View file @
179c8a69
...
...
@@ -972,7 +972,11 @@ void DecCu::xReconInter(CodingUnit &cu)
if
(
cu
.
firstPU
->
ciipFlag
)
{
const
UnitArea
localUnitArea
(
cu
.
cs
->
area
.
chromaFormat
,
Area
(
0
,
0
,
cu
.
Y
().
width
,
cu
.
Y
().
height
)
);
#if ENABLE_OBMC && JVET_X0090_CIIP_FIX
cu
.
isobmcMC
=
true
;
m_pcInterPred
->
subBlockOBMC
(
*
cu
.
firstPU
);
cu
.
isobmcMC
=
false
;
#endif
if
(
cu
.
cs
->
slice
->
getLmcsEnabledFlag
()
&&
m_pcReshape
->
getCTUFlag
()
)
{
m_pcIntraPred
->
geneWeightedPred
<
true
>
(
COMPONENT_Y
,
cu
.
cs
->
getPredBuf
(
*
cu
.
firstPU
).
Y
(),
*
cu
.
firstPU
,
cu
.
cs
->
getPredBuf
(
*
cu
.
firstPU
).
Y
(),
m_ciipBuffer
.
getBuf
(
localUnitArea
.
Y
()
),
m_pcReshape
->
getFwdLUT
().
data
()
);
...
...
@@ -994,7 +998,14 @@ void DecCu::xReconInter(CodingUnit &cu)
}
#if ENABLE_OBMC
cu
.
isobmcMC
=
true
;
#if JVET_X0090_CIIP_FIX
if
(
!
cu
.
firstPU
->
ciipFlag
)
{
m_pcInterPred
->
subBlockOBMC
(
*
cu
.
firstPU
);
}
#else
m_pcInterPred
->
subBlockOBMC
(
*
cu
.
firstPU
);
#endif
cu
.
isobmcMC
=
false
;
#endif
DTRACE
(
g_trace_ctx
,
D_TMP
,
"pred "
);
...
...
This diff is collapsed.
Click to expand it.
source/Lib/EncoderLib/EncCu.cpp
+
42
−
0
View file @
179c8a69
...
...
@@ -3918,6 +3918,40 @@ void EncCu::xCheckRDCostMerge2Nx2N( CodingStructure *&tempCS, CodingStructure *&
#else
uint32_t bufIdx = 0;
#endif
#if JVET_X0090_CIIP_FIX
m_pcInterSearch->motionCompensation(pu);
#if ENABLE_OBMC
cu.isobmcMC = true;
cu.obmcFlag = true;
m_pcInterSearch->subBlockOBMC(pu);
cu.isobmcMC = false;
#endif
if (cu.cs->slice->getLmcsEnabledFlag() && m_pcReshape->getCTUFlag())
{
m_pcIntraSearch->geneWeightedPred<true>(COMPONENT_Y, tempCS->getPredBuf(pu).Y(), pu, tempCS->getPredBuf(pu).Y(), m_ciipBuffer[bufIdx].getBuf(localUnitArea.Y()), m_pcReshape->getFwdLUT().data());
}
else
{
m_pcIntraSearch->geneWeightedPred<false>(COMPONENT_Y, tempCS->getPredBuf(pu).Y(), pu, tempCS->getPredBuf(pu).Y(), m_ciipBuffer[bufIdx].getBuf(localUnitArea.Y()));
}
#if INTRA_RM_SMALL_BLOCK_SIZE_CONSTRAINTS
if (isChromaEnabled(pu.chromaFormat))
#else
if (isChromaEnabled(pu.chromaFormat) && pu.chromaSize().width > 2)
#endif
{
m_pcIntraSearch->geneWeightedPred<false>(COMPONENT_Cb, tempCS->getPredBuf(pu).Cb(), pu, tempCS->getPredBuf(pu).Cb(), m_ciipBuffer[bufIdx].getBuf(localUnitArea.Cb()));
m_pcIntraSearch->geneWeightedPred<false>(COMPONENT_Cr, tempCS->getPredBuf(pu).Cr(), pu, tempCS->getPredBuf(pu).Cr(), m_ciipBuffer[bufIdx].getBuf(localUnitArea.Cr()));
}
#if !INTRA_RM_SMALL_BLOCK_SIZE_CONSTRAINTS
else if (isChromaEnabled(pu.chromaFormat))
{
tempCS->getPredBuf().Cb().copyFrom(tempCS->getPredBuf(pu).Cb());
tempCS->getPredBuf().Cr().copyFrom(tempCS->getPredBuf(pu).Cr());
}
#endif
#else
// Luma CIIP was already done in SATD check stage and stored
tempCS->getPredBuf().Y().copyFrom( acMergeTempBuffer[uiMrgHADIdx]->Y() );
...
...
@@ -3936,6 +3970,7 @@ void EncCu::xCheckRDCostMerge2Nx2N( CodingStructure *&tempCS, CodingStructure *&
tempCS->getPredBuf().Cb().copyFrom(acMergeTmpBuffer[uiMergeCand].Cb());
tempCS->getPredBuf().Cr().copyFrom(acMergeTmpBuffer[uiMergeCand].Cr());
}
#endif
#endif
}
else
...
...
@@ -4078,7 +4113,14 @@ void EncCu::xCheckRDCostMerge2Nx2N( CodingStructure *&tempCS, CodingStructure *&
#if ENABLE_OBMC
cu.isobmcMC = true;
cu.obmcFlag = true;
#if JVET_X0090_CIIP_FIX
if (!pu.ciipFlag)
{
m_pcInterSearch->subBlockOBMC(pu);
}
#else
m_pcInterSearch->subBlockOBMC( pu );
#endif
cu.isobmcMC = false;
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment