Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Cannot Instantiate H264Decoder

ghanand
Beginner
337 Views

Hello All,

I am using Intel H264 Codec for video conference application.

I can successfully encode the frames, i have problem in using H264VideoDecoder class. My application is getting crashed while instantiating this class.

VideoDecoder *p_vidDecoder;

p_vidDecoder = new H264VideoDecoder;

When i debugged this class inside VC++ .NET, the constructor of H264VideoDecoder class is getting crashed while initialising ColorConversionParams class.

If does anybody has encountered this problem or anybody know the cause for this problem. Please reply to this message.

Thanks,

Anand

0 Kudos
3 Replies
ghanand
Beginner
337 Views

Hello,

Exactly it is getting crashed in ColorConversionInfo class inside reset() function

void Reset(void)
{
FormatSource = NONE;
FormatDest = NONE;
memset(&SizeSource, 0, sizeof(SizeSource));
memset(&SizeDest, 0, sizeof(SizeDest));
memset(&SrcCropRect, 0, sizeof(SrcCropRect));
memset(&SrcFmtConsts, 0, sizeof(SrcFmtConsts));
memset(&DstFmtConsts, 0, sizeof(DstFmtConsts));
lInterpolation = 0;
lFlags = 0;
lDeinterlace = 0;
}

The error is "Access violation".

Please help me.

Thanks,

Anand

0 Kudos
Vladimir_Dudnik
Employee
337 Views

Could you please check IPP media sample, it demonstrates how to use UMC classes to build media player (including H.264 video decoder)

Regards,
Vladimir

0 Kudos
ghanand
Beginner
337 Views

HiVladimir,

Thanks for the response.

I have solved the aboveproblem, this problem was coming because of some shared data types between H264 encoder and decoder.

Since i include bothe the encoder and decoder into one workspace there are lot of similar data types between decoder and encoder.

I had to rename the name space as suggested by you in the other thread.

Now, i am facing problem while decoding the frames. The GetFramefunction returns with an error number -996(not enough data).

I am attaching the source code with this mail, plese look into the code and please suggest me what is wrong with my code.

Thanks & Regards,

Anand

0 Kudos
Reply