Skip to content
Snippets Groups Projects
Commit 6e1e8a69 authored by Adrian Browne's avatar Adrian Browne
Browse files

Fix #1409: Don't scale 15/16 bit sequences to lower bit depths if...

Fix #1409: Don't scale 15/16 bit sequences to lower bit depths if JVET_R0351_HIGH_BIT_DEPTH_ENABLED is not set
parent c0193db1
No related branches found
No related tags found
1 merge request!1916Fix #1409: Don't scale 15/16 bit sequences to lower bit depths if...
......@@ -952,6 +952,12 @@ bool VideoIOYuv::read ( PelUnitBuf& pic, PelUnitBuf& picOrg, const InputColourSp
{
EXIT("Source image contains values outside the specified bit range!");
}
#if !JVET_R0351_HIGH_BIT_DEPTH_ENABLED
if (m_fileBitdepth[chType] > 14 && m_bitdepthShift[chType] < 0)
{
EXIT("JVET_R0351_HIGH_BIT_DEPTH_ENABLED must be enabled for bit depths above 14 if INTERNALBITDEPTH < INPUTBITDEPTH");
}
#endif
scalePlane( picOrg.get(compID), m_bitdepthShift[chType], minval, maxval);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment