[FFmpeg-devel] gdigrab: fix HIDPI support for multi-monitor setup with different scale settings

2019-07-05 Thread Dilshod Mukhtarov
Hi, In Windows multi-monitor setup if there are different scales settings on different monitors then coordinates for videorecording  calculated not correct. Here is the patch that fixes this problem -- With the best regards, Dilshod >From 34ac7244b23ac2347a8e48b2ea2966cf69e1cf27 Mon Sep 17

Re: [FFmpeg-devel] gdigrab: fix HIDPI support for mouse positioning

2019-01-30 Thread Carl Eugen Hoyos
2019-01-27 20:15 GMT+01:00, Dilshod Mukhtarov : > New version, which uses integer arithmetics Patch applied. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-30 Thread Carl Eugen Hoyos
2019-01-27 20:14 GMT+01:00, Dilshod Mukhtarov : > > On 27.01.2019 22:51, Carl Eugen Hoyos wrote: >> 2019-01-27 1:45 GMT+01:00, Carl Eugen Hoyos : >>> 2019-01-26 18:53 GMT+01:00, Dilshod Mukhtarov : HI, this is the patch that fixes HIDPI support in gdigrab +double h_dpr; // Horizonta

Re: [FFmpeg-devel] gdigrab: fix HIDPI support for mouse positioning

2019-01-27 Thread Dilshod Mukhtarov
New version, which uses integer arithmetics -- With the best regards, Dilshod >From 586d4b3ed3406b66e3d0bd69806bc33beaddc026 Mon Sep 17 00:00:00 2001 From: Dilshod Mukhtarov Date: Sun, 27 Jan 2019 23:10:37 +0400 Subject: [PATCH 2/2] libavdevice/gdigrab: fix HIDPI support for mouse positioning

Re: [FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-27 Thread Dilshod Mukhtarov
On 27.01.2019 22:51, Carl Eugen Hoyos wrote: 2019-01-27 1:45 GMT+01:00, Carl Eugen Hoyos : 2019-01-26 18:53 GMT+01:00, Dilshod Mukhtarov : HI, this is the patch that fixes HIDPI support in gdigrab +double h_dpr; // Horizontal device pixel ratio +double v_dpr; // Vertical device pix

Re: [FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-27 Thread Carl Eugen Hoyos
2019-01-27 1:45 GMT+01:00, Carl Eugen Hoyos : > 2019-01-26 18:53 GMT+01:00, Dilshod Mukhtarov : >> HI, this is the patch that fixes HIDPI support in gdigrab > >> +double h_dpr; // Horizontal device pixel ratio >> +double v_dpr; // Vertical device pixel ratio > > I would expect these to

[FFmpeg-devel] gdigrab: fix HIDPI support for mouse positioning

2019-01-27 Thread Dilshod Mukhtarov
-- With the best regards, Dilshod >From 0d8ee5aca28655baf0e6954063ad61a422443d38 Mon Sep 17 00:00:00 2001 From: Dilshod Mukhtarov Date: Sun, 27 Jan 2019 22:30:01 +0400 Subject: [PATCH 2/2] libavdevice/gdigrab: fix HIDPI support for mouse positioning Mouse position was not calculated properly

Re: [FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-27 Thread Carl Eugen Hoyos
2019-01-27 19:40 GMT+01:00, Dilshod Mukhtarov : > Thanks for advices. I split the patch to two distinct parts. The > first part is here and the next one in a new message. I am quite sure that this has to be implemented without av_q2d(). Please avoid top-posting here, Carl Eugen _

Re: [FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-27 Thread Dilshod Mukhtarov
Hi Carl, Thanks for advices. I split the patch to two distinct parts. The first part is here and the next one in a new message. On 27.01.2019 4:45, Carl Eugen Hoyos wrote: 2019-01-26 18:53 GMT+01:00, Dilshod Mukhtarov : HI, this is the patch that fixes HIDPI support in gdigrab +double h

Re: [FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-26 Thread Carl Eugen Hoyos
2019-01-26 18:53 GMT+01:00, Dilshod Mukhtarov : > HI, this is the patch that fixes HIDPI support in gdigrab > +double h_dpr; // Horizontal device pixel ratio > +double v_dpr; // Vertical device pixel ratio I would expect these to be AVRational, if this is not possible, it should be ex

[FFmpeg-devel] gdigrab: fix HIDPI support

2019-01-26 Thread Dilshod Mukhtarov
HI, this is the patch that fixes HIDPI support in gdigrab: 1) Mouse position was not calculated properly in area or window mode 2) In window mode the size of window was not calculated properly (cropped) -- With the best regards, Dilshod >From 98043face18a5fae93ed01c14a15140a60dd7ad4 Mon Sep 1