Improve PlaYUVerFrame and add comments

This commit is contained in:
2018-02-06 04:06:39 +00:00
parent ee5b07e558
commit 014fd2f28b
4 changed files with 106 additions and 68 deletions
+2 -2
View File
@@ -90,7 +90,7 @@ Bool FilterComponentChromaU::create( std::vector<PlaYUVerFrame*> apcFrameList )
{
if( apcFrameList[0]->getNumberChannels() > 1 )
{
return createFilter( apcFrameList[0]->getChromaWidth(), apcFrameList[0]->getChromaHeight(),
return createFilter( apcFrameList[0]->getWidth( CHROMA_U ), apcFrameList[0]->getHeight( CHROMA_U ),
apcFrameList[0]->getBitsPel() );
}
return false;
@@ -113,7 +113,7 @@ Bool FilterComponentChromaV::create( std::vector<PlaYUVerFrame*> apcFrameList )
{
if( apcFrameList[0]->getNumberChannels() > 1 )
{
return createFilter( apcFrameList[0]->getChromaWidth(), apcFrameList[0]->getChromaHeight(),
return createFilter( apcFrameList[0]->getWidth( CHROMA_V ), apcFrameList[0]->getHeight( CHROMA_V ),
apcFrameList[0]->getBitsPel() );
}
return false;