Skip to content
Snippets Groups Projects

JVET-AJ0234: Allow for patch-wise operation when using spatial extrapolation

Merged Philip Cowan requested to merge pbcowan/VVCSoftware_VTM:JVET-AJ0234 into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -171,7 +171,7 @@ void SEINeuralNetworkPostFiltering::filterPictures(PicList& picList)
@@ -171,7 +171,7 @@ void SEINeuralNetworkPostFiltering::filterPictures(PicList& picList)
CHECK(outputPicWidth == croppedWidth && outputPicHeight == croppedHeight, "When resolutionResamplingFlag is equal to 1, either nnpfcOutputPicWidth is not equal to CroppedWidth or nnpfcOutputPicHeight is not equal to CroppedHeight.");
CHECK(outputPicWidth == croppedWidth && outputPicHeight == croppedHeight, "When resolutionResamplingFlag is equal to 1, either nnpfcOutputPicWidth is not equal to CroppedWidth or nnpfcOutputPicHeight is not equal to CroppedHeight.");
#if JVET_AJ0234_PATCH_WISE_SPATIAL_EXTRAPOLATION
#if JVET_AJ0234_PATCH_WISE_SPATIAL_EXTRAPOLATION
if ((superResolutionNnpfc->m_purpose & NNPC_PurposeType::SPATIAL_EXTRAPOLATION) != 1)
if ((superResolutionNnpfc->m_purpose & NNPC_PurposeType::SPATIAL_EXTRAPOLATION) != 0)
{
{
int outputPicWidth1 = outputPicWidth + superResolutionNnpfc->m_outSubWidthC * (superResolutionNnpfc->m_spatialExtrapolationLeftOffset + superResolutionNnpfc->m_spatialExtrapolationRightOffset);
int outputPicWidth1 = outputPicWidth + superResolutionNnpfc->m_outSubWidthC * (superResolutionNnpfc->m_spatialExtrapolationLeftOffset + superResolutionNnpfc->m_spatialExtrapolationRightOffset);
int outputPicHeight1 = outputPicHeight + superResolutionNnpfc->m_outSubHeightC * (superResolutionNnpfc->m_spatialExtrapolationTopOffset + superResolutionNnpfc->m_spatialExtrapolationBottomOffset);
int outputPicHeight1 = outputPicHeight + superResolutionNnpfc->m_outSubHeightC * (superResolutionNnpfc->m_spatialExtrapolationTopOffset + superResolutionNnpfc->m_spatialExtrapolationBottomOffset);
Loading