Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.

Mirroring not working

Prasad__Nagendra
Beginner
174 Views

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
174 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