Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Prasad__Nagendra
Beginner
57 Views

Mirroring not working

Hi,

I am trying mirroring image using mediasdk version 2017_R3

here is mycode..

mfxExtVPPMirroring mirroringConfig;
memset(&mirroringConfig, 0, sizeof(mirroringConfig));
mirroringConfig.Header.BufferId = MFX_EXTBUFF_VPP_MIRRORING;
mirroringConfig.Header.BufferSz = sizeof(mfxExtVPPMirroring);
mirroringConfig.Type = MFX_MIRRORING_HORIZONTAL;

mfxExtBuffer* ExtBuffer = (mfxExtBuffer*) &mirroringConfig;
vppParams.NumExtParam = 1;
vppParams.ExtParam = (mfxExtBuffer**) &ExtBuffer;

where as Rotation works

mfxExtVPPRotation rotationConfig;
memset(&rotationConfig, 0, sizeof(rotationConfig));
rotationConfig.Header.BufferId = MFX_EXTBUFF_VPP_ROTATION;
rotationConfig.Header.BufferSz = sizeof(mfxExtVPPRotation);
rotationConfig.Angle = 180;

any help is appreciated..

Thanks.

 

0 Kudos
1 Reply
Mark_L_Intel1
Moderator
57 Views

Hi Prasad,

Could you run our sample code "sample_vpp" to see if you can reproduce?

sample_vpp has an argument to do "mirroring", you can refer to following document to see how to use it:

https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/samples/readme-vpp_linux.pdf

Mark

Reply