VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    May 2014
    Location
    Malaysia
    Search Comp PM
    Hi friends,

    I'm trying to experiment on mode decision in the TAppEncoder which is in the HEVC reference software.

    The problem: The encoder is raising the following flag as I tried to run it in visual studio:- Unhandled exception at 0x00a68b06 in TAppEncoder.exe:0xC0000005:Access violation reading location 0x00000010.

    Steps that gave the error: I modified the function void TComYuv::SubtractLuma(...). I modified it to return some variables that I want to use in making mode decision in void TEncCu::deriveTestModeAMP(.....)

    The encoder ran without problems with the changes I made in SubtractLuma(...). I think that the problem is from my codes in deriveTestModeAMP(...).

    Part of deriveTestModeAMP(...) which has my modification is shown below:

    void TEncCu::deriveTestModeAMP(.....)
    {

    TComYuv* pcYuvSrc1;
    TComDataCU* ptt;
    TComYuv* pcYuvSrc0;
    TComYuv* ptk;
    TComYuv* pttk;
    pcYuvSrc1=NULL;
    pcYuvSrc0=NULL;
    ptk=NULL;
    ptt=NULL;
    pttk=NULL;
    UInt uiTrUnitIdx=0;
    UInt uiPartSize=eParentPartSize;
    Pel* pSrc0 = pcYuvSrc0->getLumaAddr(uiTrUnitIdx, uiPartSize );
    Pel* pSrc1 = pcYuvSrc1->getLumaAddr(uiTrUnitIdx,uiPartSize );
    Pel* pDst =pttk->getLumaAddr(uiTrUnitIdx,uiPartSize );
    ptk->subtractLuma( pcYuvSrc0, pcYuvSrc1, uiTrUnitIdx, uiPartSize);

    if ( rpcBestCU->getPartitionSize(0) == SIZE_2NxN )
    {
    bTestAMP_Hor = true;
    }
    }

    I will be grateful for any assistance.
    Quote Quote  
  2. Member
    Join Date
    Apr 2015
    Location
    United Kingdom
    Search PM
    I am wondering how you can access pcYuvSrc1 and pcYuvSrc0 after setting them to NULL.
    Quote Quote  
  3. Member
    Join Date
    May 2014
    Location
    Malaysia
    Search Comp PM
    Thank you very much for pointing that out. I will factor that into the codes and check it out again.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!