Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VVCSoftware_VTM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
jvet
VVCSoftware_VTM
Commits
adc8c568
Commit
adc8c568
authored
Mar 29, 2019
by
Christian Helmrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix LumaLevelToDeltaQP code in combination with getMaxDeltaQP() != 0
parent
8c3adbbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
source/Lib/EncoderLib/EncModeCtrl.cpp
source/Lib/EncoderLib/EncModeCtrl.cpp
+8
-14
No files found.
source/Lib/EncoderLib/EncModeCtrl.cpp
View file @
adc8c568
...
...
@@ -215,14 +215,6 @@ void EncModeCtrl::xGetMinMaxQP( int& minQP, int& maxQP, const CodingStructure& c
}
}
#endif
#if SHARP_LUMA_DELTA_QP
if
(
m_pcEncCfg
->
getLumaLevelToDeltaQPMapping
().
isEnabled
()
&&
(
!
CS
::
isDualITree
(
cs
)
||
isLuma
(
partitioner
.
chType
)))
{
minQP
=
Clip3
(
-
sps
.
getQpBDOffset
(
CHANNEL_TYPE_LUMA
),
MAX_QP
,
baseQP
-
m_lumaQPOffset
);
maxQP
=
minQP
;
}
#endif
}
...
...
@@ -1309,15 +1301,17 @@ void EncModeCtrlMTnoRQT::initCULevel( Partitioner &partitioner, const CodingStru
}
#endif
#if SHARP_LUMA_DELTA_QP
if
(
m_pcEncCfg
->
getLumaLevelToDeltaQPMapping
().
isEnabled
())
{
#if JVET_M0113_M0188_QG_SIZE
if
(
m_pcEncCfg
->
getLumaLevelToDeltaQPMapping
().
isEnabled
()
&&
partitioner
.
currQgEnable
())
if
(
partitioner
.
currQgEnable
())
#else
if
(
m_pcEncCfg
->
getLumaLevelToDeltaQPMapping
().
isEnabled
()
&&
partitioner
.
currDepth
<=
cs
.
pps
->
getMaxCuDQPDepth
())
if
(
partitioner
.
currDepth
<=
cs
.
pps
->
getMaxCuDQPDepth
())
#endif
{
CompArea
clipedArea
=
clipArea
(
cs
.
area
.
Y
(),
cs
.
picture
->
Y
()
);
// keep using the same m_QP_LUMA_OFFSET in the same CTU
m_lumaQPOffset
=
calculateLumaDQP
(
cs
.
getOrgBuf
(
clipedArea
)
);
{
m_lumaQPOffset
=
calculateLumaDQP
(
cs
.
getOrgBuf
(
clipArea
(
cs
.
area
.
Y
(),
cs
.
picture
->
Y
()))
);
}
baseQP
=
Clip3
(
-
cs
.
sps
->
getQpBDOffset
(
CHANNEL_TYPE_LUMA
),
MAX_QP
,
baseQP
-
m_lumaQPOffset
);
}
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment