Add FrameMask module

Fix module to work with mismatch pixel formats (this is usefull for gray
masks)
This commit is contained in:
2016-03-09 01:15:40 +00:00
parent 6d1ce190ae
commit 6841e57135
5 changed files with 166 additions and 1 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ PlaYUVerFrame* FrameShift::process( std::vector<PlaYUVerFrame*> apcFrameList )
}
Int iShiftHorChroma = CHROMASHIFT( m_iShiftHor, m_pcProcessedFrame->getChromaWidthRatio() );
Int iShiftVerChroma = CHROMASHIFT( m_iShiftVer, m_pcProcessedFrame->getChromaWidthRatio() );
Int iShiftVerChroma = CHROMASHIFT( m_iShiftVer, m_pcProcessedFrame->getChromaHeightRatio() );
xStartOut = iShiftHorChroma >= 0 ? iShiftHorChroma : 0;
xStartIn = iShiftHorChroma >= 0 ? 0 : -iShiftHorChroma;