Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ramashankar
New Contributor III
144 Views

Support of image rotation during screen capture

Hi,

I am using screen capture module along with sample_encode module to capture my desktop image and encode it into h264 format. I am running this application on a Windows8 desktop machine and on a windows8 Microsoft surface device and it works fine.  Now I want to add the support of screen rotation feature for Microsoft Surface device.

At present when surface device is rotated at 90 degree then I get the captured output frame un-oriented but image is rotated inside. E.g. if original desktop resolution is 1920x1080 and it is rotated by 90 degree, then capture module delivers raw output frame of 1920x1080 resolution in which desktop image is rotated inside.

My objective in this case is to get a final output frame with 1080x1920 resolution (height width swapped )so that desktop image still looks un-rotated even though device is rotated.

I checked in media sdk and found that there is a rotation plugin which supports only 180 degree rotation and that too for jpeg decoding only. So is there any module/lib in media sdk which supports image rotation (by 90, 180 & 270 degree) during screen capturing or h264 encoding, or h264 decoding?

My environment details are as following:

IMSDK version: 6.0.0.349
Sample decode version: 6.0.0.49
OS: Windows 8.1
Graphics Card: Intel(R) HD Graphics 4400 with driver version 10.18.14.4294

Thanks.

 

0 Kudos
3 Replies
Jiandong_Z_Intel
Employee
144 Views

Hi Ramashankar,

I think you should try Intel® Media SDK 2016 , after installation you can find following in mediasdk_release_notes.pdf

Page 2 -

mfxstructures.h: MFX_EXTBUFF_VPP_ROTATION and corresponding
mfxExtVPPRotation extended buffer structure added to support
rotation in VPP

Page 3 -

Added rotation filter support for MFX_IMPL_VIA_D3D11 path with
90,180,270 angles support and progressive content only.

 

Hope it helpful.

Thanks,

Zachary

 

Ramashankar
New Contributor III
144 Views

Hi Zachary,

Thanks for this useful information. I will download 2016 version SDK and explore further.

Thanks,

Kishore_V_Intel
Employee
144 Views

Hi,

I am using d3d11 to do Rotation using mfxExtVPPRotation for progressive NV12 content

intel media sdk version using is 7.0.0.311.

But MFXVideoVPP_Query returns error MFX_ERR_UNSUPPORTED.

tracer log Attached.please help me to resolve this problem

Os version is Windows 8.1 and intel graphics card present

Thanks

Kishore 

Reply