Change FrameMask module to be compatible with different pixel formats

This commit is contained in:
jfmcarreira committed 2016-03-10 01:03:28 +00:00
1 parent 9022612019
commit c9dab4a646
4 files changed
+25 -31

No files matched your search

+2
View File
@@ -351,6 +351,8 @@ Void PlaYUVerFrame::setPixelValue( Int xPos, Int yPos, PlaYUVerPixel pixel )
Int ratioW = ch > 0 ? m_pcPelFormat->log2ChromaHeight : 0;
m_pppcInputPel[ch][( yPos >> ratioH )][( xPos >> ratioW )] = pixel.Components()[ch];
}
m_bHasHistogram = false;
m_bHasRGBPel = false;
}
Void PlaYUVerFrame::copyFrom( PlaYUVerFrame* input_frame )
+1 -2
View File
@@ -63,9 +63,9 @@ public:
{
NO_FMT = -1,
YUV420p = 0,
YUV444p,
YUV422p,
YUYV422,
YUV444p,
GRAY,
RGB24,
BRG24,
@@ -205,7 +205,6 @@ public:
PlaYUVerPixel getPixelValue( Int xPos, Int yPos );
PlaYUVerPixel getPixelValue( Int xPos, Int yPos, PlaYUVerPixel::ColorSpace eColorSpace );
Void setPixelValue( Int xPos, Int yPos, PlaYUVerPixel pixel );
Void copyFrom( PlaYUVerFrame* );