Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ECM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Monitor
Incidents
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
ECM
ECM
Commits
e8b2ba82
Commit
e8b2ba82
authored
4 years ago
by
Frank Bossen
Browse files
Options
Downloads
Plain Diff
Merge branch 'Bitstream-Switching-Fixes' into 'master'
Fix for Ticket
#1296
: Re-allow packed YUV output after RPR integration See merge request
!1850
parents
61348da9
9011c60f
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
+23
-2
23 additions, 2 deletions
source/Lib/Utilities/VideoIOYuv.cpp
with
23 additions
and
2 deletions
source/Lib/Utilities/VideoIOYuv.cpp
+
23
−
2
View file @
e8b2ba82
...
...
@@ -472,7 +472,6 @@ static bool writePlane( uint32_t orgWidth, uint32_t orgHeight, ostream& fd, cons
const
uint32_t
height_file
=
height444
>>
csy_file
;
const
bool
writePYUV
=
(
packedYUVOutputMode
>
0
)
&&
(
fileBitDepth
==
10
||
fileBitDepth
==
12
)
&&
((
width_file
&
(
1
+
(
fileBitDepth
&
3
)))
==
0
);
CHECK
(
writePYUV
,
"Not supported"
);
CHECK
(
csx_file
!=
csx_src
,
"Not supported"
);
const
uint32_t
stride_file
=
writePYUV
?
(
orgWidth
*
fileBitDepth
)
>>
(
csx_file
+
3
)
:
(
orgWidth
*
(
is16bit
?
2
:
1
)
)
>>
csx_file
;
...
...
@@ -573,6 +572,29 @@ static bool writePlane( uint32_t orgWidth, uint32_t orgHeight, ostream& fd, cons
pSrcBuf
+=
srcbuf_stride
;
}
}
// here height444 and orgHeight are luma heights
if
((
compID
==
COMPONENT_Y
)
||
(
fileFormat
!=
CHROMA_400
&&
srcFormat
!=
CHROMA_400
))
{
for
(
uint32_t
y444
=
height444
;
y444
<
orgHeight
;
y444
++
)
{
if
((
y444
&
mask_y_file
)
==
0
)
// if this is chroma, determine whether to skip every other row
{
memset
(
reinterpret_cast
<
char
*>
(
buf
),
0
,
stride_file
);
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
;
}
}
}
}
else
// !writePYUV
if
(
compID
!=
COMPONENT_Y
&&
(
fileFormat
==
CHROMA_400
||
srcFormat
==
CHROMA_400
))
...
...
@@ -678,7 +700,6 @@ static bool writePlane( uint32_t orgWidth, uint32_t orgHeight, ostream& fd, cons
{
if
(
(
y444
&
mask_y_file
)
==
0
)
// if this is chroma, determine whether to skip every other row
{
if
(
!
is16bit
)
{
for
(
uint32_t
x
=
0
;
x
<
(
orgWidth
>>
csx_file
);
x
++
)
...
...
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