Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VVCSoftware_VTM
Manage
Activity
Members
Labels
Plan
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
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-tuc
VVCSoftware_VTM
Commits
e36c895f
Commit
e36c895f
authored
2 years ago
by
Kenneth Andersson
Browse files
Options
Downloads
Patches
Plain Diff
Instead of overwriting variable it is initialized to the sps conformance window
parent
6aa7292b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Lib/Utilities/VideoIOYuv.cpp
+1
-2
1 addition, 2 deletions
source/Lib/Utilities/VideoIOYuv.cpp
with
1 addition
and
2 deletions
source/Lib/Utilities/VideoIOYuv.cpp
+
1
−
2
View file @
e36c895f
...
...
@@ -1424,7 +1424,7 @@ bool VideoIOYuv::writeUpscaledPicture(const SPS &sps, const PPS &pps, const CPel
ChromaFormat
chromaFormatIdc
=
sps
.
getChromaFormatIdc
();
bool
ret
=
false
;
static
Window
afterScaleWindowFullResolution
;
static
Window
afterScaleWindowFullResolution
=
sps
.
getConformanceWindow
()
;
// decoder does not have information about upscaled picture scaling and conformance windows, store this information when full resolution picutre is encountered
if
(
sps
.
getMaxPicWidthInLumaSamples
()
==
pps
.
getPicWidthInLumaSamples
()
&&
sps
.
getMaxPicHeightInLumaSamples
()
==
pps
.
getPicHeightInLumaSamples
()
)
...
...
@@ -1441,7 +1441,6 @@ bool VideoIOYuv::writeUpscaledPicture(const SPS &sps, const PPS &pps, const CPel
upscaledPic
.
create
(
chromaFormatIdc
,
Area
(
Position
(),
Size
(
sps
.
getMaxPicWidthInLumaSamples
(),
sps
.
getMaxPicHeightInLumaSamples
())));
afterScaleWindowFullResolution
=
sps
.
getConformanceWindow
();
int
curPicWidth
=
sps
.
getMaxPicWidthInLumaSamples
()
-
SPS
::
getWinUnitX
(
sps
.
getChromaFormatIdc
()
)
*
(
afterScaleWindowFullResolution
.
getWindowLeftOffset
()
+
afterScaleWindowFullResolution
.
getWindowRightOffset
()
);
int
curPicHeight
=
sps
.
getMaxPicHeightInLumaSamples
()
-
SPS
::
getWinUnitY
(
sps
.
getChromaFormatIdc
()
)
*
(
afterScaleWindowFullResolution
.
getWindowTopOffset
()
+
afterScaleWindowFullResolution
.
getWindowBottomOffset
()
);
...
...
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