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

Can Mpeg2FrameConstrutor detect changes in aspect ratio? solved!

elsparro
Beginner
263 Views

Edit: Solved by using GetInfo() from the decoder.

I have a live stream that changes aspect ratio on-the-fly, I try to detect that with following the code but it don't work.

m_framer are an instance of Mpeg2FrameConstructor.

UMC::VideoStreamInfo* vinfo = (UMC::VideoStreamInfo*) m_framer.GetInfo()->m_pStreamInfo;

if (vinfo->videoInfo.m_iSAWidth  != lastSAWidth) {

}

This is done for every frame from the framer.

Is this supposed to work or are there a better way?

Any help is appriciated

Thanks

0 Kudos
0 Replies
Reply