Change format ext api and re-format code

This commit is contained in:
2017-11-27 20:13:05 +00:00
parent 327f5921f5
commit 6fe8a0f69e
62 changed files with 1422 additions and 2579 deletions
+5 -8
View File
@@ -34,12 +34,10 @@ FrameCrop::FrameCrop()
m_uiNumberOfFrames = MODULE_REQUIRES_ONE_FRAME;
m_uiModuleRequirements = MODULE_REQUIRES_OPTIONS;
m_cModuleOptions.addOptions() /**/
( "xPosition", m_uiXPosition,
"X cordinate of the left-top corner of the crop region [0]" ) /**/
( "yPosition", m_uiYPosition,
"Y cordinate of the left-top corner of the crop region [0]" ) /**/
( "width", m_iXSize, "Width of the crop region [-1]" ) /**/
m_cModuleOptions.addOptions() /**/
( "xPosition", m_uiXPosition, "X cordinate of the left-top corner of the crop region [0]" ) /**/
( "yPosition", m_uiYPosition, "Y cordinate of the left-top corner of the crop region [0]" ) /**/
( "width", m_iXSize, "Width of the crop region [-1]" ) /**/
( "height", m_iYSize, "Height of the crop region [-1]" );
m_pcCropedFrame = NULL;
@@ -60,8 +58,7 @@ Void FrameCrop::create( PlaYUVerFrame* frame )
{
m_iYSize = frame->getHeight() - m_uiYPosition;
}
m_pcCropedFrame =
new PlaYUVerFrame( m_iXSize, m_iYSize, frame->getPelFormat(), frame->getBitsPel() );
m_pcCropedFrame = new PlaYUVerFrame( m_iXSize, m_iYSize, frame->getPelFormat(), frame->getBitsPel() );
}
PlaYUVerFrame* FrameCrop::process( PlaYUVerFrame* frame )