Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Mirroring not working

Prasad__Nagendra
Beginner
368 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
368 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

0 Kudos
Reply