Exemple #1
0
ErrVal
MCTFPreProcessorTest::xWrite( PicBufferList&  rcPicBufferList )
{
  UInt auiCropping[4] = {0,0,0,0};

  while( ! rcPicBufferList.empty() )
  {
    PicBuffer*  pcBuffer  = rcPicBufferList.popFront();
    Pel*        pcBuf     = pcBuffer->getBuffer();
    RNOK( m_pcWriteYuv->writeFrame( pcBuf + m_uiLumOffset,
                                    pcBuf + m_uiCbOffset,
                                    pcBuf + m_uiCrOffset,
                                    m_uiHeight,
                                    m_uiWidth,
                                    m_uiStride, auiCropping ) );
  }
  return Err::m_nOK;
}
ErrVal
H264AVCEncoderTest::xWrite( PicBufferList&  rcPicBufferList,
                            UInt            uiLayer )
{
  while( ! rcPicBufferList.empty() )
  {
    PicBuffer* pcBuffer = rcPicBufferList.popFront();

    Pel* pcBuf = pcBuffer->getBuffer();
    RNOK( m_apcWriteYuv[uiLayer]->writeFrame( pcBuf + m_auiLumOffset[uiLayer], 
                                              pcBuf + m_auiCbOffset [uiLayer],
                                              pcBuf + m_auiCrOffset [uiLayer],
                                              m_auiHeight           [uiLayer],
                                              m_auiWidth            [uiLayer],
                                              m_auiStride           [uiLayer] ) );
  }
  return Err::m_nOK;
}