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
cd87e938
Commit
cd87e938
authored
4 years ago
by
Christian Helmrich
Browse files
Options
Downloads
Patches
Plain Diff
add chroma check around newly added code, to be on the safe side
parent
872964dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1850
Fix for Ticket #1296: Re-allow packed YUV output after RPR integration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/Lib/Utilities/VideoIOYuv.cpp
+14
-11
14 additions, 11 deletions
source/Lib/Utilities/VideoIOYuv.cpp
with
14 additions
and
11 deletions
source/Lib/Utilities/VideoIOYuv.cpp
+
14
−
11
View file @
cd87e938
...
...
@@ -574,22 +574,25 @@ static bool writePlane( uint32_t orgWidth, uint32_t orgHeight, ostream& fd, cons
}
// here height444 and orgHeight are luma heights
for
(
uint32_t
y444
=
height444
;
y444
<
orgHeight
;
y444
++
)
if
((
compID
==
COMPONENT_Y
)
||
(
fileFormat
!=
CHROMA_400
&&
srcFormat
!=
CHROMA_400
)
)
{
if
((
y444
&
mask_y_file
)
==
0
)
// if this is chroma, determine whether to skip every other row
for
(
uint32_t
y444
=
height444
;
y444
<
orgHeight
;
y444
++
)
{
memset
(
reinterpret_cast
<
char
*>
(
buf
),
0
,
stride_file
);
// TODO: is this correct? Should behave similarly to code block at end of this function
fd
.
write
(
reinterpret_cast
<
const
char
*>
(
buf
),
stride_file
);
if
(
fd
.
eof
()
||
fd
.
fail
())
if
((
y444
&
mask_y_file
)
==
0
)
// if this is chroma, determine whether to skip every other row
{
return
false
;
memset
(
reinterpret_cast
<
char
*>
(
buf
),
0
,
stride_file
);
// TODO: is this correct? Should behave similarly to code block at end of this function
fd
.
write
(
reinterpret_cast
<
const
char
*>
(
buf
),
stride_file
);
if
(
fd
.
eof
()
||
fd
.
fail
())
{
return
false
;
}
}
}
if
((
y444
&
mask_y_src
)
==
0
)
{
pSrcBuf
+=
srcbuf_stride
;
if
((
y444
&
mask_y_src
)
==
0
)
{
pSrcBuf
+=
srcbuf_stride
;
}
}
}
}
...
...
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