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.
+ Reply to Thread
Results 1 to 3 of 3
-
-
I am wondering how you can access pcYuvSrc1 and pcYuvSrc0 after setting them to NULL.
-
Thank you very much for pointing that out. I will factor that into the codes and check it out again.
Similar Threads
-
Laptop to TV OK in 720 mode but garbled video in 1080i mode
By impmon2 in forum Media Center PC / MediaCentersReplies: 1Last Post: 3rd Feb 2014, 08:50 -
Error in TAppEncoder
By maryam209 in forum ProgrammingReplies: 1Last Post: 22nd Feb 2013, 03:13 -
AHCI mode Worth Installing to Replace IDE mode?
By wulf109 in forum ComputerReplies: 13Last Post: 24th Aug 2012, 12:42 -
DVD Decrypter: File Mode total size double that of ISO read mode
By dare2be in forum DVD RippingReplies: 7Last Post: 13th Feb 2011, 12:21 -
The Betamax Decision
By wulf109 in forum DVD RippingReplies: 4Last Post: 7th Jul 2010, 12:28