Change formating and copyrights
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* This file is a part of plaYUVer project
|
||||
* Copyright (C) 2014-2017 by Luis Lucas (luisfrlucas@gmail.com)
|
||||
* Joao Carreira (jfmcarreira@gmail.com)
|
||||
/* This file is a part of PlaYUVer project
|
||||
* Copyright (C) 2014-2018 by Joao Carreira (jfmcarreira@gmail.com)
|
||||
* Luis Lucas (luisfrlucas@gmail.com)
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -40,7 +40,8 @@ SetChromaHalfScale::SetChromaHalfScale()
|
||||
Void SetChromaHalfScale::create( PlaYUVerFrame* frame )
|
||||
{
|
||||
m_pcProcessedFrame = NULL;
|
||||
m_pcProcessedFrame = new PlaYUVerFrame( frame->getWidth(), frame->getHeight(), frame->getPelFormat(), frame->getBitsPel() );
|
||||
m_pcProcessedFrame =
|
||||
new PlaYUVerFrame( frame->getWidth(), frame->getHeight(), frame->getPelFormat(), frame->getBitsPel() );
|
||||
}
|
||||
|
||||
PlaYUVerFrame* SetChromaHalfScale::process( PlaYUVerFrame* frame )
|
||||
@@ -48,11 +49,13 @@ PlaYUVerFrame* SetChromaHalfScale::process( PlaYUVerFrame* frame )
|
||||
Pel* pPelInput = frame->getPelBufferYUV()[LUMA][0];
|
||||
Pel* pPelOut = m_pcProcessedFrame->getPelBufferYUV()[0][0];
|
||||
Pel halfScaleValue = 1 << ( frame->getBitsPel() - 1 );
|
||||
for( UInt i = 0; i < frame->getHeight() * frame->getWidth(); i++ ) {
|
||||
for( UInt i = 0; i < frame->getHeight() * frame->getWidth(); i++ )
|
||||
{
|
||||
*pPelOut++ = *pPelInput++;
|
||||
}
|
||||
pPelInput = frame->getPelBufferYUV()[CHROMA_U][0];
|
||||
for( UInt i = 0; i < m_pcProcessedFrame->getChromaLength() * 2; i++ ) {
|
||||
for( UInt i = 0; i < m_pcProcessedFrame->getChromaLength() * 2; i++ )
|
||||
{
|
||||
*pPelOut++ = halfScaleValue;
|
||||
}
|
||||
return m_pcProcessedFrame;
|
||||
|
||||
Reference in New Issue
Block a user