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 modeBy impmon2 in forum Media Center PC / MediaCentersReplies: 1Last Post: 3rd Feb 2014, 09:50
- 
  Error in TAppEncoderBy maryam209 in forum ProgrammingReplies: 1Last Post: 22nd Feb 2013, 04:13
- 
  AHCI mode Worth Installing to Replace IDE mode?By wulf109 in forum ComputerReplies: 13Last Post: 24th Aug 2012, 13:42
- 
  DVD Decrypter: File Mode total size double that of ISO read modeBy dare2be in forum DVD RippingReplies: 7Last Post: 13th Feb 2011, 13:21
- 
  The Betamax DecisionBy wulf109 in forum DVD RippingReplies: 4Last Post: 7th Jul 2010, 13:28


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote