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
8bf04c28
Commit
8bf04c28
authored
4 years ago
by
Brian Heng
Browse files
Options
Downloads
Patches
Plain Diff
Update output YUV shift if the bitdepth changes between two sequences.
parent
ec4bb116
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1953
Update output YUV shift if the bitdepth changes between two sequences.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/App/DecoderApp/DecApp.cpp
+11
-0
11 additions, 0 deletions
source/App/DecoderApp/DecApp.cpp
source/Lib/Utilities/VideoIOYuv.h
+3
-0
3 additions, 0 deletions
source/Lib/Utilities/VideoIOYuv.h
with
14 additions
and
0 deletions
source/App/DecoderApp/DecApp.cpp
+
11
−
0
View file @
8bf04c28
...
...
@@ -325,6 +325,17 @@ uint32_t DecApp::decode()
m_cVideoIOYuvReconFile
[
nalu
.
m_nuhLayerId
].
open
(
reconFileName
,
true
,
m_outputBitDepth
,
m_outputBitDepth
,
bitDepths
.
recon
);
// write mode
}
}
// update file bitdepth shift if recon bitdepth changed between sequences
for
(
uint32_t
channelType
=
0
;
channelType
<
MAX_NUM_CHANNEL_TYPE
;
channelType
++
)
{
int
reconBitdepth
=
pcListPic
->
front
()
->
cs
->
sps
->
getBitDepth
((
ChannelType
)
channelType
);
int
fileBitdepth
=
m_cVideoIOYuvReconFile
[
nalu
.
m_nuhLayerId
].
getFileBitdepth
(
channelType
);
int
bitdepthShift
=
m_cVideoIOYuvReconFile
[
nalu
.
m_nuhLayerId
].
getBitdepthShift
(
channelType
);
if
(
fileBitdepth
+
bitdepthShift
!=
reconBitdepth
)
{
m_cVideoIOYuvReconFile
[
nalu
.
m_nuhLayerId
].
setBitdepthShift
(
channelType
,
reconBitdepth
-
fileBitdepth
);
}
}
// write reconstruction to file
if
(
bNewPicture
)
{
...
...
This diff is collapsed.
Click to expand it.
source/Lib/Utilities/VideoIOYuv.h
+
3
−
0
View file @
8bf04c28
...
...
@@ -96,6 +96,9 @@ public:
bool
isEof
();
///< check for end-of-file
bool
isFail
();
///< check for failure
bool
isOpen
()
{
return
m_cHandle
.
is_open
();
}
void
setBitdepthShift
(
int
ch
,
int
bd
)
{
m_bitdepthShift
[
ch
]
=
bd
;
}
int
getBitdepthShift
(
int
ch
)
{
return
m_bitdepthShift
[
ch
];
}
int
getFileBitdepth
(
int
ch
)
{
return
m_fileBitdepth
[
ch
];
}
bool
writeUpscaledPicture
(
const
SPS
&
sps
,
const
PPS
&
pps
,
const
CPelUnitBuf
&
pic
,
const
InputColourSpaceConversion
ipCSC
,
const
bool
bPackedYUVOutputMode
,
int
outputChoice
=
0
,
ChromaFormat
format
=
NUM_CHROMA_FORMAT
,
const
bool
bClipToRec709
=
false
);
///< write one upsaled YUV frame
...
...
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