Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
jvet
VVCSoftware_VTM
Commits
ae1fb06e
Commit
ae1fb06e
authored
6 years ago
by
Daniel Luo
Committed by
Frank Bossen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
JVET-M0487 integration
parent
d7cb218d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
source/Lib/CommonLib/InterPrediction.cpp
+35
-0
35 additions, 0 deletions
source/Lib/CommonLib/InterPrediction.cpp
source/Lib/CommonLib/InterPrediction.h
+2
-1
2 additions, 1 deletion
source/Lib/CommonLib/InterPrediction.h
source/Lib/CommonLib/TypeDef.h
+2
-0
2 additions, 0 deletions
source/Lib/CommonLib/TypeDef.h
with
39 additions
and
1 deletion
source/Lib/CommonLib/InterPrediction.cpp
+
35
−
0
View file @
ae1fb06e
...
...
@@ -589,9 +589,42 @@ void InterPrediction::xPredInterBlk ( const ComponentID& compID, const Predictio
JVET_J0090_SET_CACHE_ENABLE
(
true
);
if
(
bioApplied
&&
compID
==
COMPONENT_Y
)
{
#if JVET_M0487_INT_EXTEND
const
int
shift
=
std
::
max
<
int
>
(
2
,
(
IF_INTERNAL_PREC
-
clpRng
.
bd
));
const
Pel
*
refPel
=
refBuf
.
buf
-
refBuf
.
stride
-
1
;
Pel
*
dstPel
=
m_filteredBlockTmp
[
2
+
m_iRefListIdx
][
compID
]
+
dstBuf
.
stride
+
1
;
for
(
int
w
=
0
;
w
<
(
width
-
2
*
BIO_EXTEND_SIZE
);
w
++
)
{
Pel
val
=
leftShift_round
(
refPel
[
w
],
shift
);
dstPel
[
w
]
=
val
-
(
Pel
)
IF_INTERNAL_OFFS
;
}
refPel
=
refBuf
.
buf
-
1
;
dstPel
=
m_filteredBlockTmp
[
2
+
m_iRefListIdx
][
compID
]
+
2
*
dstBuf
.
stride
+
1
;
for
(
int
h
=
0
;
h
<
(
height
-
2
*
BIO_EXTEND_SIZE
-
2
);
h
++
)
{
Pel
val
=
leftShift_round
(
refPel
[
0
],
shift
);
dstPel
[
0
]
=
val
-
(
Pel
)
IF_INTERNAL_OFFS
;
val
=
leftShift_round
(
refPel
[
width
-
3
],
shift
);
dstPel
[
width
-
3
]
=
val
-
(
Pel
)
IF_INTERNAL_OFFS
;
refPel
+=
refBuf
.
stride
;
dstPel
+=
dstBuf
.
stride
;
}
refPel
=
refBuf
.
buf
+
(
height
-
2
*
BIO_EXTEND_SIZE
-
2
)
*
refBuf
.
stride
-
1
;
dstPel
=
m_filteredBlockTmp
[
2
+
m_iRefListIdx
][
compID
]
+
(
height
-
2
*
BIO_EXTEND_SIZE
)
*
dstBuf
.
stride
+
1
;
for
(
int
w
=
0
;
w
<
(
width
-
2
*
BIO_EXTEND_SIZE
);
w
++
)
{
Pel
val
=
leftShift_round
(
refPel
[
w
],
shift
);
dstPel
[
w
]
=
val
-
(
Pel
)
IF_INTERNAL_OFFS
;
}
#else
refBuf
.
buf
=
refBuf
.
buf
-
refBuf
.
stride
-
1
;
dstBuf
.
buf
=
m_filteredBlockTmp
[
2
+
m_iRefListIdx
][
compID
]
+
dstBuf
.
stride
+
1
;
bioSampleExtendBilinearFilter
(
refBuf
.
buf
,
refBuf
.
stride
,
dstBuf
.
buf
,
dstBuf
.
stride
,
width
-
2
,
height
-
2
,
1
,
xFrac
,
yFrac
,
rndRes
,
chFmt
,
clpRng
);
#endif
// restore data
width
=
backupWidth
;
...
...
@@ -905,6 +938,7 @@ void InterPrediction::applyBiOptFlow(const PredictionUnit &pu, const CPelUnitBuf
}
// yu
}
#if !JVET_M0487_INT_EXTEND
void
InterPrediction
::
bioSampleExtendBilinearFilter
(
Pel
const
*
src
,
int
srcStride
,
Pel
*
dst
,
int
dstStride
,
int
width
,
int
height
,
int
dim
,
int
fracX
,
int
fracY
,
bool
isLast
,
const
ChromaFormat
fmt
,
const
ClpRng
&
clpRng
)
{
Pel
const
*
pSrc
=
NULL
;
...
...
@@ -966,6 +1000,7 @@ void InterPrediction::bioSampleExtendBilinearFilter(Pel const* src, int srcStrid
}
}
}
#endif
bool
InterPrediction
::
xCalcBiPredSubBlkDist
(
const
PredictionUnit
&
pu
,
const
Pel
*
pYuvSrc0
,
const
int
src0Stride
,
const
Pel
*
pYuvSrc1
,
const
int
src1Stride
,
const
BitDepths
&
clipBitDepths
)
{
...
...
This diff is collapsed.
Click to expand it.
source/Lib/CommonLib/InterPrediction.h
+
2
−
1
View file @
ae1fb06e
...
...
@@ -101,8 +101,9 @@ protected:
int
rightShiftMSB
(
int
numer
,
int
denom
);
void
applyBiOptFlow
(
const
PredictionUnit
&
pu
,
const
CPelUnitBuf
&
yuvSrc0
,
const
CPelUnitBuf
&
yuvSrc1
,
const
int
&
refIdx0
,
const
int
&
refIdx1
,
PelUnitBuf
&
yuvDst
,
const
BitDepths
&
clipBitDepths
);
bool
xCalcBiPredSubBlkDist
(
const
PredictionUnit
&
pu
,
const
Pel
*
yuvSrc0
,
const
int
src0Stride
,
const
Pel
*
yuvSrc1
,
const
int
src1Stride
,
const
BitDepths
&
clipBitDepths
);
#if !JVET_M0487_INT_EXTEND
void
bioSampleExtendBilinearFilter
(
Pel
const
*
src
,
int
srcStride
,
Pel
*
dst
,
int
dstStride
,
int
width
,
int
height
,
int
dim
,
int
fracX
,
int
fracY
,
bool
isLast
,
const
ChromaFormat
fmt
,
const
ClpRng
&
clpRng
);
#endif
void
xPredInterUni
(
const
PredictionUnit
&
pu
,
const
RefPicList
&
eRefPicList
,
PelUnitBuf
&
pcYuvPred
,
const
bool
&
bi
,
const
bool
&
bioApplied
,
const
bool
luma
,
const
bool
chroma
...
...
This diff is collapsed.
Click to expand it.
source/Lib/CommonLib/TypeDef.h
+
2
−
0
View file @
ae1fb06e
...
...
@@ -50,6 +50,8 @@
#include
<assert.h>
#include
<cassert>
#define JVET_M0487_INT_EXTEND 1 // CE9.1.1 b: integer reference samples as 1 extended samples
#define JVET_M0444_SMVD 1 // SMVD mode
#define JVET_M0064_CCLM_SIMPLIFICATION 1
...
...
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